@peasant-labs/fairtrade 0.0.11 → 0.0.12

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 (94) hide show
  1. package/dist/lib/commons.js +1 -1
  2. package/dist/lib/components.css +1 -1
  3. package/dist/lib/types/Accordion.d.ts +1 -1
  4. package/dist/lib/types/Avatar.d.ts +5 -5
  5. package/dist/lib/types/Button.d.ts +3 -3
  6. package/dist/lib/types/Card.d.ts +4 -4
  7. package/dist/lib/types/ChartBar.d.ts +1 -1
  8. package/dist/lib/types/ChartLine.d.ts +1 -1
  9. package/dist/lib/types/Checkbox.d.ts +9 -9
  10. package/dist/lib/types/Chip.d.ts +4 -4
  11. package/dist/lib/types/CliOnboard.d.ts +3 -3
  12. package/dist/lib/types/CommandPalette.d.ts +1 -1
  13. package/dist/lib/types/CommitGraph.d.ts +1 -1
  14. package/dist/lib/types/ConnectionState.d.ts +9 -9
  15. package/dist/lib/types/ConsentDialog.d.ts +2 -2
  16. package/dist/lib/types/DataTable.d.ts +1 -1
  17. package/dist/lib/types/DateRange.d.ts +2 -2
  18. package/dist/lib/types/Dialog.d.ts +1 -1
  19. package/dist/lib/types/DiffView.d.ts +1 -1
  20. package/dist/lib/types/EmptyState.d.ts +5 -2
  21. package/dist/lib/types/EvidenceCaption.d.ts +2 -2
  22. package/dist/lib/types/Explainer.d.ts +2 -2
  23. package/dist/lib/types/FacetRail.d.ts +1 -1
  24. package/dist/lib/types/Feedback.d.ts +5 -5
  25. package/dist/lib/types/GroupedMultiSelect.d.ts +4 -4
  26. package/dist/lib/types/Intensity.d.ts +5 -5
  27. package/dist/lib/types/MapCanvas.d.ts +1 -1
  28. package/dist/lib/types/Menu.d.ts +1 -1
  29. package/dist/lib/types/ModerationQueue.d.ts +2 -2
  30. package/dist/lib/types/Pager.d.ts +1 -1
  31. package/dist/lib/types/Pagination.d.ts +1 -1
  32. package/dist/lib/types/PolicySelect.d.ts +5 -5
  33. package/dist/lib/types/RailShell.d.ts +3 -3
  34. package/dist/lib/types/Redaction.d.ts +2 -2
  35. package/dist/lib/types/RoleRoster.d.ts +3 -3
  36. package/dist/lib/types/Sparkline.d.ts +1 -1
  37. package/dist/lib/types/StatTiles.d.ts +4 -4
  38. package/dist/lib/types/StepWizard.d.ts +2 -2
  39. package/dist/lib/types/StepsWaterfall.d.ts +1 -1
  40. package/dist/lib/types/Switch.d.ts +1 -1
  41. package/dist/lib/types/Tabs.d.ts +1 -1
  42. package/dist/lib/types/TimeStrip.d.ts +1 -1
  43. package/dist/lib/types/Timeline.d.ts +4 -4
  44. package/dist/lib/types/ToastHost.d.ts +1 -1
  45. package/dist/lib/types/ToolRenderers.d.ts +1 -1
  46. package/dist/lib/types/Tooltip.d.ts +3 -3
  47. package/dist/lib/types/TranscriptMarkers.d.ts +5 -5
  48. package/dist/lib/types/Treemap.d.ts +1 -1
  49. package/dist/lib/types/VisibilityControl.d.ts +4 -4
  50. package/dist/lib/types/analytics/ChartCard.d.ts +8 -5
  51. package/dist/lib/types/analytics/ContributorTable.d.ts +2 -2
  52. package/dist/lib/types/analytics/ProjectOverview.d.ts +4 -4
  53. package/dist/lib/types/chart-shared.d.ts +2 -2
  54. package/dist/lib/types/commons/Explore.d.ts +1 -1
  55. package/dist/lib/types/commons/Manage.d.ts +1 -1
  56. package/dist/lib/types/graph/ChangeDetail.d.ts +1 -1
  57. package/dist/lib/types/graph/Changes.d.ts +1 -1
  58. package/dist/lib/types/graph/CodeMap.d.ts +1 -1
  59. package/dist/lib/types/graph/CodeMapComposition.d.ts +2 -2
  60. package/dist/lib/types/graph/CodeMapNavigator.d.ts +1 -1
  61. package/dist/lib/types/graph/GhostCommitNode.d.ts +1 -1
  62. package/dist/lib/types/graph/GhostGroup.d.ts +1 -1
  63. package/dist/lib/types/graph/HighlightEdge.d.ts +1 -1
  64. package/dist/lib/types/graph/InsightPanel.d.ts +1 -1
  65. package/dist/lib/types/graph/RankModeControl.d.ts +1 -1
  66. package/dist/lib/types/graph/RankedRow.d.ts +1 -1
  67. package/dist/lib/types/graph/ScentTag.d.ts +1 -1
  68. package/dist/lib/types/graph/SessionLane.d.ts +1 -1
  69. package/dist/lib/types/graph/SessionOverflowDisclosure.d.ts +1 -1
  70. package/dist/lib/types/graph/TouchedFileCluster.d.ts +1 -1
  71. package/dist/lib/types/inuse/InUseShell.d.ts +5 -5
  72. package/dist/lib/types/transcript/CheckRow.d.ts +1 -1
  73. package/dist/lib/types/transcript/DiffEntryCard.d.ts +2 -2
  74. package/dist/lib/types/transcript/FilterSection.d.ts +1 -1
  75. package/dist/lib/types/transcript/FiltersRail.d.ts +1 -1
  76. package/dist/lib/types/transcript/LabelPopover.d.ts +1 -1
  77. package/dist/lib/types/transcript/Markdown.d.ts +10 -2
  78. package/dist/lib/types/transcript/OutlineRail.d.ts +1 -1
  79. package/dist/lib/types/transcript/Scorecard.d.ts +1 -1
  80. package/dist/lib/types/transcript/Scrubber.d.ts +1 -1
  81. package/dist/lib/types/transcript/TaskBody.d.ts +1 -1
  82. package/dist/lib/types/transcript/Thinking.d.ts +1 -1
  83. package/dist/lib/types/transcript/ToolBody.d.ts +1 -1
  84. package/dist/lib/types/transcript/ToolCall.d.ts +1 -1
  85. package/dist/lib/types/transcript/TranscriptViewer.d.ts +29 -1
  86. package/dist/lib/types/transcript/TurnCard.d.ts +1 -1
  87. package/dist/lib/types/transcript/ViewSwitch.d.ts +1 -1
  88. package/dist/lib/types/transcript/adapter.d.ts +8 -1
  89. package/dist/lib/types/transcript/state-capabilities.d.ts +1 -1
  90. package/dist/lib/types/transcript/view-model.d.ts +8 -0
  91. package/dist/lib/ui-D-SdqnJZ.js +21015 -0
  92. package/dist/lib/ui.js +1 -1
  93. package/package.json +16 -5
  94. package/dist/lib/ui-CBAC_ipm.js +0 -11000
