@peasant-labs/fairtrade 0.0.6 → 0.0.9
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/LICENSE +202 -21
- package/dist/lib/InUseShell-ClWg74-v.js +3388 -0
- package/dist/lib/commons.js +803 -838
- package/dist/lib/components.css +1 -1
- package/dist/lib/graph.css +1 -1
- package/dist/lib/graph.js +871 -276
- package/dist/lib/tokens.css +4 -0
- package/dist/lib/tokens.json +16 -0
- package/dist/lib/types/CommitGraph.d.ts +50 -3
- package/dist/lib/types/MapCanvas.d.ts +45 -2
- package/dist/lib/types/ProviderIcon.d.ts +23 -20
- package/dist/lib/types/commons/providers.d.ts +7 -8
- package/dist/lib/types/commons/types.d.ts +3 -6
- package/dist/lib/types/graph/Changes.d.ts +8 -4
- package/dist/lib/types/graph/CodeMap.d.ts +17 -1
- package/dist/lib/types/graph/CodeMapComposition.d.ts +25 -1
- package/dist/lib/types/graph/CodeMapNavigator.d.ts +35 -0
- package/dist/lib/types/graph/GhostCommitNode.d.ts +20 -0
- package/dist/lib/types/graph/GhostGroup.d.ts +21 -0
- package/dist/lib/types/graph/HighlightEdge.d.ts +16 -0
- package/dist/lib/types/graph/InsightPanel.d.ts +25 -0
- package/dist/lib/types/graph/RankModeControl.d.ts +13 -0
- package/dist/lib/types/graph/RankedRow.d.ts +15 -0
- package/dist/lib/types/graph/ScentTag.d.ts +15 -0
- package/dist/lib/types/graph/SessionLane.d.ts +29 -0
- package/dist/lib/types/graph/SessionOverflowDisclosure.d.ts +23 -0
- package/dist/lib/types/graph/TouchedFileCluster.d.ts +17 -0
- package/dist/lib/types/graph/changeGraph.d.ts +12 -0
- package/dist/lib/types/graph/codeMapState.d.ts +240 -0
- package/dist/lib/types/graph/graphContractPolicy.d.ts +24 -0
- package/dist/lib/types/graph/index.d.ts +35 -1
- package/dist/lib/types/graph/ranking.d.ts +222 -0
- package/dist/lib/types/graph/timelineNavigation.d.ts +33 -0
- package/dist/lib/types/graph/types.d.ts +67 -440
- package/dist/lib/types/index.d.ts +2 -0
- package/dist/lib/types/provider-policy.d.ts +27 -0
- package/dist/lib/types/transcript/TranscriptViewer.d.ts +1 -1
- package/dist/lib/types/transcript/adapter.d.ts +5 -40
- package/dist/lib/types/transcript/graph/GraphLegend.d.ts +3 -3
- package/dist/lib/types/transcript/graph/GraphTurnNode.d.ts +2 -2
- package/dist/lib/types/transcript/index.d.ts +3 -1
- package/dist/lib/types/transcript/initial-position.d.ts +80 -0
- package/dist/lib/types/transcript/state-capabilities.d.ts +22 -1
- package/dist/lib/types/transcript/useTranscriptInitialPosition.d.ts +26 -0
- package/dist/lib/types/transcript/view-model.d.ts +16 -16
- package/dist/lib/types/transcript/wire-types.d.ts +46 -308
- package/dist/lib/{ui-TG4XLhWL.js → ui-FKKOy92_.js} +3295 -3455
- package/dist/lib/ui.js +4 -4
- package/package.json +66 -26
- package/dist/lib/InUseShell-CjtqHauP.js +0 -1532
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,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
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-FKKOy92_.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-ClWg74-v.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 };
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peasant-labs/fairtrade",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"description": "Private fairtrade design-system library: canonical tokens, base styles, component CSS, and React UI exports.",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"license": "
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=24"
|
|
10
|
+
},
|
|
8
11
|
"publishConfig": {
|
|
9
12
|
"registry": "https://registry.npmjs.org/",
|
|
10
13
|
"access": "public"
|
|
@@ -57,28 +60,7 @@
|
|
|
57
60
|
"sideEffects": [
|
|
58
61
|
"*.css"
|
|
59
62
|
],
|
|
60
|
-
"
|
|
61
|
-
"@tanstack/react-table": "^8.21.3",
|
|
62
|
-
"lucide": "^1.20.0",
|
|
63
|
-
"lucide-react": "^1.18.0",
|
|
64
|
-
"react": "^19.2.7",
|
|
65
|
-
"react-dom": "^19.2.7",
|
|
66
|
-
"recharts": "^3.8.1"
|
|
67
|
-
},
|
|
68
|
-
"devDependencies": {
|
|
69
|
-
"@storybook/addon-a11y": "^10.4.6",
|
|
70
|
-
"@storybook/addon-themes": "^10.4.6",
|
|
71
|
-
"@storybook/react-vite": "^10.4.6",
|
|
72
|
-
"@tailwindcss/vite": "^4.3.1",
|
|
73
|
-
"@vitejs/plugin-react": "^6.0.2",
|
|
74
|
-
"http-server": "^14.1.1",
|
|
75
|
-
"puppeteer-core": "^25.1.0",
|
|
76
|
-
"storybook": "^10.4.6",
|
|
77
|
-
"tailwindcss": "^4.3.1",
|
|
78
|
-
"typescript": "^6.0.3",
|
|
79
|
-
"vite": "^8.0.16",
|
|
80
|
-
"yaml": "2.9.0"
|
|
81
|
-
},
|
|
63
|
+
"packageManager": "pnpm@10.33.2",
|
|
82
64
|
"scripts": {
|
|
83
65
|
"dev": "vite",
|
|
84
66
|
"contrast": "node scripts/contrast.mjs",
|
|
@@ -86,23 +68,81 @@
|
|
|
86
68
|
"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",
|
|
87
69
|
"build:app": "node scripts/gen-llm-artifacts.mjs && node scripts/contrast.mjs && vite build",
|
|
88
70
|
"test:contract": "tsc -p tsconfig.contract.json",
|
|
71
|
+
"test:runtime-floor": "node scripts/runtime-floor.test.mjs",
|
|
72
|
+
"test:code-map-state": "node scripts/code-map-state.test.mjs",
|
|
73
|
+
"test:code-map-ranking": "node scripts/code-map-ranking.test.mjs",
|
|
74
|
+
"test:code-map-ranking:mutations": "node scripts/code-map-ranking.mutations.mjs",
|
|
75
|
+
"test:code-map-ranking:bench": "node scripts/code-map-ranking-bench.mjs",
|
|
76
|
+
"test:timeline-encoding-channels": "node scripts/timeline-encoding-channels.test.mjs",
|
|
77
|
+
"test:timeline-highlight": "node scripts/timeline-highlight.test.mjs",
|
|
78
|
+
"test:timeline-a11y": "node scripts/timeline-a11y.test.mjs",
|
|
79
|
+
"test:timeline-rendered": "node scripts/timeline-rendered-probe.mjs",
|
|
80
|
+
"test:timeline-session-route:mutations": "node scripts/timeline-session-route.mutations.mjs",
|
|
81
|
+
"test:timeline-ghosts": "node scripts/timeline-ghosts.test.mjs",
|
|
82
|
+
"test:insight-panel": "node scripts/insight-panel.test.mjs",
|
|
83
|
+
"test:code-map-interactions": "node scripts/code-map-interactions.test.mjs",
|
|
84
|
+
"test:code-map-drag-smoothness": "node scripts/code-map-drag-smoothness.test.mjs",
|
|
85
|
+
"test:code-map-wheel-zoom": "node scripts/code-map-wheel-zoom.test.mjs",
|
|
86
|
+
"test:code-map-descent-feedback": "node scripts/code-map-descent-feedback.test.mjs",
|
|
87
|
+
"test:timeline-navigation": "node scripts/timeline-navigation.test.mjs",
|
|
88
|
+
"test:transcript-initial-position": "node scripts/transcript-initial-position.test.mjs",
|
|
89
|
+
"test:transcript-initial-position:render": "node scripts/transcript-initial-position.render.test.mjs",
|
|
90
|
+
"test:transcript-initial-position:mutations": "node scripts/transcript-initial-position.mutations.mjs",
|
|
91
|
+
"test:transcript-schema-adapter": "node scripts/transcript-schema-adapter.test.mjs",
|
|
92
|
+
"test:transcript-schema-adapter:mutations": "node scripts/transcript-schema-adapter.mutations.mjs",
|
|
93
|
+
"test:provider-harnesses": "node scripts/provider-harnesses.test.mjs",
|
|
94
|
+
"test:provider-harnesses:mutations": "node scripts/provider-harnesses.mutations.mjs",
|
|
95
|
+
"test:graph-contract-enums": "node scripts/graph-contract-enums.test.mjs",
|
|
89
96
|
"test:gates": "node scripts/gates.test.mjs",
|
|
90
97
|
"test:analytics": "node src/ui/analytics/metrics.test.mjs",
|
|
98
|
+
"test:mobile-layout": "node scripts/mobile-layout.test.mjs",
|
|
99
|
+
"test:transcript-composite-width": "node scripts/transcript-composite-width.test.mjs",
|
|
91
100
|
"lint:css": "node scripts/css-token-lint.mjs",
|
|
92
101
|
"smoke:transcript": "node scripts/smoke-transcript.mjs",
|
|
93
102
|
"smoke:transcript-ui": "node scripts/smoke-transcript-ui.mjs",
|
|
94
103
|
"smoke:map": "node scripts/smoke-map.mjs",
|
|
104
|
+
"smoke:changes": "node scripts/smoke-changes.mjs",
|
|
105
|
+
"test:changes-overflow": "node scripts/changes-overflow.test.mjs",
|
|
95
106
|
"shoot:manage": "node scripts/shootmanage.mjs",
|
|
96
|
-
"build:lib": "pnpm test:contract && node scripts/gates.test.mjs && node src/ui/analytics/metrics.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 && node scripts/smoke-map.mjs && node scripts/contrast.mjs --css dist/lib/tokens.css && node scripts/assert-pack-contents.mjs",
|
|
107
|
+
"build:lib": "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 && node scripts/gates.test.mjs && 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:graph-contract-enums && pnpm test:transcript-schema-adapter && pnpm test:transcript-schema-adapter: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",
|
|
97
108
|
"pack:check": "node scripts/assert-pack-contents.mjs",
|
|
98
109
|
"smoke:tarball": "node scripts/smoke-tarball.mjs",
|
|
99
110
|
"oracle:graph": "node scripts/graph-oracle.mjs",
|
|
100
111
|
"oracle:graph:check": "node scripts/check-graph-oracle.mjs",
|
|
112
|
+
"prepack": "pnpm build:lib",
|
|
101
113
|
"build": "pnpm build:app",
|
|
102
114
|
"preview": "vite preview",
|
|
103
115
|
"storybook": "storybook dev -p 6006",
|
|
104
116
|
"build-storybook": "storybook build",
|
|
105
117
|
"build:all": "pnpm build && pnpm build-storybook && rm -rf dist/storybook && cp -r storybook-static dist/storybook",
|
|
106
118
|
"start": "http-server dist -p ${PORT:-3000} -a 0.0.0.0 --silent"
|
|
119
|
+
},
|
|
120
|
+
"dependencies": {
|
|
121
|
+
"@peasant-labs/schema": "0.1.0-rc8",
|
|
122
|
+
"@tanstack/react-table": "^8.21.3",
|
|
123
|
+
"lucide": "^1.20.0",
|
|
124
|
+
"lucide-react": "^1.18.0",
|
|
125
|
+
"recharts": "^3.8.1"
|
|
126
|
+
},
|
|
127
|
+
"peerDependencies": {
|
|
128
|
+
"react": ">=19.0.0 <20",
|
|
129
|
+
"react-dom": ">=19.0.0 <20"
|
|
130
|
+
},
|
|
131
|
+
"devDependencies": {
|
|
132
|
+
"@storybook/addon-a11y": "^10.4.6",
|
|
133
|
+
"@storybook/addon-themes": "^10.4.6",
|
|
134
|
+
"@storybook/react-vite": "^10.4.6",
|
|
135
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
136
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
137
|
+
"http-server": "^14.1.1",
|
|
138
|
+
"jsdom": "^29.1.1",
|
|
139
|
+
"puppeteer-core": "^25.1.0",
|
|
140
|
+
"react": "19.2.7",
|
|
141
|
+
"react-dom": "19.2.7",
|
|
142
|
+
"storybook": "^10.4.6",
|
|
143
|
+
"tailwindcss": "^4.3.1",
|
|
144
|
+
"typescript": "^6.0.3",
|
|
145
|
+
"vite": "^8.0.16",
|
|
146
|
+
"yaml": "2.9.0"
|
|
107
147
|
}
|
|
108
|
-
}
|
|
148
|
+
}
|