@peasant-labs/fairtrade 0.0.35 → 0.0.36

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.
@@ -3772,7 +3772,6 @@ function Kr({ accountLabel: e, villageLabel: t, domains: n, collectives: r, cate
3772
3772
  ] }), ie = /* @__PURE__ */ f("div", {
3773
3773
  className: "vobs-catalog",
3774
3774
  children: [
3775
- /* @__PURE__ */ d("p", { children: "Read saved observations offline. Fetch checks metadata only, without downloading transcripts or publishing." }),
3776
3775
  te === "catalog" && re,
3777
3776
  /* @__PURE__ */ d("p", { children: "Relevant collectives only. Tracking does not join a collective or grant access." }),
3778
3777
  r.length === 0 ? /* @__PURE__ */ d("p", { children: "No saved relevant collectives. Fetch metadata to check available sources." }) : /* @__PURE__ */ d("ul", {
@@ -630,7 +630,6 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
630
630
  P.sessionsPerWeek ? /* @__PURE__ */ i(v, {
631
631
  icon: s,
632
632
  title: "sessions per week",
633
- subtitle: "agent sessions bucketed by iso week",
634
633
  aside: `${b(F.totalSessions)} total`,
635
634
  children: /* @__PURE__ */ i(e, {
636
635
  data: J(Q(F.sessionsPerWeek, "count")),
@@ -647,7 +646,7 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
647
646
  P.weeklyActiveContributors ? /* @__PURE__ */ i(v, {
648
647
  icon: _,
649
648
  title: "weekly active contributors",
650
- subtitle: B === "new" ? `new contributors per week, ${b($(Q(F.newContributorVelocity, "newContributors")))} new` : `distinct contributors active each week, ${b($(Q(F.weeklyActiveContributors, "contributors")))} active`,
649
+ subtitle: B === "new" ? `${b($(Q(F.newContributorVelocity, "newContributors")))} new` : `${b($(Q(F.weeklyActiveContributors, "contributors")))} active`,
651
650
  aside: /* @__PURE__ */ i(he, {
652
651
  view: B,
653
652
  canShowNew: !!P.newContributorVelocity,
@@ -680,7 +679,6 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
680
679
  P.newContributorVelocity ? /* @__PURE__ */ i(v, {
681
680
  icon: te,
682
681
  title: "new contributors per week",
683
- subtitle: "first recorded session, by contributor",
684
682
  aside: `${b($(Q(F.newContributorVelocity, "newContributors")))} new`,
685
683
  children: /* @__PURE__ */ i(e, {
686
684
  data: J(Q(F.newContributorVelocity, "newContributors")),
@@ -714,7 +712,6 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
714
712
  P.outcomeDistribution ? /* @__PURE__ */ i(v, {
715
713
  icon: m,
716
714
  title: "outcome distribution",
717
- subtitle: "share of session outcomes",
718
715
  aside: `${b(R)} total`,
719
716
  children: /* @__PURE__ */ i(ge, { data: F.outcomeDistribution })
720
717
  }) : null,
@@ -730,7 +727,6 @@ function pe({ payload: c, title: l, subtitle: u, sections: h, showSectionToggle:
730
727
  P.contributorTable ? /* @__PURE__ */ a(v, {
731
728
  icon: _,
732
729
  title: "contributors",
733
- subtitle: "rolled up, sorted by session volume",
734
730
  aside: `${b(F.perContributorBreakdown.length)} people`,
735
731
  className: "gan-tablecard",
736
732
  children: [/* @__PURE__ */ i(W, {
@@ -1,5 +1,5 @@
1
- import { At as e, Ot as t, Tt as n, ht as r, lt as i, pt as a, ut as o } from "./GraphLegend-BJuccGWD.js";
2
- import { At as s, Et as c, Nt as l, Ot as u, _t as d, cn as f, dn as p, fn as m, ft as h, gt as g, jt as _, kt as v, lr as y, nr as b, or as x, pt as S, qn as C, sr as w, un as T, ut as E, wr as D } from "./ui-DOj8c_45.js";
1
+ import { At as e, Ot as t, Tt as n, ht as r, lt as i, pt as a, ut as o } from "./GraphLegend-7PmEpBZQ.js";
2
+ import { At as s, Et as c, Nt as l, Ot as u, _t as d, cn as f, dn as p, fn as m, ft as h, gt as g, jt as _, kt as v, lr as y, nr as b, or as x, pt as S, qn as C, sr as w, un as T, ut as E, wr as D } from "./ui-CfdUlwCE.js";
3
3
  import { useEffect as O, useId as k, useMemo as A, useRef as j, useState as M } from "react";
4
4
  import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
5
5
  import { ArrowRight as I, Check as L, ChevronDown as R, ChevronRight as z, ClipboardCheck as B, Compass as V, Copy as H, ExternalLink as U, Eye as W, EyeOff as G, FileText as ee, FolderGit2 as K, GitBranch as q, GitPullRequest as J, Hash as te, KeyRound as Y, LayoutGrid as ne, List as re, Lock as ie, LogOut as ae, MoreHorizontal as X, Plus as oe, Search as se, SearchX as ce, Settings as Z, ShieldAlert as Q, SlidersHorizontal as le, TriangleAlert as ue, Upload as de, User as fe, UserPlus as pe, Users as $, X as me } from "lucide-react";
@@ -731,36 +731,29 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
731
731
  className: `cex-root ${n}`.trim(),
732
732
  children: [/* @__PURE__ */ F("header", {
733
733
  className: "cex-explore-head",
734
- children: [
735
- /* @__PURE__ */ P("h2", {
736
- className: "cex-h2",
737
- children: "explore transcripts"
738
- }),
739
- /* @__PURE__ */ P("p", {
740
- className: "cex-deck",
741
- children: "search redacted ai agent transcripts shared by the community."
742
- }),
743
- /* @__PURE__ */ F("div", {
744
- className: "input-ico cex-searchbar",
745
- children: [/* @__PURE__ */ P("input", {
746
- className: "input",
747
- type: "text",
748
- value: m,
749
- onChange: (e) => h(e.target.value),
750
- placeholder: "search transcripts, collectives, projects, models...",
751
- "aria-label": "search transcripts, collectives, projects, models"
752
- }), m && /* @__PURE__ */ P("button", {
753
- type: "button",
754
- className: "cex-clear",
755
- "aria-label": "clear search",
756
- onClick: () => h(""),
757
- children: /* @__PURE__ */ P(ce, {
758
- size: 14,
759
- "aria-hidden": "true"
760
- })
761
- })]
762
- })
763
- ]
734
+ children: [/* @__PURE__ */ P("h2", {
735
+ className: "cex-h2",
736
+ children: "explore transcripts"
737
+ }), /* @__PURE__ */ F("div", {
738
+ className: "input-ico cex-searchbar",
739
+ children: [/* @__PURE__ */ P("input", {
740
+ className: "input",
741
+ type: "text",
742
+ value: m,
743
+ onChange: (e) => h(e.target.value),
744
+ placeholder: "search transcripts, collectives, projects, models...",
745
+ "aria-label": "search transcripts, collectives, projects, models"
746
+ }), m && /* @__PURE__ */ P("button", {
747
+ type: "button",
748
+ className: "cex-clear",
749
+ "aria-label": "clear search",
750
+ onClick: () => h(""),
751
+ children: /* @__PURE__ */ P(ce, {
752
+ size: 14,
753
+ "aria-hidden": "true"
754
+ })
755
+ })]
756
+ })]
764
757
  }), /* @__PURE__ */ F("div", {
765
758
  className: "cex-explore-body",
766
759
  children: [/* @__PURE__ */ P(l, {
@@ -1071,13 +1064,10 @@ function Ve() {
1071
1064
  }),
1072
1065
  /* @__PURE__ */ P("header", {
1073
1066
  className: "cmg-head",
1074
- children: /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("h2", {
1067
+ children: /* @__PURE__ */ P("div", { children: /* @__PURE__ */ P("h2", {
1075
1068
  className: "cmg-title",
1076
1069
  children: "publishing dashboard"
1077
- }), /* @__PURE__ */ P("p", {
1078
- className: "cmg-deck",
1079
- children: "push transcripts from the peasant cli to the village."
1080
- })] })
1070
+ }) })
1081
1071
  }),
1082
1072
  e && /* @__PURE__ */ F("section", {
1083
1073
  className: "cmg-gs card",
@@ -1393,13 +1383,10 @@ function We() {
1393
1383
  }),
1394
1384
  /* @__PURE__ */ P("header", {
1395
1385
  className: "cmg-head",
1396
- children: /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("h2", {
1386
+ children: /* @__PURE__ */ P("div", { children: /* @__PURE__ */ P("h2", {
1397
1387
  className: "cmg-title",
1398
1388
  children: "contribute to AI Research Team"
1399
- }), /* @__PURE__ */ P("p", {
1400
- className: "cmg-deck",
1401
- children: "select your own transcripts to share with this collective."
1402
- })] })
1389
+ }) })
1403
1390
  }),
1404
1391
  /* @__PURE__ */ P("section", {
1405
1392
  className: "card cmg-contribute",
@@ -1656,7 +1643,7 @@ function Xe(e, t, n) {
1656
1643
  }, e));
1657
1644
  }
1658
1645
  function Ze({ data: e = {}, actions: t = {} } = {}) {
1659
- let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a = "a collective is a group that can read the transcripts its members publish to it. link your repositories so pull requests find them.", crumb: o, caption: s = "collectives", createLabel: c = "new collective", createBusy: l = !1, whoCanPublish: u = Ge, whoCanRead: d = Ke } = e, { onCreateCollective: f, onOpenCollective: m, onSearchCollectives: h } = t, [g, _] = M(!1), [v, b] = M(""), [x, S] = M(""), [w, T] = M(u[0]?.value ?? ""), [E, O] = M(d[0]?.value ?? ""), [A, j] = M(""), [N, I] = M(""), L = k(), R = [
1646
+ let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption: s = "collectives", createLabel: c = "new collective", createBusy: l = !1, whoCanPublish: u = Ge, whoCanRead: d = Ke } = e, { onCreateCollective: f, onOpenCollective: m, onSearchCollectives: h } = t, [g, _] = M(!1), [v, b] = M(""), [x, S] = M(""), [w, T] = M(u[0]?.value ?? ""), [E, O] = M(d[0]?.value ?? ""), [A, j] = M(""), [N, I] = M(""), L = k(), R = [
1660
1647
  {
1661
1648
  key: "name",
1662
1649
  label: "name",
@@ -1867,36 +1854,29 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
1867
1854
  h && /* @__PURE__ */ F("section", {
1868
1855
  className: "cmg-section",
1869
1856
  "aria-labelledby": `${L}-find`,
1870
- children: [
1871
- /* @__PURE__ */ P("h3", {
1872
- className: "cmg-section-title",
1873
- id: `${L}-find`,
1874
- children: "find a collective"
1875
- }),
1876
- /* @__PURE__ */ P("p", {
1877
- className: "cmg-note",
1878
- children: "search by collective name or github org."
1879
- }),
1880
- /* @__PURE__ */ F("form", {
1881
- className: "cmg-find",
1882
- role: "search",
1883
- onSubmit: (e) => {
1884
- e.preventDefault(), h(N);
1885
- },
1886
- children: [/* @__PURE__ */ P(D, {
1887
- label: "collective or github org",
1888
- type: "search",
1889
- iconLeft: se,
1890
- placeholder: "collective name or github org",
1891
- value: N,
1892
- onChange: (e) => I(e.target.value)
1893
- }), /* @__PURE__ */ P("button", {
1894
- type: "submit",
1895
- className: "btn btn-secondary",
1896
- children: "search"
1897
- })]
1898
- })
1899
- ]
1857
+ children: [/* @__PURE__ */ P("h3", {
1858
+ className: "cmg-section-title",
1859
+ id: `${L}-find`,
1860
+ children: "find a collective"
1861
+ }), /* @__PURE__ */ F("form", {
1862
+ className: "cmg-find",
1863
+ role: "search",
1864
+ onSubmit: (e) => {
1865
+ e.preventDefault(), h(N);
1866
+ },
1867
+ children: [/* @__PURE__ */ P(D, {
1868
+ label: "collective or github org",
1869
+ type: "search",
1870
+ iconLeft: se,
1871
+ placeholder: "collective name or github org",
1872
+ value: N,
1873
+ onChange: (e) => I(e.target.value)
1874
+ }), /* @__PURE__ */ P("button", {
1875
+ type: "submit",
1876
+ className: "btn btn-secondary",
1877
+ children: "search"
1878
+ })]
1879
+ })]
1900
1880
  })
1901
1881
  ]
1902
1882
  });
@@ -2104,49 +2084,42 @@ function et({ data: e = {}, actions: t = {} } = {}) {
2104
2084
  "aria-label": "github orgs and members",
2105
2085
  children: [/* @__PURE__ */ F("section", {
2106
2086
  className: "cmg-rail-box",
2107
- children: [
2108
- /* @__PURE__ */ P("h3", {
2109
- className: "cmg-rail-title",
2110
- children: "github orgs"
2111
- }),
2112
- o.org ? /* @__PURE__ */ F("p", {
2113
- className: "cmg-rail-line",
2114
- children: [
2115
- /* @__PURE__ */ P(K, { "aria-hidden": "true" }),
2116
- " ",
2087
+ children: [/* @__PURE__ */ P("h3", {
2088
+ className: "cmg-rail-title",
2089
+ children: "github orgs"
2090
+ }), o.org ? /* @__PURE__ */ F("p", {
2091
+ className: "cmg-rail-line",
2092
+ children: [
2093
+ /* @__PURE__ */ P(K, { "aria-hidden": "true" }),
2094
+ " ",
2095
+ /* @__PURE__ */ P("span", {
2096
+ className: "mono",
2097
+ children: o.org.login
2098
+ }),
2099
+ typeof o.org.total == "number" ? /* @__PURE__ */ F(N, { children: [
2100
+ ", ",
2117
2101
  /* @__PURE__ */ P("span", {
2118
- className: "mono",
2119
- children: o.org.login
2102
+ className: "tnum",
2103
+ children: o.org.linked ?? 0
2120
2104
  }),
2121
- typeof o.org.total == "number" ? /* @__PURE__ */ F(N, { children: [
2122
- ", ",
2123
- /* @__PURE__ */ P("span", {
2124
- className: "tnum",
2125
- children: o.org.linked ?? 0
2126
- }),
2127
- " of ",
2128
- /* @__PURE__ */ P("span", {
2129
- className: "tnum",
2130
- children: o.org.total
2131
- }),
2132
- " repos linked"
2133
- ] }) : null,
2134
- o.role === "owner" && m && /* @__PURE__ */ P("button", {
2135
- type: "button",
2136
- className: "btn btn-ghost btn-sm",
2137
- onClick: () => v(!0),
2138
- children: "manage"
2139
- })
2140
- ]
2141
- }) : o.org === null ? /* @__PURE__ */ P("p", {
2142
- className: "cmg-rail-line cmg-none",
2143
- children: "nothing linked"
2144
- }) : null,
2145
- /* @__PURE__ */ P("p", {
2146
- className: "cmg-note",
2147
- children: "a collective links one github org today."
2148
- })
2149
- ]
2105
+ " of ",
2106
+ /* @__PURE__ */ P("span", {
2107
+ className: "tnum",
2108
+ children: o.org.total
2109
+ }),
2110
+ " repos linked"
2111
+ ] }) : null,
2112
+ o.role === "owner" && m && /* @__PURE__ */ P("button", {
2113
+ type: "button",
2114
+ className: "btn btn-ghost btn-sm",
2115
+ onClick: () => v(!0),
2116
+ children: "manage"
2117
+ })
2118
+ ]
2119
+ }) : o.org === null ? /* @__PURE__ */ P("p", {
2120
+ className: "cmg-rail-line cmg-none",
2121
+ children: "nothing linked"
2122
+ }) : null]
2150
2123
  }), /* @__PURE__ */ F("section", {
2151
2124
  className: "cmg-rail-box",
2152
2125
  children: [
@@ -2234,18 +2207,15 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
2234
2207
  { label: "settings" }
2235
2208
  ] })
2236
2209
  }),
2237
- /* @__PURE__ */ F("header", {
2210
+ /* @__PURE__ */ P("header", {
2238
2211
  className: "iu-page-head",
2239
- children: [/* @__PURE__ */ F("h2", {
2212
+ children: /* @__PURE__ */ F("h2", {
2240
2213
  className: "iu-page-title",
2241
2214
  children: [/* @__PURE__ */ P("span", {
2242
2215
  className: "iu-page-title-content",
2243
2216
  children: l.name
2244
2217
  }), ", settings"]
2245
- }), /* @__PURE__ */ P("p", {
2246
- className: "iu-page-sub",
2247
- children: "changes save right away."
2248
- })]
2218
+ })
2249
2219
  }),
2250
2220
  /* @__PURE__ */ F(S, {
2251
2221
  sections: x.map((e) => ({
@@ -2577,10 +2547,10 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2577
2547
  className: "cmg-title",
2578
2548
  children: r.name || "collective"
2579
2549
  }),
2580
- /* @__PURE__ */ P("p", {
2550
+ r.description ? /* @__PURE__ */ P("p", {
2581
2551
  className: "cmg-deck",
2582
- children: r.description || "shared collective governance"
2583
- }),
2552
+ children: r.description
2553
+ }) : null,
2584
2554
  /* @__PURE__ */ F("span", {
2585
2555
  className: "cmg-orgpill mono",
2586
2556
  children: [