@@ -9,7 +9,7 @@
9
9
  */
10
10
  export function DiffHunks({ hunks }: {
11
11
  hunks?: DiffHunkVM[];
12
- }): any;
12
+ }): import("react").JSX.Element;
13
13
  /**
14
14
  * One Diffs-tab card: a file/turn label, the +adds/−dels churn, a jump affordance, and the
15
15
  * rendered diff hunks. Consumes a cooked `DiffEntryVM` (an entry of `vm.diffs`).
@@ -22,6 +22,6 @@ export default function DiffEntryCard({ entry, byTurn, onJump }: {
22
22
  entry?: DiffEntryVM;
23
23
  byTurn?: boolean;
24
24
  onJump?: () => void;
25
- }): any;
25
+ }): import("react").JSX.Element;
26
26
  export type DiffEntryVM = import("./view-model.js").DiffEntryVM;
27
27
  export type DiffHunkVM = import("./view-model.js").DiffHunkVM;
@@ -8,4 +8,4 @@ export default function FilterSection({ title, children, defaultOpen }: {
8
8
  title?: any;
9
9
  children?: any;
10
10
  defaultOpen?: boolean;
11
- }): any;
11
+ }): import("react").JSX.Element;
@@ -35,7 +35,7 @@ export default function FiltersRail({ tab, filters, onFiltersChange, counts, che
35
35
  onClear?: () => void;
36
36
  onJumpStart?: () => void;
37
37
  onJumpLatest?: () => void;
38
- }): any;
38
+ }): import("react").JSX.Element;
39
39
  export type TranscriptFilters = import("./state-capabilities.js").TranscriptFilters;
40
40
  export type ToolGroup = import("./view-model.js").ToolGroup;
41
41
  export type CommitVM = import("./view-model.js").CommitVM;
@@ -10,5 +10,5 @@ export default function LabelPopover({ turnId, current, onSave, onClose }: {
10
10
  current?: SavedLabel;
11
11
  onSave?: (outcome: SavedLabel["outcome"], flag: string) => void;
12
12
  onClose?: Function;
13
- }): any;
13
+ }): import("react").JSX.Element;
14
14
  export type SavedLabel = import("./state-capabilities.js").SavedLabel;
@@ -1,7 +1,15 @@
1
1
  /**
2
+ * Render a cooked transcript body as safe, structured Markdown.
3
+ *
4
+ * `text` is the established public prop used by TurnCard. `source` is accepted as a compatible
5
+ * alias for hosts that already describe the same value as a source string; when both are supplied,
6
+ * the established `text` prop wins. The component remains intentionally wire-agnostic.
7
+ *
2
8
  * @param {object} props
3
9
  * @param {string} [props.text] the cooked markdown body (e.g. `TurnVM.content`)
10
+ * @param {string} [props.source] a source alias for the cooked markdown body
4
11
  */
