@peasant-labs/fairtrade 0.0.17 → 0.0.19

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 (35) hide show
  1. package/README.md +11 -2
  2. package/THIRD_PARTY_NOTICES.md +31 -0
  3. package/dist/lib/{InUseShell-CY5Acw6t.js → GraphLegend-BB0V2w59.js} +780 -558
  4. package/dist/lib/commons.js +139 -139
  5. package/dist/lib/components.css +1 -1
  6. package/dist/lib/graph.css +1 -1
  7. package/dist/lib/graph.js +921 -359
  8. package/dist/lib/types/BrandMark.d.ts +2 -2
  9. package/dist/lib/types/commons/providers.d.ts +1 -1
  10. package/dist/lib/types/graph/index.d.ts +16 -0
  11. package/dist/lib/types/provider-policy.d.ts +2 -2
  12. package/dist/lib/types/transcript/OutcomeChip.d.ts +18 -0
  13. package/dist/lib/types/transcript/UsageDisclosure.d.ts +8 -0
  14. package/dist/lib/types/transcript/analytics.d.ts +3 -6
  15. package/dist/lib/types/transcript/graph/engine/GraphControls.d.ts +13 -0
  16. package/dist/lib/types/transcript/graph/engine/TrajectoryGraph.d.ts +18 -0
  17. package/dist/lib/types/transcript/graph/engine/TrajectoryGraphLegend.d.ts +18 -0
  18. package/dist/lib/types/transcript/graph/engine/constants.d.ts +37 -0
  19. package/dist/lib/types/transcript/graph/engine/index.d.ts +23 -0
  20. package/dist/lib/types/transcript/graph/engine/nodes/SubagentBranchNode.d.ts +11 -0
  21. package/dist/lib/types/transcript/graph/engine/nodes/ToolPillNode.d.ts +11 -0
  22. package/dist/lib/types/transcript/graph/engine/nodes/TurnCardNode.d.ts +11 -0
  23. package/dist/lib/types/transcript/graph/engine/turnsToFlow.d.ts +47 -0
  24. package/dist/lib/types/transcript/graph/engine/types.d.ts +131 -0
  25. package/dist/lib/types/transcript/graph/engine/useCanvasSync.d.ts +17 -0
  26. package/dist/lib/types/transcript/index.d.ts +5 -0
  27. package/dist/lib/types/transcript/state-capabilities.d.ts +2 -1
  28. package/dist/lib/types/transcript/time.d.ts +22 -0
  29. package/dist/lib/types/transcript/title.d.ts +48 -0
  30. package/dist/lib/types/transcript/turnNav.d.ts +9 -0
  31. package/dist/lib/types/transcript/usage.d.ts +19 -0
  32. package/dist/lib/types/transcript/view-model.d.ts +61 -0
  33. package/dist/lib/{ui-yIg-1YXY.js → ui-DkPbLhcp.js} +2872 -2731
  34. package/dist/lib/ui.js +4 -4
  35. package/package.json +29 -8
