@tangle-network/agent-app 0.45.21 → 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.
- package/dist/DesignCanvas-ZG7DJS7C.js +10 -0
- package/dist/DesignCanvasEditor-SLFMHOII.js +13 -0
- package/dist/app-auth/index.js +2 -2
- package/dist/assistant/index.d.ts +1 -1
- package/dist/assistant/index.js +5 -5
- package/dist/{attachment-validation-CsmUzuI3.d.ts → attachment-validation-BfJDBU1g.d.ts} +41 -5
- package/dist/{auth-DJjJBtYw.d.ts → auth-BYtiazA4.d.ts} +1 -1
- package/dist/chat-react/index.js +2 -2
- package/dist/chat-routes/index.d.ts +8 -4
- package/dist/chat-routes/index.js +21 -4
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/{chunk-KPRBFNGT.js → chunk-3IHYJIDJ.js} +3 -3
- package/dist/{chunk-MYS7DHMM.js → chunk-4QVG4WJQ.js} +2 -2
- package/dist/{chunk-RMHZKMQ4.js → chunk-73CQJOIU.js} +5 -5
- package/dist/{chunk-AH3IOSWF.js → chunk-7PFFFRVU.js} +2077 -341
- package/dist/chunk-7PFFFRVU.js.map +1 -0
- package/dist/chunk-CCVG2TL6.js +327 -0
- package/dist/chunk-CCVG2TL6.js.map +1 -0
- package/dist/{chunk-U4BXAZCN.js → chunk-DRB77FYL.js} +2 -2
- package/dist/{chunk-6MUJROBT.js → chunk-E4DHYENH.js} +2 -2
- package/dist/chunk-F7VH4G5C.js +283 -0
- package/dist/chunk-F7VH4G5C.js.map +1 -0
- package/dist/chunk-I24YIKHO.js +183 -0
- package/dist/chunk-I24YIKHO.js.map +1 -0
- package/dist/{chunk-OO4DROKM.js → chunk-OASVAPRL.js} +3 -3
- package/dist/{chunk-ZSGTG6PK.js → chunk-P5PIAQVS.js} +2 -2
- package/dist/chunk-PC2WYTK7.js +405 -0
- package/dist/chunk-PC2WYTK7.js.map +1 -0
- package/dist/{chunk-YEFFHORB.js → chunk-TX6S7XXU.js} +8 -2
- package/dist/chunk-TX6S7XXU.js.map +1 -0
- package/dist/chunk-UGWQLQDS.js +35 -0
- package/dist/chunk-UGWQLQDS.js.map +1 -0
- package/dist/{chunk-O22STZ3P.js → chunk-X5DQ5QOP.js} +2 -2
- package/dist/chunk-XEA5EG6P.js +1478 -0
- package/dist/chunk-XEA5EG6P.js.map +1 -0
- package/dist/{chunk-PCJHEZA7.js → chunk-YABHE2QY.js} +2 -2
- package/dist/design-canvas/index.d.ts +3 -3
- package/dist/design-canvas/index.js +2 -2
- package/dist/design-canvas-react/engine.js +4 -4
- package/dist/design-canvas-react/index.js +7 -7
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/documents/index.d.ts +233 -0
- package/dist/documents/index.js +495 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/pdf-inspector.d.ts +60 -0
- package/dist/documents/pdf-inspector.js +100 -0
- package/dist/documents/pdf-inspector.js.map +1 -0
- package/dist/eval/index.d.ts +1 -1
- package/dist/fold-DACU7gtf.d.ts +320 -0
- package/dist/legibility/cli.d.ts +1 -0
- package/dist/legibility/cli.js +143 -0
- package/dist/legibility/cli.js.map +1 -0
- package/dist/legibility/index.d.ts +572 -0
- package/dist/legibility/index.js +33 -0
- package/dist/legibility/index.js.map +1 -0
- package/dist/{mcp-BiKqnsJV.d.ts → mcp-xxoZZfor.d.ts} +2 -2
- package/dist/openui/index.d.ts +208 -0
- package/dist/openui/index.js +350 -0
- package/dist/openui/index.js.map +1 -0
- package/dist/openui-react/index.d.ts +119 -0
- package/dist/openui-react/index.js +149 -0
- package/dist/openui-react/index.js.map +1 -0
- package/dist/platform/index.js +2 -2
- package/dist/preset-cloudflare/index.d.ts +2 -2
- package/dist/rate-limit-BOVmJRXZ.d.ts +35 -0
- package/dist/record/drizzle.d.ts +682 -0
- package/dist/record/drizzle.js +579 -0
- package/dist/record/drizzle.js.map +1 -0
- package/dist/record/index.d.ts +16 -0
- package/dist/record/index.js +35 -0
- package/dist/record/index.js.map +1 -0
- package/dist/runtime/index.d.ts +3 -3
- package/dist/sandbox/index.d.ts +2 -2
- package/dist/sandbox/index.js +3 -2
- package/dist/sequences/index.d.ts +3 -3
- package/dist/sequences/index.js +1 -1
- package/dist/session-shell/index.d.ts +173 -1
- package/dist/session-shell/index.js +13 -1
- package/dist/teams/index.js +9 -9
- package/dist/teams/invitations-api.js +3 -3
- package/dist/tools/index.d.ts +5 -5
- package/dist/tools/index.js +3 -2
- package/dist/{types-DbU-oO5h.d.ts → types-B25Mib1r.d.ts} +11 -0
- package/dist/types-DrBidf3O.d.ts +123 -0
- package/dist/values-C7RidJuI.d.ts +156 -0
- package/dist/web/index.d.ts +197 -31
- package/dist/web/index.js +15 -3
- package/dist/web-react/async/index.d.ts +309 -0
- package/dist/web-react/async/index.js +327 -0
- package/dist/web-react/async/index.js.map +1 -0
- package/dist/web-react/index.d.ts +586 -2
- package/dist/web-react/index.js +84 -6
- package/dist/work-product/index.d.ts +1 -1
- package/dist/work-product/index.js +2 -1
- package/dist/work-product/index.js.map +1 -1
- package/dist/workspace-react/index.js +1 -1
- package/package.json +49 -3
- package/dist/DesignCanvas-NEIW3AER.js +0 -10
- package/dist/DesignCanvasEditor-QD33OI2W.js +0 -13
- package/dist/chunk-AH3IOSWF.js.map +0 -1
- package/dist/chunk-GINKOZFD.js +0 -214
- package/dist/chunk-GINKOZFD.js.map +0 -1
- package/dist/chunk-J25RST7G.js +0 -126
- package/dist/chunk-J25RST7G.js.map +0 -1
- package/dist/chunk-WBHPN5DY.js +0 -158
- package/dist/chunk-WBHPN5DY.js.map +0 -1
- package/dist/chunk-YEFFHORB.js.map +0 -1
- /package/dist/{DesignCanvas-NEIW3AER.js.map → DesignCanvas-ZG7DJS7C.js.map} +0 -0
- /package/dist/{DesignCanvasEditor-QD33OI2W.js.map → DesignCanvasEditor-SLFMHOII.js.map} +0 -0
- /package/dist/{chunk-KPRBFNGT.js.map → chunk-3IHYJIDJ.js.map} +0 -0
- /package/dist/{chunk-MYS7DHMM.js.map → chunk-4QVG4WJQ.js.map} +0 -0
- /package/dist/{chunk-RMHZKMQ4.js.map → chunk-73CQJOIU.js.map} +0 -0
- /package/dist/{chunk-U4BXAZCN.js.map → chunk-DRB77FYL.js.map} +0 -0
- /package/dist/{chunk-6MUJROBT.js.map → chunk-E4DHYENH.js.map} +0 -0
- /package/dist/{chunk-OO4DROKM.js.map → chunk-OASVAPRL.js.map} +0 -0
- /package/dist/{chunk-ZSGTG6PK.js.map → chunk-P5PIAQVS.js.map} +0 -0
- /package/dist/{chunk-O22STZ3P.js.map → chunk-X5DQ5QOP.js.map} +0 -0
- /package/dist/{chunk-PCJHEZA7.js.map → chunk-YABHE2QY.js.map} +0 -0
|
@@ -20,7 +20,7 @@ import { i as ProductSeatOffer } from '../billing-BibxgALe.js';
|
|
|
20
20
|
import { SessionSort, SessionPage, SessionSummary, SessionRailAction } from '../session-shell/index.js';
|
|
21
21
|
import { CatalogModel } from '../catalog/index.js';
|
|
22
22
|
import { Harness } from '../harness/index.js';
|
|
23
|
-
export { a as ATTACHMENT_ACCEPT, e as FileIndexReadyResponse, f as FileIndexResponse, g as FileIndexWarmingResponse } from '../attachment-validation-
|
|
23
|
+
export { a as ATTACHMENT_ACCEPT, e as FileIndexReadyResponse, f as FileIndexResponse, g as FileIndexWarmingResponse } from '../attachment-validation-BfJDBU1g.js';
|
|
24
24
|
export { a as attachmentPartKey } from '../stream-normalizer-DKRxyVlZ.js';
|
|
25
25
|
import '../billing/index.js';
|
|
26
26
|
|
|
@@ -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.
|
|
@@ -1277,6 +1525,342 @@ declare function formatSessionTimestamp(isoDate: string | null): string;
|
|
|
1277
1525
|
*/
|
|
1278
1526
|
declare function SessionHistoryPanel({ history, hasAnySessions, query, onQueryChange, sort, onSortChange, hrefForSession, linkComponent: Link, respondingSessionIds, onRename, onDelete, onBulkAction, renameLabel, deleteLabel, extraActions, newSessionHref, title, untitledLabel, emptyTitle, emptyDescription, formatTimestamp, contentWidth, className, }: SessionHistoryPanelProps): react.JSX.Element;
|
|
1279
1527
|
|
|
1528
|
+
/**
|
|
1529
|
+
* The pure half of the editable record grid: the typed column vocabulary, the
|
|
1530
|
+
* per-cell parse/validate rules, display + editor formatting, and the
|
|
1531
|
+
* optimistic overlay a caller's rows are projected through.
|
|
1532
|
+
*
|
|
1533
|
+
* Zero React, zero DOM — a product can validate a row on a worker before it
|
|
1534
|
+
* ever reaches storage, and the component in `./record-grid` renders exactly
|
|
1535
|
+
* what these functions decide.
|
|
1536
|
+
*
|
|
1537
|
+
* Every domain word is a caller parameter: the module knows no column names,
|
|
1538
|
+
* no currencies, no option sets. What it owns is the mechanism four verticals
|
|
1539
|
+
* each re-derived — typed cells, an error a person can act on, and an
|
|
1540
|
+
* optimistic edit that can be taken back.
|
|
1541
|
+
*/
|
|
1542
|
+
/** The value one cell can hold. `null` is "no value on file". */
|
|
1543
|
+
type RecordGridValue = string | number | boolean | null;
|
|
1544
|
+
/** Typed outcome for one cell. Callers MUST inspect `succeeded` before reading
|
|
1545
|
+
* `value`; nothing here throws. */
|
|
1546
|
+
type RecordGridCellOutcome = {
|
|
1547
|
+
succeeded: true;
|
|
1548
|
+
value: RecordGridValue;
|
|
1549
|
+
} | {
|
|
1550
|
+
succeeded: false;
|
|
1551
|
+
error: string;
|
|
1552
|
+
};
|
|
1553
|
+
/** Typed outcome for a whole row of inputs (the add form). `cellErrors` is
|
|
1554
|
+
* keyed by column id so each control can render its own message. */
|
|
1555
|
+
type RecordGridRowOutcome = {
|
|
1556
|
+
succeeded: true;
|
|
1557
|
+
value: Record<string, RecordGridValue>;
|
|
1558
|
+
} | {
|
|
1559
|
+
succeeded: false;
|
|
1560
|
+
error: string;
|
|
1561
|
+
cellErrors: Readonly<Record<string, string>>;
|
|
1562
|
+
};
|
|
1563
|
+
/** Build a cell success outcome. */
|
|
1564
|
+
declare function recordGridOk(value: RecordGridValue): RecordGridCellOutcome;
|
|
1565
|
+
/** Build a cell failure outcome carrying the message shown next to the cell. */
|
|
1566
|
+
declare function recordGridFail(error: string): RecordGridCellOutcome;
|
|
1567
|
+
/** How a value came to sit in a cell. Rendered as the provenance tone. */
|
|
1568
|
+
type RecordGridSourceBasis =
|
|
1569
|
+
/** Extracted from a document or message the product can link to. */
|
|
1570
|
+
'source'
|
|
1571
|
+
/** A person entered or confirmed it. */
|
|
1572
|
+
| 'confirmed'
|
|
1573
|
+
/** Computed from other cells; the quote (if any) is the input, not the value. */
|
|
1574
|
+
| 'derived';
|
|
1575
|
+
/**
|
|
1576
|
+
* Where one cell's value came from. Optional on every row — a grid over data
|
|
1577
|
+
* with no lineage renders identically without it.
|
|
1578
|
+
*/
|
|
1579
|
+
interface RecordGridCellSource {
|
|
1580
|
+
/** The text in the source that supports this value. */
|
|
1581
|
+
quote?: string;
|
|
1582
|
+
/** Human name of the source document, message, or system. */
|
|
1583
|
+
label?: string;
|
|
1584
|
+
/** Click-through to the source. */
|
|
1585
|
+
href?: string;
|
|
1586
|
+
/** Position inside the source: a page, a line, a span — the caller's words. */
|
|
1587
|
+
locator?: string;
|
|
1588
|
+
/** How the value got here. Absent renders as a neutral marker. */
|
|
1589
|
+
basis?: RecordGridSourceBasis;
|
|
1590
|
+
}
|
|
1591
|
+
/** One option of a `select` column. */
|
|
1592
|
+
interface RecordGridSelectOption {
|
|
1593
|
+
value: string;
|
|
1594
|
+
label: string;
|
|
1595
|
+
}
|
|
1596
|
+
/** A cell is only editable, rendered, and validated when the column it depends
|
|
1597
|
+
* on holds `equals`. This is how a nested sub-form (a vesting schedule behind
|
|
1598
|
+
* a "has vesting" toggle) stays a set of flat, individually-typed columns. */
|
|
1599
|
+
interface RecordGridDependency {
|
|
1600
|
+
column: string;
|
|
1601
|
+
equals: RecordGridValue;
|
|
1602
|
+
}
|
|
1603
|
+
/** Fields every column kind carries. */
|
|
1604
|
+
interface RecordGridColumnBase {
|
|
1605
|
+
/** Key into a row's `values` bag. */
|
|
1606
|
+
id: string;
|
|
1607
|
+
/** Column heading, and the accessible name of every control in the column. */
|
|
1608
|
+
header: string;
|
|
1609
|
+
/** Short hint rendered under the control in the add form. */
|
|
1610
|
+
hint?: string;
|
|
1611
|
+
/** An empty cell is rejected. */
|
|
1612
|
+
required?: boolean;
|
|
1613
|
+
/** Cells are editable unless this is `false`. */
|
|
1614
|
+
editable?: boolean;
|
|
1615
|
+
/** Cell alignment. Numeric kinds default to `right`. */
|
|
1616
|
+
align?: 'left' | 'right';
|
|
1617
|
+
/** Groups this column under a labelled sub-form in the add form. */
|
|
1618
|
+
group?: string;
|
|
1619
|
+
/** Only applicable when another column holds a given value. */
|
|
1620
|
+
dependsOn?: RecordGridDependency;
|
|
1621
|
+
/** Extra rule, run after the kind's own checks pass. Return the message to
|
|
1622
|
+
* reject with, or `null` to accept. */
|
|
1623
|
+
validate?: (value: RecordGridValue) => string | null;
|
|
1624
|
+
/** Column summary rendered in the footer row. */
|
|
1625
|
+
footerValue?: (rows: readonly RecordGridRow[]) => RecordGridValue;
|
|
1626
|
+
}
|
|
1627
|
+
/** Free text, optionally length- or pattern-constrained. */
|
|
1628
|
+
interface RecordGridTextColumn extends RecordGridColumnBase {
|
|
1629
|
+
kind: 'text';
|
|
1630
|
+
minLength?: number;
|
|
1631
|
+
maxLength?: number;
|
|
1632
|
+
pattern?: RegExp;
|
|
1633
|
+
/** Message when `pattern` rejects. Without it the pattern source is shown. */
|
|
1634
|
+
patternMessage?: string;
|
|
1635
|
+
/** Render a textarea instead of a single-line input. */
|
|
1636
|
+
multiline?: boolean;
|
|
1637
|
+
}
|
|
1638
|
+
/** A plain number. */
|
|
1639
|
+
interface RecordGridNumberColumn extends RecordGridColumnBase {
|
|
1640
|
+
kind: 'number';
|
|
1641
|
+
min?: number;
|
|
1642
|
+
max?: number;
|
|
1643
|
+
integer?: boolean;
|
|
1644
|
+
/** Passed through to the editor's `step`. */
|
|
1645
|
+
step?: number;
|
|
1646
|
+
}
|
|
1647
|
+
/** A money amount. The currency is a caller parameter — this module bakes no
|
|
1648
|
+
* domain value, so a product with two currencies declares two columns. */
|
|
1649
|
+
interface RecordGridCurrencyColumn extends RecordGridColumnBase {
|
|
1650
|
+
kind: 'currency';
|
|
1651
|
+
/** ISO 4217 code, e.g. `USD`. */
|
|
1652
|
+
currency: string;
|
|
1653
|
+
min?: number;
|
|
1654
|
+
max?: number;
|
|
1655
|
+
/** Fraction digits for display. Defaults to the currency's own. */
|
|
1656
|
+
fractionDigits?: number;
|
|
1657
|
+
}
|
|
1658
|
+
/** A calendar date held as `YYYY-MM-DD`; no time, no zone. */
|
|
1659
|
+
interface RecordGridDateColumn extends RecordGridColumnBase {
|
|
1660
|
+
kind: 'date';
|
|
1661
|
+
/** Earliest accepted date, `YYYY-MM-DD`. */
|
|
1662
|
+
min?: string;
|
|
1663
|
+
/** Latest accepted date, `YYYY-MM-DD`. */
|
|
1664
|
+
max?: string;
|
|
1665
|
+
}
|
|
1666
|
+
/** One of a closed set of values. */
|
|
1667
|
+
interface RecordGridSelectColumn extends RecordGridColumnBase {
|
|
1668
|
+
kind: 'select';
|
|
1669
|
+
options: readonly RecordGridSelectOption[];
|
|
1670
|
+
}
|
|
1671
|
+
/** A checkbox. */
|
|
1672
|
+
interface RecordGridBooleanColumn extends RecordGridColumnBase {
|
|
1673
|
+
kind: 'boolean';
|
|
1674
|
+
/** Label for `true`. Defaults to `Yes`. */
|
|
1675
|
+
trueLabel?: string;
|
|
1676
|
+
/** Label for `false`. Defaults to `No`. */
|
|
1677
|
+
falseLabel?: string;
|
|
1678
|
+
}
|
|
1679
|
+
/** Every column shape the grid renders. */
|
|
1680
|
+
type RecordGridColumn = RecordGridTextColumn | RecordGridNumberColumn | RecordGridCurrencyColumn | RecordGridDateColumn | RecordGridSelectColumn | RecordGridBooleanColumn;
|
|
1681
|
+
/** One row: an id, a flat value bag keyed by column id, and optional per-cell
|
|
1682
|
+
* provenance. A record-backed product maps its fold output straight onto
|
|
1683
|
+
* this — one entry per cell, its quote and link in `sources`. */
|
|
1684
|
+
interface RecordGridRow {
|
|
1685
|
+
id: string;
|
|
1686
|
+
values: Readonly<Record<string, RecordGridValue>>;
|
|
1687
|
+
/** Per-cell provenance, keyed by column id. */
|
|
1688
|
+
sources?: Readonly<Record<string, RecordGridCellSource>>;
|
|
1689
|
+
/** No cell in this row may be edited or deleted. */
|
|
1690
|
+
readOnly?: boolean;
|
|
1691
|
+
/** Accessible name for the row's own controls. Falls back to the first text
|
|
1692
|
+
* or select column's value, then the row id. */
|
|
1693
|
+
label?: string;
|
|
1694
|
+
}
|
|
1695
|
+
/** True when the column's dependency (if any) is satisfied by the row's other
|
|
1696
|
+
* values. An inapplicable cell is never required, never validated, and never
|
|
1697
|
+
* editable. */
|
|
1698
|
+
declare function isRecordGridCellApplicable(column: RecordGridColumn, values: Readonly<Record<string, RecordGridValue>>): boolean;
|
|
1699
|
+
/** Value equality across the grid's value union, treating `undefined` as
|
|
1700
|
+
* `null` so an absent key and an explicit null never read as a change. */
|
|
1701
|
+
declare function sameRecordGridValue(a: RecordGridValue | undefined, b: RecordGridValue | undefined): boolean;
|
|
1702
|
+
/**
|
|
1703
|
+
* Turn what an editor control produced into a typed value. Syntax only —
|
|
1704
|
+
* range, length, and membership are {@link validateRecordGridCell}'s job.
|
|
1705
|
+
*/
|
|
1706
|
+
declare function parseRecordGridInput(column: RecordGridColumn, raw: string): RecordGridCellOutcome;
|
|
1707
|
+
/**
|
|
1708
|
+
* Check one already-typed value against its column. Returns the value the grid
|
|
1709
|
+
* should store (empty text normalizes to `null`) or the message a person can
|
|
1710
|
+
* act on.
|
|
1711
|
+
*/
|
|
1712
|
+
declare function validateRecordGridCell(column: RecordGridColumn, value: RecordGridValue): RecordGridCellOutcome;
|
|
1713
|
+
/** Parse editor text and validate it in one step — what a committing cell
|
|
1714
|
+
* editor calls. */
|
|
1715
|
+
declare function readRecordGridCell(column: RecordGridColumn, raw: string): RecordGridCellOutcome;
|
|
1716
|
+
/**
|
|
1717
|
+
* Validate a whole value bag against the columns. Inapplicable cells (an
|
|
1718
|
+
* unsatisfied `dependsOn`) are forced to `null` rather than carried, so a
|
|
1719
|
+
* sub-form the user turned off cannot smuggle stale values into a write.
|
|
1720
|
+
*/
|
|
1721
|
+
declare function validateRecordGridRow(columns: readonly RecordGridColumn[], values: Readonly<Record<string, RecordGridValue>>): RecordGridRowOutcome;
|
|
1722
|
+
/** Display text for a cell. `null` renders as the empty string; the component
|
|
1723
|
+
* decides what a missing value looks like. */
|
|
1724
|
+
declare function formatRecordGridValue(column: RecordGridColumn, value: RecordGridValue, locale?: string): string;
|
|
1725
|
+
/** The text an editor control starts with — the raw value, never the formatted
|
|
1726
|
+
* one, so committing an untouched cell is a no-op. */
|
|
1727
|
+
declare function recordGridEditorText(column: RecordGridColumn, value: RecordGridValue): string;
|
|
1728
|
+
/** Accessible name for a row's own controls. */
|
|
1729
|
+
declare function recordGridRowLabel(columns: readonly RecordGridColumn[], row: RecordGridRow): string;
|
|
1730
|
+
/** Sum a numeric column over the rows that hold a number. Rows with no value
|
|
1731
|
+
* are absent from the sum, not zero — a total over three of five filled cells
|
|
1732
|
+
* is the total of what is on file. */
|
|
1733
|
+
declare function sumRecordGridColumn(rows: readonly RecordGridRow[], columnId: string): number;
|
|
1734
|
+
/**
|
|
1735
|
+
* Edits the grid has applied locally but the caller's `rows` prop has not yet
|
|
1736
|
+
* caught up with. Every field is what rollback removes: drop the entry and the
|
|
1737
|
+
* caller's own data shows through again.
|
|
1738
|
+
*/
|
|
1739
|
+
interface RecordGridOverlay {
|
|
1740
|
+
/** rowId → columnId → optimistic value. */
|
|
1741
|
+
updates: Readonly<Record<string, Readonly<Record<string, RecordGridValue>>>>;
|
|
1742
|
+
/** Rows created locally, in insertion order. */
|
|
1743
|
+
created: readonly RecordGridRow[];
|
|
1744
|
+
/** Row ids removed locally. */
|
|
1745
|
+
removed: readonly string[];
|
|
1746
|
+
}
|
|
1747
|
+
/** An overlay holding nothing. */
|
|
1748
|
+
declare const EMPTY_RECORD_GRID_OVERLAY: RecordGridOverlay;
|
|
1749
|
+
/** The rows to render: caller rows minus local deletes, with local cell edits
|
|
1750
|
+
* applied, then locally-created rows. */
|
|
1751
|
+
declare function projectRecordGridRows(rows: readonly RecordGridRow[], overlay: RecordGridOverlay): RecordGridRow[];
|
|
1752
|
+
/** Record one optimistic cell edit. */
|
|
1753
|
+
declare function withRecordGridUpdate(overlay: RecordGridOverlay, rowId: string, columnId: string, value: RecordGridValue): RecordGridOverlay;
|
|
1754
|
+
/** Take back one optimistic cell edit — the rollback path. */
|
|
1755
|
+
declare function withoutRecordGridUpdate(overlay: RecordGridOverlay, rowId: string, columnId: string): RecordGridOverlay;
|
|
1756
|
+
/** Adopt a row the writer returned as canonical: for a locally-created row it
|
|
1757
|
+
* replaces the draft; for an existing row it replaces the optimistic cells.
|
|
1758
|
+
* Either way the draft's pending cell edits go with it — the canonical row IS
|
|
1759
|
+
* the answer, and leaving an edit layered over it is how a grid keeps showing
|
|
1760
|
+
* a value the server normalized away. */
|
|
1761
|
+
declare function withRecordGridServerRow(overlay: RecordGridOverlay, draftId: string, row: RecordGridRow): RecordGridOverlay;
|
|
1762
|
+
/** Record an optimistic create. */
|
|
1763
|
+
declare function withRecordGridCreated(overlay: RecordGridOverlay, row: RecordGridRow): RecordGridOverlay;
|
|
1764
|
+
/** Take back an optimistic create — the rollback path. Cell edits made against
|
|
1765
|
+
* the draft go with it; the row they applied to no longer exists anywhere. */
|
|
1766
|
+
declare function withoutRecordGridCreated(overlay: RecordGridOverlay, rowId: string): RecordGridOverlay;
|
|
1767
|
+
/** Record an optimistic delete. */
|
|
1768
|
+
declare function withRecordGridRemoved(overlay: RecordGridOverlay, rowId: string): RecordGridOverlay;
|
|
1769
|
+
/** Take back an optimistic delete — the rollback path. */
|
|
1770
|
+
declare function withoutRecordGridRemoved(overlay: RecordGridOverlay, rowId: string): RecordGridOverlay;
|
|
1771
|
+
/**
|
|
1772
|
+
* Drop the overlay entries the caller's own rows have caught up with: a cell
|
|
1773
|
+
* whose value now matches, a created row now present, a removed row now gone.
|
|
1774
|
+
* Without this an overlay would mask every later refresh of the same cell.
|
|
1775
|
+
*
|
|
1776
|
+
* Returns the SAME overlay object when nothing settled, so a caller can prune
|
|
1777
|
+
* on every render without looping.
|
|
1778
|
+
*/
|
|
1779
|
+
declare function pruneRecordGridOverlay(rows: readonly RecordGridRow[], overlay: RecordGridOverlay): RecordGridOverlay;
|
|
1780
|
+
|
|
1781
|
+
/** Which of the three data states the caller is in. Distinct renders: an
|
|
1782
|
+
* errored fetch must never be indistinguishable from an empty result. */
|
|
1783
|
+
type RecordGridState = 'loading' | 'error' | 'ready';
|
|
1784
|
+
/** The empty state's content. `action` is the caller's next step — a link into
|
|
1785
|
+
* chat, an import button — because only the product knows what unblocks the
|
|
1786
|
+
* reader. */
|
|
1787
|
+
interface RecordGridEmptyState {
|
|
1788
|
+
title: string;
|
|
1789
|
+
description?: string;
|
|
1790
|
+
action?: ReactNode;
|
|
1791
|
+
}
|
|
1792
|
+
/** One committed cell edit, handed to `onUpdate`. */
|
|
1793
|
+
interface RecordGridCellChange {
|
|
1794
|
+
/** The row as it was BEFORE the edit — what rollback restores. */
|
|
1795
|
+
row: RecordGridRow;
|
|
1796
|
+
columnId: string;
|
|
1797
|
+
value: RecordGridValue;
|
|
1798
|
+
/** The full value bag after the edit: what a whole-row write would send. */
|
|
1799
|
+
values: Readonly<Record<string, RecordGridValue>>;
|
|
1800
|
+
}
|
|
1801
|
+
/** Outcome of an update or a delete. `value` optionally carries the server's
|
|
1802
|
+
* canonical row, which replaces the optimistic one. */
|
|
1803
|
+
type RecordGridWriteOutcome = {
|
|
1804
|
+
succeeded: true;
|
|
1805
|
+
value?: RecordGridRow;
|
|
1806
|
+
} | {
|
|
1807
|
+
succeeded: false;
|
|
1808
|
+
error: string;
|
|
1809
|
+
};
|
|
1810
|
+
/** Outcome of a create. The row is REQUIRED on success: a create that does not
|
|
1811
|
+
* name the row it wrote leaves the grid unable to address it. */
|
|
1812
|
+
type RecordGridCreateOutcome = {
|
|
1813
|
+
succeeded: true;
|
|
1814
|
+
value: RecordGridRow;
|
|
1815
|
+
} | {
|
|
1816
|
+
succeeded: false;
|
|
1817
|
+
error: string;
|
|
1818
|
+
};
|
|
1819
|
+
/** Properties for the editable, provenance-aware record grid. */
|
|
1820
|
+
interface RecordGridProps {
|
|
1821
|
+
/** Column definitions, in render order. */
|
|
1822
|
+
columns: readonly RecordGridColumn[];
|
|
1823
|
+
/** The caller's rows. Optimistic edits are layered over these and dropped as
|
|
1824
|
+
* this prop catches up. */
|
|
1825
|
+
rows: readonly RecordGridRow[];
|
|
1826
|
+
/** Accessible name for the grid. Required — an unnamed grid is unusable with
|
|
1827
|
+
* a screen reader. */
|
|
1828
|
+
caption: string;
|
|
1829
|
+
/** Data state. Defaults to `ready`. A non-empty `error` forces the error
|
|
1830
|
+
* state whatever this says, so a caller cannot render a failed fetch as an
|
|
1831
|
+
* empty list by forgetting one prop. */
|
|
1832
|
+
state?: RecordGridState;
|
|
1833
|
+
/** The failure message the error state renders. */
|
|
1834
|
+
error?: string | null;
|
|
1835
|
+
/** Re-run the caller's fetch. Absent → the error state offers no retry. */
|
|
1836
|
+
onRetry?: () => void;
|
|
1837
|
+
/** What the empty state says, and what it offers next. */
|
|
1838
|
+
empty: RecordGridEmptyState;
|
|
1839
|
+
/** Persist one created row. Absent → no add affordance. */
|
|
1840
|
+
onCreate?: (values: Readonly<Record<string, RecordGridValue>>) => Promise<RecordGridCreateOutcome>;
|
|
1841
|
+
/** Persist one cell edit. Absent → every cell renders read-only. */
|
|
1842
|
+
onUpdate?: (change: RecordGridCellChange) => Promise<RecordGridWriteOutcome>;
|
|
1843
|
+
/** Delete one row. Absent → no delete affordance. */
|
|
1844
|
+
onDelete?: (row: RecordGridRow) => Promise<RecordGridWriteOutcome>;
|
|
1845
|
+
/** Starting values for the add form. */
|
|
1846
|
+
newRowDefaults?: Readonly<Record<string, RecordGridValue>>;
|
|
1847
|
+
/** Label of the add control and of the add form. Defaults to `Add row`. */
|
|
1848
|
+
addLabel?: string;
|
|
1849
|
+
/** BCP-47 locale for number, currency, and date display. */
|
|
1850
|
+
locale?: string;
|
|
1851
|
+
/** Rendered above the grid — filters, counts, a product action row. */
|
|
1852
|
+
toolbar?: ReactNode;
|
|
1853
|
+
/** Skeleton rows in the loading state. Defaults to 3. */
|
|
1854
|
+
loadingRowCount?: number;
|
|
1855
|
+
className?: string;
|
|
1856
|
+
}
|
|
1857
|
+
/**
|
|
1858
|
+
* The shared editable record table. A row is a flat value bag keyed by column
|
|
1859
|
+
* id, so a record store's fold output maps straight on: one cell per entry,
|
|
1860
|
+
* its quote and link in `sources`.
|
|
1861
|
+
*/
|
|
1862
|
+
declare function RecordGrid({ columns, rows, caption, state, error, onRetry, empty, onCreate, onUpdate, onDelete, newRowDefaults, addLabel, locale, toolbar, loadingRowCount, className, }: RecordGridProps): react.JSX.Element;
|
|
1863
|
+
|
|
1280
1864
|
/**
|
|
1281
1865
|
* Keyboard + pointer model for a trigger-and-popover pair, dependency-free.
|
|
1282
1866
|
* Outside-mousedown and Escape both close; Escape also returns focus to the
|
|
@@ -1572,4 +2156,4 @@ declare function useThinkingSeconds(active: boolean): number;
|
|
|
1572
2156
|
*/
|
|
1573
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;
|
|
1574
2158
|
|
|
1575
|
-
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, 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, 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, formatSessionTimestamp, formatTokensPerSecond, hasSecretField, hydrateChatInteractions, interactionStatusLabels, interactionSubmissionSignature, interactionTerminalNotes, isLateAnswerableStatus, lateAnswerMessage, loadAttachmentFile, mergeActivityPages, mergeReviewQueuePages, nextRevealCount, pendingApprovalOf, resolveChatInteraction, responseErrorMessage, restoreChatInteractions, reviewQueueStateLabel, segmentMentionContent, settleInteractionSubmit, streamChatTurn, terminalizePendingChatInteractions, triggerAttachmentDownload, upsertChatInteraction, useChatInteractions, useComposerAttachments, useDurablePlanFlow, useInfiniteScroll, usePending, usePopover, useSessionActions, useSessionHistory, useSmoothText, useThinkingSeconds, waterfallLayout, 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 };
|