5
- export default function Markdown({ text }: {
12
+ export default function Markdown({ text, source }: {
6
13
  text?: string;
7
- }): any;
14
+ source?: string;
15
+ }): import("react").JSX.Element;
@@ -8,6 +8,6 @@ export default function OutlineRail({ viewModel, tab, onJump }: {
8
8
  viewModel: TranscriptViewModel;
9
9
  tab: import("./state-capabilities.js").TranscriptTab;
10
10
  onJump?: (turnIndex: number) => void;
11
- }): any;
11
+ }): import("react").JSX.Element;
12
12
  export type TranscriptViewModel = import("./view-model.js").TranscriptViewModel;
13
13
  export type AnnotationVM = import("./view-model.js").AnnotationVM;
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export default function Scorecard({ bands }: {
6
6
  bands?: ScorecardBandVM[];
7
- }): any;
7
+ }): import("react").JSX.Element;
8
8
  export type ScorecardBandVM = import("./view-model.js").ScorecardBandVM;
@@ -13,5 +13,5 @@ export default function Scrubber({ turns, active, onSeek, draggingRef }: {
13
13
  draggingRef?: {
14
14
  current: boolean;
15
15
  };
16
- }): any;
16
+ }): import("react").JSX.Element;
17
17
  export type TurnVM = import("./view-model.js").TurnVM;
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export default function TaskBody({ tool }: {
6
6
  tool?: ToolCallVM;
7
- }): any;
7
+ }): import("react").JSX.Element;
8
8
  export type ToolCallVM = import("./view-model.js").ToolCallVM;
@@ -5,5 +5,5 @@
5
5
  */
6
6
  export default function Thinking({ block }: {
7
7
  block?: ThinkingVM;
8
- }): any;
8
+ }): import("react").JSX.Element;
9
9
  export type ThinkingVM = import("./view-model.js").ThinkingVM;
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export default function ToolBody({ tool }: {
6
6
  tool?: ToolCallVM;
7
- }): any;
7
+ }): import("react").JSX.Element;
8
8
  export type ToolCallVM = import("./view-model.js").ToolCallVM;
@@ -8,5 +8,5 @@ export default function ToolCall({ tool, open, onToggle }: {
8
8
  tool?: ToolCallVM;
9
9
  open?: boolean;
10
10
  onToggle?: () => void;
11
- }): any;
11
+ }): import("react").JSX.Element;
12
12
  export type ToolCallVM = import("./view-model.js").ToolCallVM;
@@ -1,6 +1,34 @@
1
1
  /**
2
2
  * @param {TranscriptViewerProps} props
3
3
  */
4
- export default function TranscriptViewer({ viewModel, capabilities, callbacks, theme: themeProp, onThemeChange, graphSlot, activeTab: activeTabProp, onTabChange, viewMode: viewModeProp, onViewModeChange, leftRailOpen: leftRailOpenProp, onLeftRailOpenChange, rightRailOpen: rightRailOpenProp, onRightRailOpenChange, openTools: openToolsProp, onOpenToolsChange, initialPosition: initialPositionProp, activeTurn: activeTurnProp, onActiveTurnChange, search: searchProp, onSearchChange, filters: filtersProp, onFiltersChange, savedLabels: savedLabelsProp, onSavedLabelsChange, shareOpen: shareOpenProp, onShareOpenChange, moreOpen: moreOpenProp, onMoreOpenChange, breadcrumb, LinkComponent, renderTurnPanel, renderTurnActions, anchorHref, headerActions, streamPrelude, }: TranscriptViewerProps): any;
4
+ export default function TranscriptViewer({ viewModel, capabilities, callbacks, theme: themeProp, onThemeChange, graphSlot, activeTab: activeTabProp, onTabChange, viewMode: viewModeProp, onViewModeChange, leftRailOpen: leftRailOpenProp, onLeftRailOpenChange, rightRailOpen: rightRailOpenProp, onRightRailOpenChange, openTools: openToolsProp, onOpenToolsChange, initialPosition: initialPositionProp, activeTurn: activeTurnProp, onActiveTurnChange, search: searchProp, onSearchChange, filters: filtersProp, onFiltersChange, savedLabels: savedLabelsProp, onSavedLabelsChange, shareOpen: shareOpenProp, onShareOpenChange, moreOpen: moreOpenProp, onMoreOpenChange, breadcrumb, LinkComponent, renderTurnPanel, renderTurnActions, anchorHref, headerActions, streamPrelude, }: TranscriptViewerProps): import("react").JSX.Element;
5
5
  export type TranscriptViewerProps = import("./state-capabilities.js").TranscriptViewerProps;
