@peasant-labs/fairtrade 0.0.11 → 0.0.13
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 +1 -1
- package/dist/lib/components.css +1 -1
- package/dist/lib/types/Accordion.d.ts +1 -1
- package/dist/lib/types/Avatar.d.ts +5 -5
- package/dist/lib/types/Button.d.ts +3 -3
- package/dist/lib/types/Card.d.ts +4 -4
- package/dist/lib/types/ChartBar.d.ts +1 -1
- package/dist/lib/types/ChartLine.d.ts +1 -1
- package/dist/lib/types/Checkbox.d.ts +9 -9
- package/dist/lib/types/Chip.d.ts +4 -4
- package/dist/lib/types/CliOnboard.d.ts +3 -3
- package/dist/lib/types/CommandPalette.d.ts +1 -1
- package/dist/lib/types/CommitGraph.d.ts +1 -1
- package/dist/lib/types/ConnectionState.d.ts +9 -9
- package/dist/lib/types/ConsentDialog.d.ts +2 -2
- package/dist/lib/types/DataTable.d.ts +1 -1
- package/dist/lib/types/DateRange.d.ts +2 -2
- package/dist/lib/types/Dialog.d.ts +1 -1
- package/dist/lib/types/DiffView.d.ts +1 -1
- package/dist/lib/types/EmptyState.d.ts +5 -2
- package/dist/lib/types/EvidenceCaption.d.ts +2 -2
- package/dist/lib/types/Explainer.d.ts +2 -2
- package/dist/lib/types/FacetRail.d.ts +1 -1
- package/dist/lib/types/Feedback.d.ts +5 -5
- package/dist/lib/types/GroupedMultiSelect.d.ts +4 -4
- package/dist/lib/types/Intensity.d.ts +5 -5
- package/dist/lib/types/MapCanvas.d.ts +1 -1
- package/dist/lib/types/Menu.d.ts +1 -1
- package/dist/lib/types/ModerationQueue.d.ts +2 -2
- package/dist/lib/types/Pager.d.ts +1 -1
- package/dist/lib/types/Pagination.d.ts +1 -1
- package/dist/lib/types/PolicySelect.d.ts +5 -5
- package/dist/lib/types/RailShell.d.ts +3 -3
- package/dist/lib/types/Redaction.d.ts +10 -5
- package/dist/lib/types/RoleRoster.d.ts +3 -3
- package/dist/lib/types/Sparkline.d.ts +1 -1
- package/dist/lib/types/StatTiles.d.ts +4 -4
- package/dist/lib/types/StepWizard.d.ts +2 -2
- package/dist/lib/types/StepsWaterfall.d.ts +1 -1
- package/dist/lib/types/Switch.d.ts +1 -1
- package/dist/lib/types/Tabs.d.ts +1 -1
- package/dist/lib/types/TimeStrip.d.ts +1 -1
- package/dist/lib/types/Timeline.d.ts +4 -4
- package/dist/lib/types/ToastHost.d.ts +1 -1
- package/dist/lib/types/ToolRenderers.d.ts +1 -1
- package/dist/lib/types/Tooltip.d.ts +3 -3
- package/dist/lib/types/TranscriptMarkers.d.ts +5 -5
- package/dist/lib/types/Treemap.d.ts +1 -1
- package/dist/lib/types/VisibilityControl.d.ts +4 -4
- package/dist/lib/types/analytics/ChartCard.d.ts +8 -5
- package/dist/lib/types/analytics/ContributorTable.d.ts +2 -2
- package/dist/lib/types/analytics/ProjectOverview.d.ts +4 -4
- package/dist/lib/types/chart-shared.d.ts +2 -2
- package/dist/lib/types/commons/Explore.d.ts +1 -1
- package/dist/lib/types/commons/Manage.d.ts +1 -1
- package/dist/lib/types/graph/ChangeDetail.d.ts +1 -1
- package/dist/lib/types/graph/Changes.d.ts +1 -1
- package/dist/lib/types/graph/CodeMap.d.ts +1 -1
- package/dist/lib/types/graph/CodeMapComposition.d.ts +2 -2
- package/dist/lib/types/graph/CodeMapNavigator.d.ts +1 -1
- package/dist/lib/types/graph/GhostCommitNode.d.ts +1 -1
- package/dist/lib/types/graph/GhostGroup.d.ts +1 -1
- package/dist/lib/types/graph/HighlightEdge.d.ts +1 -1
- package/dist/lib/types/graph/InsightPanel.d.ts +1 -1
- package/dist/lib/types/graph/RankModeControl.d.ts +1 -1
- package/dist/lib/types/graph/RankedRow.d.ts +1 -1
- package/dist/lib/types/graph/ScentTag.d.ts +1 -1
- package/dist/lib/types/graph/SessionLane.d.ts +1 -1
- package/dist/lib/types/graph/SessionOverflowDisclosure.d.ts +1 -1
- package/dist/lib/types/graph/TouchedFileCluster.d.ts +1 -1
- package/dist/lib/types/inuse/InUseShell.d.ts +5 -5
- package/dist/lib/types/transcript/CheckRow.d.ts +1 -1
- package/dist/lib/types/transcript/DiffEntryCard.d.ts +2 -2
- package/dist/lib/types/transcript/FilterSection.d.ts +1 -1
- package/dist/lib/types/transcript/FiltersRail.d.ts +1 -1
- package/dist/lib/types/transcript/LabelPopover.d.ts +1 -1
- package/dist/lib/types/transcript/Markdown.d.ts +10 -2
- package/dist/lib/types/transcript/OutlineRail.d.ts +1 -1
- package/dist/lib/types/transcript/Scorecard.d.ts +1 -1
- package/dist/lib/types/transcript/Scrubber.d.ts +1 -1
- package/dist/lib/types/transcript/TaskBody.d.ts +1 -1
- package/dist/lib/types/transcript/Thinking.d.ts +1 -1
- package/dist/lib/types/transcript/ToolBody.d.ts +1 -1
- package/dist/lib/types/transcript/ToolCall.d.ts +1 -1
- package/dist/lib/types/transcript/TranscriptViewer.d.ts +29 -1
- package/dist/lib/types/transcript/TurnCard.d.ts +1 -1
- package/dist/lib/types/transcript/ViewSwitch.d.ts +1 -1
- package/dist/lib/types/transcript/adapter.d.ts +8 -1
- package/dist/lib/types/transcript/state-capabilities.d.ts +1 -1
- package/dist/lib/types/transcript/view-model.d.ts +8 -0
- package/dist/lib/ui-B1R1d4x1.js +21024 -0
- package/dist/lib/ui.js +1 -1
- package/package.json +16 -5
- package/dist/lib/ui-CBAC_ipm.js +0 -11000
|
@@ -2,7 +2,7 @@ export default function InUseShell({ apps, defaultApp, activeApp, onAppChange, r
|
|
|
2
2
|
apps?: readonly {
|
|
3
3
|
id: string;
|
|
4
4
|
mark: string;
|
|
5
|
-
icon: react.ForwardRefExoticComponent<
|
|
5
|
+
icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
6
6
|
}[];
|
|
7
7
|
defaultApp: any;
|
|
8
8
|
activeApp: any;
|
|
@@ -10,7 +10,7 @@ export default function InUseShell({ apps, defaultApp, activeApp, onAppChange, r
|
|
|
10
10
|
renderApp: any;
|
|
11
11
|
brand?: string;
|
|
12
12
|
ariaLabel?: string;
|
|
13
|
-
}):
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
14
|
export function GraphAppShell({ sections, activeId, activePrimaryId, onSectionChange, backTo, onBack, children, ariaLabel, }: {
|
|
15
15
|
sections?: readonly {
|
|
16
16
|
id: string;
|
|
@@ -23,7 +23,7 @@ export function GraphAppShell({ sections, activeId, activePrimaryId, onSectionCh
|
|
|
23
23
|
onBack: any;
|
|
24
24
|
children: any;
|
|
25
25
|
ariaLabel?: string;
|
|
26
|
-
}):
|
|
26
|
+
}): import("react").JSX.Element;
|
|
27
27
|
export function GraphSectionNav({ sections, activeId, hrefFor, LinkComponent, onSectionChange, className, itemClassName, activeItemClassName, activeMarker, ariaLabel, }: {
|
|
28
28
|
sections?: readonly {
|
|
29
29
|
id: string;
|
|
@@ -38,11 +38,11 @@ export function GraphSectionNav({ sections, activeId, hrefFor, LinkComponent, on
|
|
|
38
38
|
activeItemClassName?: string;
|
|
39
39
|
activeMarker?: any;
|
|
40
40
|
ariaLabel?: string;
|
|
41
|
-
}):
|
|
41
|
+
}): import("react").JSX.Element;
|
|
42
42
|
export const IN_USE_APPS: readonly {
|
|
43
43
|
id: string;
|
|
44
44
|
mark: string;
|
|
45
|
-
icon: react.ForwardRefExoticComponent<
|
|
45
|
+
icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
46
46
|
}[];
|
|
47
47
|
export const GRAPH_APP_SECTIONS: readonly {
|
|
48
48
|
id: string;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export function DiffHunks({ hunks }: {
|
|
11
11
|
hunks?: DiffHunkVM[];
|
|
12
|
-
}):
|
|
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
|
-
}):
|
|
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;
|
|
@@ -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
|
-
}):
|
|
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
|
-
}):
|
|
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
|
-
|
|
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
|
-
}):
|
|
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;
|
|
@@ -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):
|
|
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
|
+
};
|
|
@@ -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?:
|
|
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
|
*/
|