@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.
- package/README.md +11 -2
- package/THIRD_PARTY_NOTICES.md +31 -0
- package/dist/lib/{InUseShell-CY5Acw6t.js → GraphLegend-BB0V2w59.js} +780 -558
- package/dist/lib/commons.js +139 -139
- package/dist/lib/components.css +1 -1
- package/dist/lib/graph.css +1 -1
- package/dist/lib/graph.js +921 -359
- package/dist/lib/types/BrandMark.d.ts +2 -2
- package/dist/lib/types/commons/providers.d.ts +1 -1
- package/dist/lib/types/graph/index.d.ts +16 -0
- package/dist/lib/types/provider-policy.d.ts +2 -2
- package/dist/lib/types/transcript/OutcomeChip.d.ts +18 -0
- package/dist/lib/types/transcript/UsageDisclosure.d.ts +8 -0
- package/dist/lib/types/transcript/analytics.d.ts +3 -6
- package/dist/lib/types/transcript/graph/engine/GraphControls.d.ts +13 -0
- package/dist/lib/types/transcript/graph/engine/TrajectoryGraph.d.ts +18 -0
- package/dist/lib/types/transcript/graph/engine/TrajectoryGraphLegend.d.ts +18 -0
- package/dist/lib/types/transcript/graph/engine/constants.d.ts +37 -0
- package/dist/lib/types/transcript/graph/engine/index.d.ts +23 -0
- package/dist/lib/types/transcript/graph/engine/nodes/SubagentBranchNode.d.ts +11 -0
- package/dist/lib/types/transcript/graph/engine/nodes/ToolPillNode.d.ts +11 -0
- package/dist/lib/types/transcript/graph/engine/nodes/TurnCardNode.d.ts +11 -0
- package/dist/lib/types/transcript/graph/engine/turnsToFlow.d.ts +47 -0
- package/dist/lib/types/transcript/graph/engine/types.d.ts +131 -0
- package/dist/lib/types/transcript/graph/engine/useCanvasSync.d.ts +17 -0
- package/dist/lib/types/transcript/index.d.ts +5 -0
- package/dist/lib/types/transcript/state-capabilities.d.ts +2 -1
- package/dist/lib/types/transcript/time.d.ts +22 -0
- package/dist/lib/types/transcript/title.d.ts +48 -0
- package/dist/lib/types/transcript/turnNav.d.ts +9 -0
- package/dist/lib/types/transcript/usage.d.ts +19 -0
- package/dist/lib/types/transcript/view-model.d.ts +61 -0
- package/dist/lib/{ui-yIg-1YXY.js → ui-DkPbLhcp.js} +2872 -2731
- package/dist/lib/ui.js +4 -4
- package/package.json +29 -8
package/README.md
CHANGED
|
@@ -39,8 +39,8 @@ pnpm build-storybook # compile every component + story
|
|
|
39
39
|
4. **documentation** - foundations, components and "using the system", in three groups, with a sticky
|
|
40
40
|
on-this-page rail and scroll-spy. the header is gated by zone (hidden over the splash, shown across
|
|
41
41
|
the docs).
|
|
42
|
-
5. **in use** (`#inuse`) - a full-screen workspace whose sticky app-switcher flips between
|
|
43
|
-
|
|
42
|
+
5. **in use** (`#inuse`) - a full-screen workspace whose sticky app-switcher flips between the three
|
|
43
|
+
in-use demo panels (transcript viewer, village commons, peasant code-map + analytics).
|
|
44
44
|
|
|
45
45
|
## at a glance
|
|
46
46
|
|
|
@@ -60,6 +60,15 @@ pnpm build-storybook # compile every component + story
|
|
|
60
60
|
- `src/ui/*` - the typed component library; storybook is the source of truth (`pnpm storybook`). tables
|
|
61
61
|
are tanstack-table-backed (`DataTable`), charts are recharts-backed (`ChartBar` / `ChartLine` /
|
|
62
62
|
`Sparkline`), and provider logos use `BrandMark` - all wrapped so the engines match the system.
|
|
63
|
+
- `src/ui/transcript/*` - the transcript viewer: the composite `TranscriptViewer`, the presentation-only
|
|
64
|
+
parts it renders, the one adapter (`adaptTranscript`), and analytics. `src/ui/transcript/graph/*` adds
|
|
65
|
+
the trajectory-graph node visuals; the `@xyflow` engine that lays them out ships from the separate
|
|
66
|
+
`/graph` package entry (below), so importing only the transcript viewer never pulls in `@xyflow/react`.
|
|
67
|
+
consuming apps (peasant, village) import all of it from this one published package - there is no
|
|
68
|
+
separate transcript package.
|
|
69
|
+
- `/graph` (`@peasant-labs/fairtrade/graph`) - a package entry, not a folder: the trajectory-graph
|
|
70
|
+
`@xyflow` engine plus its node visuals, and the peasant code-graph surfaces. `@xyflow/react` is an
|
|
71
|
+
optional peer dependency scoped to this entry only.
|
|
63
72
|
- `src/mockups/inuse/*` - the in-use app demos (hand-rolled svg visualizations).
|
|
64
73
|
- `src/index.css` - the single source of truth for design tokens and styling.
|
|
65
74
|
- `src/effects.jsx` - the ascii filters (wheat video, soil, roots, portrait thumbnails).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
## Pi brand mark
|
|
4
|
+
|
|
5
|
+
Pi OAuth logo geometry is reproduced from
|
|
6
|
+
`packages/ai/src/auth/oauth/oauth-page.ts` in
|
|
7
|
+
https://github.com/earendil-works/pi at commit
|
|
8
|
+
`da840b6216578c2a571d0374ac6a2091a83f9d91`.
|
|
9
|
+
The mark identifies the recorded harness and does not imply endorsement.
|
|
10
|
+
|
|
11
|
+
MIT License
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2025 Mario Zechner
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|