@peasant-labs/fairtrade 0.0.19 → 0.0.21
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.
- package/dist/lib/commons.js +82 -82
- package/dist/lib/components.css +1 -1
- package/dist/lib/types/Checkbox.d.ts +19 -1
- package/dist/lib/types/HelperGroup.d.ts +226 -0
- package/dist/lib/types/PromptDigest.d.ts +36 -0
- package/dist/lib/types/SessionGroupDisclosure.d.ts +42 -0
- package/dist/lib/types/index.d.ts +3 -0
- package/dist/lib/types/transcript/TranscriptContext.d.ts +21 -0
- package/dist/lib/types/transcript/TranscriptViewer.d.ts +1 -1
- package/dist/lib/types/transcript/UsageDisclosure.d.ts +3 -2
- package/dist/lib/types/transcript/adapter.d.ts +8 -4
- package/dist/lib/types/transcript/index.d.ts +3 -0
- package/dist/lib/types/transcript/state-capabilities.d.ts +14 -0
- package/dist/lib/types/transcript/view-model.d.ts +58 -0
- package/dist/lib/{ui-DkPbLhcp.js → ui-w7Ju5ccI.js} +3930 -3132
- package/dist/lib/ui.js +4 -4
- package/package.json +14 -5
package/dist/lib/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $
|
|
2
|
-
import { $ as
|
|
3
|
-
import { n as
|
|
4
|
-
export {
|
|
1
|
+
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Ct as d, D as f, Dn as p, Dt as m, E as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, Gt as C, H as w, Hn as T, Ht as E, I as D, In as O, It as k, J as A, Jn as j, Jt as M, K as N, Kn as P, Kt as F, L as I, Ln as L, Lt as R, M as z, Mn as B, Mt as V, N as H, Nn as U, Nt as W, O as G, On as K, Ot as q, P as J, Pn as Y, Pt as X, Q as Z, Qn as Q, Qt as $, R as ee, Rn as te, Rt as ne, S as re, Sn as ie, St as ae, T as oe, Tn as se, Tt as ce, U as le, Un as ue, Ut as de, V as fe, Vn as pe, Vt as me, W as he, Wn as ge, Wt as _e, X as ve, Xn as ye, Xt as be, Y as xe, Yn as Se, Yt as Ce, Z as we, Zn as Te, Zt as Ee, _ as De, _n as Oe, _t as ke, a as Ae, an as je, at as Me, b as Ne, bn as Pe, bt as Fe, c as Ie, cn as Le, ct as Re, d as ze, dn as Be, dt as Ve, en as He, er as Ue, et as We, f as Ge, fn as Ke, ft as qe, g as Je, gn as Ye, gt as Xe, h as Ze, hn as Qe, ht as $e, i as et, in as tt, it as nt, j as rt, jn as it, jt as at, k as ot, kn as st, kt as ct, l as lt, ln as ut, lt as dt, m as ft, mn as pt, mt, n as ht, nn as gt, nt as _t, o as vt, on as yt, ot as bt, p as xt, pn as St, pt as Ct, q as wt, qn as Tt, qt as Et, r as Dt, rn as Ot, rt as kt, s as At, sn as jt, st as Mt, t as Nt, tn as Pt, tt as Ft, u as It, un as Lt, ut as Rt, v as zt, vn as Bt, vt as Vt, w as Ht, wn as Ut, wt as Wt, x as Gt, xn as Kt, xt as qt, y as Jt, yn as Yt, yt as Xt, z as Zt, zn as Qt, zt as $t } from "./ui-w7Ju5ccI.js";
|
|
2
|
+
import { $ as en, Ct as tn, St as nn, _t as rn, a as an, bt as on, c as sn, ct as cn, d as ln, dt as un, et as dn, f as fn, ft as pn, gt as mn, ht as hn, i as gn, l as _n, lt as vn, m as yn, mt as bn, n as xn, o as Sn, p as Cn, pt as wn, r as Tn, s as En, st as Dn, t as On, u as kn, ut as An, vt as jn, xt as Mn, yt as Nn } from "./GraphLegend-BB0V2w59.js";
|
|
3
|
+
import { n as Pn, t as Fn } from "./ChartLine-Cycmpjep.js";
|
|
4
|
+
export { Dn as AccentLegend, pt as Accordion, V as ApprovalBar, u as Avatar, Ut as AvatarGroup, nn as BrandMark, U as Breadcrumb, Q as Button, t as ButtonGroup, O as Card, L as CardImg, Pn as ChartBar, Fn as ChartLine, S as Checkbox, Xt as CheckpointMarker, s as Chip, Re as CliSteps, dt as CommandBlock, F as CommandPalette, dn as CommitGraph, ct as ConfirmInline, mt as ConnectionPill, b as ConsentDialog, k as ConsentSummary, pe as CountBadge, M as DATE_PRESETS, a as DangerZone, $e as DataState, Ye as DataTable, Ce as DateRange, be as DateRangeCalendar, Et as Dialog, en as DiffView, wt as ENTRY_TYPES, ie as EmptyState, ce as EvidenceCaption, _ as EvidenceTarget, $t as Explainer, Mt as FacetRail, Oe as FeedbackPanel, j as Field, T as FilterChip, e as FocusedModeToggle, Sn as GRAPH_APP_SECTIONS, On as GRAPH_LEGEND_ITEMS, Rt as GettingStarted, kt as GovTile, En as GraphAppShell, xn as GraphLegend, sn as GraphSectionNav, Tn as GraphSubagentBranch, gn as GraphToolNode, an as GraphTurnNode, m as GroupedMultiSelect, A as HARNESSES, tt as HELPER_OWNER_STATE, Ve as HandleClaim, pn as Heatmap, je as HelperGroup, yt as HelperGroupListItem, jt as HelperThreadRow, _n as IN_USE_APPS, kn as InUseShell, Se as Input, wn as IntensityScope, bn as IntensitySwatch, se as Kbd, g as KbdChord, yn as MapCanvas, hn as MapNode, i as Menu, te as MetaItem, W as ModerationQueue, qe as OnboardingCard, cn as PROVIDER_ACCENT, B as Pager, it as Pagination, Fe as Phase, qt as PhaseDivider, X as PolicySelect, K as Popover, Bt as Progress, Wt as PromptDigest, nt as ProviderBars, vn as ProviderIcon, An as ProviderName, un as ProviderTag, xe as ROLES, P as Radio, Tt as RadioGroup, ln as RailSection, fn as RailShell, mn as RampLegend, R as RedactionReview, at as RoleRoster, Qt as Row, ve as SESSION_OUTCOMES, we as STOP_REASONS, We as ScopeChip, Ue as Segmented, ye as Select, St as SessionGroupDisclosure, Ct as SignInProviders, Yt as Skeleton, Qe as Sparkline, Pe as Spinner, Cn as SplitRail, Me as StatGrid, bt as StatTile, ue as StatusDot, E as StepIndicator, de as StepWizard, Y as Steps, q as StepsWaterfall, ge as Switch, Z as TOOL_CALL_KINDS, N as TOOL_GROUPS, y as Tabs, p as Tag, ae as TaskBoundary, Xe as TeachingEmptyState, c as Term, Te as Textarea, He as ThinkingBlock, me as TimeStrip, Pt as Timeline, gt as TimelineItem, Kt as Toast, $ as ToastProvider, Ot as ToolCall, Vt as ToolCallRenderer, st as Tooltip, ke as Tour, ft as TranscriptCheckRow, re as TranscriptDiffEntryCard, l as TranscriptDiffHunks, Ze as TranscriptFilterSection, Ge as TranscriptFiltersRail, lt as TranscriptLabelPopover, oe as TranscriptMarkdown, De as TranscriptOutcomeChip, Je as TranscriptOutlineRail, It as TranscriptScorecard, ze as TranscriptScrubber, Gt as TranscriptTaskBody, Ht as TranscriptThinking, Ne as TranscriptToolBody, Jt as TranscriptToolCall, zt as TranscriptTurnCard, xt as TranscriptViewSwitch, Nt as TranscriptViewer, _e as Treemap, d as TurnContextBar, Ft as VisibilityEye, _t as VisibilitySegmented, ne as WhereDoesThisGo, H as adaptTranscript, Dt as advanceTranscriptInitialPositionConsumption, D as annotateTranscript, I as assessScorecard, ee as buildTaskWaterfall, h as composeSessionTitle, Zt as computeAnalytics, o as computePersonalMedians, fe as computeTaskGroups, w as computeTasks, le as computeTurnLabels, rn as coverageLevel, he as detectPhases, J as diffLines, jn as effortLevel, ot as formatDateLong, r as formatDurationMins, Ee as formatRange, rt as formatRelative, Le as helperMemberToggle, ut as helperOwnerState, Lt as helperOwnerToggle, Be as helperSelectionIds, Nn as locSize, z as nextNavTurn, et as normalizeTranscriptInitialPosition, x as phaseLabel, v as prefilterTurns, f as projectLabel, on as providerAccent, Mn as providerDisplayName, tn as resolveBrand, Ae as resolveTranscriptInitialPosition, vt as shouldApplyTranscriptInitialPosition, C as squarify, G as summarizePrompt, At as transcriptInitialPositionReadiness, Ie as transcriptInitialPositionToken, Ke as useHelperSelection, n as useToast, ht 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.
|
|
4
|
+
"version": "0.0.21",
|
|
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",
|
|
@@ -103,6 +103,8 @@
|
|
|
103
103
|
"test:explore-page-intent": "node scripts/explore-page-intent.render.test.mjs",
|
|
104
104
|
"test:explore-page-intent:mutations": "node scripts/explore-page-intent.mutations.mjs",
|
|
105
105
|
"test:transcript-schema-adapter": "node scripts/transcript-schema-adapter.test.mjs",
|
|
106
|
+
"test:transcript-provenance": "node scripts/transcript-provenance-retention.test.mjs",
|
|
107
|
+
"test:transcript-provenance:mounted": "node scripts/transcript-provenance-retention.probe.mjs",
|
|
106
108
|
"test:pi-transcript": "node scripts/pi-transcript.test.mjs",
|
|
107
109
|
"test:pi-transcript:mutations": "node scripts/pi-transcript.mutations.mjs",
|
|
108
110
|
"test:pi-transcript:mounted": "PI_MOUNTED_TEST=1 node scripts/pi-transcript.test.mjs",
|
|
@@ -116,12 +118,14 @@
|
|
|
116
118
|
"test:graph-contract-enums": "node scripts/graph-contract-enums.test.mjs",
|
|
117
119
|
"test:structured-shiki": "node scripts/assert-structured-shiki.mjs",
|
|
118
120
|
"test:transcript-helpers": "node scripts/transcript-helpers.test.mjs",
|
|
121
|
+
"test:helper-groups": "node scripts/helper-groups.test.mjs",
|
|
122
|
+
"test:helper-groups:visual": "node scripts/helper-groups.probe.mjs",
|
|
119
123
|
"test:transcript-helpers:mutations": "node scripts/transcript-helpers.mutations.mjs",
|
|
120
124
|
"test:transcript-outcome-chip": "node scripts/transcript-outcome-chip.test.mjs",
|
|
121
125
|
"test:transcript-outcome-chip:mutations": "node scripts/transcript-outcome-chip.mutations.mjs",
|
|
122
126
|
"test:transcript-viewer-outcome": "node scripts/transcript-viewer-outcome.test.mjs",
|
|
123
127
|
"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",
|
|
128
|
+
"test:gates": "pnpm test:structured-shiki && pnpm test:transcript-provenance && 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:helper-groups && pnpm test:transcript-outcome-chip && pnpm test:transcript-viewer-outcome && pnpm test:release-notes",
|
|
125
129
|
"test:analytics": "node src/ui/analytics/metrics.test.mjs",
|
|
126
130
|
"test:mobile-layout": "node scripts/mobile-layout.test.mjs",
|
|
127
131
|
"test:transcript-composite-width": "node scripts/transcript-composite-width.test.mjs",
|
|
@@ -134,9 +138,10 @@
|
|
|
134
138
|
"smoke:changes": "node scripts/smoke-changes.mjs",
|
|
135
139
|
"test:changes-overflow": "node scripts/changes-overflow.test.mjs",
|
|
136
140
|
"shoot:manage": "node scripts/shootmanage.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",
|
|
141
|
+
"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:packed-tarball && 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",
|
|
138
142
|
"pack:check": "node scripts/assert-pack-contents.mjs",
|
|
139
143
|
"smoke:tarball": "node scripts/smoke-tarball.mjs",
|
|
144
|
+
"test:packed-tarball": "node scripts/packed-tarball-roundtrip.test.mjs",
|
|
140
145
|
"oracle:graph": "node scripts/graph-oracle.mjs",
|
|
141
146
|
"oracle:graph:check": "node scripts/check-graph-oracle.mjs",
|
|
142
147
|
"prepack": "pnpm build:lib && pnpm test:pi-transcript:mounted",
|
|
@@ -146,10 +151,12 @@
|
|
|
146
151
|
"build-storybook": "storybook build",
|
|
147
152
|
"build:all": "pnpm build && pnpm build-storybook && rm -rf dist/storybook && cp -r storybook-static dist/storybook",
|
|
148
153
|
"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"
|
|
154
|
+
"test:turns-to-flow-edges": "node scripts/turns-to-flow-edges.test.mjs",
|
|
155
|
+
"journey": "playwright test --config playwright.journey.config.mjs",
|
|
156
|
+
"journey:ci": "JOURNEY_HTML=0 playwright test --config playwright.journey.config.mjs"
|
|
150
157
|
},
|
|
151
158
|
"dependencies": {
|
|
152
|
-
"@peasant-labs/schema": "0.
|
|
159
|
+
"@peasant-labs/schema": "0.20.0",
|
|
153
160
|
"@tanstack/react-table": "^8.21.3",
|
|
154
161
|
"lucide": "^1.20.0",
|
|
155
162
|
"lucide-react": "^1.18.0",
|
|
@@ -164,6 +171,8 @@
|
|
|
164
171
|
"react-dom": ">=19.0.0 <20"
|
|
165
172
|
},
|
|
166
173
|
"devDependencies": {
|
|
174
|
+
"@axe-core/playwright": "4.13.0",
|
|
175
|
+
"@playwright/test": "1.63.0",
|
|
167
176
|
"@storybook/addon-a11y": "^10.4.6",
|
|
168
177
|
"@storybook/addon-themes": "^10.4.6",
|
|
169
178
|
"@storybook/react-vite": "^10.4.6",
|