package/dist/lib/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as e, $t as t, A as n, An as r, At as i, B as a, Bn as o, Bt as s, C as c, Cn as l, Ct as u, D as d, Dn as f, Dt as p, E as m, En as h, Et as g, F as _, Fn as v, Ft as y, G as b, Gt as x, H as S, Ht as C, I as w, In as T, It as E, J as D, Jt as O, K as k, Kt as A, L as j, Ln as M, Lt as N, M as P, Mn as F, Mt as I, N as L, Nn as R, Nt as z, O as B, On as V, Ot as H, P as U, Pn as W, Pt as G, Q as K, Qt as q, R as J, Rn as Y, Rt as X, S as Z, Sn as Q, St as $, T as ee, Tn as te, Tt as ne, U as re, Ut as ie, V as ae, Vt as oe, W as se, Wt as ce, X as le, Xt as ue, Y as de, Yt as fe, Z as pe, Zt as me, _ as he, _n as ge, _t as _e, a as ve, an as ye, at as be, b as xe, bn as Se, bt as Ce, c as we, cn as Te, ct as Ee, d as De, dn as Oe, dt as ke, en as Ae, et as je, f as Me, fn as Ne, ft as Pe, g as Fe, gn as Ie, gt as Le, h as Re, hn as ze, ht as Be, i as Ve, in as He, it as Ue, j as We, jn as Ge, jt as Ke, k as qe, kn as Je, kt as Ye, l as Xe, ln as Ze, lt as Qe, m as $e, mn as et, mt as tt, n as nt, nn as rt, nt as it, o as at, on as ot, ot as st, p as ct, pn as lt, pt as ut, q as dt, qt as ft, r as pt, rn as mt, rt as ht, s as gt, sn as _t, st as vt, t as yt, tn as bt, tt as xt, u as St, un as Ct, ut as wt, v as Tt, vn as Et, vt as Dt, w as Ot, wn as kt, wt as At, x as jt, xn as Mt, xt as Nt, y as Pt, yn as Ft, yt as It, z as Lt, zn as Rt, zt } from "./ui-yIg-1YXY.js";
2
- import { J as Bt, Y as Vt, _t as Ht, a as Ut, at as Wt, c as Gt, ct as Kt, dt as qt, ft as Jt, gt as Yt, ht as Xt, i as Zt, it as Qt, l as $t, lt as en, mt as tn, n as nn, nt as rn, o as an, ot as on, pt as sn, r as cn, rt as ln, s as un, st as dn, t as fn, ut as pn, vt as mn } from "./InUseShell-CY5Acw6t.js";
3
- import { n as hn, t as gn } from "./ChartLine-Cycmpjep.js";
4
- export { rn as AccentLegend, Ae as Accordion, H as ApprovalBar, Ze as Avatar, Ct as AvatarGroup, Ht as BrandMark, Ft as Breadcrumb, Y as Button, Rt as ButtonGroup, Q as Card, l as CardImg, hn as ChartBar, gn as ChartLine, Ge as Checkbox, Le as CheckpointMarker, h as Chip, be as CliSteps, st as CommandBlock, C as CommandPalette, Vt as CommitGraph, ne as ConfirmInline, ke as ConnectionPill, Ke as ConsentDialog, I as ConsentSummary, f as CountBadge, ce as DATE_PRESETS, g as DangerZone, Pe as DataState, rt as DataTable, x as DateRange, A as DateRangeCalendar, ie as Dialog, Bt as DiffView, se as ENTRY_TYPES, Te as EmptyState, Nt as EvidenceCaption, $ as EvidenceTarget, y as Explainer, Ue as FacetRail, mt as FeedbackPanel, W as Field, V as FilterChip, le as FocusedModeToggle, fn as GRAPH_APP_SECTIONS, yt as GRAPH_LEGEND_ITEMS, vt as GettingStarted, je as GovTile, nn as GraphAppShell, nt as GraphLegend, cn as GraphSectionNav, pt as GraphSubagentBranch, Ve as GraphToolNode, ve as GraphTurnNode, u as GroupedMultiSelect, b as HARNESSES, Ee as HandleClaim, dn as Heatmap, Zt as IN_USE_APPS, Ut as InUseShell, v as Input, Kt as IntensityScope, en as IntensitySwatch, Oe as Kbd, Ne as KbdChord, $t as MapCanvas, pn as MapNode, Ie as Menu, kt as MetaItem, Ye as ModerationQueue, Qe as OnboardingCard, ln as PROVIDER_ACCENT, Et as Pager, ge as Pagination, _e as Phase, Dt as PhaseDivider, i as PolicySelect, et as Popover, He as Progress, xt as ProviderBars, Qt as ProviderIcon, Wt as ProviderName, on as ProviderTag, k as ROLES, F as Radio, R as RadioGroup, an as RailSection, un as RailShell, qt as RampLegend, z as RedactionReview, p as RoleRoster, te as Row, dt as SESSION_OUTCOMES, D as STOP_REASONS, pe as ScopeChip, o as Segmented, T as Select, wt as SignInProviders, ye as Skeleton, bt as Sparkline, ot as Spinner, Gt as SplitRail, it as StatGrid, ht as StatTile, Je as StatusDot, X as StepIndicator, zt as StepWizard, Se as Steps, At as StepsWaterfall, r as Switch, de as TOOL_CALL_KINDS, re as TOOL_GROUPS, Mt as Tabs, lt as Tag, It as TaskBoundary, ut as TeachingEmptyState, E as Term, M as Textarea, ue as ThinkingBlock, N as TimeStrip, me as Timeline, q as TimelineItem, _t as Toast, O as ToastProvider, t as ToolCall, Be as ToolCallRenderer, ze as Tooltip, tt as Tour, Pt as TranscriptCheckRow, m as TranscriptDiffEntryCard, d as TranscriptDiffHunks, xe as TranscriptFilterSection, he as TranscriptFiltersRail, $e as TranscriptLabelPopover, qe as TranscriptMarkdown, jt as TranscriptOutlineRail, Re as TranscriptScorecard, Fe as TranscriptScrubber, ee as TranscriptTaskBody, B as TranscriptThinking, Ot as TranscriptToolBody, c as TranscriptToolCall, Z as TranscriptTurnCard, Tt as TranscriptViewSwitch, at as TranscriptViewer, s as Treemap, Ce as TurnContextBar, K as VisibilityEye, e as VisibilitySegmented, G as WhereDoesThisGo, n as adaptTranscript, we as advanceTranscriptInitialPositionConsumption, L as annotateTranscript, U as assessScorecard, _ as buildTaskWaterfall, w as computeAnalytics, j as computePersonalMedians, J as computeTaskGroups, Lt as computeTasks, a as computeTurnLabels, Jt as coverageLevel, ae as detectPhases, We as diffLines, sn as effortLevel, ft as formatRange, tn as locSize, Xe as normalizeTranscriptInitialPosition, S as phaseLabel, P as prefilterTurns, Xt as providerAccent, Yt as providerDisplayName, mn as resolveBrand, St as resolveTranscriptInitialPosition, De as shouldApplyTranscriptInitialPosition, oe as squarify, Me as transcriptInitialPositionReadiness, ct as transcriptInitialPositionToken, fe as useToast, gt as useTranscriptInitialPosition };
1
+ import { $ as e, $t as t, A as n, An as r, At as i, B as a, Bn as o, Bt as s, C as c, Cn as l, Ct as u, D as d, Dn as f, Dt as p, E as m, En as h, Et as g, F as _, Fn as v, Ft as y, G as b, Gt as x, H as S, Hn as C, Ht as w, I as T, In as E, It as D, J as O, Jt as k, K as A, Kt as j, L as M, Ln as N, Lt as P, M as F, Mn as I, Mt as L, N as R, Nn as z, Nt as B, O as V, On as H, Ot as U, P as W, Pn as G, Pt as K, Q as q, Qt as J, R as Y, Rn as X, Rt as Z, S as Q, Sn as $, St as ee, T as te, Tn as ne, Tt as re, U as ie, Un as ae, Ut as oe, V as se, Vn as ce, Vt as le, W as ue, Wt as de, X as fe, Xt as pe, Y as me, Yt as he, Z as ge, Zt as _e, _ as ve, _n as ye, _t as be, a as xe, an as Se, at as Ce, b as we, bn as Te, bt as Ee, c as De, cn as Oe, ct as ke, d as Ae, dn as je, dt as Me, en as Ne, et as Pe, f as Fe, fn as Ie, ft as Le, g as Re, gn as ze, gt as Be, h as Ve, hn as He, ht as Ue, i as We, in as Ge, it as Ke, j as qe, jn as Je, jt as Ye, k as Xe, kn as Ze, kt as Qe, l as $e, ln as et, lt as tt, m as nt, mn as rt, mt as it, n as at, nn as ot, nt as st, o as ct, on as lt, ot as ut, p as dt, pn as ft, pt, q as mt, qt as ht, r as gt, rn as _t, rt as vt, s as yt, sn as bt, st as xt, t as St, tn as Ct, tt as wt, u as Tt, un as Et, ut as Dt, v as Ot, vn as kt, vt as At, w as jt, wn as Mt, wt as Nt, x as Pt, xn as Ft, xt as It, y as Lt, yn as Rt, yt as zt, z as Bt, zn as Vt, zt as Ht } from "./ui-DkPbLhcp.js";
2
+ import { $ as Ut, Ct as Wt, St as Gt, _t as Kt, a as qt, bt as Jt, c as Yt, ct as Xt, d as Zt, dt as Qt, et as $t, f as en, ft as tn, gt as nn, ht as rn, i as an, l as on, lt as sn, m as cn, mt as ln, n as un, o as dn, p as fn, pt as pn, r as mn, s as hn, st as gn, t as _n, u as vn, ut as yn, vt as bn, xt as xn, yt as Sn } from "./GraphLegend-BB0V2w59.js";
3
+ import { n as Cn, t as wn } from "./ChartLine-Cycmpjep.js";
4
+ export { gn as AccentLegend, _t as Accordion, Ye as ApprovalBar, Ie as Avatar, ft as AvatarGroup, Gt as BrandMark, $ as Breadcrumb, ce as Button, C as ButtonGroup, ne as Card, h as CardImg, Cn as ChartBar, wn as ChartLine, G as Checkbox, zt as CheckpointMarker, Ze as Chip, ke as CliSteps, tt as CommandBlock, x as CommandPalette, $t as CommitGraph, U as ConfirmInline, it as ConnectionPill, K as ConsentDialog, y as ConsentSummary, r as CountBadge, ht as DATE_PRESETS, Qe as DangerZone, Ue as DataState, Se as DataTable, k as DateRange, he as DateRangeCalendar, j as Dialog, Ut as DiffView, mt as ENTRY_TYPES, je as EmptyState, Nt as EvidenceCaption, re as EvidenceTarget, Z as Explainer, xt as FacetRail, lt as FeedbackPanel, N as Field, Je as FilterChip, e as FocusedModeToggle, dn as GRAPH_APP_SECTIONS, _n as GRAPH_LEGEND_ITEMS, Dt as GettingStarted, vt as GovTile, hn as GraphAppShell, un as GraphLegend, Yt as GraphSectionNav, mn as GraphSubagentBranch, an as GraphToolNode, qt as GraphTurnNode, g as GroupedMultiSelect, O as HARNESSES, Me as HandleClaim, tn as Heatmap, on as IN_USE_APPS, vn as InUseShell, X as Input, pn as IntensityScope, ln as IntensitySwatch, rt as Kbd, He as KbdChord, cn as MapCanvas, rn as MapNode, Rt as Menu, f as MetaItem, L as ModerationQueue, Le as OnboardingCard, Xt as PROVIDER_ACCENT, Ft as Pager, Te as Pagination, Ee as Phase, It as PhaseDivider, B as PolicySelect, ye as Popover, bt as Progress, Ke as ProviderBars, sn as ProviderIcon, yn as ProviderName, Qt as ProviderTag, me as ROLES, v as Radio, E as RadioGroup, Zt as RailSection, en as RailShell, nn as RampLegend, D as RedactionReview, i as RoleRoster, H as Row, fe as SESSION_OUTCOMES, ge as STOP_REASONS, Pe as ScopeChip, ae as Segmented, Vt as Select, pt as SignInProviders, Oe as Skeleton, Ge as Sparkline, et as Spinner, fn as SplitRail, Ce as StatGrid, ut as StatTile, I as StatusDot, le as StepIndicator, w as StepWizard, l as Steps, p as StepsWaterfall, z as Switch, q as TOOL_CALL_KINDS, A as TOOL_GROUPS, Mt as Tabs, ze as Tag, ee as TaskBoundary, Be as TeachingEmptyState, Ht as Term, o as Textarea, t as ThinkingBlock, s as TimeStrip, Ne as Timeline, Ct as TimelineItem, Et as Toast, _e as ToastProvider, ot as ToolCall, At as ToolCallRenderer, kt as Tooltip, be as Tour, nt as TranscriptCheckRow, Q as TranscriptDiffEntryCard, c as TranscriptDiffHunks, Ve as TranscriptFilterSection, Fe as TranscriptFiltersRail, $e as TranscriptLabelPopover, te as TranscriptMarkdown, ve as TranscriptOutcomeChip, Re as TranscriptOutlineRail, Tt as TranscriptScorecard, Ae as TranscriptScrubber, Pt as TranscriptTaskBody, jt as TranscriptThinking, we as TranscriptToolBody, Lt as TranscriptToolCall, Ot as TranscriptTurnCard, dt as TranscriptViewSwitch, St as TranscriptViewer, oe as Treemap, u as TurnContextBar, wt as VisibilityEye, st as VisibilitySegmented, P as WhereDoesThisGo, R as adaptTranscript, gt as advanceTranscriptInitialPositionConsumption, T as annotateTranscript, M as assessScorecard, Y as buildTaskWaterfall, m as composeSessionTitle, Bt as computeAnalytics, a as computePersonalMedians, se as computeTaskGroups, S as computeTasks, ie as computeTurnLabels, Kt as coverageLevel, ue as detectPhases, W as diffLines, bn as effortLevel, Xe as formatDateLong, n as formatDurationMins, pe as formatRange, qe as formatRelative, Sn as locSize, F as nextNavTurn, We as normalizeTranscriptInitialPosition, b as phaseLabel, _ as prefilterTurns, d as projectLabel, Jt as providerAccent, xn as providerDisplayName, Wt as resolveBrand, xe as resolveTranscriptInitialPosition, ct as shouldApplyTranscriptInitialPosition, de as squarify, V as summarizePrompt, yt as transcriptInitialPositionReadiness, De as transcriptInitialPositionToken, J as useToast, at as useTranscriptInitialPosition };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peasant-labs/fairtrade",
3
3
  "private": false,