6
6
  export type TranscriptFilters = import("./state-capabilities.js").TranscriptFilters;
7
+ export type TraceReadingSnapshot = {
8
+ sessionId: string;
9
+ scrollTop: number;
10
+ focusOrigin: {
11
+ kind: "tab";
12
+ } | {
13
+ kind: "scroller";
14
+ } | {
15
+ kind: "descendant";
16
+ turnIndex: number;
17
+ control: "anchor";
18
+ };
19
+ };
20
+ export type TraceReadingPosition = {
21
+ sessionId: string;
22
+ scrollTop: number;
23
+ focusOrigin: {
24
+ kind: "tab";
25
+ } | {
26
+ kind: "scroller";
27
+ } | {
28
+ kind: "descendant";
29
+ turnIndex: number;
30
+ control: "anchor";
31
+ };
32
+ requestKey: string;
33
+ restoreRequested: boolean;
34
+ };
@@ -29,5 +29,5 @@ export default function TurnCard({ turn, active, openTools, toggleTool, onCopyAn
29
29
  };
30
30
  compact?: boolean;
31
31
  expandAll?: boolean;
32
- }): any;
32
+ }): import("react").JSX.Element;
33
33
  export type TurnVM = import("./view-model.js").TurnVM;
@@ -8,4 +8,4 @@ export default function ViewSwitch({ label, on, onToggle }: {
8
8
  label?: string;
9
9
  on?: boolean;
10
10
  onToggle?: Function;
11
- }): any;
11
+ }): import("react").JSX.Element;
@@ -26,9 +26,10 @@ export function diffLines(oldText: string, newText: string): DiffLineVM[];
26
26
  * @param {TranscriptWireInput} payload canonical wire plus legacy git compatibility
27
27
  * @param {AnnotationSummary[]} [annotations] separately-fetched entry annotations
28
28
  * @param {TranscriptAnalyticsVM} [analytics] precomputed analytics; else derived on demand
29
+ * @param {AdaptTranscriptOptions} [options] optional post-resolution visible-turn projection
29
30
  * @returns {TranscriptViewModel}
30
31
  */
31
- export function adaptTranscript(payload: TranscriptWireInput, annotations?: AnnotationSummary[], analytics?: TranscriptAnalyticsVM): TranscriptViewModel;
32
+ export function adaptTranscript(payload: TranscriptWireInput, annotations?: AnnotationSummary[], analytics?: TranscriptAnalyticsVM, options?: AdaptTranscriptOptions): TranscriptViewModel;
32
33
  export type TranscriptWireInput = import("./wire-types.js").TranscriptWireInput;
33
34
  export type SessionDetailPayload = import("./wire-types.js").SessionDetailPayload;
34
35
  export type TurnDetail = import("./wire-types.js").TurnDetail;
@@ -53,3 +54,9 @@ export type AnnotationVM = import("./view-model.js").AnnotationVM;
53
54
  export type HighlightVM = import("./view-model.js").HighlightVM;
54
55
  export type FilterIndexVM = import("./view-model.js").FilterIndexVM;
55
56
  export type PhaseVM = import("./view-model.js").PhaseVM;
57
+ export type AdaptTranscriptOptions = {
58
+ /**
59
+ * post-resolution projection by canonical turn index
60
+ */
61
+ visibleTurnIndices?: readonly number[];
62
+ };
@@ -182,7 +182,7 @@ export type TranscriptViewerProps = {
182
182
  /**
183
183
  * router link for crumb items (e.g. next/link); defaults to 'a'
184
184
  */
185
- LinkComponent?: any;
185
+ LinkComponent?: import("react").ElementType;
186
186
  /**
187
187
  * host per-turn extension rendered under each turn card
188
188
  */
@@ -267,6 +267,14 @@ export type TurnVM = {
267
267
  * subagent nesting depth (0 = top level)
268
268
  */
269
269
  depth: number;
270
+ /**
271
+ * sticky model effective for this assistant turn; resolved over the complete ordered wire before projection
272
+ */
273
+ effectiveModel?: string;
274
+ /**
275
+ * prior root model when this turn carries the observation that changed it
276
+ */
277
+ modelChangedFrom?: string;
270
278
  /**
271
279
  * canonical provider identity for a top-level assistant turn
272
280
  */