@tangle-network/agent-app 0.45.22 → 0.45.23

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.
@@ -1053,6 +1053,254 @@ interface ProvenanceStampProps {
1053
1053
  * backtest. */
1054
1054
  declare function ProvenanceStamp({ provenance, backtest, className }: ProvenanceStampProps): react.JSX.Element;
1055
1055
 
1056
+ /**
1057
+ * The pure half of the provenance affordance: what kind of claim a value is,
1058
+ * what a reader should DO about it, and what has to be SAID when its origin
1059
+ * cannot be shown.
1060
+ *
1061
+ * Zero React, zero DOM — a loader or a worker can decide a value's standing
1062
+ * before it reaches a screen, and `./provenance`'s `ProvenanceValue` renders
1063
+ * exactly what these functions decide.
1064
+ *
1065
+ * The distinction the module exists to hold: a person typing a number, a
1066
+ * document carrying it, a formula producing it, and a model claiming it are
1067
+ * four different kinds of evidence. Rendered as one grey caption they are
1068
+ * indistinguishable, which is how an unverified model assertion reads to a
1069
+ * reviewer as a transcribed fact.
1070
+ *
1071
+ * Every domain word is a caller parameter: no field names, no document kinds,
1072
+ * and no confidence policy beyond a default the product overrides.
1073
+ */
1074
+ /**
1075
+ * How a value came to exist. Four kinds, never interchangeable:
1076
+ *
1077
+ * - `extracted` — read out of a document or message the product can open.
1078
+ * - `entered` — a person typed or confirmed it.
1079
+ * - `computed` — produced from other values, each carrying its own provenance.
1080
+ * - `asserted` — the agent stated it, with nothing outside the model behind it.
1081
+ */
1082
+ type ProvenanceBasis = 'extracted' | 'entered' | 'computed' | 'asserted';
1083
+ /** Every basis, in the order a legend should list them. */
1084
+ declare const PROVENANCE_BASES: readonly ProvenanceBasis[];
1085
+ /** The words one basis is rendered and announced with. */
1086
+ interface ProvenanceBasisMeta {
1087
+ /** Marker text next to the value — short, and never only a colour. */
1088
+ label: string;
1089
+ /** One plain sentence naming what kind of claim this is. */
1090
+ meaning: string;
1091
+ /** What a reader can hold the value against, or `null` when nothing outside
1092
+ * the model can. `null` is what makes an `asserted` value uncertifiable at
1093
+ * any confidence. */
1094
+ checkableAgainst: string | null;
1095
+ }
1096
+ /** Words for one basis. */
1097
+ declare function provenanceBasisMeta(basis: ProvenanceBasis): ProvenanceBasisMeta;
1098
+ /** Whether a source could be resolved. `ready` is the default for a source that
1099
+ * says nothing. */
1100
+ type ProvenanceSourceStatus = 'ready' | 'loading' | 'unavailable';
1101
+ /** One thing a value came from. A `label` is mandatory because an unnamed
1102
+ * source is the same as no source. */
1103
+ interface ProvenanceSource {
1104
+ /** What the source IS, in the reader's words: "Form W-2 (Acme Corp)",
1105
+ * "Dana Whitfield", "Engagement letter". */
1106
+ label: string;
1107
+ /** The text in the source that carries the value. */
1108
+ quote?: string;
1109
+ /** Position inside the source — a page, a line, a span, a timestamp. The
1110
+ * caller's words; nothing here parses it. */
1111
+ locator?: string;
1112
+ /** Click-through target. Absent → the source is named but not openable. */
1113
+ href?: string;
1114
+ /** Defaults to `ready`. */
1115
+ status?: ProvenanceSourceStatus;
1116
+ /** Why an `unavailable` source cannot be opened, in one sentence. */
1117
+ unavailableReason?: string;
1118
+ }
1119
+ /**
1120
+ * What the reader should DO about a value — the only form confidence takes on
1121
+ * screen. "89% confidence" names no next move; these three do.
1122
+ *
1123
+ * - `settled` — nothing to do.
1124
+ * - `check` — open the source and confirm before relying on it.
1125
+ * - `confirm` — a person has to confirm the value before it is used.
1126
+ */
1127
+ type ProvenanceStanding = 'settled' | 'check' | 'confirm';
1128
+ /** The words one standing is rendered and announced with. */
1129
+ interface ProvenanceStandingMeta {
1130
+ /** Short state label. */
1131
+ label: string;
1132
+ /** The next move, as a sentence a person can follow. */
1133
+ action: string;
1134
+ }
1135
+ /** Words for one standing. */
1136
+ declare function provenanceStandingMeta(standing: ProvenanceStanding): ProvenanceStandingMeta;
1137
+ /** The weaker of two standings — `confirm` beats `check` beats `settled`. */
1138
+ declare function weakerProvenanceStanding(a: ProvenanceStanding, b: ProvenanceStanding): ProvenanceStanding;
1139
+ /**
1140
+ * Where a product draws its confidence lines. These are a POLICY, not a truth:
1141
+ * a number a model reports about itself means different things per surface, so
1142
+ * the thresholds are a parameter and the number itself never reaches the screen.
1143
+ */
1144
+ interface ProvenanceConfidencePolicy {
1145
+ /** At or above this, a value is `settled`. */
1146
+ settledAtOrAbove: number;
1147
+ /** At or above this (and below `settledAtOrAbove`), a value is `check`.
1148
+ * Below it, `confirm`. */
1149
+ checkAtOrAbove: number;
1150
+ }
1151
+ /** The starting policy. Products with a different tolerance pass their own. */
1152
+ declare const DEFAULT_PROVENANCE_CONFIDENCE_POLICY: ProvenanceConfidencePolicy;
1153
+ /** A value, where it came from, and — when it was computed — the provenanced
1154
+ * values it came from. The `inputs` field is what makes the shape compose:
1155
+ * a computed value's provenance IS its inputs. */
1156
+ interface ProvenanceRecord {
1157
+ /** The value as the reader should see it, already formatted. An empty string
1158
+ * is a missing value and renders as one, never as blank space. */
1159
+ display: string;
1160
+ /** What the value IS ("Wages", "Filing deadline"). Optional at the top level,
1161
+ * where the surface around it usually says; rendered for every composed
1162
+ * input, where nothing else names them. */
1163
+ label?: string;
1164
+ basis: ProvenanceBasis;
1165
+ /** Where it came from. An `extracted` value without one is a gap, not a
1166
+ * detail. */
1167
+ sources?: readonly ProvenanceSource[];
1168
+ /** The provenanced values a `computed` value was produced from. */
1169
+ inputs?: readonly ProvenanceRecord[];
1170
+ /** How the inputs combine, in the caller's words ("wages + interest"). */
1171
+ derivation?: string;
1172
+ /** 0–1. Never rendered as a number — it selects a standing. */
1173
+ confidence?: number;
1174
+ /** Overrides the standing confidence and basis would produce — a reviewer
1175
+ * approved it, a gate failed. It can only make a value WEAKER: the
1176
+ * structural floors below still apply, so a product cannot mark a value
1177
+ * settled that has no origin on file. */
1178
+ standing?: ProvenanceStanding;
1179
+ }
1180
+ /** The standing a bare confidence maps to under a policy. */
1181
+ declare function standingFromConfidence(confidence: number, policy?: ProvenanceConfidencePolicy): ProvenanceStanding;
1182
+ /** Something missing that the reader has to be TOLD about, because the value
1183
+ * renders either way and a bare number reads as a fact. */
1184
+ type ProvenanceGapKind = 'no-source' | 'no-inputs' | 'unavailable-source';
1185
+ /** One stated gap. `message` is rendered verbatim. */
1186
+ interface ProvenanceGap {
1187
+ kind: ProvenanceGapKind;
1188
+ message: string;
1189
+ /** The source that could not be resolved (`unavailable-source` only). */
1190
+ source?: ProvenanceSource;
1191
+ }
1192
+ /** The sentence for a source that is not `ready`, or `null` when it is. One
1193
+ * source of this copy, so the row and the gap list never disagree. */
1194
+ declare function describeProvenanceSourceStatus(source: ProvenanceSource): string | null;
1195
+ /**
1196
+ * What this record cannot show, at its own level. Inputs are not walked: every
1197
+ * composed input renders its own gaps next to its own value, where a reader can
1198
+ * act on them.
1199
+ */
1200
+ declare function provenanceGaps(record: ProvenanceRecord): ProvenanceGap[];
1201
+ /** The sources still resolving — rendered as their own state, never as an
1202
+ * absence. A load in flight is not a missing source. */
1203
+ declare function loadingProvenanceSources(record: ProvenanceRecord): ProvenanceSource[];
1204
+ /**
1205
+ * This record's own standing, ignoring its inputs.
1206
+ *
1207
+ * The order is: start from the explicit standing, else from confidence, else
1208
+ * from the basis — then apply every structural floor, taking the WEAKEST. The
1209
+ * floors are what a caller cannot talk its way out of:
1210
+ *
1211
+ * - an `asserted` value never reaches `settled` (a model's own confidence
1212
+ * cannot certify the model's claim — there is nothing to check it against),
1213
+ * - a `no-source` / `no-inputs` gap forces `confirm` (a value dressed as
1214
+ * evidence with no evidence behind it is worse than an open guess),
1215
+ * - an unopenable source forces `check` (the value may be right; the reader
1216
+ * just cannot confirm it).
1217
+ */
1218
+ declare function resolveProvenanceStanding(record: ProvenanceRecord, policy?: ProvenanceConfidencePolicy): ProvenanceStanding;
1219
+ /**
1220
+ * The standing a reader should see: this record's own, weakened by every value
1221
+ * it was computed from, however deep.
1222
+ *
1223
+ * A total is only as trustworthy as the weakest number in it. Rendering the
1224
+ * parent's own standing instead is how an exact sum of one document figure and
1225
+ * one model guess presents as traced.
1226
+ *
1227
+ * Cycle-safe: a record reachable from itself is counted once.
1228
+ */
1229
+ declare function rollUpProvenanceStanding(record: ProvenanceRecord, policy?: ProvenanceConfidencePolicy, seen?: Set<ProvenanceRecord>): ProvenanceStanding;
1230
+ /**
1231
+ * One plain sentence naming where the value came from — the panel's first line
1232
+ * and part of what a screen reader announces. It states the absence when there
1233
+ * is one, so no code path produces silence.
1234
+ */
1235
+ declare function describeProvenance(record: ProvenanceRecord): string;
1236
+ /**
1237
+ * The move THIS value's reader can actually make.
1238
+ *
1239
+ * `provenanceStandingMeta().action` is the generic sentence for a standing;
1240
+ * this is the one that accounts for what is on file. "Open the source and
1241
+ * confirm it" is a dead instruction on a value that has no source — an action
1242
+ * a reader cannot perform is the same defect as no action at all.
1243
+ */
1244
+ declare function provenanceNextMove(record: ProvenanceRecord, standing: ProvenanceStanding, policy?: ProvenanceConfidencePolicy): string;
1245
+ /**
1246
+ * The accessible name of the disclosure control: the value, how it came to
1247
+ * exist, and — unless there is nothing to do — the next move. This is the
1248
+ * whole affordance for someone who never sees the colour.
1249
+ */
1250
+ declare function provenanceTriggerLabel(record: ProvenanceRecord, standing: ProvenanceStanding): string;
1251
+
1252
+ /** Properties for one provenanced value and its disclosure. */
1253
+ interface ProvenanceValueProps {
1254
+ /** The value and where it came from. */
1255
+ record: ProvenanceRecord;
1256
+ /**
1257
+ * Open one source in the product's own way (a document pane at the right
1258
+ * page, a drawer, a route). Takes precedence over `href` when both are
1259
+ * present, because a product that routes wants its router — a source with
1260
+ * neither is named but not openable, which is a legitimate state and is
1261
+ * rendered as such.
1262
+ */
1263
+ onOpenSource?: (source: ProvenanceSource, record: ProvenanceRecord) => void;
1264
+ /** Retry resolving an `unavailable` source. Absent → the failure is stated
1265
+ * without a retry control, never swallowed. */
1266
+ onRetrySource?: (source: ProvenanceSource, record: ProvenanceRecord) => void;
1267
+ /** Where this product draws its confidence lines. */
1268
+ confidencePolicy?: ProvenanceConfidencePolicy;
1269
+ /**
1270
+ * How many levels of composed inputs stay expandable. Past it an input still
1271
+ * renders its value, its basis and its origin sentence — it just stops
1272
+ * carrying its own disclosure, so a deep tree cannot run away and a record
1273
+ * that reaches itself cannot recurse forever. Default 2.
1274
+ */
1275
+ maxDepth?: number;
1276
+ /** Open the disclosure on first render — for a review surface where the
1277
+ * trail is the point. Several of these coexist: only a reader opening a
1278
+ * trail closes another one. */
1279
+ defaultOpen?: boolean;
1280
+ /** What an empty `display` renders as. A blank cell is the defect this
1281
+ * component exists to remove. */
1282
+ missingValueLabel?: string;
1283
+ className?: string;
1284
+ }
1285
+ /**
1286
+ * A value, its origin marker, and the disclosure that shows where it came
1287
+ * from. The marker states the basis in words and, whenever there is something
1288
+ * to do about the value, the next move — so the standing is legible at rest
1289
+ * and does not depend on anyone opening the panel.
1290
+ */
1291
+ declare function ProvenanceValue({ record, onOpenSource, onRetrySource, confidencePolicy, maxDepth, defaultOpen, missingValueLabel, className, }: ProvenanceValueProps): react.JSX.Element;
1292
+ /** Properties for the basis legend. */
1293
+ interface ProvenanceLegendProps {
1294
+ /** Only the bases present on screen. Passing all four when only two appear
1295
+ * teaches distinctions the reader cannot use. */
1296
+ bases: readonly ProvenanceBasis[];
1297
+ className?: string;
1298
+ }
1299
+ /** The marker key for a surface that renders several bases at once — a review
1300
+ * pane, a grid, a return. Each row is the same glyph, tone and words the
1301
+ * markers use, plus what the basis MEANS. */
1302
+ declare function ProvenanceLegend({ bases, className }: ProvenanceLegendProps): react.JSX.Element | null;
1303
+
1056
1304
  /**
1057
1305
  * `SeatPaywall` — the shared "unlock this product" screen every agent app
1058
1306
  * shows when a user has no active seat and has spent past the free tier.
@@ -1908,4 +2156,4 @@ declare function useThinkingSeconds(active: boolean): number;
1908
2156
  */
1909
2157
  declare function ChatMessages({ messages, messageSize, models, renderMarkdown, renderExtras, durableCards, userLabel, agentLabel, loading, approval, onToolCallClick, toolRenderers, error, onRetry, renderEmpty, emptyState, header, resolveAttachmentUrl, workProductCards, }: ChatMessagesProps): react.JSX.Element;
1910
2158
 
1911
- export { type ActivityTone, type AgentActivityPage, AgentActivityPanel, type AgentActivityPanelProps, type AgentActivityRecord, AgentSessionControls, type AgentSessionControlsProps, type AttachmentFileResult, CatalogModel, ChatAttachmentInput, ChatAttachmentKind, ChatAttachmentPart, ChatComposer, type ChatComposerProps, type ChatEmptyDoor, ChatEmptyState, type ChatEmptyStateProps, ChatInteraction, ChatInteractionField, type ChatInteractionRestoreMode, ChatInteractionStatus, ChatMentionPart, type ChatMessageMetrics, type ChatMessageSegment, ChatMessages, type ChatMessagesProps, ChatSelectField, type ChatStreamCallbacks, type ChatStreamToolCall, type ChatStreamToolResult, type ChatToolCallInfo, type ChatUiMessage, type ComposerFile, type ComposerFilePart, type ConsumeChatStreamResult, DEFAULT_EFFORT_LEVELS, type DurableChatCard, DurableChatCards, type DurableChatCardsProps, type DurableInteractionAnswerSubmitterOptions, DurablePlanCard, type DurablePlanCardProps, DurablePlanClientError, type DurablePlanCurrentInput, type DurablePlanDecision, type DurablePlanDecisionClient, type DurablePlanDecisionClientOptions, type DurablePlanDecisionInput, type DurablePlanDecisionResult, type DurablePlanFollowUpReceipt, EMPTY_RECORD_GRID_OVERLAY, type EffortLevel, EffortPicker, type EffortPickerProps, EvidenceLineageTable, type EvidenceLineageTableProps, ExceptionList, type ExceptionListProps, type FetchSessionPage, type FieldValues, FlowWaterfall, type FlowWaterfallProps, INTERACTION_SUBMIT_TIMEOUT_MESSAGE, INTERACTION_SUBMIT_TIMEOUT_MS, InteractionActionButton, type InteractionAnswerSubmission, type InteractionAnswerSubmitterOptions, InteractionAnswers, type InteractionAttemptStore, InteractionBadge, type InteractionBadgeVariant, InteractionCancelData, InteractionPlanCard, type InteractionPlanCardProps, InteractionQuestionCard, type InteractionQuestionCardProps, InteractionRequestWire, type InteractionSubmitResult, type LinkLikeComponent, type LinkLikeProps, type MentionTextSegment, MessageAttachments, type MessageAttachmentsProps, MissionActivityLane, type MissionActivityLaneProps, ModelPicker, type ModelPickerProps, type ProposalApprovalHandlers, ProvenanceStamp, type ProvenanceStampProps, ProviderLogo, type ProviderLogoProps, QualityCheckList, type QualityCheckListProps, QuestionOptionList, type QuestionOptionListProps, RecordGrid, type RecordGridBooleanColumn, type RecordGridCellChange, type RecordGridCellOutcome, type RecordGridCellSource, type RecordGridColumn, type RecordGridColumnBase, type RecordGridCreateOutcome, type RecordGridCurrencyColumn, type RecordGridDateColumn, type RecordGridDependency, type RecordGridEmptyState, type RecordGridNumberColumn, type RecordGridOverlay, type RecordGridProps, type RecordGridRow, type RecordGridRowOutcome, type RecordGridSelectColumn, type RecordGridSelectOption, type RecordGridSourceBasis, type RecordGridState, type RecordGridTextColumn, type RecordGridValue, type RecordGridWriteOutcome, type RestoreChatInteractionsOptions, ReviewQueueItem, type ReviewQueuePage, ReviewQueuePanel, type ReviewQueuePanelProps, ReviewQueueState, RunDrillIn, type RunDrillInProps, SeatPaywall, type SeatPaywallProps, type SessionActionLabels, type SessionActions, type SessionActionsOptions, type SessionBulkAction, SessionHistoryPanel, type SessionHistoryPanelProps, type SessionHistoryState, type SessionPageQuery, type SmoothRevealOptions, type StreamChatOptions, type SubmitInteractionAnswer, type ToolDetailRenderers, type ToolRunRecord, type ToolRunStep, type UseChatInteractionsOptions, type UseChatInteractionsResult, type UseComposerAttachmentsOptions, type UseComposerAttachmentsResult, type UseDurablePlanFlowOptions, type UseDurablePlanFlowResult, type UseInfiniteScrollOptions, type UseSessionHistoryOptions, type WaterfallRow, WorkProductCard, type WorkProductCardProps, __resetAttachmentFileCacheForTests, activityTone, buildAnswerData, cancelChatInteraction, consumeChatStream, createDurableInteractionAnswerSubmitter, createDurablePlanDecisionClient, createInteractionAnswerSubmitter, createMemoryInteractionAttemptStore, createSessionInteractionAttemptStore, dispatchChatStreamLine, durableChatCardsFromParts, fieldAnswer, fieldValuesFromAnswers, formatActivityCost, formatActivityDuration, formatModelCost, formatRecordGridValue, formatSessionTimestamp, formatTokensPerSecond, hasSecretField, hydrateChatInteractions, interactionStatusLabels, interactionSubmissionSignature, interactionTerminalNotes, isLateAnswerableStatus, isRecordGridCellApplicable, lateAnswerMessage, loadAttachmentFile, mergeActivityPages, mergeReviewQueuePages, nextRevealCount, parseRecordGridInput, pendingApprovalOf, projectRecordGridRows, pruneRecordGridOverlay, readRecordGridCell, recordGridEditorText, recordGridFail, recordGridOk, recordGridRowLabel, resolveChatInteraction, responseErrorMessage, restoreChatInteractions, reviewQueueStateLabel, sameRecordGridValue, segmentMentionContent, settleInteractionSubmit, streamChatTurn, sumRecordGridColumn, terminalizePendingChatInteractions, triggerAttachmentDownload, upsertChatInteraction, useChatInteractions, useComposerAttachments, useDurablePlanFlow, useInfiniteScroll, usePending, usePopover, useSessionActions, useSessionHistory, useSmoothText, useThinkingSeconds, validateRecordGridCell, validateRecordGridRow, waterfallLayout, withRecordGridCreated, withRecordGridRemoved, withRecordGridServerRow, withRecordGridUpdate, withoutRecordGridCreated, withoutRecordGridRemoved, withoutRecordGridUpdate, workProductPartsFromMessageParts, workProductStatusLabel };
2159
+ export { type ActivityTone, type AgentActivityPage, AgentActivityPanel, type AgentActivityPanelProps, type AgentActivityRecord, AgentSessionControls, type AgentSessionControlsProps, type AttachmentFileResult, CatalogModel, ChatAttachmentInput, ChatAttachmentKind, ChatAttachmentPart, ChatComposer, type ChatComposerProps, type ChatEmptyDoor, ChatEmptyState, type ChatEmptyStateProps, ChatInteraction, ChatInteractionField, type ChatInteractionRestoreMode, ChatInteractionStatus, ChatMentionPart, type ChatMessageMetrics, type ChatMessageSegment, ChatMessages, type ChatMessagesProps, ChatSelectField, type ChatStreamCallbacks, type ChatStreamToolCall, type ChatStreamToolResult, type ChatToolCallInfo, type ChatUiMessage, type ComposerFile, type ComposerFilePart, type ConsumeChatStreamResult, DEFAULT_EFFORT_LEVELS, DEFAULT_PROVENANCE_CONFIDENCE_POLICY, type DurableChatCard, DurableChatCards, type DurableChatCardsProps, type DurableInteractionAnswerSubmitterOptions, DurablePlanCard, type DurablePlanCardProps, DurablePlanClientError, type DurablePlanCurrentInput, type DurablePlanDecision, type DurablePlanDecisionClient, type DurablePlanDecisionClientOptions, type DurablePlanDecisionInput, type DurablePlanDecisionResult, type DurablePlanFollowUpReceipt, EMPTY_RECORD_GRID_OVERLAY, type EffortLevel, EffortPicker, type EffortPickerProps, EvidenceLineageTable, type EvidenceLineageTableProps, ExceptionList, type ExceptionListProps, type FetchSessionPage, type FieldValues, FlowWaterfall, type FlowWaterfallProps, INTERACTION_SUBMIT_TIMEOUT_MESSAGE, INTERACTION_SUBMIT_TIMEOUT_MS, InteractionActionButton, type InteractionAnswerSubmission, type InteractionAnswerSubmitterOptions, InteractionAnswers, type InteractionAttemptStore, InteractionBadge, type InteractionBadgeVariant, InteractionCancelData, InteractionPlanCard, type InteractionPlanCardProps, InteractionQuestionCard, type InteractionQuestionCardProps, InteractionRequestWire, type InteractionSubmitResult, type LinkLikeComponent, type LinkLikeProps, type MentionTextSegment, MessageAttachments, type MessageAttachmentsProps, MissionActivityLane, type MissionActivityLaneProps, ModelPicker, type ModelPickerProps, PROVENANCE_BASES, type ProposalApprovalHandlers, type ProvenanceBasis, type ProvenanceBasisMeta, type ProvenanceConfidencePolicy, type ProvenanceGap, type ProvenanceGapKind, ProvenanceLegend, type ProvenanceLegendProps, type ProvenanceRecord, type ProvenanceSource, type ProvenanceSourceStatus, ProvenanceStamp, type ProvenanceStampProps, type ProvenanceStanding, type ProvenanceStandingMeta, ProvenanceValue, type ProvenanceValueProps, ProviderLogo, type ProviderLogoProps, QualityCheckList, type QualityCheckListProps, QuestionOptionList, type QuestionOptionListProps, RecordGrid, type RecordGridBooleanColumn, type RecordGridCellChange, type RecordGridCellOutcome, type RecordGridCellSource, type RecordGridColumn, type RecordGridColumnBase, type RecordGridCreateOutcome, type RecordGridCurrencyColumn, type RecordGridDateColumn, type RecordGridDependency, type RecordGridEmptyState, type RecordGridNumberColumn, type RecordGridOverlay, type RecordGridProps, type RecordGridRow, type RecordGridRowOutcome, type RecordGridSelectColumn, type RecordGridSelectOption, type RecordGridSourceBasis, type RecordGridState, type RecordGridTextColumn, type RecordGridValue, type RecordGridWriteOutcome, type RestoreChatInteractionsOptions, ReviewQueueItem, type ReviewQueuePage, ReviewQueuePanel, type ReviewQueuePanelProps, ReviewQueueState, RunDrillIn, type RunDrillInProps, SeatPaywall, type SeatPaywallProps, type SessionActionLabels, type SessionActions, type SessionActionsOptions, type SessionBulkAction, SessionHistoryPanel, type SessionHistoryPanelProps, type SessionHistoryState, type SessionPageQuery, type SmoothRevealOptions, type StreamChatOptions, type SubmitInteractionAnswer, type ToolDetailRenderers, type ToolRunRecord, type ToolRunStep, type UseChatInteractionsOptions, type UseChatInteractionsResult, type UseComposerAttachmentsOptions, type UseComposerAttachmentsResult, type UseDurablePlanFlowOptions, type UseDurablePlanFlowResult, type UseInfiniteScrollOptions, type UseSessionHistoryOptions, type WaterfallRow, WorkProductCard, type WorkProductCardProps, __resetAttachmentFileCacheForTests, activityTone, buildAnswerData, cancelChatInteraction, consumeChatStream, createDurableInteractionAnswerSubmitter, createDurablePlanDecisionClient, createInteractionAnswerSubmitter, createMemoryInteractionAttemptStore, createSessionInteractionAttemptStore, describeProvenance, describeProvenanceSourceStatus, dispatchChatStreamLine, durableChatCardsFromParts, fieldAnswer, fieldValuesFromAnswers, formatActivityCost, formatActivityDuration, formatModelCost, formatRecordGridValue, formatSessionTimestamp, formatTokensPerSecond, hasSecretField, hydrateChatInteractions, interactionStatusLabels, interactionSubmissionSignature, interactionTerminalNotes, isLateAnswerableStatus, isRecordGridCellApplicable, lateAnswerMessage, loadAttachmentFile, loadingProvenanceSources, mergeActivityPages, mergeReviewQueuePages, nextRevealCount, parseRecordGridInput, pendingApprovalOf, projectRecordGridRows, provenanceBasisMeta, provenanceGaps, provenanceNextMove, provenanceStandingMeta, provenanceTriggerLabel, pruneRecordGridOverlay, readRecordGridCell, recordGridEditorText, recordGridFail, recordGridOk, recordGridRowLabel, resolveChatInteraction, resolveProvenanceStanding, responseErrorMessage, restoreChatInteractions, reviewQueueStateLabel, rollUpProvenanceStanding, sameRecordGridValue, segmentMentionContent, settleInteractionSubmit, standingFromConfidence, streamChatTurn, sumRecordGridColumn, terminalizePendingChatInteractions, triggerAttachmentDownload, upsertChatInteraction, useChatInteractions, useComposerAttachments, useDurablePlanFlow, useInfiniteScroll, usePending, usePopover, useSessionActions, useSessionHistory, useSmoothText, useThinkingSeconds, validateRecordGridCell, validateRecordGridRow, waterfallLayout, weakerProvenanceStanding, withRecordGridCreated, withRecordGridRemoved, withRecordGridServerRow, withRecordGridUpdate, withoutRecordGridCreated, withoutRecordGridRemoved, withoutRecordGridUpdate, workProductPartsFromMessageParts, workProductStatusLabel };
@@ -7,6 +7,7 @@ import {
7
7
  DEFAULT_EFFORT_LEVELS,
8
8
  DEFAULT_MENTION_EMPTY_TEXT,
9
9
  DEFAULT_MENTION_LIMIT,
10
+ DEFAULT_PROVENANCE_CONFIDENCE_POLICY,
10
11
  DurableChatCards,
11
12
  DurablePlanCard,
12
13
  DurablePlanClientError,
@@ -23,6 +24,9 @@ import {
23
24
  MessageAttachments,
24
25
  MissionActivityLane,
25
26
  ModelPicker,
27
+ PROVENANCE_BASES,
28
+ ProvenanceLegend,
29
+ ProvenanceValue,
26
30
  ProviderLogo,
27
31
  QuestionOptionList,
28
32
  RecordGrid,
@@ -39,6 +43,8 @@ import {
39
43
  createInteractionAnswerSubmitter,
40
44
  createMemoryInteractionAttemptStore,
41
45
  createSessionInteractionAttemptStore,
46
+ describeProvenance,
47
+ describeProvenanceSourceStatus,
42
48
  dispatchChatStreamLine,
43
49
  durableChatCardsFromParts,
44
50
  fieldAnswer,
@@ -58,11 +64,17 @@ import {
58
64
  isRecordGridCellApplicable,
59
65
  lateAnswerMessage,
60
66
  loadAttachmentFile,
67
+ loadingProvenanceSources,
61
68
  mergeActivityPages,
62
69
  nextRevealCount,
63
70
  parseRecordGridInput,
64
71
  pendingApprovalOf,
65
72
  projectRecordGridRows,
73
+ provenanceBasisMeta,
74
+ provenanceGaps,
75
+ provenanceNextMove,
76
+ provenanceStandingMeta,
77
+ provenanceTriggerLabel,
66
78
  pruneRecordGridOverlay,
67
79
  rankFileMentions,
68
80
  readRecordGridCell,
@@ -71,11 +83,14 @@ import {
71
83
  recordGridOk,
72
84
  recordGridRowLabel,
73
85
  resolveChatInteraction,
86
+ resolveProvenanceStanding,
74
87
  responseErrorMessage,
75
88
  restoreChatInteractions,
89
+ rollUpProvenanceStanding,
76
90
  sameRecordGridValue,
77
91
  segmentMentionContent,
78
92
  settleInteractionSubmit,
93
+ standingFromConfidence,
79
94
  streamChatTurn,
80
95
  sumRecordGridColumn,
81
96
  terminalizePendingChatInteractions,
@@ -94,6 +109,7 @@ import {
94
109
  validateRecordGridCell,
95
110
  validateRecordGridRow,
96
111
  waterfallLayout,
112
+ weakerProvenanceStanding,
97
113
  withRecordGridCreated,
98
114
  withRecordGridRemoved,
99
115
  withRecordGridServerRow,
@@ -101,7 +117,7 @@ import {
101
117
  withoutRecordGridCreated,
102
118
  withoutRecordGridRemoved,
103
119
  withoutRecordGridUpdate
104
- } from "../chunk-NZVBJM73.js";
120
+ } from "../chunk-7PFFFRVU.js";
105
121
  import "../chunk-FBVLEGEG.js";
106
122
  import {
107
123
  useComposerAttachments
@@ -191,6 +207,7 @@ export {
191
207
  DEFAULT_EFFORT_LEVELS,
192
208
  DEFAULT_MENTION_EMPTY_TEXT,
193
209
  DEFAULT_MENTION_LIMIT,
210
+ DEFAULT_PROVENANCE_CONFIDENCE_POLICY,
194
211
  DISPATCH_MAX_MEDIA_PARTS,
195
212
  DISPATCH_MAX_PARTS,
196
213
  DISPATCH_REQUEST_MAX_BYTES,
@@ -216,7 +233,10 @@ export {
216
233
  MessageAttachments,
217
234
  MissionActivityLane,
218
235
  ModelPicker,
236
+ PROVENANCE_BASES,
237
+ ProvenanceLegend,
219
238
  ProvenanceStamp,
239
+ ProvenanceValue,
220
240
  ProviderLogo,
221
241
  QualityCheckList,
222
242
  QuestionOptionList,
@@ -248,6 +268,8 @@ export {
248
268
  createMemoryInteractionAttemptStore,
249
269
  createSessionInteractionAttemptStore,
250
270
  dedupeQuestionInteractionsByContent,
271
+ describeProvenance,
272
+ describeProvenanceSourceStatus,
251
273
  dispatchChatStreamLine,
252
274
  durableChatCardsFromParts,
253
275
  fieldAcceptsFreeText,
@@ -276,6 +298,7 @@ export {
276
298
  isTerminalInteractionStatus,
277
299
  lateAnswerMessage,
278
300
  loadAttachmentFile,
301
+ loadingProvenanceSources,
279
302
  mediaTypeForMentionPath,
280
303
  mentionInputToPart,
281
304
  mentionKindForPath,
@@ -293,6 +316,11 @@ export {
293
316
  pendingApprovalOf,
294
317
  persistedPartToInteraction,
295
318
  projectRecordGridRows,
319
+ provenanceBasisMeta,
320
+ provenanceGaps,
321
+ provenanceNextMove,
322
+ provenanceStandingMeta,
323
+ provenanceTriggerLabel,
296
324
  pruneRecordGridOverlay,
297
325
  questionInteractionContentSignature,
298
326
  rankFileMentions,
@@ -302,13 +330,16 @@ export {
302
330
  recordGridOk,
303
331
  recordGridRowLabel,
304
332
  resolveChatInteraction,
333
+ resolveProvenanceStanding,
305
334
  responseErrorMessage,
306
335
  restoreChatInteractions,
307
336
  reviewQueueStateLabel,
337
+ rollUpProvenanceStanding,
308
338
  sameRecordGridValue,
309
339
  segmentMentionContent,
310
340
  settleInteractionSubmit,
311
341
  stampInteractionAnswers,
342
+ standingFromConfidence,
312
343
  streamChatTurn,
313
344
  sumRecordGridColumn,
314
345
  tabTerminalConnectionId,
@@ -330,6 +361,7 @@ export {
330
361
  validateRecordGridCell,
331
362
  validateRecordGridRow,
332
363
  waterfallLayout,
364
+ weakerProvenanceStanding,
333
365
  withRecordGridCreated,
334
366
  withRecordGridRemoved,
335
367
  withRecordGridServerRow,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.45.22",
3
+ "version": "0.45.23",
4
4
  "packageManager": "pnpm@11.17.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [
@@ -33,6 +33,7 @@
33
33
  ],
34
34
  "bin": {
35
35
  "agent-app-theme-check": "./dist/theme-contract/cli.js",
36
+ "agent-app-legibility-check": "./dist/legibility/cli.js",
36
37
  "agent-app-preflight": "./dist/preflight/cli.js",
37
38
  "agent-app-peer-check": "./dist/peer-floors/cli.js"
38
39
  },
@@ -460,6 +461,11 @@
460
461
  "default": "./dist/theme-contract/index.js"
461
462
  },
462
463
  "./styles": "./dist/theme/tokens.css",
464
+ "./legibility": {
465
+ "types": "./dist/legibility/index.d.ts",
466
+ "import": "./dist/legibility/index.js",
467
+ "default": "./dist/legibility/index.js"
468
+ },
463
469
  "./peer-floors": {
464
470
  "types": "./dist/peer-floors/check.d.ts",
465
471
  "import": "./dist/peer-floors/check.js",