4
- "version": "0.0.17",
4
+ "version": "0.0.19",
5
5
  "description": "Fairtrade design-system library: canonical tokens, base styles, component CSS, and React UI exports.",
6
6
  "type": "module",
7
7
  "license": "Apache-2.0",
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/peasant-labs/fairtrade-design-system"
11
11
  },
12
12
  "engines": {
13
- "node": ">=24"
13
+ "node": ">=26"
14
14
  },
15
15
  "publishConfig": {
16
16
  "registry": "https://registry.npmjs.org/",
@@ -59,18 +59,21 @@
59
59
  "files": [
60
60
  "dist/lib",
61
61
  "LICENSE",
62
+ "THIRD_PARTY_NOTICES.md",
62
63
  "README.md"
63
64
  ],
64
65
  "sideEffects": [
65
66
  "*.css"
66
67
  ],
67
- "packageManager": "pnpm@10.33.2",
68
+ "packageManager": "pnpm@11.24.0",
68
69
  "scripts": {
69
70
  "dev": "vite",
70
71
  "contrast": "node scripts/contrast.mjs",
71
72
  "llm": "node scripts/gen-llm-artifacts.mjs",
72
73
  "test:package-provenance": "node scripts/assert-package-provenance.mjs && node scripts/package-provenance.test.mjs",
73
74
  "test:release-guard": "node --test scripts/release-guard.test.mjs",
75
+ "test:release-notes": "node scripts/release-notes.test.mjs",
76
+ "test:release-notes:mutations": "node scripts/release-notes.mutations.mjs",
74
77
  "prebuild:lib": "pnpm test:release-guard",
75
78
  "gen:check": "node scripts/gen-llm-artifacts.mjs && git diff --exit-code public/tokens.json public/components.json packages/tokens/tokens.css packages/tokens/tokens.json packages/tokens/base.css packages/tokens/fonts.css",
76
79
  "build:app": "node scripts/gen-llm-artifacts.mjs && node scripts/contrast.mjs && vite build",
@@ -100,6 +103,10 @@
100
103
  "test:explore-page-intent": "node scripts/explore-page-intent.render.test.mjs",
101
104
  "test:explore-page-intent:mutations": "node scripts/explore-page-intent.mutations.mjs",
102
105
  "test:transcript-schema-adapter": "node scripts/transcript-schema-adapter.test.mjs",
106
+ "test:pi-transcript": "node scripts/pi-transcript.test.mjs",
107
+ "test:pi-transcript:mutations": "node scripts/pi-transcript.mutations.mjs",
108
+ "test:pi-transcript:mounted": "PI_MOUNTED_TEST=1 node scripts/pi-transcript.test.mjs",
109
+ "test:pi-transcript:visual": "node scripts/pi-transcript.probe.mjs",
103
110
  "test:transcript-schema-adapter:mutations": "node scripts/transcript-schema-adapter.mutations.mjs",
104
111
  "test:transcript-filters": "node scripts/transcript-filters.test.mjs",
105
112
  "test:transcript-turn-model": "node scripts/transcript-turn-model.test.mjs",
@@ -108,7 +115,13 @@
108
115
  "test:provider-harnesses:mutations": "node scripts/provider-harnesses.mutations.mjs",
109
116
  "test:graph-contract-enums": "node scripts/graph-contract-enums.test.mjs",
110
117
  "test:structured-shiki": "node scripts/assert-structured-shiki.mjs",
111
- "test:gates": "pnpm test:structured-shiki && node scripts/gates.test.mjs",
118
+ "test:transcript-helpers": "node scripts/transcript-helpers.test.mjs",
119
+ "test:transcript-helpers:mutations": "node scripts/transcript-helpers.mutations.mjs",
120
+ "test:transcript-outcome-chip": "node scripts/transcript-outcome-chip.test.mjs",
121
+ "test:transcript-outcome-chip:mutations": "node scripts/transcript-outcome-chip.mutations.mjs",
122
+ "test:transcript-viewer-outcome": "node scripts/transcript-viewer-outcome.test.mjs",
123
+ "test:transcript-viewer-outcome:mutations": "node scripts/transcript-viewer-outcome.mutations.mjs",
124
+ "test:gates": "pnpm test:structured-shiki && pnpm test:pi-transcript && pnpm test:pi-transcript:mutations && node scripts/gates.test.mjs && node scripts/turns-to-flow-edges.test.mjs && pnpm test:transcript-helpers && pnpm test:transcript-outcome-chip && pnpm test:transcript-viewer-outcome && pnpm test:release-notes",
112
125
  "test:analytics": "node src/ui/analytics/metrics.test.mjs",
113
126
  "test:mobile-layout": "node scripts/mobile-layout.test.mjs",
114
127
  "test:transcript-composite-width": "node scripts/transcript-composite-width.test.mjs",
@@ -121,21 +134,22 @@
121
134
  "smoke:changes": "node scripts/smoke-changes.mjs",
122
135
  "test:changes-overflow": "node scripts/changes-overflow.test.mjs",
123
136
  "shoot:manage": "node scripts/shootmanage.mjs",
124
- "build:lib": "pnpm test:package-provenance && pnpm test:contract && pnpm test:runtime-floor && pnpm test:code-map-state && pnpm test:code-map-ranking && pnpm test:code-map-ranking:mutations && pnpm test:code-map-ranking:bench && pnpm test:timeline-encoding-channels && pnpm test:timeline-highlight && pnpm test:code-map-interactions && pnpm test:code-map-drag-smoothness && pnpm test:code-map-wheel-zoom && pnpm test:code-map-descent-feedback && pnpm test:timeline-navigation && pnpm test:transcript-initial-position && pnpm test:transcript-initial-position:render && pnpm test:transcript-initial-position:mutations && pnpm test:transcript-header-condense && pnpm test:transcript-header-condense:mutations && pnpm test:explore-page-intent && pnpm test:explore-page-intent:mutations && pnpm test:gates && node src/ui/analytics/metrics.test.mjs && node scripts/mobile-layout.test.mjs && node scripts/transcript-composite-width.test.mjs && node scripts/css-token-lint.mjs && node scripts/gen-llm-artifacts.mjs && node scripts/contrast.mjs && vite build --config vite.lib.config.js && vite build --config vite.lib-css.config.js && node scripts/finalize-lib-build.mjs && tsc -p tsconfig.lib.json && node scripts/smoke-lib.mjs && node scripts/smoke-transcript.mjs && node scripts/smoke-transcript-ui.mjs && pnpm test:transcript-markdown && pnpm test:transcript-markdown:mutations && pnpm test:graph-contract-enums && pnpm test:transcript-schema-adapter && pnpm test:transcript-schema-adapter:mutations && pnpm test:transcript-filters && pnpm test:transcript-turn-model && pnpm test:transcript-turn-model:mutations && pnpm test:provider-harnesses && pnpm test:provider-harnesses:mutations && node scripts/smoke-map.mjs && node scripts/smoke-changes.mjs && pnpm test:changes-overflow && pnpm test:timeline-a11y && pnpm test:timeline-ghosts && pnpm test:insight-panel && node scripts/contrast.mjs --css dist/lib/tokens.css && node scripts/assert-pack-contents.mjs",
137
+ "build:lib": "pnpm test:package-provenance && pnpm test:contract && pnpm test:runtime-floor && pnpm test:code-map-state && pnpm test:code-map-ranking && pnpm test:code-map-ranking:mutations && pnpm test:code-map-ranking:bench && pnpm test:timeline-encoding-channels && pnpm test:timeline-highlight && pnpm test:code-map-interactions && pnpm test:code-map-drag-smoothness && pnpm test:code-map-wheel-zoom && pnpm test:code-map-descent-feedback && pnpm test:timeline-navigation && pnpm test:transcript-initial-position && pnpm test:transcript-initial-position:render && pnpm test:transcript-initial-position:mutations && pnpm test:transcript-header-condense && pnpm test:transcript-header-condense:mutations && pnpm test:explore-page-intent && pnpm test:explore-page-intent:mutations && pnpm test:gates && pnpm test:transcript-helpers:mutations && pnpm test:transcript-outcome-chip:mutations && pnpm test:transcript-viewer-outcome:mutations && pnpm test:release-notes:mutations && node src/ui/analytics/metrics.test.mjs && node scripts/mobile-layout.test.mjs && node scripts/transcript-composite-width.test.mjs && node scripts/css-token-lint.mjs && node scripts/gen-llm-artifacts.mjs && node scripts/contrast.mjs && vite build --config vite.lib.config.js && vite build --config vite.lib-css.config.js && node scripts/finalize-lib-build.mjs && tsc -p tsconfig.lib.json && node scripts/smoke-lib.mjs && node scripts/smoke-transcript.mjs && node scripts/smoke-transcript-ui.mjs && pnpm test:transcript-markdown && pnpm test:transcript-markdown:mutations && pnpm test:graph-contract-enums && pnpm test:transcript-schema-adapter && pnpm test:transcript-schema-adapter:mutations && pnpm test:transcript-filters && pnpm test:transcript-turn-model && pnpm test:transcript-turn-model:mutations && pnpm test:provider-harnesses && pnpm test:provider-harnesses:mutations && node scripts/smoke-map.mjs && node scripts/smoke-changes.mjs && pnpm test:changes-overflow && pnpm test:timeline-a11y && pnpm test:timeline-ghosts && pnpm test:insight-panel && node scripts/contrast.mjs --css dist/lib/tokens.css && node scripts/assert-pack-contents.mjs",
125
138
  "pack:check": "node scripts/assert-pack-contents.mjs",
126
139
  "smoke:tarball": "node scripts/smoke-tarball.mjs",
127
140
  "oracle:graph": "node scripts/graph-oracle.mjs",
128
141
  "oracle:graph:check": "node scripts/check-graph-oracle.mjs",
129
- "prepack": "pnpm build:lib",
142
+ "prepack": "pnpm build:lib && pnpm test:pi-transcript:mounted",
130
143
  "build": "pnpm build:app",
131
144
  "preview": "vite preview",
132
145
  "storybook": "storybook dev -p 6006",
133
146
  "build-storybook": "storybook build",
134
147
  "build:all": "pnpm build && pnpm build-storybook && rm -rf dist/storybook && cp -r storybook-static dist/storybook",
135
- "start": "http-server dist -p ${PORT:-3000} -a 0.0.0.0 --silent"
148
+ "start": "http-server dist -p ${PORT:-3000} -a 0.0.0.0 --silent",
149
+ "test:turns-to-flow-edges": "node scripts/turns-to-flow-edges.test.mjs"
136
150
  },
137
151
  "dependencies": {
138
- "@peasant-labs/schema": "0.1.1-rc1",
152
+ "@peasant-labs/schema": "0.18.0",
139
153
  "@tanstack/react-table": "^8.21.3",
140
154
  "lucide": "^1.20.0",
141
155
  "lucide-react": "^1.18.0",
@@ -145,6 +159,7 @@
145
159
  "remark-gfm": "4.0.1"
146
160
  },
147
161
  "peerDependencies": {
162
+ "@xyflow/react": "^12.0.0",
148
163
  "react": ">=19.0.0 <20",
149
164
  "react-dom": ">=19.0.0 <20"
150
165
  },
@@ -155,6 +170,7 @@
155
170
  "@tailwindcss/vite": "^4.3.1",
156
171
  "@types/react": "19.2.18",
157
172
  "@vitejs/plugin-react": "^6.0.2",
173
+ "@xyflow/react": "12.10.2",
158
174
  "http-server": "^14.1.1",
159
175
  "jsdom": "^29.1.1",
160
176
  "puppeteer-core": "^25.1.0",
@@ -165,5 +181,10 @@
165
181
  "typescript": "^6.0.3",
166
182
  "vite": "^8.0.16",
167
183
  "yaml": "2.9.0"
184
+ },
185
+ "peerDependenciesMeta": {
186
+ "@xyflow/react": {
187
+ "optional": true
188
+ }
168
189
  }
169
190
  }