@genesislcap/ai-assistant 15.110.4 → 15.111.1
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/custom-elements.json +936 -936
- package/package.json +17 -17
|
@@ -27946,673 +27946,321 @@
|
|
|
27946
27946
|
},
|
|
27947
27947
|
{
|
|
27948
27948
|
"kind": "javascript-module",
|
|
27949
|
-
"path": "src/
|
|
27949
|
+
"path": "src/state/persistence/build-timeline-entries.ts",
|
|
27950
27950
|
"declarations": [
|
|
27951
27951
|
{
|
|
27952
|
-
"kind": "
|
|
27953
|
-
"name": "
|
|
27954
|
-
"default": "css`\n :host {\n display: block;\n font: inherit;\n\n /* The diff tints — see the diff rules below for why they are backgrounds only. */\n --write-review-added: color-mix(in srgb, var(--success-fill-rest, #2da44e) 18%, transparent);\n --write-review-removed: color-mix(in srgb, var(--error-fill-rest, #cf222e) 18%, transparent);\n }\n\n /*\n * The review mounts inside the chat bubble's dialog content, which is overflow: hidden — so a\n * wide event's columns were CLIPPED rather than pushed off screen, with no scrollbar to say\n * anything was missing. A user approving values they cannot see is the failure this whole\n * component exists to prevent, so the table scrolls within itself.\n */\n .scroller {\n overflow-x: auto;\n max-width: 100%;\n }\n\n table {\n border-collapse: collapse;\n width: 100%;\n }\n\n th,\n td {\n border-bottom: calc(var(--stroke-width, 1) * 1px) solid var(--neutral-stroke-rest);\n padding: calc(var(--design-unit, 4) * 1px) calc(var(--design-unit, 4) * 2px);\n text-align: left;\n }\n\n /* A heading is a column name: kept on one line. */\n th {\n white-space: nowrap;\n }\n\n /*\n * A value is never clipped. Every character stays on screen.\n *\n * Clipping was the first bound, and the wrong one: 24ch with an ellipsis cut the END of every\n * cell, which in a changed cell is the NEW value, so the user approved a value they never saw.\n * No cell is safe to clip either. An insert has no pre-image, so none of its cells is\n * \"changed\", and every one of them is a value being written; a delete's cells are the record\n * being removed; and a title attribute holding the full text reaches nobody on a keyboard or a\n * touch screen.\n *\n * A SHORT value stays whole on one line, and the table scrolls. Wrapping every cell broke a\n * short value mid-token in a squeezed table — \"101.\" over \"2345\" — and the first line could\n * pass for the whole value.\n *\n * A LONG value (review-model marks it) wraps within a bound. With no bound at all, one long\n * value (a NOTE another user wrote) widened its column until the changed one sat out of view,\n * behind a scrollbar an overlay-scrollbar platform does not draw until you scroll.\n */\n td {\n white-space: nowrap;\n }\n\n td.long {\n white-space: normal;\n overflow-wrap: anywhere;\n\n /*\n * A floor as well as a ceiling. With only the ceiling, a squeezed table shrank a long value's\n * column to a sliver (a 100-character note became 22 lines of a few characters each) while\n * the one-line cells kept their width. The table scrolls instead.\n */\n min-width: 20ch;\n max-width: 40ch;\n }\n\n /*\n * Stacked: the table did not fit (see GenesisWriteReview.stacked), so each row becomes a block\n * and each field a line of its own, its label beside its value, and nothing is off to the side.\n * The headings go, as every value now carries its own; the select-all box stays, labelled.\n */\n .stacked table,\n .stacked tbody,\n .stacked tr,\n .stacked td {\n display: block;\n }\n\n .stacked thead tr {\n display: flex;\n }\n\n .stacked thead th:not(.select) {\n display: none;\n }\n\n .stacked thead th.select {\n border-bottom: none;\n font-weight: 400;\n }\n\n /* Without its column of row boxes beneath it, a lone box at the top says nothing on sight. Its\n spoken name is its aria-label, so the words here are for the eye only (the empty alt). */\n .stacked thead th.select::after {\n content: 'Select all' / '';\n margin-inline-start: calc(var(--design-unit, 4) * 1.5px);\n vertical-align: middle;\n }\n\n .stacked tbody tr {\n padding-block: calc(var(--design-unit, 4) * 1px);\n border-top: calc(var(--stroke-width, 1) * 1px) solid var(--neutral-stroke-rest);\n }\n\n .stacked td {\n border-bottom: none;\n }\n\n .stacked td[data-label] {\n display: grid;\n grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);\n gap: calc(var(--design-unit, 4) * 2px);\n white-space: normal;\n overflow-wrap: anywhere;\n }\n\n .stacked td[data-label]::before {\n content: attr(data-label);\n font-weight: 600;\n }\n\n /* No column to bound any more: a long value takes the line's width like any other, and wraps\n within it like any other. */\n .stacked td.long {\n min-width: 0;\n max-width: none;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n\n /*\n * The two marks this table carries — \"this field is changing\" and \"this field decides which\n * record disappears\" — were weight, colour and a strike-through only. None of that reaches\n * somebody using a screen reader, who is the one approver with no other way to tell, so each\n * mark has words as well.\n */\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n /*\n * A delete shows the whole record and sends its key alone, so the fields that actually decide\n * which record disappears are marked. Not colour alone — an underline carries to a user who\n * cannot distinguish it.\n */\n td.identifying {\n font-weight: 600;\n text-decoration: underline;\n }\n\n /*\n * The diff, the way a code review shows one: what goes is tinted as removed and struck through,\n * what comes in is tinted as added and bold. Only the BACKGROUND is tinted, at low alpha, from\n * the theme's own success and error tokens (with fallbacks, as foundation-forms does), and the\n * text keeps the normal foreground colour: coloured text on a coloured ground is where contrast\n * fails, dark mode first. The tint is never the only signal. Strike-through, weight, the visible\n * + and − marks and the spoken \"was\" and \"now\" all carry the same thing without colour.\n */\n\n /* The mark a user's eye needs: this field is being changed. */\n td.changed {\n font-weight: 600;\n }\n\n /* On its own line above the new value, so neither can push the other out of view. */\n td.changed .was {\n display: block;\n font-weight: 400;\n text-decoration: line-through;\n background: var(--write-review-removed);\n }\n\n td.changed .now {\n display: block;\n background: var(--write-review-added);\n }\n\n /* Room inside the tint, so the − and + do not sit on its edge. */\n td.changed .was,\n td.changed .now {\n padding-inline: calc(var(--design-unit, 4) * 1px);\n }\n\n /*\n * A row that will not be written is never tinted, not even inside a cell. For a refused row\n * review-model already gives it no changed cells, and this is the second guard. For a row the\n * resolved review did not approve, the − and + stay as the record of what was proposed, but\n * without the tint that says it will happen.\n */\n tr.refused td.changed .was,\n tr.refused td.changed .now,\n tr.unwritten td.changed .was,\n tr.unwritten td.changed .now {\n background: none;\n }\n\n /* A whole row coming in, or going. A refused row is neither, and keeps its muted look. */\n tr.added td {\n background: var(--write-review-added);\n }\n\n tr.removed td {\n background: var(--write-review-removed);\n }\n\n /*\n * A closed review's row that was not approved says so in words — without them, a denied modify\n * read in greyscale or by a screen reader exactly like an approved one. An approved row says what\n * came of it the same way, once the write tool has recorded that (written, not written\n * because the user stopped, or its own reason).\n */\n .not-written,\n .fate {\n margin-inline-start: calc(var(--design-unit, 4) * 1.5px);\n font-size: var(--type-ramp-minus-1-font-size, 0.875em);\n color: var(--neutral-foreground-hint);\n }\n\n /*\n * A row action's input is what its handler is given, not a change to the row, so it is labelled\n * rather than marked as a diff. The label is text, so it reaches a screen reader as well.\n */\n .input-mark {\n font-style: italic;\n color: var(--neutral-foreground-hint);\n padding-inline-end: calc(var(--design-unit, 4) * 1px);\n }\n\n .row-action p {\n margin-block: calc(var(--design-unit, 4) * 1px);\n }\n\n /* The empty placeholder: a style no row text can take, so a literal \"(blank)\" cannot pass for it. */\n .blank {\n font-style: italic;\n font-weight: 400;\n color: var(--neutral-foreground-hint);\n }\n\n .mark {\n font-weight: 600;\n padding-inline-end: calc(var(--design-unit, 4) * 1px);\n user-select: none;\n }\n\n /* The row's + or − sits beside its checkbox, not on the baseline under it (where − reads as _). */\n td.select {\n white-space: nowrap;\n }\n\n .select rapid-checkbox,\n td.select .mark {\n vertical-align: middle;\n }\n\n /* A gap from the checkbox, so the mark reads as the row's sign rather than part of the box. */\n td.select .mark {\n margin-inline-start: calc(var(--design-unit, 4) * 1.5px);\n }\n\n /* The strike-through belongs to the value, not to its − mark. */\n td.changed .was .mark {\n display: inline-block;\n text-decoration: none;\n }\n\n tr.refused {\n color: var(--neutral-foreground-hint);\n }\n\n /* A refusal is a sentence, and it spans the table: it wraps rather than running off it. */\n .problems {\n color: var(--error-fill-rest, #c00);\n white-space: normal;\n }\n\n /* Wraps, so in a narrow bubble the last button drops to a new line rather than off the edge. */\n .actions {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--design-unit, 4) * 2px);\n margin-top: calc(var(--design-unit, 4) * 2px);\n }\n\n /* The change request takes the width the buttons leave it. */\n .change-request {\n flex: 1 1 24ch;\n }\n\n /* The outcome's live region is always there; while the review is open it takes no room. */\n .closed:empty {\n margin: 0;\n }\n\n /* The count sits at the foot of the field, beside it rather than in its way. */\n .remaining {\n align-self: flex-end;\n white-space: nowrap;\n font-size: var(--type-ramp-minus-1-font-size, 0.875em);\n color: var(--neutral-foreground-hint);\n }\n`"
|
|
27952
|
+
"kind": "function",
|
|
27953
|
+
"name": "buildTimelineEntries",
|
|
27954
|
+
"return": {
|
|
27955
|
+
"type": {
|
|
27956
|
+
"text": "DiagnosticEntry[]"
|
|
27957
|
+
}
|
|
27958
|
+
},
|
|
27959
|
+
"parameters": [
|
|
27960
|
+
{
|
|
27961
|
+
"name": "input",
|
|
27962
|
+
"type": {
|
|
27963
|
+
"text": "{\n turnSnapshots: readonly TurnSnapshotLike[];\n messages: readonly ChatMessage[];\n metaEvents: readonly MetaEvent[];\n}"
|
|
27964
|
+
}
|
|
27965
|
+
}
|
|
27966
|
+
],
|
|
27967
|
+
"description": "Build the `message` / `turn` / `event` timeline entries from a driver's pull surfaces\n(`getRawHistory()` / `getTurnSnapshots()` / `getMetaEvents(sessionKey)`). Order within the array\nis message → turn → event; the caller (`assembleDebugLog`) sorts the whole timeline by timestamp,\nso this ordering only sets the co-timestamp tie-break. Pure."
|
|
27955
27968
|
}
|
|
27956
27969
|
],
|
|
27957
27970
|
"exports": [
|
|
27958
27971
|
{
|
|
27959
27972
|
"kind": "js",
|
|
27960
|
-
"name": "
|
|
27973
|
+
"name": "buildTimelineEntries",
|
|
27961
27974
|
"declaration": {
|
|
27962
|
-
"name": "
|
|
27963
|
-
"module": "src/
|
|
27975
|
+
"name": "buildTimelineEntries",
|
|
27976
|
+
"module": "src/state/persistence/build-timeline-entries.ts"
|
|
27964
27977
|
}
|
|
27965
27978
|
}
|
|
27966
27979
|
]
|
|
27967
27980
|
},
|
|
27968
27981
|
{
|
|
27969
27982
|
"kind": "javascript-module",
|
|
27970
|
-
"path": "src/
|
|
27983
|
+
"path": "src/state/persistence/debug-log-assembly.ts",
|
|
27971
27984
|
"declarations": [
|
|
27972
27985
|
{
|
|
27973
|
-
"kind": "
|
|
27974
|
-
"name": "
|
|
27975
|
-
"
|
|
27976
|
-
"
|
|
27986
|
+
"kind": "function",
|
|
27987
|
+
"name": "buildDiagnosticEntries",
|
|
27988
|
+
"return": {
|
|
27989
|
+
"type": {
|
|
27990
|
+
"text": "DiagnosticEntry[]"
|
|
27991
|
+
}
|
|
27977
27992
|
},
|
|
27978
|
-
"
|
|
27993
|
+
"parameters": [
|
|
27994
|
+
{
|
|
27995
|
+
"name": "input",
|
|
27996
|
+
"type": {
|
|
27997
|
+
"text": "{\n driver: AiDriver | undefined;\n /** The debug-log key the meta events are kept under; none, no events. */\n stateKey: string | undefined;\n /** The `meta-snapshot` entry for right now (see `buildMetaSnapshot`). */\n metaSnapshot: () => DiagnosticEntry;\n /** The transcript to use when the driver has no raw history: the host's own copy. */\n messages?: readonly ChatMessage[];\n}"
|
|
27998
|
+
}
|
|
27999
|
+
}
|
|
28000
|
+
],
|
|
28001
|
+
"description": "The current page's diagnostic entries (GENC-1351 §5.8): the debug-log timeline entries\n(`message`/`turn`/`event`), the driver's external diagnostics, and one `meta-snapshot` carrying\nthe export-time `meta` block. The assistant element reassembles these into the live log, and the\npersister's forward-capture path diffs them against what has already been appended to the stored\nstream. Extracted from the element so a host with no element (the headless session) derives its\nlog from the same code, not a second copy that could drift.\n\nDOM-free and framework-free."
|
|
28002
|
+
},
|
|
28003
|
+
{
|
|
28004
|
+
"kind": "function",
|
|
28005
|
+
"name": "lifetimeDebugLog",
|
|
28006
|
+
"return": {
|
|
28007
|
+
"type": {
|
|
28008
|
+
"text": "Promise<DebugLog>"
|
|
28009
|
+
}
|
|
28010
|
+
},
|
|
28011
|
+
"parameters": [
|
|
28012
|
+
{
|
|
28013
|
+
"name": "input",
|
|
28014
|
+
"type": {
|
|
28015
|
+
"text": "{\n provider: SessionPersistenceProvider | undefined;\n stateKey: string | undefined;\n /** Land the current page's unflushed diagnostics delta, so the log includes it. */\n flush: () => Promise<void> | void;\n /** The `meta-snapshot` entry for right now. */\n metaSnapshot: () => DiagnosticEntry;\n /** The current-page log, for when there is no stored stream to stitch. */\n fallback: () => DebugLog;\n}"
|
|
28016
|
+
}
|
|
28017
|
+
}
|
|
28018
|
+
],
|
|
28019
|
+
"description": "The debug log for the WHOLE session (GENC-1351 §5.8 / §5.10), not just this page's activity:\nthe persisted diagnostics stream with its stored `meta-snapshot`s replaced by a fresh one\n(`withFreshMetaSnapshot`), so its context and cost figures are current. When the provider\nstores no diagnostics, there is no key, the stream is empty or loading it fails, it is\n`fallback()` — the current-page log. Never throws.\n\nThe one derivation of the lifetime log: the assistant element's `getLifetimeDebugLog` and the\nheadless session both call it, because a second one drifts, and for this log that means silently\nunderstating spend."
|
|
27979
28020
|
}
|
|
27980
28021
|
],
|
|
27981
28022
|
"exports": [
|
|
27982
28023
|
{
|
|
27983
28024
|
"kind": "js",
|
|
27984
|
-
"name": "
|
|
28025
|
+
"name": "buildDiagnosticEntries",
|
|
27985
28026
|
"declaration": {
|
|
27986
|
-
"name": "
|
|
27987
|
-
"module": "src/
|
|
28027
|
+
"name": "buildDiagnosticEntries",
|
|
28028
|
+
"module": "src/state/persistence/debug-log-assembly.ts"
|
|
28029
|
+
}
|
|
28030
|
+
},
|
|
28031
|
+
{
|
|
28032
|
+
"kind": "js",
|
|
28033
|
+
"name": "lifetimeDebugLog",
|
|
28034
|
+
"declaration": {
|
|
28035
|
+
"name": "lifetimeDebugLog",
|
|
28036
|
+
"module": "src/state/persistence/debug-log-assembly.ts"
|
|
27988
28037
|
}
|
|
27989
28038
|
}
|
|
27990
28039
|
]
|
|
27991
28040
|
},
|
|
27992
28041
|
{
|
|
27993
28042
|
"kind": "javascript-module",
|
|
27994
|
-
"path": "src/
|
|
28043
|
+
"path": "src/state/persistence/diagnostics-cursors.ts",
|
|
27995
28044
|
"declarations": [
|
|
27996
28045
|
{
|
|
27997
|
-
"kind": "
|
|
27998
|
-
"name": "
|
|
27999
|
-
"
|
|
28000
|
-
"
|
|
28046
|
+
"kind": "function",
|
|
28047
|
+
"name": "getDiagnosticsCursors",
|
|
28048
|
+
"return": {
|
|
28049
|
+
"type": {
|
|
28050
|
+
"text": "DiagnosticsCursors"
|
|
28051
|
+
}
|
|
28001
28052
|
},
|
|
28002
|
-
"
|
|
28003
|
-
"description": "The tag the bridge asks for by name when it requests the review interaction."
|
|
28004
|
-
},
|
|
28005
|
-
{
|
|
28006
|
-
"kind": "class",
|
|
28007
|
-
"description": "The review a user reads before anything is written.",
|
|
28008
|
-
"name": "GenesisWriteReview",
|
|
28009
|
-
"members": [
|
|
28010
|
-
{
|
|
28011
|
-
"kind": "field",
|
|
28012
|
-
"name": "interactionId",
|
|
28013
|
-
"type": {
|
|
28014
|
-
"text": "string"
|
|
28015
|
-
},
|
|
28016
|
-
"default": "''",
|
|
28017
|
-
"description": "Set by the interaction wrapper on every (re)mount."
|
|
28018
|
-
},
|
|
28019
|
-
{
|
|
28020
|
-
"kind": "field",
|
|
28021
|
-
"name": "interaction",
|
|
28022
|
-
"type": {
|
|
28023
|
-
"text": "AiChatInteraction<ReviewModel, GenesisReviewPayload>"
|
|
28024
|
-
},
|
|
28025
|
-
"description": "The host-set descriptor: the model to render while pending, the outcome once resolved."
|
|
28026
|
-
},
|
|
28027
|
-
{
|
|
28028
|
-
"kind": "field",
|
|
28029
|
-
"name": "selected",
|
|
28030
|
-
"type": {
|
|
28031
|
-
"text": "number[]"
|
|
28032
|
-
},
|
|
28033
|
-
"description": "Chosen rows, by index. Starts empty — see canWrite and the model's own reasoning."
|
|
28034
|
-
},
|
|
28035
|
-
{
|
|
28036
|
-
"kind": "field",
|
|
28037
|
-
"name": "asking",
|
|
28038
|
-
"type": {
|
|
28039
|
-
"text": "boolean"
|
|
28040
|
-
},
|
|
28041
|
-
"default": "false",
|
|
28042
|
-
"description": "True while the user is writing what they want changed."
|
|
28043
|
-
},
|
|
28044
|
-
{
|
|
28045
|
-
"kind": "field",
|
|
28046
|
-
"name": "changeText",
|
|
28047
|
-
"type": {
|
|
28048
|
-
"text": "string"
|
|
28049
|
-
},
|
|
28050
|
-
"default": "''",
|
|
28051
|
-
"description": "What they have typed so far."
|
|
28052
|
-
},
|
|
28053
|
+
"parameters": [
|
|
28053
28054
|
{
|
|
28054
|
-
"
|
|
28055
|
-
"name": "announcement",
|
|
28055
|
+
"name": "key",
|
|
28056
28056
|
"type": {
|
|
28057
28057
|
"text": "string"
|
|
28058
|
-
}
|
|
28059
|
-
|
|
28060
|
-
|
|
28061
|
-
|
|
28062
|
-
|
|
28063
|
-
|
|
28064
|
-
|
|
28065
|
-
|
|
28066
|
-
|
|
28067
|
-
|
|
28068
|
-
"
|
|
28069
|
-
|
|
28070
|
-
|
|
28058
|
+
}
|
|
28059
|
+
}
|
|
28060
|
+
],
|
|
28061
|
+
"description": "The shared cursors for `key`, created (empty) on first access. @internal"
|
|
28062
|
+
},
|
|
28063
|
+
{
|
|
28064
|
+
"kind": "function",
|
|
28065
|
+
"name": "clearDiagnosticsCursorRegistry",
|
|
28066
|
+
"return": {
|
|
28067
|
+
"type": {
|
|
28068
|
+
"text": "void"
|
|
28069
|
+
}
|
|
28070
|
+
},
|
|
28071
|
+
"description": "Drop all cursors — test isolation only. @internal"
|
|
28072
|
+
}
|
|
28073
|
+
],
|
|
28074
|
+
"exports": [
|
|
28075
|
+
{
|
|
28076
|
+
"kind": "js",
|
|
28077
|
+
"name": "getDiagnosticsCursors",
|
|
28078
|
+
"declaration": {
|
|
28079
|
+
"name": "getDiagnosticsCursors",
|
|
28080
|
+
"module": "src/state/persistence/diagnostics-cursors.ts"
|
|
28081
|
+
}
|
|
28082
|
+
},
|
|
28083
|
+
{
|
|
28084
|
+
"kind": "js",
|
|
28085
|
+
"name": "clearDiagnosticsCursorRegistry",
|
|
28086
|
+
"declaration": {
|
|
28087
|
+
"name": "clearDiagnosticsCursorRegistry",
|
|
28088
|
+
"module": "src/state/persistence/diagnostics-cursors.ts"
|
|
28089
|
+
}
|
|
28090
|
+
}
|
|
28091
|
+
]
|
|
28092
|
+
},
|
|
28093
|
+
{
|
|
28094
|
+
"kind": "javascript-module",
|
|
28095
|
+
"path": "src/state/persistence/diagnostics.ts",
|
|
28096
|
+
"declarations": [
|
|
28097
|
+
{
|
|
28098
|
+
"kind": "function",
|
|
28099
|
+
"name": "assembleDebugLog",
|
|
28100
|
+
"return": {
|
|
28101
|
+
"type": {
|
|
28102
|
+
"text": "DebugLog"
|
|
28103
|
+
}
|
|
28104
|
+
},
|
|
28105
|
+
"parameters": [
|
|
28071
28106
|
{
|
|
28072
|
-
"
|
|
28073
|
-
"name": "resizeObserver",
|
|
28107
|
+
"name": "entries",
|
|
28074
28108
|
"type": {
|
|
28075
|
-
"text": "
|
|
28076
|
-
}
|
|
28077
|
-
"privacy": "private"
|
|
28109
|
+
"text": "DiagnosticEntry[]"
|
|
28110
|
+
}
|
|
28078
28111
|
},
|
|
28079
28112
|
{
|
|
28080
|
-
"
|
|
28081
|
-
"name": "tableWidth",
|
|
28113
|
+
"name": "readme",
|
|
28082
28114
|
"type": {
|
|
28083
|
-
"text": "
|
|
28084
|
-
}
|
|
28085
|
-
|
|
28086
|
-
|
|
28087
|
-
|
|
28088
|
-
|
|
28115
|
+
"text": "readonly string[]"
|
|
28116
|
+
}
|
|
28117
|
+
}
|
|
28118
|
+
],
|
|
28119
|
+
"description": "Reassemble diagnostic entries into the `{ readme, sessionUsage, timeline, meta }`\ndebug-log shape (GENC-1351 §5.8). `timeline` = the `message`/`turn`/`event` entries sorted\nby ISO `timestamp` (kind-rank tie-break). `meta` = the **newest** `meta-snapshot`'s\nblock only — a \"state at export\" photo, matching the single-page log. The older\nsnapshots are intentionally dropped: the per-turn evolution they would show is\nalready in the timeline (`turn.agentSnapshot` + `context.updated` events), so\nkeeping them would just repeat the bulky, near-static `agentSummary`. `readme` =\nthe passed (current) constant. `sessionUsage` = that same newest snapshot's\n`meta.context.sessionUsage`, lifted to the top level. Pure — reused for both the\nlive current-page log and the reassembled lifetime log stitched from the persisted\nstream, so both come out shape-identical.\n\nNOTE for a caller stitching a STORED stream (a headless consumer harvesting its own\nlifetime log, say): the newest stored `meta-snapshot` is frozen at the last\nconfig-signature change, so `meta` and `sessionUsage` are as old as that unless you\npass a fresh snapshot of your own — withFreshMetaSnapshot does exactly that,\nand the element's download path goes through it."
|
|
28120
|
+
},
|
|
28121
|
+
{
|
|
28122
|
+
"kind": "function",
|
|
28123
|
+
"name": "withFreshMetaSnapshot",
|
|
28124
|
+
"return": {
|
|
28125
|
+
"type": {
|
|
28126
|
+
"text": "DiagnosticEntry[]"
|
|
28127
|
+
}
|
|
28128
|
+
},
|
|
28129
|
+
"parameters": [
|
|
28089
28130
|
{
|
|
28090
|
-
"
|
|
28091
|
-
"name": "answeredNow",
|
|
28131
|
+
"name": "stored",
|
|
28092
28132
|
"type": {
|
|
28093
|
-
"text": "
|
|
28094
|
-
}
|
|
28095
|
-
"privacy": "private",
|
|
28096
|
-
"description": "This element's own answer, until `sayOutcome` has said it."
|
|
28133
|
+
"text": "readonly DiagnosticEntry[]"
|
|
28134
|
+
}
|
|
28097
28135
|
},
|
|
28098
28136
|
{
|
|
28099
|
-
"
|
|
28100
|
-
"name": "heldAnswer",
|
|
28137
|
+
"name": "fresh",
|
|
28101
28138
|
"type": {
|
|
28102
|
-
"text": "
|
|
28103
|
-
}
|
|
28104
|
-
"privacy": "private",
|
|
28105
|
-
"description": "The answer this element shows while its outcome is still to come, whose `focused` it keeps\ncurrent. The rebuild that brings the outcome gives focus back only if this one held it when\nit was removed: a user who has since moved to the chat input keeps their place."
|
|
28106
|
-
},
|
|
28107
|
-
{
|
|
28108
|
-
"kind": "method",
|
|
28109
|
-
"name": "fitLayout",
|
|
28110
|
-
"privacy": "private",
|
|
28111
|
-
"return": {
|
|
28112
|
-
"type": {
|
|
28113
|
-
"text": "void"
|
|
28114
|
-
}
|
|
28115
|
-
},
|
|
28116
|
-
"description": "Stacks the rows when the table is wider than the review, and goes back to the table once the\nreview is as wide as the table was. While stacked there is no table to measure, so the width it\nhad is kept from the last time it was one."
|
|
28117
|
-
},
|
|
28118
|
-
{
|
|
28119
|
-
"kind": "field",
|
|
28120
|
-
"name": "model",
|
|
28121
|
-
"type": {
|
|
28122
|
-
"text": "ReviewModel | undefined"
|
|
28123
|
-
},
|
|
28124
|
-
"description": "The rows, whether the review is still open or already resolved: a user who has approved a\nwrite should still be able to see what they approved. Acting on it is what `settled`\nstops, not reading it.",
|
|
28125
|
-
"readonly": true
|
|
28126
|
-
},
|
|
28127
|
-
{
|
|
28128
|
-
"kind": "field",
|
|
28129
|
-
"name": "resolved",
|
|
28130
|
-
"type": {
|
|
28131
|
-
"text": "boolean"
|
|
28132
|
-
},
|
|
28133
|
-
"readonly": true
|
|
28134
|
-
},
|
|
28135
|
-
{
|
|
28136
|
-
"kind": "field",
|
|
28137
|
-
"name": "customCodeLine",
|
|
28138
|
-
"type": {
|
|
28139
|
-
"text": "string"
|
|
28140
|
-
},
|
|
28141
|
-
"description": "What the review says about custom code the event runs, or `''` when it runs none. Read from\nthe model, which history keeps, so it is there whether the review is open, resolved or\nre-mounted. Not repeated in the closed summary: the resolved review still shows it, and the\nsummary's live region would announce it as though code had run.",
|
|
28142
|
-
"readonly": true
|
|
28143
|
-
},
|
|
28144
|
-
{
|
|
28145
|
-
"kind": "field",
|
|
28146
|
-
"name": "rowActionHeading",
|
|
28147
|
-
"type": {
|
|
28148
|
-
"text": "string"
|
|
28149
|
-
},
|
|
28150
|
-
"description": "A row action's header, or `''` for any other write: see `rowActionHeading`.",
|
|
28151
|
-
"readonly": true
|
|
28152
|
-
},
|
|
28153
|
-
{
|
|
28154
|
-
"kind": "field",
|
|
28155
|
-
"name": "tableLabel",
|
|
28156
|
-
"type": {
|
|
28157
|
-
"text": "string"
|
|
28158
|
-
},
|
|
28159
|
-
"description": "The table's accessible name. A run's names its handler and table, as its header does.",
|
|
28160
|
-
"readonly": true
|
|
28161
|
-
},
|
|
28162
|
-
{
|
|
28163
|
-
"kind": "field",
|
|
28164
|
-
"name": "rowActionLines",
|
|
28165
|
-
"type": {
|
|
28166
|
-
"text": "string[]"
|
|
28167
|
-
},
|
|
28168
|
-
"description": "The lines under a row action's header, from the model, so a re-mount says them too.",
|
|
28169
|
-
"readonly": true
|
|
28170
|
-
},
|
|
28171
|
-
{
|
|
28172
|
-
"kind": "field",
|
|
28173
|
-
"name": "answered",
|
|
28174
|
-
"type": {
|
|
28175
|
-
"text": "boolean"
|
|
28176
|
-
},
|
|
28177
|
-
"privacy": "private",
|
|
28178
|
-
"default": "false",
|
|
28179
|
-
"description": "Set when this element sends its answer. The host marks the review resolved after that, and\nuntil it did, a second click sent a second answer — a Deny straight after a Write included."
|
|
28180
|
-
},
|
|
28181
|
-
{
|
|
28182
|
-
"kind": "field",
|
|
28183
|
-
"name": "settled",
|
|
28184
|
-
"type": {
|
|
28185
|
-
"text": "boolean"
|
|
28186
|
-
},
|
|
28187
|
-
"description": "Whether the review is past taking input: it has resolved, or it has sent its answer. Every\naction checks this rather than `resolved`, which is still false in between.",
|
|
28188
|
-
"readonly": true
|
|
28189
|
-
},
|
|
28190
|
-
{
|
|
28191
|
-
"kind": "field",
|
|
28192
|
-
"name": "approved",
|
|
28193
|
-
"type": {
|
|
28194
|
-
"text": "number[]"
|
|
28195
|
-
},
|
|
28196
|
-
"description": "The rows the user approved, once the review has resolved — empty for a rejection or a\ntimeout, and while it is still open.",
|
|
28197
|
-
"readonly": true
|
|
28198
|
-
},
|
|
28199
|
-
{
|
|
28200
|
-
"kind": "field",
|
|
28201
|
-
"name": "outcome",
|
|
28202
|
-
"type": {
|
|
28203
|
-
"text": "ReviewOutcome | undefined"
|
|
28204
|
-
},
|
|
28205
|
-
"description": "What came of the approved rows, once the write tool has recorded it: see `ReviewOutcome`.\nOnly for an approval — nothing else writes — and only in the shape the review can read.",
|
|
28206
|
-
"readonly": true
|
|
28207
|
-
},
|
|
28208
|
-
{
|
|
28209
|
-
"kind": "method",
|
|
28210
|
-
"name": "fateOf",
|
|
28211
|
-
"return": {
|
|
28212
|
-
"type": {
|
|
28213
|
-
"text": "ReviewOutcome['rows'][number] | undefined"
|
|
28214
|
-
}
|
|
28215
|
-
},
|
|
28216
|
-
"parameters": [
|
|
28217
|
-
{
|
|
28218
|
-
"name": "index",
|
|
28219
|
-
"type": {
|
|
28220
|
-
"text": "number"
|
|
28221
|
-
}
|
|
28222
|
-
}
|
|
28223
|
-
],
|
|
28224
|
-
"description": "An approved row's recorded fate, when there is one."
|
|
28225
|
-
},
|
|
28226
|
-
{
|
|
28227
|
-
"kind": "field",
|
|
28228
|
-
"name": "closedSummary",
|
|
28229
|
-
"type": {
|
|
28230
|
-
"text": "string"
|
|
28231
|
-
},
|
|
28232
|
-
"description": "What a CLOSED review can truthfully say about its outcome.",
|
|
28233
|
-
"readonly": true
|
|
28234
|
-
},
|
|
28235
|
-
{
|
|
28236
|
-
"kind": "method",
|
|
28237
|
-
"name": "interactionChanged",
|
|
28238
|
-
"return": {
|
|
28239
|
-
"type": {
|
|
28240
|
-
"text": "void"
|
|
28241
|
-
}
|
|
28242
|
-
},
|
|
28243
|
-
"description": "Every mount is a fresh element whose selection starts empty, so each state says where its\nselection comes from."
|
|
28244
|
-
},
|
|
28245
|
-
{
|
|
28246
|
-
"kind": "method",
|
|
28247
|
-
"name": "sayOutcome",
|
|
28248
|
-
"privacy": "private",
|
|
28249
|
-
"return": {
|
|
28250
|
-
"type": {
|
|
28251
|
-
"text": "void"
|
|
28252
|
-
}
|
|
28253
|
-
},
|
|
28254
|
-
"description": "Puts the outcome in the live region, so that an answer given just now is heard, and one read\nback from history is not."
|
|
28255
|
-
},
|
|
28256
|
-
{
|
|
28257
|
-
"kind": "method",
|
|
28258
|
-
"name": "hasFocus",
|
|
28259
|
-
"privacy": "private",
|
|
28260
|
-
"return": {
|
|
28261
|
-
"type": {
|
|
28262
|
-
"text": "boolean"
|
|
28263
|
-
}
|
|
28264
|
-
},
|
|
28265
|
-
"description": "Whether focus is on something inside this review, however deep in shadow roots."
|
|
28266
|
-
},
|
|
28267
|
-
{
|
|
28268
|
-
"kind": "method",
|
|
28269
|
-
"name": "park",
|
|
28270
|
-
"privacy": "private",
|
|
28271
|
-
"return": {
|
|
28272
|
-
"type": {
|
|
28273
|
-
"text": "void"
|
|
28274
|
-
}
|
|
28275
|
-
},
|
|
28276
|
-
"description": "Keeps what the user has done so far on the interaction's context, where the next mount of a\nstill-open review finds it."
|
|
28277
|
-
},
|
|
28278
|
-
{
|
|
28279
|
-
"kind": "field",
|
|
28280
|
-
"name": "rowsSelected",
|
|
28281
|
-
"type": {
|
|
28282
|
-
"text": "number"
|
|
28283
|
-
},
|
|
28284
|
-
"readonly": true
|
|
28285
|
-
},
|
|
28286
|
-
{
|
|
28287
|
-
"kind": "field",
|
|
28288
|
-
"name": "writable",
|
|
28289
|
-
"type": {
|
|
28290
|
-
"text": "boolean"
|
|
28291
|
-
},
|
|
28292
|
-
"description": "Whether Write may fire: never on an empty selection.",
|
|
28293
|
-
"readonly": true
|
|
28294
|
-
},
|
|
28295
|
-
{
|
|
28296
|
-
"kind": "field",
|
|
28297
|
-
"name": "allSelected",
|
|
28298
|
-
"type": {
|
|
28299
|
-
"text": "boolean"
|
|
28300
|
-
},
|
|
28301
|
-
"readonly": true
|
|
28302
|
-
},
|
|
28303
|
-
{
|
|
28304
|
-
"kind": "method",
|
|
28305
|
-
"name": "isSelected",
|
|
28306
|
-
"return": {
|
|
28307
|
-
"type": {
|
|
28308
|
-
"text": "boolean"
|
|
28309
|
-
}
|
|
28310
|
-
},
|
|
28311
|
-
"parameters": [
|
|
28312
|
-
{
|
|
28313
|
-
"name": "index",
|
|
28314
|
-
"type": {
|
|
28315
|
-
"text": "number"
|
|
28316
|
-
}
|
|
28317
|
-
}
|
|
28318
|
-
]
|
|
28319
|
-
},
|
|
28320
|
-
{
|
|
28321
|
-
"kind": "method",
|
|
28322
|
-
"name": "setSelected",
|
|
28323
|
-
"return": {
|
|
28324
|
-
"type": {
|
|
28325
|
-
"text": "void"
|
|
28326
|
-
}
|
|
28327
|
-
},
|
|
28328
|
-
"parameters": [
|
|
28329
|
-
{
|
|
28330
|
-
"name": "index",
|
|
28331
|
-
"type": {
|
|
28332
|
-
"text": "number"
|
|
28333
|
-
}
|
|
28334
|
-
},
|
|
28335
|
-
{
|
|
28336
|
-
"name": "checked",
|
|
28337
|
-
"type": {
|
|
28338
|
-
"text": "boolean"
|
|
28339
|
-
}
|
|
28340
|
-
}
|
|
28341
|
-
],
|
|
28342
|
-
"description": "Makes one row agree with what its checkbox now says. A row the bridge refused cannot be\nchosen, whatever the markup does."
|
|
28343
|
-
},
|
|
28344
|
-
{
|
|
28345
|
-
"kind": "method",
|
|
28346
|
-
"name": "setAll",
|
|
28347
|
-
"return": {
|
|
28348
|
-
"type": {
|
|
28349
|
-
"text": "void"
|
|
28350
|
-
}
|
|
28351
|
-
},
|
|
28352
|
-
"parameters": [
|
|
28353
|
-
{
|
|
28354
|
-
"name": "checked",
|
|
28355
|
-
"type": {
|
|
28356
|
-
"text": "boolean"
|
|
28357
|
-
}
|
|
28358
|
-
}
|
|
28359
|
-
],
|
|
28360
|
-
"description": "One click for a good batch — a deliberate one, which is the point of starting empty."
|
|
28361
|
-
},
|
|
28362
|
-
{
|
|
28363
|
-
"kind": "method",
|
|
28364
|
-
"name": "write",
|
|
28365
|
-
"return": {
|
|
28366
|
-
"type": {
|
|
28367
|
-
"text": "void"
|
|
28368
|
-
}
|
|
28369
|
-
}
|
|
28370
|
-
},
|
|
28371
|
-
{
|
|
28372
|
-
"kind": "method",
|
|
28373
|
-
"name": "resolve",
|
|
28374
|
-
"privacy": "private",
|
|
28375
|
-
"return": {
|
|
28376
|
-
"type": {
|
|
28377
|
-
"text": "void"
|
|
28378
|
-
}
|
|
28379
|
-
},
|
|
28380
|
-
"parameters": [
|
|
28381
|
-
{
|
|
28382
|
-
"name": "result",
|
|
28383
|
-
"type": {
|
|
28384
|
-
"text": "GenesisWriteReviewCompletedEventDetail"
|
|
28385
|
-
}
|
|
28386
|
-
}
|
|
28387
|
-
],
|
|
28388
|
-
"description": "The one way this widget talks back: `interaction-completed`, exactly once."
|
|
28389
|
-
},
|
|
28390
|
-
{
|
|
28391
|
-
"kind": "method",
|
|
28392
|
-
"name": "deny",
|
|
28393
|
-
"return": {
|
|
28394
|
-
"type": {
|
|
28395
|
-
"text": "void"
|
|
28396
|
-
}
|
|
28397
|
-
},
|
|
28398
|
-
"description": "No, and nothing else: one click, no reason. Denying is the safe direction — nothing is\nwritten, and the tool is not proposed again this turn — so it needs no confirmation. A reason\nthe user wants acted on is a change request, which is what \"Ask for changes\" is for; a deny\nreason travelled inside a result the model is told to treat as data, and was ignored."
|
|
28399
|
-
},
|
|
28400
|
-
{
|
|
28401
|
-
"kind": "method",
|
|
28402
|
-
"name": "startAsking",
|
|
28403
|
-
"return": {
|
|
28404
|
-
"type": {
|
|
28405
|
-
"text": "void"
|
|
28406
|
-
}
|
|
28407
|
-
},
|
|
28408
|
-
"description": "Opens the change request, and puts the cursor in it."
|
|
28409
|
-
},
|
|
28410
|
-
{
|
|
28411
|
-
"kind": "method",
|
|
28412
|
-
"name": "back",
|
|
28413
|
-
"return": {
|
|
28414
|
-
"type": {
|
|
28415
|
-
"text": "void"
|
|
28416
|
-
}
|
|
28417
|
-
},
|
|
28418
|
-
"description": "Closes the change request without sending it; the text is kept for a second try."
|
|
28419
|
-
},
|
|
28420
|
-
{
|
|
28421
|
-
"kind": "method",
|
|
28422
|
-
"name": "setChangeText",
|
|
28423
|
-
"return": {
|
|
28424
|
-
"type": {
|
|
28425
|
-
"text": "void"
|
|
28426
|
-
}
|
|
28427
|
-
},
|
|
28428
|
-
"parameters": [
|
|
28429
|
-
{
|
|
28430
|
-
"name": "text",
|
|
28431
|
-
"type": {
|
|
28432
|
-
"text": "string"
|
|
28433
|
-
}
|
|
28434
|
-
}
|
|
28435
|
-
],
|
|
28436
|
-
"description": "The change request as the user types it, until the review has its answer."
|
|
28437
|
-
},
|
|
28438
|
-
{
|
|
28439
|
-
"kind": "field",
|
|
28440
|
-
"name": "charactersLeft",
|
|
28441
|
-
"type": {
|
|
28442
|
-
"text": "number"
|
|
28443
|
-
},
|
|
28444
|
-
"description": "How much more the change request can take. The field stops at the cap without a sound, so the\ncount is on screen rather than discovered by typing into it.",
|
|
28445
|
-
"readonly": true
|
|
28446
|
-
},
|
|
28447
|
-
{
|
|
28448
|
-
"kind": "field",
|
|
28449
|
-
"name": "canSendChanges",
|
|
28450
|
-
"type": {
|
|
28451
|
-
"text": "boolean"
|
|
28452
|
-
},
|
|
28453
|
-
"description": "Whether there is a change to send: text that shows something.",
|
|
28454
|
-
"readonly": true
|
|
28455
|
-
},
|
|
28456
|
-
{
|
|
28457
|
-
"kind": "method",
|
|
28458
|
-
"name": "sendChanges",
|
|
28459
|
-
"return": {
|
|
28460
|
-
"type": {
|
|
28461
|
-
"text": "void"
|
|
28462
|
-
}
|
|
28463
|
-
},
|
|
28464
|
-
"description": "Sends the change request. Nothing is written, whatever is ticked: the rows that were ticked\ntravel as context for the next proposal, which the user approves in a fresh review. They are\nthe review's own indexes, in the order it shows them, so they can be matched against the rows\nof the tool's result. `userMessage` shows the request on the user's side of the chat, as the\nwords the model gets (see `literalMarkdown`); the driver never sends that to the model."
|
|
28465
|
-
},
|
|
28466
|
-
{
|
|
28467
|
-
"kind": "method",
|
|
28468
|
-
"name": "focusSoon",
|
|
28469
|
-
"privacy": "private",
|
|
28470
|
-
"return": {
|
|
28471
|
-
"type": {
|
|
28472
|
-
"text": "void"
|
|
28473
|
-
}
|
|
28474
|
-
},
|
|
28475
|
-
"parameters": [
|
|
28476
|
-
{
|
|
28477
|
-
"name": "selector",
|
|
28478
|
-
"type": {
|
|
28479
|
-
"text": "string"
|
|
28480
|
-
}
|
|
28481
|
-
},
|
|
28482
|
-
{
|
|
28483
|
-
"name": "inner",
|
|
28484
|
-
"optional": true,
|
|
28485
|
-
"type": {
|
|
28486
|
-
"text": "string"
|
|
28487
|
-
}
|
|
28488
|
-
}
|
|
28489
|
-
],
|
|
28490
|
-
"description": "Focuses an element the next render adds. The design-system controls do not delegate focus,\nso this drills into the control's own shadow root (see the chat input's\n`maybeAutoFocusChatInput`), and falls back to the host."
|
|
28491
|
-
}
|
|
28492
|
-
],
|
|
28493
|
-
"events": [
|
|
28494
|
-
{
|
|
28495
|
-
"description": "Fired once, when the user writes, asks for changes or denies. detail: `GenesisWriteReviewCompletedEventDetail`",
|
|
28496
|
-
"name": "interaction-completed"
|
|
28139
|
+
"text": "DiagnosticEntry"
|
|
28140
|
+
}
|
|
28497
28141
|
}
|
|
28498
28142
|
],
|
|
28499
|
-
"
|
|
28500
|
-
"name": "GenesisElement",
|
|
28501
|
-
"package": "@genesislcap/web-core"
|
|
28502
|
-
},
|
|
28503
|
-
"tagName": "GENESIS_WRITE_REVIEW",
|
|
28504
|
-
"customElement": true
|
|
28143
|
+
"description": "A stored diagnostics stream with its `meta-snapshot`s replaced by `fresh` — what to\npass assembleDebugLog when reassembling a persisted stream for export.\n\nThe stored snapshots are dropped rather than out-timestamped. `assembleDebugLog` keeps\nwhichever claims the later time, and a stream written on another machine can carry a\nskewed clock; `fresh` is built from live state and so is the more current by\nconstruction. Only one snapshot ever survives reassembly, so the count is unchanged —\nthough a snapshot taken while the driver is unwired (mid-popout) can leave\n`activeFoldStack`/`activeDebugSnapshot` unset where a stored one had them. The figures\nthis exists for — the context block and `sessionUsage` — read the session store and\nelement props, which survive an unwire.\n\nPure, and separate from the element for that reason: the swap it performs is the fix\nfor a silent bug (a lifetime log reporting near-zero spend against a transcript full of\npriced messages), so it needs to be testable without mounting anything."
|
|
28505
28144
|
}
|
|
28506
28145
|
],
|
|
28507
28146
|
"exports": [
|
|
28508
28147
|
{
|
|
28509
28148
|
"kind": "js",
|
|
28510
|
-
"name": "
|
|
28149
|
+
"name": "assembleDebugLog",
|
|
28511
28150
|
"declaration": {
|
|
28512
|
-
"name": "
|
|
28513
|
-
"module": "src/
|
|
28151
|
+
"name": "assembleDebugLog",
|
|
28152
|
+
"module": "src/state/persistence/diagnostics.ts"
|
|
28514
28153
|
}
|
|
28515
28154
|
},
|
|
28516
28155
|
{
|
|
28517
28156
|
"kind": "js",
|
|
28518
|
-
"name": "
|
|
28519
|
-
"declaration": {
|
|
28520
|
-
"name": "GenesisWriteReview",
|
|
28521
|
-
"module": "src/genesis/write-review/write-review.ts"
|
|
28522
|
-
}
|
|
28523
|
-
},
|
|
28524
|
-
{
|
|
28525
|
-
"kind": "custom-element-definition",
|
|
28526
|
-
"name": "GENESIS_WRITE_REVIEW",
|
|
28157
|
+
"name": "withFreshMetaSnapshot",
|
|
28527
28158
|
"declaration": {
|
|
28528
|
-
"name": "
|
|
28529
|
-
"module": "src/
|
|
28159
|
+
"name": "withFreshMetaSnapshot",
|
|
28160
|
+
"module": "src/state/persistence/diagnostics.ts"
|
|
28530
28161
|
}
|
|
28531
28162
|
}
|
|
28532
28163
|
]
|
|
28533
28164
|
},
|
|
28534
28165
|
{
|
|
28535
28166
|
"kind": "javascript-module",
|
|
28536
|
-
"path": "src/state/persistence/
|
|
28537
|
-
"declarations": [
|
|
28538
|
-
{
|
|
28539
|
-
"kind": "function",
|
|
28540
|
-
"name": "buildTimelineEntries",
|
|
28541
|
-
"return": {
|
|
28542
|
-
"type": {
|
|
28543
|
-
"text": "DiagnosticEntry[]"
|
|
28544
|
-
}
|
|
28545
|
-
},
|
|
28546
|
-
"parameters": [
|
|
28547
|
-
{
|
|
28548
|
-
"name": "input",
|
|
28549
|
-
"type": {
|
|
28550
|
-
"text": "{\n turnSnapshots: readonly TurnSnapshotLike[];\n messages: readonly ChatMessage[];\n metaEvents: readonly MetaEvent[];\n}"
|
|
28551
|
-
}
|
|
28552
|
-
}
|
|
28553
|
-
],
|
|
28554
|
-
"description": "Build the `message` / `turn` / `event` timeline entries from a driver's pull surfaces\n(`getRawHistory()` / `getTurnSnapshots()` / `getMetaEvents(sessionKey)`). Order within the array\nis message → turn → event; the caller (`assembleDebugLog`) sorts the whole timeline by timestamp,\nso this ordering only sets the co-timestamp tie-break. Pure."
|
|
28555
|
-
}
|
|
28556
|
-
],
|
|
28167
|
+
"path": "src/state/persistence/index.ts",
|
|
28168
|
+
"declarations": [],
|
|
28557
28169
|
"exports": [
|
|
28558
28170
|
{
|
|
28559
28171
|
"kind": "js",
|
|
28560
|
-
"name": "
|
|
28172
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
28561
28173
|
"declaration": {
|
|
28562
|
-
"name": "
|
|
28563
|
-
"module": "
|
|
28174
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
28175
|
+
"module": "./session-snapshot"
|
|
28564
28176
|
}
|
|
28565
|
-
}
|
|
28566
|
-
]
|
|
28567
|
-
},
|
|
28568
|
-
{
|
|
28569
|
-
"kind": "javascript-module",
|
|
28570
|
-
"path": "src/state/persistence/debug-log-assembly.ts",
|
|
28571
|
-
"declarations": [
|
|
28177
|
+
},
|
|
28572
28178
|
{
|
|
28573
|
-
"kind": "
|
|
28574
|
-
"name": "
|
|
28575
|
-
"
|
|
28576
|
-
"
|
|
28577
|
-
|
|
28578
|
-
|
|
28579
|
-
},
|
|
28580
|
-
"parameters": [
|
|
28581
|
-
{
|
|
28582
|
-
"name": "input",
|
|
28583
|
-
"type": {
|
|
28584
|
-
"text": "{\n driver: AiDriver | undefined;\n /** The debug-log key the meta events are kept under; none, no events. */\n stateKey: string | undefined;\n /** The `meta-snapshot` entry for right now (see `buildMetaSnapshot`). */\n metaSnapshot: () => DiagnosticEntry;\n /** The transcript to use when the driver has no raw history: the host's own copy. */\n messages?: readonly ChatMessage[];\n}"
|
|
28585
|
-
}
|
|
28586
|
-
}
|
|
28587
|
-
],
|
|
28588
|
-
"description": "The current page's diagnostic entries (GENC-1351 §5.8): the debug-log timeline entries\n(`message`/`turn`/`event`), the driver's external diagnostics, and one `meta-snapshot` carrying\nthe export-time `meta` block. The assistant element reassembles these into the live log, and the\npersister's forward-capture path diffs them against what has already been appended to the stored\nstream. Extracted from the element so a host with no element (the headless session) derives its\nlog from the same code, not a second copy that could drift.\n\nDOM-free and framework-free."
|
|
28179
|
+
"kind": "js",
|
|
28180
|
+
"name": "PersistedSession",
|
|
28181
|
+
"declaration": {
|
|
28182
|
+
"name": "PersistedSession",
|
|
28183
|
+
"module": "./session-snapshot"
|
|
28184
|
+
}
|
|
28589
28185
|
},
|
|
28590
28186
|
{
|
|
28591
|
-
"kind": "
|
|
28592
|
-
"name": "
|
|
28593
|
-
"
|
|
28594
|
-
"
|
|
28595
|
-
|
|
28596
|
-
|
|
28597
|
-
|
|
28598
|
-
|
|
28599
|
-
|
|
28600
|
-
|
|
28601
|
-
|
|
28602
|
-
|
|
28603
|
-
|
|
28604
|
-
|
|
28605
|
-
|
|
28606
|
-
|
|
28607
|
-
|
|
28608
|
-
|
|
28609
|
-
|
|
28187
|
+
"kind": "js",
|
|
28188
|
+
"name": "PersistedCondensePolicy",
|
|
28189
|
+
"declaration": {
|
|
28190
|
+
"name": "PersistedCondensePolicy",
|
|
28191
|
+
"module": "../../utils/condense-history"
|
|
28192
|
+
}
|
|
28193
|
+
},
|
|
28194
|
+
{
|
|
28195
|
+
"kind": "js",
|
|
28196
|
+
"name": "WebStorageSessionProvider",
|
|
28197
|
+
"declaration": {
|
|
28198
|
+
"name": "WebStorageSessionProvider",
|
|
28199
|
+
"module": "./session-persistence-provider"
|
|
28200
|
+
}
|
|
28201
|
+
},
|
|
28202
|
+
{
|
|
28203
|
+
"kind": "js",
|
|
28204
|
+
"name": "SessionPersistenceProvider",
|
|
28205
|
+
"declaration": {
|
|
28206
|
+
"name": "SessionPersistenceProvider",
|
|
28207
|
+
"module": "./session-persistence-provider"
|
|
28208
|
+
}
|
|
28209
|
+
},
|
|
28210
|
+
{
|
|
28211
|
+
"kind": "js",
|
|
28212
|
+
"name": "SessionPersistenceConfig",
|
|
28213
|
+
"declaration": {
|
|
28214
|
+
"name": "SessionPersistenceConfig",
|
|
28215
|
+
"module": "./session-persistence-provider"
|
|
28216
|
+
}
|
|
28217
|
+
},
|
|
28218
|
+
{
|
|
28219
|
+
"kind": "js",
|
|
28220
|
+
"name": "SessionPreferences",
|
|
28221
|
+
"declaration": {
|
|
28222
|
+
"name": "SessionPreferences",
|
|
28223
|
+
"module": "./session-persistence-provider"
|
|
28224
|
+
}
|
|
28225
|
+
},
|
|
28226
|
+
{
|
|
28227
|
+
"kind": "js",
|
|
28228
|
+
"name": "assembleDebugLog",
|
|
28229
|
+
"declaration": {
|
|
28230
|
+
"name": "assembleDebugLog",
|
|
28231
|
+
"module": "./diagnostics"
|
|
28232
|
+
}
|
|
28233
|
+
},
|
|
28234
|
+
{
|
|
28235
|
+
"kind": "js",
|
|
28236
|
+
"name": "withFreshMetaSnapshot",
|
|
28237
|
+
"declaration": {
|
|
28238
|
+
"name": "withFreshMetaSnapshot",
|
|
28239
|
+
"module": "./diagnostics"
|
|
28240
|
+
}
|
|
28241
|
+
},
|
|
28242
|
+
{
|
|
28243
|
+
"kind": "js",
|
|
28244
|
+
"name": "DiagnosticEntry",
|
|
28245
|
+
"declaration": {
|
|
28246
|
+
"name": "DiagnosticEntry",
|
|
28247
|
+
"module": "./diagnostics"
|
|
28248
|
+
}
|
|
28249
|
+
},
|
|
28250
|
+
{
|
|
28251
|
+
"kind": "js",
|
|
28252
|
+
"name": "DebugLog",
|
|
28253
|
+
"declaration": {
|
|
28254
|
+
"name": "DebugLog",
|
|
28255
|
+
"module": "./diagnostics"
|
|
28256
|
+
}
|
|
28257
|
+
},
|
|
28610
28258
|
{
|
|
28611
28259
|
"kind": "js",
|
|
28612
28260
|
"name": "buildDiagnosticEntries",
|
|
28613
28261
|
"declaration": {
|
|
28614
28262
|
"name": "buildDiagnosticEntries",
|
|
28615
|
-
"module": "
|
|
28263
|
+
"module": "./debug-log-assembly"
|
|
28616
28264
|
}
|
|
28617
28265
|
},
|
|
28618
28266
|
{
|
|
@@ -28620,21 +28268,45 @@
|
|
|
28620
28268
|
"name": "lifetimeDebugLog",
|
|
28621
28269
|
"declaration": {
|
|
28622
28270
|
"name": "lifetimeDebugLog",
|
|
28623
|
-
"module": "
|
|
28271
|
+
"module": "./debug-log-assembly"
|
|
28624
28272
|
}
|
|
28625
28273
|
}
|
|
28626
28274
|
]
|
|
28627
28275
|
},
|
|
28628
28276
|
{
|
|
28629
28277
|
"kind": "javascript-module",
|
|
28630
|
-
"path": "src/state/persistence/
|
|
28278
|
+
"path": "src/state/persistence/persister-registry.ts",
|
|
28631
28279
|
"declarations": [
|
|
28632
28280
|
{
|
|
28633
28281
|
"kind": "function",
|
|
28634
|
-
"name": "
|
|
28282
|
+
"name": "getOrCreatePersister",
|
|
28283
|
+
"return": {
|
|
28284
|
+
"type": {
|
|
28285
|
+
"text": "SessionPersister"
|
|
28286
|
+
}
|
|
28287
|
+
},
|
|
28288
|
+
"parameters": [
|
|
28289
|
+
{
|
|
28290
|
+
"name": "key",
|
|
28291
|
+
"type": {
|
|
28292
|
+
"text": "string"
|
|
28293
|
+
}
|
|
28294
|
+
},
|
|
28295
|
+
{
|
|
28296
|
+
"name": "factory",
|
|
28297
|
+
"type": {
|
|
28298
|
+
"text": "() => SessionPersister"
|
|
28299
|
+
}
|
|
28300
|
+
}
|
|
28301
|
+
],
|
|
28302
|
+
"description": "Returns the existing persister for `key`, or calls `factory` to create and\nregister a new one. First view to connect creates it; later views share it."
|
|
28303
|
+
},
|
|
28304
|
+
{
|
|
28305
|
+
"kind": "function",
|
|
28306
|
+
"name": "getPersister",
|
|
28635
28307
|
"return": {
|
|
28636
28308
|
"type": {
|
|
28637
|
-
"text": "
|
|
28309
|
+
"text": "SessionPersister | undefined"
|
|
28638
28310
|
}
|
|
28639
28311
|
},
|
|
28640
28312
|
"parameters": [
|
|
@@ -28645,564 +28317,892 @@
|
|
|
28645
28317
|
}
|
|
28646
28318
|
}
|
|
28647
28319
|
],
|
|
28648
|
-
"description": "
|
|
28320
|
+
"description": "Returns the existing persister for `key`, or `undefined`."
|
|
28649
28321
|
},
|
|
28650
28322
|
{
|
|
28651
28323
|
"kind": "function",
|
|
28652
|
-
"name": "
|
|
28324
|
+
"name": "deletePersister",
|
|
28653
28325
|
"return": {
|
|
28654
28326
|
"type": {
|
|
28655
28327
|
"text": "void"
|
|
28656
28328
|
}
|
|
28657
28329
|
},
|
|
28658
|
-
"
|
|
28330
|
+
"parameters": [
|
|
28331
|
+
{
|
|
28332
|
+
"name": "key",
|
|
28333
|
+
"type": {
|
|
28334
|
+
"text": "string"
|
|
28335
|
+
}
|
|
28336
|
+
}
|
|
28337
|
+
],
|
|
28338
|
+
"description": "Removes the persister for `key` (explicit session teardown). Disposes it first\nso its debounced save AND diagnostics timers are cancelled — otherwise a timer\nscheduled by the outgoing session fires after the in-place switch and flushes the\nNEW session's entries under the OLD key, corrupting its stream (GENC-1351 §5.12)."
|
|
28659
28339
|
}
|
|
28660
28340
|
],
|
|
28661
28341
|
"exports": [
|
|
28662
28342
|
{
|
|
28663
28343
|
"kind": "js",
|
|
28664
|
-
"name": "
|
|
28344
|
+
"name": "getOrCreatePersister",
|
|
28665
28345
|
"declaration": {
|
|
28666
|
-
"name": "
|
|
28667
|
-
"module": "src/state/persistence/
|
|
28346
|
+
"name": "getOrCreatePersister",
|
|
28347
|
+
"module": "src/state/persistence/persister-registry.ts"
|
|
28668
28348
|
}
|
|
28669
28349
|
},
|
|
28670
28350
|
{
|
|
28671
28351
|
"kind": "js",
|
|
28672
|
-
"name": "
|
|
28352
|
+
"name": "getPersister",
|
|
28673
28353
|
"declaration": {
|
|
28674
|
-
"name": "
|
|
28675
|
-
"module": "src/state/persistence/
|
|
28354
|
+
"name": "getPersister",
|
|
28355
|
+
"module": "src/state/persistence/persister-registry.ts"
|
|
28356
|
+
}
|
|
28357
|
+
},
|
|
28358
|
+
{
|
|
28359
|
+
"kind": "js",
|
|
28360
|
+
"name": "deletePersister",
|
|
28361
|
+
"declaration": {
|
|
28362
|
+
"name": "deletePersister",
|
|
28363
|
+
"module": "src/state/persistence/persister-registry.ts"
|
|
28676
28364
|
}
|
|
28677
28365
|
}
|
|
28678
28366
|
]
|
|
28679
28367
|
},
|
|
28680
28368
|
{
|
|
28681
28369
|
"kind": "javascript-module",
|
|
28682
|
-
"path": "src/state/persistence/
|
|
28370
|
+
"path": "src/state/persistence/resume-verdict.ts",
|
|
28371
|
+
"declarations": [],
|
|
28372
|
+
"exports": []
|
|
28373
|
+
},
|
|
28374
|
+
{
|
|
28375
|
+
"kind": "javascript-module",
|
|
28376
|
+
"path": "src/state/persistence/session-persistence-provider.ts",
|
|
28683
28377
|
"declarations": [
|
|
28684
28378
|
{
|
|
28685
|
-
"kind": "
|
|
28686
|
-
"
|
|
28687
|
-
"
|
|
28688
|
-
|
|
28689
|
-
"text": "DebugLog"
|
|
28690
|
-
}
|
|
28691
|
-
},
|
|
28692
|
-
"parameters": [
|
|
28379
|
+
"kind": "class",
|
|
28380
|
+
"description": "A SessionPersistenceProvider backed by a Web Storage area. Both\n`window.sessionStorage` and `window.localStorage` implement the `Storage`\nAPI, so one class serves both: point it at `sessionStorage` for\nrefresh-survival that clears on tab close (the showcase default, O6), or at\n`localStorage` for durable local persistence.\n\nOpt-in: a host constructs it and passes it through `chatConfig`; the library\nnever instantiates it on its own.",
|
|
28381
|
+
"name": "WebStorageSessionProvider",
|
|
28382
|
+
"members": [
|
|
28693
28383
|
{
|
|
28694
|
-
"
|
|
28384
|
+
"kind": "field",
|
|
28385
|
+
"name": "storage",
|
|
28695
28386
|
"type": {
|
|
28696
|
-
"text": "
|
|
28697
|
-
}
|
|
28387
|
+
"text": "Storage"
|
|
28388
|
+
},
|
|
28389
|
+
"privacy": "private",
|
|
28390
|
+
"readonly": true,
|
|
28391
|
+
"default": "storage"
|
|
28698
28392
|
},
|
|
28699
28393
|
{
|
|
28700
|
-
"
|
|
28394
|
+
"kind": "field",
|
|
28395
|
+
"name": "keyPrefix",
|
|
28701
28396
|
"type": {
|
|
28702
|
-
"text": "
|
|
28703
|
-
}
|
|
28397
|
+
"text": "string"
|
|
28398
|
+
},
|
|
28399
|
+
"privacy": "private",
|
|
28400
|
+
"readonly": true
|
|
28401
|
+
},
|
|
28402
|
+
{
|
|
28403
|
+
"kind": "field",
|
|
28404
|
+
"name": "saveDebounceMs",
|
|
28405
|
+
"type": {
|
|
28406
|
+
"text": "number"
|
|
28407
|
+
},
|
|
28408
|
+
"readonly": true,
|
|
28409
|
+
"description": "Web storage is synchronous and cheap, so the default is `0` — save as\nsoon as the tick settles, no throttle. Override via `options.saveDebounceMs`\n(e.g. if pointing at `localStorage` and you'd rather coalesce large writes)."
|
|
28410
|
+
},
|
|
28411
|
+
{
|
|
28412
|
+
"kind": "method",
|
|
28413
|
+
"name": "storageKey",
|
|
28414
|
+
"privacy": "private",
|
|
28415
|
+
"return": {
|
|
28416
|
+
"type": {
|
|
28417
|
+
"text": "string"
|
|
28418
|
+
}
|
|
28419
|
+
},
|
|
28420
|
+
"parameters": [
|
|
28421
|
+
{
|
|
28422
|
+
"name": "sessionKey",
|
|
28423
|
+
"type": {
|
|
28424
|
+
"text": "string"
|
|
28425
|
+
}
|
|
28426
|
+
}
|
|
28427
|
+
]
|
|
28428
|
+
},
|
|
28429
|
+
{
|
|
28430
|
+
"kind": "method",
|
|
28431
|
+
"name": "preferencesKey",
|
|
28432
|
+
"privacy": "private",
|
|
28433
|
+
"return": {
|
|
28434
|
+
"type": {
|
|
28435
|
+
"text": "string"
|
|
28436
|
+
}
|
|
28437
|
+
},
|
|
28438
|
+
"parameters": [
|
|
28439
|
+
{
|
|
28440
|
+
"name": "sessionKey",
|
|
28441
|
+
"type": {
|
|
28442
|
+
"text": "string"
|
|
28443
|
+
}
|
|
28444
|
+
}
|
|
28445
|
+
],
|
|
28446
|
+
"description": "Preferences key, namespaced apart from the session key so `clear` leaves it."
|
|
28447
|
+
},
|
|
28448
|
+
{
|
|
28449
|
+
"kind": "method",
|
|
28450
|
+
"name": "load",
|
|
28451
|
+
"return": {
|
|
28452
|
+
"type": {
|
|
28453
|
+
"text": "Promise<PersistedSession | null>"
|
|
28454
|
+
}
|
|
28455
|
+
},
|
|
28456
|
+
"parameters": [
|
|
28457
|
+
{
|
|
28458
|
+
"name": "sessionKey",
|
|
28459
|
+
"type": {
|
|
28460
|
+
"text": "string"
|
|
28461
|
+
}
|
|
28462
|
+
}
|
|
28463
|
+
]
|
|
28464
|
+
},
|
|
28465
|
+
{
|
|
28466
|
+
"kind": "method",
|
|
28467
|
+
"name": "save",
|
|
28468
|
+
"return": {
|
|
28469
|
+
"type": {
|
|
28470
|
+
"text": "Promise<void>"
|
|
28471
|
+
}
|
|
28472
|
+
},
|
|
28473
|
+
"parameters": [
|
|
28474
|
+
{
|
|
28475
|
+
"name": "sessionKey",
|
|
28476
|
+
"type": {
|
|
28477
|
+
"text": "string"
|
|
28478
|
+
}
|
|
28479
|
+
},
|
|
28480
|
+
{
|
|
28481
|
+
"name": "snapshot",
|
|
28482
|
+
"type": {
|
|
28483
|
+
"text": "PersistedSession"
|
|
28484
|
+
}
|
|
28485
|
+
}
|
|
28486
|
+
]
|
|
28487
|
+
},
|
|
28488
|
+
{
|
|
28489
|
+
"kind": "method",
|
|
28490
|
+
"name": "clear",
|
|
28491
|
+
"return": {
|
|
28492
|
+
"type": {
|
|
28493
|
+
"text": "Promise<void>"
|
|
28494
|
+
}
|
|
28495
|
+
},
|
|
28496
|
+
"parameters": [
|
|
28497
|
+
{
|
|
28498
|
+
"name": "sessionKey",
|
|
28499
|
+
"type": {
|
|
28500
|
+
"text": "string"
|
|
28501
|
+
}
|
|
28502
|
+
}
|
|
28503
|
+
]
|
|
28504
|
+
},
|
|
28505
|
+
{
|
|
28506
|
+
"kind": "method",
|
|
28507
|
+
"name": "loadPreferences",
|
|
28508
|
+
"return": {
|
|
28509
|
+
"type": {
|
|
28510
|
+
"text": "Promise<SessionPreferences | undefined>"
|
|
28511
|
+
}
|
|
28512
|
+
},
|
|
28513
|
+
"parameters": [
|
|
28514
|
+
{
|
|
28515
|
+
"name": "sessionKey",
|
|
28516
|
+
"type": {
|
|
28517
|
+
"text": "string"
|
|
28518
|
+
}
|
|
28519
|
+
}
|
|
28520
|
+
]
|
|
28521
|
+
},
|
|
28522
|
+
{
|
|
28523
|
+
"kind": "method",
|
|
28524
|
+
"name": "savePreferences",
|
|
28525
|
+
"return": {
|
|
28526
|
+
"type": {
|
|
28527
|
+
"text": "Promise<void>"
|
|
28528
|
+
}
|
|
28529
|
+
},
|
|
28530
|
+
"parameters": [
|
|
28531
|
+
{
|
|
28532
|
+
"name": "sessionKey",
|
|
28533
|
+
"type": {
|
|
28534
|
+
"text": "string"
|
|
28535
|
+
}
|
|
28536
|
+
},
|
|
28537
|
+
{
|
|
28538
|
+
"name": "preferences",
|
|
28539
|
+
"type": {
|
|
28540
|
+
"text": "SessionPreferences"
|
|
28541
|
+
}
|
|
28542
|
+
}
|
|
28543
|
+
]
|
|
28704
28544
|
}
|
|
28705
|
-
]
|
|
28706
|
-
|
|
28545
|
+
]
|
|
28546
|
+
}
|
|
28547
|
+
],
|
|
28548
|
+
"exports": [
|
|
28549
|
+
{
|
|
28550
|
+
"kind": "js",
|
|
28551
|
+
"name": "WebStorageSessionProvider",
|
|
28552
|
+
"declaration": {
|
|
28553
|
+
"name": "WebStorageSessionProvider",
|
|
28554
|
+
"module": "src/state/persistence/session-persistence-provider.ts"
|
|
28555
|
+
}
|
|
28556
|
+
}
|
|
28557
|
+
]
|
|
28558
|
+
},
|
|
28559
|
+
{
|
|
28560
|
+
"kind": "javascript-module",
|
|
28561
|
+
"path": "src/state/persistence/session-persister.ts",
|
|
28562
|
+
"declarations": [],
|
|
28563
|
+
"exports": []
|
|
28564
|
+
},
|
|
28565
|
+
{
|
|
28566
|
+
"kind": "javascript-module",
|
|
28567
|
+
"path": "src/state/persistence/session-snapshot.ts",
|
|
28568
|
+
"declarations": [
|
|
28569
|
+
{
|
|
28570
|
+
"kind": "variable",
|
|
28571
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
28572
|
+
"type": {
|
|
28573
|
+
"text": "number"
|
|
28574
|
+
},
|
|
28575
|
+
"default": "1",
|
|
28576
|
+
"description": "Schema version of the persisted session shape. Bump on an incompatible\nchange; a snapshot whose `version` doesn't match is discarded on load rather\nthan risk feeding a stale shape into restore.",
|
|
28577
|
+
"privacy": "public"
|
|
28707
28578
|
},
|
|
28708
28579
|
{
|
|
28709
28580
|
"kind": "function",
|
|
28710
|
-
"name": "
|
|
28581
|
+
"name": "unknownAgentSnapshots",
|
|
28711
28582
|
"return": {
|
|
28712
28583
|
"type": {
|
|
28713
|
-
"text": "
|
|
28584
|
+
"text": "string[]"
|
|
28714
28585
|
}
|
|
28715
28586
|
},
|
|
28716
28587
|
"parameters": [
|
|
28717
28588
|
{
|
|
28718
|
-
"name": "
|
|
28589
|
+
"name": "snapshot",
|
|
28719
28590
|
"type": {
|
|
28720
|
-
"text": "
|
|
28591
|
+
"text": "PersistedSession"
|
|
28721
28592
|
}
|
|
28722
28593
|
},
|
|
28723
28594
|
{
|
|
28724
|
-
"name": "
|
|
28595
|
+
"name": "knownAgentNames",
|
|
28725
28596
|
"type": {
|
|
28726
|
-
"text": "
|
|
28597
|
+
"text": "Iterable<string>"
|
|
28727
28598
|
}
|
|
28728
28599
|
}
|
|
28729
28600
|
],
|
|
28730
|
-
"description": "
|
|
28601
|
+
"description": "Names of agents the restored session holds machine/state snapshots for but\nwhich are **not** in the currently-configured agent set — their flow cannot\nresume. Common when the host's agent array is dynamic (agents gated by feature\nflags, project state, or permissions; e.g. genesis-create). Callers should\nsurface these; the restore is otherwise non-fatal (the transcript and any\nknown agents still restore). Returns `[]` when `knownAgentNames` is empty —\nthe agent set isn't known yet, so we can't classify without false positives."
|
|
28731
28602
|
}
|
|
28732
28603
|
],
|
|
28733
28604
|
"exports": [
|
|
28734
28605
|
{
|
|
28735
28606
|
"kind": "js",
|
|
28736
|
-
"name": "
|
|
28607
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
28737
28608
|
"declaration": {
|
|
28738
|
-
"name": "
|
|
28739
|
-
"module": "src/state/persistence/
|
|
28609
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
28610
|
+
"module": "src/state/persistence/session-snapshot.ts"
|
|
28740
28611
|
}
|
|
28741
28612
|
},
|
|
28742
28613
|
{
|
|
28743
28614
|
"kind": "js",
|
|
28744
|
-
"name": "
|
|
28615
|
+
"name": "unknownAgentSnapshots",
|
|
28745
28616
|
"declaration": {
|
|
28746
|
-
"name": "
|
|
28747
|
-
"module": "src/state/persistence/
|
|
28617
|
+
"name": "unknownAgentSnapshots",
|
|
28618
|
+
"module": "src/state/persistence/session-snapshot.ts"
|
|
28748
28619
|
}
|
|
28749
28620
|
}
|
|
28750
28621
|
]
|
|
28751
28622
|
},
|
|
28752
28623
|
{
|
|
28753
28624
|
"kind": "javascript-module",
|
|
28754
|
-
"path": "src/
|
|
28755
|
-
"declarations": [
|
|
28756
|
-
"exports": [
|
|
28757
|
-
{
|
|
28758
|
-
"kind": "js",
|
|
28759
|
-
"name": "PERSISTED_SESSION_VERSION",
|
|
28760
|
-
"declaration": {
|
|
28761
|
-
"name": "PERSISTED_SESSION_VERSION",
|
|
28762
|
-
"module": "./session-snapshot"
|
|
28763
|
-
}
|
|
28764
|
-
},
|
|
28765
|
-
{
|
|
28766
|
-
"kind": "js",
|
|
28767
|
-
"name": "PersistedSession",
|
|
28768
|
-
"declaration": {
|
|
28769
|
-
"name": "PersistedSession",
|
|
28770
|
-
"module": "./session-snapshot"
|
|
28771
|
-
}
|
|
28772
|
-
},
|
|
28773
|
-
{
|
|
28774
|
-
"kind": "js",
|
|
28775
|
-
"name": "PersistedCondensePolicy",
|
|
28776
|
-
"declaration": {
|
|
28777
|
-
"name": "PersistedCondensePolicy",
|
|
28778
|
-
"module": "../../utils/condense-history"
|
|
28779
|
-
}
|
|
28780
|
-
},
|
|
28781
|
-
{
|
|
28782
|
-
"kind": "js",
|
|
28783
|
-
"name": "WebStorageSessionProvider",
|
|
28784
|
-
"declaration": {
|
|
28785
|
-
"name": "WebStorageSessionProvider",
|
|
28786
|
-
"module": "./session-persistence-provider"
|
|
28787
|
-
}
|
|
28788
|
-
},
|
|
28789
|
-
{
|
|
28790
|
-
"kind": "js",
|
|
28791
|
-
"name": "SessionPersistenceProvider",
|
|
28792
|
-
"declaration": {
|
|
28793
|
-
"name": "SessionPersistenceProvider",
|
|
28794
|
-
"module": "./session-persistence-provider"
|
|
28795
|
-
}
|
|
28796
|
-
},
|
|
28797
|
-
{
|
|
28798
|
-
"kind": "js",
|
|
28799
|
-
"name": "SessionPersistenceConfig",
|
|
28800
|
-
"declaration": {
|
|
28801
|
-
"name": "SessionPersistenceConfig",
|
|
28802
|
-
"module": "./session-persistence-provider"
|
|
28803
|
-
}
|
|
28804
|
-
},
|
|
28805
|
-
{
|
|
28806
|
-
"kind": "js",
|
|
28807
|
-
"name": "SessionPreferences",
|
|
28808
|
-
"declaration": {
|
|
28809
|
-
"name": "SessionPreferences",
|
|
28810
|
-
"module": "./session-persistence-provider"
|
|
28811
|
-
}
|
|
28812
|
-
},
|
|
28813
|
-
{
|
|
28814
|
-
"kind": "js",
|
|
28815
|
-
"name": "assembleDebugLog",
|
|
28816
|
-
"declaration": {
|
|
28817
|
-
"name": "assembleDebugLog",
|
|
28818
|
-
"module": "./diagnostics"
|
|
28819
|
-
}
|
|
28820
|
-
},
|
|
28821
|
-
{
|
|
28822
|
-
"kind": "js",
|
|
28823
|
-
"name": "withFreshMetaSnapshot",
|
|
28824
|
-
"declaration": {
|
|
28825
|
-
"name": "withFreshMetaSnapshot",
|
|
28826
|
-
"module": "./diagnostics"
|
|
28827
|
-
}
|
|
28828
|
-
},
|
|
28625
|
+
"path": "src/genesis/write-review/write-review.styles.ts",
|
|
28626
|
+
"declarations": [
|
|
28829
28627
|
{
|
|
28830
|
-
"kind": "
|
|
28831
|
-
"name": "
|
|
28832
|
-
"declaration": {
|
|
28833
|
-
|
|
28834
|
-
|
|
28835
|
-
|
|
28836
|
-
},
|
|
28628
|
+
"kind": "variable",
|
|
28629
|
+
"name": "WriteReviewStyles",
|
|
28630
|
+
"default": "css`\n :host {\n display: block;\n font: inherit;\n\n /* The diff tints — see the diff rules below for why they are backgrounds only. */\n --write-review-added: color-mix(in srgb, var(--success-fill-rest, #2da44e) 18%, transparent);\n --write-review-removed: color-mix(in srgb, var(--error-fill-rest, #cf222e) 18%, transparent);\n }\n\n /*\n * The review mounts inside the chat bubble's dialog content, which is overflow: hidden — so a\n * wide event's columns were CLIPPED rather than pushed off screen, with no scrollbar to say\n * anything was missing. A user approving values they cannot see is the failure this whole\n * component exists to prevent, so the table scrolls within itself.\n */\n .scroller {\n overflow-x: auto;\n max-width: 100%;\n }\n\n table {\n border-collapse: collapse;\n width: 100%;\n }\n\n th,\n td {\n border-bottom: calc(var(--stroke-width, 1) * 1px) solid var(--neutral-stroke-rest);\n padding: calc(var(--design-unit, 4) * 1px) calc(var(--design-unit, 4) * 2px);\n text-align: left;\n }\n\n /* A heading is a column name: kept on one line. */\n th {\n white-space: nowrap;\n }\n\n /*\n * A value is never clipped. Every character stays on screen.\n *\n * Clipping was the first bound, and the wrong one: 24ch with an ellipsis cut the END of every\n * cell, which in a changed cell is the NEW value, so the user approved a value they never saw.\n * No cell is safe to clip either. An insert has no pre-image, so none of its cells is\n * \"changed\", and every one of them is a value being written; a delete's cells are the record\n * being removed; and a title attribute holding the full text reaches nobody on a keyboard or a\n * touch screen.\n *\n * A SHORT value stays whole on one line, and the table scrolls. Wrapping every cell broke a\n * short value mid-token in a squeezed table — \"101.\" over \"2345\" — and the first line could\n * pass for the whole value.\n *\n * A LONG value (review-model marks it) wraps within a bound. With no bound at all, one long\n * value (a NOTE another user wrote) widened its column until the changed one sat out of view,\n * behind a scrollbar an overlay-scrollbar platform does not draw until you scroll.\n */\n td {\n white-space: nowrap;\n }\n\n td.long {\n white-space: normal;\n overflow-wrap: anywhere;\n\n /*\n * A floor as well as a ceiling. With only the ceiling, a squeezed table shrank a long value's\n * column to a sliver (a 100-character note became 22 lines of a few characters each) while\n * the one-line cells kept their width. The table scrolls instead.\n */\n min-width: 20ch;\n max-width: 40ch;\n }\n\n /*\n * Stacked: the table did not fit (see GenesisWriteReview.stacked), so each row becomes a block\n * and each field a line of its own, its label beside its value, and nothing is off to the side.\n * The headings go, as every value now carries its own; the select-all box stays, labelled.\n */\n .stacked table,\n .stacked tbody,\n .stacked tr,\n .stacked td {\n display: block;\n }\n\n .stacked thead tr {\n display: flex;\n }\n\n .stacked thead th:not(.select) {\n display: none;\n }\n\n .stacked thead th.select {\n border-bottom: none;\n font-weight: 400;\n }\n\n /* Without its column of row boxes beneath it, a lone box at the top says nothing on sight. Its\n spoken name is its aria-label, so the words here are for the eye only (the empty alt). */\n .stacked thead th.select::after {\n content: 'Select all' / '';\n margin-inline-start: calc(var(--design-unit, 4) * 1.5px);\n vertical-align: middle;\n }\n\n .stacked tbody tr {\n padding-block: calc(var(--design-unit, 4) * 1px);\n border-top: calc(var(--stroke-width, 1) * 1px) solid var(--neutral-stroke-rest);\n }\n\n .stacked td {\n border-bottom: none;\n }\n\n .stacked td[data-label] {\n display: grid;\n grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);\n gap: calc(var(--design-unit, 4) * 2px);\n white-space: normal;\n overflow-wrap: anywhere;\n }\n\n .stacked td[data-label]::before {\n content: attr(data-label);\n font-weight: 600;\n }\n\n /* No column to bound any more: a long value takes the line's width like any other, and wraps\n within it like any other. */\n .stacked td.long {\n min-width: 0;\n max-width: none;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n\n /*\n * The two marks this table carries — \"this field is changing\" and \"this field decides which\n * record disappears\" — were weight, colour and a strike-through only. None of that reaches\n * somebody using a screen reader, who is the one approver with no other way to tell, so each\n * mark has words as well.\n */\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n /*\n * A delete shows the whole record and sends its key alone, so the fields that actually decide\n * which record disappears are marked. Not colour alone — an underline carries to a user who\n * cannot distinguish it.\n */\n td.identifying {\n font-weight: 600;\n text-decoration: underline;\n }\n\n /*\n * The diff, the way a code review shows one: what goes is tinted as removed and struck through,\n * what comes in is tinted as added and bold. Only the BACKGROUND is tinted, at low alpha, from\n * the theme's own success and error tokens (with fallbacks, as foundation-forms does), and the\n * text keeps the normal foreground colour: coloured text on a coloured ground is where contrast\n * fails, dark mode first. The tint is never the only signal. Strike-through, weight, the visible\n * + and − marks and the spoken \"was\" and \"now\" all carry the same thing without colour.\n */\n\n /* The mark a user's eye needs: this field is being changed. */\n td.changed {\n font-weight: 600;\n }\n\n /* On its own line above the new value, so neither can push the other out of view. */\n td.changed .was {\n display: block;\n font-weight: 400;\n text-decoration: line-through;\n background: var(--write-review-removed);\n }\n\n td.changed .now {\n display: block;\n background: var(--write-review-added);\n }\n\n /* Room inside the tint, so the − and + do not sit on its edge. */\n td.changed .was,\n td.changed .now {\n padding-inline: calc(var(--design-unit, 4) * 1px);\n }\n\n /*\n * A row that will not be written is never tinted, not even inside a cell. For a refused row\n * review-model already gives it no changed cells, and this is the second guard. For a row the\n * resolved review did not approve, the − and + stay as the record of what was proposed, but\n * without the tint that says it will happen.\n */\n tr.refused td.changed .was,\n tr.refused td.changed .now,\n tr.unwritten td.changed .was,\n tr.unwritten td.changed .now {\n background: none;\n }\n\n /* A whole row coming in, or going. A refused row is neither, and keeps its muted look. */\n tr.added td {\n background: var(--write-review-added);\n }\n\n tr.removed td {\n background: var(--write-review-removed);\n }\n\n /*\n * A closed review's row that was not approved says so in words — without them, a denied modify\n * read in greyscale or by a screen reader exactly like an approved one. An approved row says what\n * came of it the same way, once the write tool has recorded that (written, not written\n * because the user stopped, or its own reason).\n */\n .not-written,\n .fate {\n margin-inline-start: calc(var(--design-unit, 4) * 1.5px);\n font-size: var(--type-ramp-minus-1-font-size, 0.875em);\n color: var(--neutral-foreground-hint);\n }\n\n /*\n * A row action's input is what its handler is given, not a change to the row, so it is labelled\n * rather than marked as a diff. The label is text, so it reaches a screen reader as well.\n */\n .input-mark {\n font-style: italic;\n color: var(--neutral-foreground-hint);\n padding-inline-end: calc(var(--design-unit, 4) * 1px);\n }\n\n .row-action p {\n margin-block: calc(var(--design-unit, 4) * 1px);\n }\n\n /* The empty placeholder: a style no row text can take, so a literal \"(blank)\" cannot pass for it. */\n .blank {\n font-style: italic;\n font-weight: 400;\n color: var(--neutral-foreground-hint);\n }\n\n .mark {\n font-weight: 600;\n padding-inline-end: calc(var(--design-unit, 4) * 1px);\n user-select: none;\n }\n\n /* The row's + or − sits beside its checkbox, not on the baseline under it (where − reads as _). */\n td.select {\n white-space: nowrap;\n }\n\n .select rapid-checkbox,\n td.select .mark {\n vertical-align: middle;\n }\n\n /* A gap from the checkbox, so the mark reads as the row's sign rather than part of the box. */\n td.select .mark {\n margin-inline-start: calc(var(--design-unit, 4) * 1.5px);\n }\n\n /* The strike-through belongs to the value, not to its − mark. */\n td.changed .was .mark {\n display: inline-block;\n text-decoration: none;\n }\n\n tr.refused {\n color: var(--neutral-foreground-hint);\n }\n\n /* A refusal is a sentence, and it spans the table: it wraps rather than running off it. */\n .problems {\n color: var(--error-fill-rest, #c00);\n white-space: normal;\n }\n\n /* Wraps, so in a narrow bubble the last button drops to a new line rather than off the edge. */\n .actions {\n display: flex;\n flex-wrap: wrap;\n gap: calc(var(--design-unit, 4) * 2px);\n margin-top: calc(var(--design-unit, 4) * 2px);\n }\n\n /* The change request takes the width the buttons leave it. */\n .change-request {\n flex: 1 1 24ch;\n }\n\n /* The outcome's live region is always there; while the review is open it takes no room. */\n .closed:empty {\n margin: 0;\n }\n\n /* The count sits at the foot of the field, beside it rather than in its way. */\n .remaining {\n align-self: flex-end;\n white-space: nowrap;\n font-size: var(--type-ramp-minus-1-font-size, 0.875em);\n color: var(--neutral-foreground-hint);\n }\n`"
|
|
28631
|
+
}
|
|
28632
|
+
],
|
|
28633
|
+
"exports": [
|
|
28837
28634
|
{
|
|
28838
28635
|
"kind": "js",
|
|
28839
|
-
"name": "
|
|
28636
|
+
"name": "WriteReviewStyles",
|
|
28840
28637
|
"declaration": {
|
|
28841
|
-
"name": "
|
|
28842
|
-
"module": "
|
|
28638
|
+
"name": "WriteReviewStyles",
|
|
28639
|
+
"module": "src/genesis/write-review/write-review.styles.ts"
|
|
28843
28640
|
}
|
|
28844
|
-
}
|
|
28641
|
+
}
|
|
28642
|
+
]
|
|
28643
|
+
},
|
|
28644
|
+
{
|
|
28645
|
+
"kind": "javascript-module",
|
|
28646
|
+
"path": "src/genesis/write-review/write-review.template.ts",
|
|
28647
|
+
"declarations": [
|
|
28845
28648
|
{
|
|
28846
|
-
"kind": "
|
|
28847
|
-
"name": "
|
|
28848
|
-
"
|
|
28849
|
-
"
|
|
28850
|
-
|
|
28851
|
-
}
|
|
28852
|
-
}
|
|
28649
|
+
"kind": "variable",
|
|
28650
|
+
"name": "WriteReviewTemplate",
|
|
28651
|
+
"type": {
|
|
28652
|
+
"text": "ViewTemplate<GenesisWriteReview>"
|
|
28653
|
+
},
|
|
28654
|
+
"default": "html<GenesisWriteReview>`\n ${when(\n (x) => !!x.model,\n html<GenesisWriteReview>`\n ${when(\n (x) => !x.rowActionHeading,\n html<GenesisWriteReview>`\n <p>\n ${(x) => x.model?.op} ${(x) => x.model?.rows.length} row(s) in\n ${(x) => x.model?.resource}. Nothing is written until you choose rows and select Write.\n </p>\n `,\n )}\n ${when(\n (x) => !!x.rowActionHeading,\n html<GenesisWriteReview>`\n <p class=\"row-action-heading\">${(x) => x.rowActionHeading}</p>\n <div class=\"row-action\" id=\"${ROW_ACTION_LINES_ID}\">\n ${repeat(\n (x) => x.rowActionLines,\n html<string>`\n <p>${(x) => x}</p>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x) => !!x.customCodeLine,\n html<GenesisWriteReview>`\n <p class=\"custom-code\" id=\"${CUSTOM_CODE_LINE_ID}\">${(x) => x.customCodeLine}</p>\n `,\n )}\n ${\n /* The table's roles are stated, not left to the tags: the stacked layout sets display: block\n on its parts, and a browser then drops their table semantics, so a screen reader would\n hear a run of values with no row or column to put them in. */ ''\n }\n <div class=\"scroller ${(x) => (x.stacked ? 'stacked' : '')}\">\n <table\n role=\"table\"\n aria-label=\"${(x) => x.tableLabel}\"\n aria-describedby=\"${(x) =>\n x.customCodeLine\n ? CUSTOM_CODE_LINE_ID\n : x.rowActionHeading\n ? ROW_ACTION_LINES_ID\n : undefined}\"\n >\n <thead role=\"rowgroup\">\n <tr role=\"row\">\n <th role=\"columnheader\" class=\"select\">\n <rapid-checkbox\n aria-label=\"Select all rows\"\n :checked=\"${(x) => x.allSelected}\"\n ?disabled=\"${(x) => x.settled || !x.model?.selectable.length}\"\n @change=\"${(x, c) => x.setAll(checkedOf(c.event))}\"\n ></rapid-checkbox>\n </th>\n ${repeat(\n (x) => x.model?.columns ?? [],\n html<ReviewColumn>`\n <th role=\"columnheader\">${(c) => c.label}</th>\n `,\n )}\n </tr>\n </thead>\n <tbody role=\"rowgroup\">${repeat((x) => x.model?.rows ?? [], row)}</tbody>\n </table>\n </div>\n <div class=\"actions\">\n ${when(\n (x) => !x.asking,\n html<GenesisWriteReview>`\n <rapid-button\n appearance=\"accent\"\n ?disabled=\"${(x) => !x.writable}\"\n @click=\"${(x) => x.write()}\"\n >\n Write ${(x) => (x.rowsSelected ? `${x.rowsSelected} row(s)` : '')}\n </rapid-button>\n <rapid-button\n class=\"ask\"\n ?disabled=\"${(x) => x.settled}\"\n @click=\"${(x) => x.startAsking()}\"\n >\n Ask for changes\n </rapid-button>\n <rapid-button ?disabled=\"${(x) => x.settled}\" @click=\"${(x) => x.deny()}\">\n Deny\n </rapid-button>\n `,\n )}\n ${when(\n (x) => x.asking,\n html<GenesisWriteReview>`\n <rapid-text-area\n class=\"change-request\"\n :value=\"${(x) => x.changeText}\"\n ?readonly=\"${(x) => x.settled}\"\n maxlength=\"${() => MAX_FEEDBACK_CHARS}\"\n @input=\"${(x, c) => {\n x.setChangeText((c.event.target as HTMLTextAreaElement).value);\n return true;\n }}\"\n >\n What should change?\n </rapid-text-area>\n <span class=\"remaining\">${(x) => x.charactersLeft} characters left</span>\n <rapid-button\n class=\"send\"\n appearance=\"accent\"\n ?disabled=\"${(x) => !x.canSendChanges}\"\n @click=\"${(x) => x.sendChanges()}\"\n >\n Send\n </rapid-button>\n <rapid-button class=\"back\" ?disabled=\"${(x) => x.settled}\" @click=\"${(x) => x.back()}\">\n Back\n </rapid-button>\n `,\n )}\n </div>\n `,\n )}\n ${\n /* A live region, and there from the start: a screen reader announces a change to one it\n already knows, and a region added with its text already in it was not announced at all.\n Empty while the review is open; filled by sayOutcome, which also decides when. Focusable\n from script only, so focus can land on the outcome after an answer. */ ''\n }\n <p class=\"closed\" role=\"status\" tabindex=\"-1\">${(x) => x.announcement}</p>\n`"
|
|
28655
|
+
}
|
|
28656
|
+
],
|
|
28657
|
+
"exports": [
|
|
28853
28658
|
{
|
|
28854
28659
|
"kind": "js",
|
|
28855
|
-
"name": "
|
|
28660
|
+
"name": "WriteReviewTemplate",
|
|
28856
28661
|
"declaration": {
|
|
28857
|
-
"name": "
|
|
28858
|
-
"module": "
|
|
28662
|
+
"name": "WriteReviewTemplate",
|
|
28663
|
+
"module": "src/genesis/write-review/write-review.template.ts"
|
|
28859
28664
|
}
|
|
28860
28665
|
}
|
|
28861
28666
|
]
|
|
28862
28667
|
},
|
|
28863
28668
|
{
|
|
28864
28669
|
"kind": "javascript-module",
|
|
28865
|
-
"path": "src/
|
|
28670
|
+
"path": "src/genesis/write-review/write-review.ts",
|
|
28866
28671
|
"declarations": [
|
|
28867
28672
|
{
|
|
28868
|
-
"kind": "
|
|
28869
|
-
"name": "
|
|
28870
|
-
"
|
|
28871
|
-
"
|
|
28872
|
-
"text": "SessionPersister"
|
|
28873
|
-
}
|
|
28673
|
+
"kind": "variable",
|
|
28674
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
28675
|
+
"type": {
|
|
28676
|
+
"text": "string"
|
|
28874
28677
|
},
|
|
28875
|
-
"
|
|
28678
|
+
"default": "'genesis-write-review'",
|
|
28679
|
+
"description": "The tag the bridge asks for by name when it requests the review interaction."
|
|
28680
|
+
},
|
|
28681
|
+
{
|
|
28682
|
+
"kind": "class",
|
|
28683
|
+
"description": "The review a user reads before anything is written.",
|
|
28684
|
+
"name": "GenesisWriteReview",
|
|
28685
|
+
"members": [
|
|
28686
|
+
{
|
|
28687
|
+
"kind": "field",
|
|
28688
|
+
"name": "interactionId",
|
|
28689
|
+
"type": {
|
|
28690
|
+
"text": "string"
|
|
28691
|
+
},
|
|
28692
|
+
"default": "''",
|
|
28693
|
+
"description": "Set by the interaction wrapper on every (re)mount."
|
|
28694
|
+
},
|
|
28695
|
+
{
|
|
28696
|
+
"kind": "field",
|
|
28697
|
+
"name": "interaction",
|
|
28698
|
+
"type": {
|
|
28699
|
+
"text": "AiChatInteraction<ReviewModel, GenesisReviewPayload>"
|
|
28700
|
+
},
|
|
28701
|
+
"description": "The host-set descriptor: the model to render while pending, the outcome once resolved."
|
|
28702
|
+
},
|
|
28703
|
+
{
|
|
28704
|
+
"kind": "field",
|
|
28705
|
+
"name": "selected",
|
|
28706
|
+
"type": {
|
|
28707
|
+
"text": "number[]"
|
|
28708
|
+
},
|
|
28709
|
+
"description": "Chosen rows, by index. Starts empty — see canWrite and the model's own reasoning."
|
|
28710
|
+
},
|
|
28711
|
+
{
|
|
28712
|
+
"kind": "field",
|
|
28713
|
+
"name": "asking",
|
|
28714
|
+
"type": {
|
|
28715
|
+
"text": "boolean"
|
|
28716
|
+
},
|
|
28717
|
+
"default": "false",
|
|
28718
|
+
"description": "True while the user is writing what they want changed."
|
|
28719
|
+
},
|
|
28720
|
+
{
|
|
28721
|
+
"kind": "field",
|
|
28722
|
+
"name": "changeText",
|
|
28723
|
+
"type": {
|
|
28724
|
+
"text": "string"
|
|
28725
|
+
},
|
|
28726
|
+
"default": "''",
|
|
28727
|
+
"description": "What they have typed so far."
|
|
28728
|
+
},
|
|
28729
|
+
{
|
|
28730
|
+
"kind": "field",
|
|
28731
|
+
"name": "announcement",
|
|
28732
|
+
"type": {
|
|
28733
|
+
"text": "string"
|
|
28734
|
+
},
|
|
28735
|
+
"default": "''",
|
|
28736
|
+
"description": "What the live region says: the outcome once the review has resolved. See `sayOutcome`."
|
|
28737
|
+
},
|
|
28738
|
+
{
|
|
28739
|
+
"kind": "field",
|
|
28740
|
+
"name": "stacked",
|
|
28741
|
+
"type": {
|
|
28742
|
+
"text": "boolean"
|
|
28743
|
+
},
|
|
28744
|
+
"default": "false",
|
|
28745
|
+
"description": "True when the table would not fit the width it has, and each row is laid out as its fields\nstacked label beside value instead."
|
|
28746
|
+
},
|
|
28747
|
+
{
|
|
28748
|
+
"kind": "field",
|
|
28749
|
+
"name": "resizeObserver",
|
|
28750
|
+
"type": {
|
|
28751
|
+
"text": "ResizeObserver | undefined"
|
|
28752
|
+
},
|
|
28753
|
+
"privacy": "private"
|
|
28754
|
+
},
|
|
28755
|
+
{
|
|
28756
|
+
"kind": "field",
|
|
28757
|
+
"name": "tableWidth",
|
|
28758
|
+
"type": {
|
|
28759
|
+
"text": "number"
|
|
28760
|
+
},
|
|
28761
|
+
"privacy": "private",
|
|
28762
|
+
"default": "0",
|
|
28763
|
+
"description": "The table's width when last laid out as a table: what the review needs to stop stacking."
|
|
28764
|
+
},
|
|
28876
28765
|
{
|
|
28877
|
-
"
|
|
28766
|
+
"kind": "field",
|
|
28767
|
+
"name": "answeredNow",
|
|
28768
|
+
"type": {
|
|
28769
|
+
"text": "Answered | undefined"
|
|
28770
|
+
},
|
|
28771
|
+
"privacy": "private",
|
|
28772
|
+
"description": "This element's own answer, until `sayOutcome` has said it."
|
|
28773
|
+
},
|
|
28774
|
+
{
|
|
28775
|
+
"kind": "field",
|
|
28776
|
+
"name": "heldAnswer",
|
|
28777
|
+
"type": {
|
|
28778
|
+
"text": "Answered | undefined"
|
|
28779
|
+
},
|
|
28780
|
+
"privacy": "private",
|
|
28781
|
+
"description": "The answer this element shows while its outcome is still to come, whose `focused` it keeps\ncurrent. The rebuild that brings the outcome gives focus back only if this one held it when\nit was removed: a user who has since moved to the chat input keeps their place."
|
|
28782
|
+
},
|
|
28783
|
+
{
|
|
28784
|
+
"kind": "method",
|
|
28785
|
+
"name": "fitLayout",
|
|
28786
|
+
"privacy": "private",
|
|
28787
|
+
"return": {
|
|
28788
|
+
"type": {
|
|
28789
|
+
"text": "void"
|
|
28790
|
+
}
|
|
28791
|
+
},
|
|
28792
|
+
"description": "Stacks the rows when the table is wider than the review, and goes back to the table once the\nreview is as wide as the table was. While stacked there is no table to measure, so the width it\nhad is kept from the last time it was one."
|
|
28793
|
+
},
|
|
28794
|
+
{
|
|
28795
|
+
"kind": "field",
|
|
28796
|
+
"name": "model",
|
|
28797
|
+
"type": {
|
|
28798
|
+
"text": "ReviewModel | undefined"
|
|
28799
|
+
},
|
|
28800
|
+
"description": "The rows, whether the review is still open or already resolved: a user who has approved a\nwrite should still be able to see what they approved. Acting on it is what `settled`\nstops, not reading it.",
|
|
28801
|
+
"readonly": true
|
|
28802
|
+
},
|
|
28803
|
+
{
|
|
28804
|
+
"kind": "field",
|
|
28805
|
+
"name": "resolved",
|
|
28806
|
+
"type": {
|
|
28807
|
+
"text": "boolean"
|
|
28808
|
+
},
|
|
28809
|
+
"readonly": true
|
|
28810
|
+
},
|
|
28811
|
+
{
|
|
28812
|
+
"kind": "field",
|
|
28813
|
+
"name": "customCodeLine",
|
|
28878
28814
|
"type": {
|
|
28879
28815
|
"text": "string"
|
|
28880
|
-
}
|
|
28816
|
+
},
|
|
28817
|
+
"description": "What the review says about custom code the event runs, or `''` when it runs none. Read from\nthe model, which history keeps, so it is there whether the review is open, resolved or\nre-mounted. Not repeated in the closed summary: the resolved review still shows it, and the\nsummary's live region would announce it as though code had run.",
|
|
28818
|
+
"readonly": true
|
|
28881
28819
|
},
|
|
28882
28820
|
{
|
|
28883
|
-
"
|
|
28821
|
+
"kind": "field",
|
|
28822
|
+
"name": "rowActionHeading",
|
|
28884
28823
|
"type": {
|
|
28885
|
-
"text": "
|
|
28886
|
-
}
|
|
28887
|
-
|
|
28888
|
-
|
|
28889
|
-
|
|
28890
|
-
},
|
|
28891
|
-
{
|
|
28892
|
-
"kind": "function",
|
|
28893
|
-
"name": "getPersister",
|
|
28894
|
-
"return": {
|
|
28895
|
-
"type": {
|
|
28896
|
-
"text": "SessionPersister | undefined"
|
|
28897
|
-
}
|
|
28898
|
-
},
|
|
28899
|
-
"parameters": [
|
|
28824
|
+
"text": "string"
|
|
28825
|
+
},
|
|
28826
|
+
"description": "A row action's header, or `''` for any other write: see `rowActionHeading`.",
|
|
28827
|
+
"readonly": true
|
|
28828
|
+
},
|
|
28900
28829
|
{
|
|
28901
|
-
"
|
|
28830
|
+
"kind": "field",
|
|
28831
|
+
"name": "tableLabel",
|
|
28902
28832
|
"type": {
|
|
28903
28833
|
"text": "string"
|
|
28904
|
-
}
|
|
28905
|
-
|
|
28906
|
-
|
|
28907
|
-
|
|
28908
|
-
},
|
|
28909
|
-
{
|
|
28910
|
-
"kind": "function",
|
|
28911
|
-
"name": "deletePersister",
|
|
28912
|
-
"return": {
|
|
28913
|
-
"type": {
|
|
28914
|
-
"text": "void"
|
|
28915
|
-
}
|
|
28916
|
-
},
|
|
28917
|
-
"parameters": [
|
|
28834
|
+
},
|
|
28835
|
+
"description": "The table's accessible name. A run's names its handler and table, as its header does.",
|
|
28836
|
+
"readonly": true
|
|
28837
|
+
},
|
|
28918
28838
|
{
|
|
28919
|
-
"
|
|
28839
|
+
"kind": "field",
|
|
28840
|
+
"name": "rowActionLines",
|
|
28841
|
+
"type": {
|
|
28842
|
+
"text": "string[]"
|
|
28843
|
+
},
|
|
28844
|
+
"description": "The lines under a row action's header, from the model, so a re-mount says them too.",
|
|
28845
|
+
"readonly": true
|
|
28846
|
+
},
|
|
28847
|
+
{
|
|
28848
|
+
"kind": "field",
|
|
28849
|
+
"name": "answered",
|
|
28850
|
+
"type": {
|
|
28851
|
+
"text": "boolean"
|
|
28852
|
+
},
|
|
28853
|
+
"privacy": "private",
|
|
28854
|
+
"default": "false",
|
|
28855
|
+
"description": "Set when this element sends its answer. The host marks the review resolved after that, and\nuntil it did, a second click sent a second answer — a Deny straight after a Write included."
|
|
28856
|
+
},
|
|
28857
|
+
{
|
|
28858
|
+
"kind": "field",
|
|
28859
|
+
"name": "settled",
|
|
28860
|
+
"type": {
|
|
28861
|
+
"text": "boolean"
|
|
28862
|
+
},
|
|
28863
|
+
"description": "Whether the review is past taking input: it has resolved, or it has sent its answer. Every\naction checks this rather than `resolved`, which is still false in between.",
|
|
28864
|
+
"readonly": true
|
|
28865
|
+
},
|
|
28866
|
+
{
|
|
28867
|
+
"kind": "field",
|
|
28868
|
+
"name": "approved",
|
|
28869
|
+
"type": {
|
|
28870
|
+
"text": "number[]"
|
|
28871
|
+
},
|
|
28872
|
+
"description": "The rows the user approved, once the review has resolved — empty for a rejection or a\ntimeout, and while it is still open.",
|
|
28873
|
+
"readonly": true
|
|
28874
|
+
},
|
|
28875
|
+
{
|
|
28876
|
+
"kind": "field",
|
|
28877
|
+
"name": "outcome",
|
|
28878
|
+
"type": {
|
|
28879
|
+
"text": "ReviewOutcome | undefined"
|
|
28880
|
+
},
|
|
28881
|
+
"description": "What came of the approved rows, once the write tool has recorded it: see `ReviewOutcome`.\nOnly for an approval — nothing else writes — and only in the shape the review can read.",
|
|
28882
|
+
"readonly": true
|
|
28883
|
+
},
|
|
28884
|
+
{
|
|
28885
|
+
"kind": "method",
|
|
28886
|
+
"name": "fateOf",
|
|
28887
|
+
"return": {
|
|
28888
|
+
"type": {
|
|
28889
|
+
"text": "ReviewOutcome['rows'][number] | undefined"
|
|
28890
|
+
}
|
|
28891
|
+
},
|
|
28892
|
+
"parameters": [
|
|
28893
|
+
{
|
|
28894
|
+
"name": "index",
|
|
28895
|
+
"type": {
|
|
28896
|
+
"text": "number"
|
|
28897
|
+
}
|
|
28898
|
+
}
|
|
28899
|
+
],
|
|
28900
|
+
"description": "An approved row's recorded fate, when there is one."
|
|
28901
|
+
},
|
|
28902
|
+
{
|
|
28903
|
+
"kind": "field",
|
|
28904
|
+
"name": "closedSummary",
|
|
28920
28905
|
"type": {
|
|
28921
28906
|
"text": "string"
|
|
28922
|
-
}
|
|
28923
|
-
|
|
28924
|
-
|
|
28925
|
-
|
|
28926
|
-
|
|
28927
|
-
|
|
28928
|
-
|
|
28929
|
-
|
|
28930
|
-
|
|
28931
|
-
|
|
28932
|
-
|
|
28933
|
-
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
|
|
28937
|
-
|
|
28938
|
-
|
|
28939
|
-
|
|
28940
|
-
|
|
28941
|
-
|
|
28942
|
-
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28946
|
-
|
|
28947
|
-
|
|
28948
|
-
|
|
28949
|
-
|
|
28950
|
-
|
|
28951
|
-
|
|
28952
|
-
|
|
28953
|
-
|
|
28954
|
-
|
|
28955
|
-
|
|
28956
|
-
|
|
28957
|
-
|
|
28958
|
-
|
|
28959
|
-
|
|
28960
|
-
|
|
28961
|
-
|
|
28962
|
-
|
|
28963
|
-
|
|
28964
|
-
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
"members": [
|
|
28907
|
+
},
|
|
28908
|
+
"description": "What a CLOSED review can truthfully say about its outcome.",
|
|
28909
|
+
"readonly": true
|
|
28910
|
+
},
|
|
28911
|
+
{
|
|
28912
|
+
"kind": "method",
|
|
28913
|
+
"name": "interactionChanged",
|
|
28914
|
+
"return": {
|
|
28915
|
+
"type": {
|
|
28916
|
+
"text": "void"
|
|
28917
|
+
}
|
|
28918
|
+
},
|
|
28919
|
+
"description": "Every mount is a fresh element whose selection starts empty, so each state says where its\nselection comes from."
|
|
28920
|
+
},
|
|
28921
|
+
{
|
|
28922
|
+
"kind": "method",
|
|
28923
|
+
"name": "sayOutcome",
|
|
28924
|
+
"privacy": "private",
|
|
28925
|
+
"return": {
|
|
28926
|
+
"type": {
|
|
28927
|
+
"text": "void"
|
|
28928
|
+
}
|
|
28929
|
+
},
|
|
28930
|
+
"description": "Puts the outcome in the live region, so that an answer given just now is heard, and one read\nback from history is not."
|
|
28931
|
+
},
|
|
28932
|
+
{
|
|
28933
|
+
"kind": "method",
|
|
28934
|
+
"name": "hasFocus",
|
|
28935
|
+
"privacy": "private",
|
|
28936
|
+
"return": {
|
|
28937
|
+
"type": {
|
|
28938
|
+
"text": "boolean"
|
|
28939
|
+
}
|
|
28940
|
+
},
|
|
28941
|
+
"description": "Whether focus is on something inside this review, however deep in shadow roots."
|
|
28942
|
+
},
|
|
28943
|
+
{
|
|
28944
|
+
"kind": "method",
|
|
28945
|
+
"name": "park",
|
|
28946
|
+
"privacy": "private",
|
|
28947
|
+
"return": {
|
|
28948
|
+
"type": {
|
|
28949
|
+
"text": "void"
|
|
28950
|
+
}
|
|
28951
|
+
},
|
|
28952
|
+
"description": "Keeps what the user has done so far on the interaction's context, where the next mount of a\nstill-open review finds it."
|
|
28953
|
+
},
|
|
28970
28954
|
{
|
|
28971
28955
|
"kind": "field",
|
|
28972
|
-
"name": "
|
|
28956
|
+
"name": "rowsSelected",
|
|
28973
28957
|
"type": {
|
|
28974
|
-
"text": "
|
|
28958
|
+
"text": "number"
|
|
28975
28959
|
},
|
|
28976
|
-
"
|
|
28977
|
-
"readonly": true,
|
|
28978
|
-
"default": "storage"
|
|
28960
|
+
"readonly": true
|
|
28979
28961
|
},
|
|
28980
28962
|
{
|
|
28981
28963
|
"kind": "field",
|
|
28982
|
-
"name": "
|
|
28964
|
+
"name": "writable",
|
|
28983
28965
|
"type": {
|
|
28984
|
-
"text": "
|
|
28966
|
+
"text": "boolean"
|
|
28985
28967
|
},
|
|
28986
|
-
"
|
|
28968
|
+
"description": "Whether Write may fire: never on an empty selection.",
|
|
28987
28969
|
"readonly": true
|
|
28988
28970
|
},
|
|
28989
28971
|
{
|
|
28990
28972
|
"kind": "field",
|
|
28991
|
-
"name": "
|
|
28973
|
+
"name": "allSelected",
|
|
28992
28974
|
"type": {
|
|
28993
|
-
"text": "
|
|
28975
|
+
"text": "boolean"
|
|
28994
28976
|
},
|
|
28995
|
-
"readonly": true
|
|
28996
|
-
"description": "Web storage is synchronous and cheap, so the default is `0` — save as\nsoon as the tick settles, no throttle. Override via `options.saveDebounceMs`\n(e.g. if pointing at `localStorage` and you'd rather coalesce large writes)."
|
|
28977
|
+
"readonly": true
|
|
28997
28978
|
},
|
|
28998
28979
|
{
|
|
28999
28980
|
"kind": "method",
|
|
29000
|
-
"name": "
|
|
29001
|
-
"privacy": "private",
|
|
28981
|
+
"name": "isSelected",
|
|
29002
28982
|
"return": {
|
|
29003
28983
|
"type": {
|
|
29004
|
-
"text": "
|
|
28984
|
+
"text": "boolean"
|
|
29005
28985
|
}
|
|
29006
28986
|
},
|
|
29007
28987
|
"parameters": [
|
|
29008
28988
|
{
|
|
29009
|
-
"name": "
|
|
28989
|
+
"name": "index",
|
|
29010
28990
|
"type": {
|
|
29011
|
-
"text": "
|
|
28991
|
+
"text": "number"
|
|
29012
28992
|
}
|
|
29013
28993
|
}
|
|
29014
28994
|
]
|
|
29015
28995
|
},
|
|
29016
28996
|
{
|
|
29017
28997
|
"kind": "method",
|
|
29018
|
-
"name": "
|
|
29019
|
-
"privacy": "private",
|
|
28998
|
+
"name": "setSelected",
|
|
29020
28999
|
"return": {
|
|
29021
29000
|
"type": {
|
|
29022
|
-
"text": "
|
|
29001
|
+
"text": "void"
|
|
29023
29002
|
}
|
|
29024
29003
|
},
|
|
29025
29004
|
"parameters": [
|
|
29026
29005
|
{
|
|
29027
|
-
"name": "
|
|
29006
|
+
"name": "index",
|
|
29028
29007
|
"type": {
|
|
29029
|
-
"text": "
|
|
29008
|
+
"text": "number"
|
|
29009
|
+
}
|
|
29010
|
+
},
|
|
29011
|
+
{
|
|
29012
|
+
"name": "checked",
|
|
29013
|
+
"type": {
|
|
29014
|
+
"text": "boolean"
|
|
29030
29015
|
}
|
|
29031
29016
|
}
|
|
29032
29017
|
],
|
|
29033
|
-
"description": "
|
|
29018
|
+
"description": "Makes one row agree with what its checkbox now says. A row the bridge refused cannot be\nchosen, whatever the markup does."
|
|
29034
29019
|
},
|
|
29035
29020
|
{
|
|
29036
29021
|
"kind": "method",
|
|
29037
|
-
"name": "
|
|
29022
|
+
"name": "setAll",
|
|
29038
29023
|
"return": {
|
|
29039
29024
|
"type": {
|
|
29040
|
-
"text": "
|
|
29025
|
+
"text": "void"
|
|
29041
29026
|
}
|
|
29042
29027
|
},
|
|
29043
29028
|
"parameters": [
|
|
29044
29029
|
{
|
|
29045
|
-
"name": "
|
|
29030
|
+
"name": "checked",
|
|
29046
29031
|
"type": {
|
|
29047
|
-
"text": "
|
|
29032
|
+
"text": "boolean"
|
|
29048
29033
|
}
|
|
29049
29034
|
}
|
|
29050
|
-
]
|
|
29035
|
+
],
|
|
29036
|
+
"description": "One click for a good batch — a deliberate one, which is the point of starting empty."
|
|
29051
29037
|
},
|
|
29052
29038
|
{
|
|
29053
29039
|
"kind": "method",
|
|
29054
|
-
"name": "
|
|
29040
|
+
"name": "write",
|
|
29055
29041
|
"return": {
|
|
29056
29042
|
"type": {
|
|
29057
|
-
"text": "
|
|
29043
|
+
"text": "void"
|
|
29044
|
+
}
|
|
29045
|
+
}
|
|
29046
|
+
},
|
|
29047
|
+
{
|
|
29048
|
+
"kind": "method",
|
|
29049
|
+
"name": "resolve",
|
|
29050
|
+
"privacy": "private",
|
|
29051
|
+
"return": {
|
|
29052
|
+
"type": {
|
|
29053
|
+
"text": "void"
|
|
29058
29054
|
}
|
|
29059
29055
|
},
|
|
29060
29056
|
"parameters": [
|
|
29061
29057
|
{
|
|
29062
|
-
"name": "
|
|
29063
|
-
"type": {
|
|
29064
|
-
"text": "string"
|
|
29065
|
-
}
|
|
29066
|
-
},
|
|
29067
|
-
{
|
|
29068
|
-
"name": "snapshot",
|
|
29058
|
+
"name": "result",
|
|
29069
29059
|
"type": {
|
|
29070
|
-
"text": "
|
|
29060
|
+
"text": "GenesisWriteReviewCompletedEventDetail"
|
|
29071
29061
|
}
|
|
29072
29062
|
}
|
|
29073
|
-
]
|
|
29063
|
+
],
|
|
29064
|
+
"description": "The one way this widget talks back: `interaction-completed`, exactly once."
|
|
29074
29065
|
},
|
|
29075
29066
|
{
|
|
29076
29067
|
"kind": "method",
|
|
29077
|
-
"name": "
|
|
29068
|
+
"name": "deny",
|
|
29078
29069
|
"return": {
|
|
29079
29070
|
"type": {
|
|
29080
|
-
"text": "
|
|
29071
|
+
"text": "void"
|
|
29081
29072
|
}
|
|
29082
29073
|
},
|
|
29083
|
-
"
|
|
29084
|
-
|
|
29085
|
-
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
|
|
29074
|
+
"description": "No, and nothing else: one click, no reason. Denying is the safe direction — nothing is\nwritten, and the tool is not proposed again this turn — so it needs no confirmation. A reason\nthe user wants acted on is a change request, which is what \"Ask for changes\" is for; a deny\nreason travelled inside a result the model is told to treat as data, and was ignored."
|
|
29075
|
+
},
|
|
29076
|
+
{
|
|
29077
|
+
"kind": "method",
|
|
29078
|
+
"name": "startAsking",
|
|
29079
|
+
"return": {
|
|
29080
|
+
"type": {
|
|
29081
|
+
"text": "void"
|
|
29089
29082
|
}
|
|
29090
|
-
|
|
29083
|
+
},
|
|
29084
|
+
"description": "Opens the change request, and puts the cursor in it."
|
|
29091
29085
|
},
|
|
29092
29086
|
{
|
|
29093
29087
|
"kind": "method",
|
|
29094
|
-
"name": "
|
|
29088
|
+
"name": "back",
|
|
29095
29089
|
"return": {
|
|
29096
29090
|
"type": {
|
|
29097
|
-
"text": "
|
|
29091
|
+
"text": "void"
|
|
29092
|
+
}
|
|
29093
|
+
},
|
|
29094
|
+
"description": "Closes the change request without sending it; the text is kept for a second try."
|
|
29095
|
+
},
|
|
29096
|
+
{
|
|
29097
|
+
"kind": "method",
|
|
29098
|
+
"name": "setChangeText",
|
|
29099
|
+
"return": {
|
|
29100
|
+
"type": {
|
|
29101
|
+
"text": "void"
|
|
29098
29102
|
}
|
|
29099
29103
|
},
|
|
29100
29104
|
"parameters": [
|
|
29101
29105
|
{
|
|
29102
|
-
"name": "
|
|
29106
|
+
"name": "text",
|
|
29103
29107
|
"type": {
|
|
29104
29108
|
"text": "string"
|
|
29105
29109
|
}
|
|
29106
29110
|
}
|
|
29107
|
-
]
|
|
29111
|
+
],
|
|
29112
|
+
"description": "The change request as the user types it, until the review has its answer."
|
|
29113
|
+
},
|
|
29114
|
+
{
|
|
29115
|
+
"kind": "field",
|
|
29116
|
+
"name": "charactersLeft",
|
|
29117
|
+
"type": {
|
|
29118
|
+
"text": "number"
|
|
29119
|
+
},
|
|
29120
|
+
"description": "How much more the change request can take. The field stops at the cap without a sound, so the\ncount is on screen rather than discovered by typing into it.",
|
|
29121
|
+
"readonly": true
|
|
29122
|
+
},
|
|
29123
|
+
{
|
|
29124
|
+
"kind": "field",
|
|
29125
|
+
"name": "canSendChanges",
|
|
29126
|
+
"type": {
|
|
29127
|
+
"text": "boolean"
|
|
29128
|
+
},
|
|
29129
|
+
"description": "Whether there is a change to send: text that shows something.",
|
|
29130
|
+
"readonly": true
|
|
29108
29131
|
},
|
|
29109
29132
|
{
|
|
29110
29133
|
"kind": "method",
|
|
29111
|
-
"name": "
|
|
29134
|
+
"name": "sendChanges",
|
|
29112
29135
|
"return": {
|
|
29113
29136
|
"type": {
|
|
29114
|
-
"text": "
|
|
29137
|
+
"text": "void"
|
|
29138
|
+
}
|
|
29139
|
+
},
|
|
29140
|
+
"description": "Sends the change request. Nothing is written, whatever is ticked: the rows that were ticked\ntravel as context for the next proposal, which the user approves in a fresh review. They are\nthe review's own indexes, in the order it shows them, so they can be matched against the rows\nof the tool's result. `userMessage` shows the request on the user's side of the chat, as the\nwords the model gets (see `literalMarkdown`); the driver never sends that to the model."
|
|
29141
|
+
},
|
|
29142
|
+
{
|
|
29143
|
+
"kind": "method",
|
|
29144
|
+
"name": "focusSoon",
|
|
29145
|
+
"privacy": "private",
|
|
29146
|
+
"return": {
|
|
29147
|
+
"type": {
|
|
29148
|
+
"text": "void"
|
|
29115
29149
|
}
|
|
29116
29150
|
},
|
|
29117
29151
|
"parameters": [
|
|
29118
29152
|
{
|
|
29119
|
-
"name": "
|
|
29153
|
+
"name": "selector",
|
|
29120
29154
|
"type": {
|
|
29121
29155
|
"text": "string"
|
|
29122
29156
|
}
|
|
29123
29157
|
},
|
|
29124
29158
|
{
|
|
29125
|
-
"name": "
|
|
29159
|
+
"name": "inner",
|
|
29160
|
+
"optional": true,
|
|
29126
29161
|
"type": {
|
|
29127
|
-
"text": "
|
|
29162
|
+
"text": "string"
|
|
29128
29163
|
}
|
|
29129
29164
|
}
|
|
29130
|
-
]
|
|
29165
|
+
],
|
|
29166
|
+
"description": "Focuses an element the next render adds. The design-system controls do not delegate focus,\nso this drills into the control's own shadow root (see the chat input's\n`maybeAutoFocusChatInput`), and falls back to the host."
|
|
29131
29167
|
}
|
|
29132
|
-
]
|
|
29168
|
+
],
|
|
29169
|
+
"events": [
|
|
29170
|
+
{
|
|
29171
|
+
"description": "Fired once, when the user writes, asks for changes or denies. detail: `GenesisWriteReviewCompletedEventDetail`",
|
|
29172
|
+
"name": "interaction-completed"
|
|
29173
|
+
}
|
|
29174
|
+
],
|
|
29175
|
+
"superclass": {
|
|
29176
|
+
"name": "GenesisElement",
|
|
29177
|
+
"package": "@genesislcap/web-core"
|
|
29178
|
+
},
|
|
29179
|
+
"tagName": "GENESIS_WRITE_REVIEW",
|
|
29180
|
+
"customElement": true
|
|
29133
29181
|
}
|
|
29134
29182
|
],
|
|
29135
29183
|
"exports": [
|
|
29136
29184
|
{
|
|
29137
29185
|
"kind": "js",
|
|
29138
|
-
"name": "
|
|
29186
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
29139
29187
|
"declaration": {
|
|
29140
|
-
"name": "
|
|
29141
|
-
"module": "src/
|
|
29188
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
29189
|
+
"module": "src/genesis/write-review/write-review.ts"
|
|
29142
29190
|
}
|
|
29143
|
-
}
|
|
29144
|
-
]
|
|
29145
|
-
},
|
|
29146
|
-
{
|
|
29147
|
-
"kind": "javascript-module",
|
|
29148
|
-
"path": "src/state/persistence/session-persister.ts",
|
|
29149
|
-
"declarations": [],
|
|
29150
|
-
"exports": []
|
|
29151
|
-
},
|
|
29152
|
-
{
|
|
29153
|
-
"kind": "javascript-module",
|
|
29154
|
-
"path": "src/state/persistence/session-snapshot.ts",
|
|
29155
|
-
"declarations": [
|
|
29156
|
-
{
|
|
29157
|
-
"kind": "variable",
|
|
29158
|
-
"name": "PERSISTED_SESSION_VERSION",
|
|
29159
|
-
"type": {
|
|
29160
|
-
"text": "number"
|
|
29161
|
-
},
|
|
29162
|
-
"default": "1",
|
|
29163
|
-
"description": "Schema version of the persisted session shape. Bump on an incompatible\nchange; a snapshot whose `version` doesn't match is discarded on load rather\nthan risk feeding a stale shape into restore.",
|
|
29164
|
-
"privacy": "public"
|
|
29165
29191
|
},
|
|
29166
|
-
{
|
|
29167
|
-
"kind": "function",
|
|
29168
|
-
"name": "unknownAgentSnapshots",
|
|
29169
|
-
"return": {
|
|
29170
|
-
"type": {
|
|
29171
|
-
"text": "string[]"
|
|
29172
|
-
}
|
|
29173
|
-
},
|
|
29174
|
-
"parameters": [
|
|
29175
|
-
{
|
|
29176
|
-
"name": "snapshot",
|
|
29177
|
-
"type": {
|
|
29178
|
-
"text": "PersistedSession"
|
|
29179
|
-
}
|
|
29180
|
-
},
|
|
29181
|
-
{
|
|
29182
|
-
"name": "knownAgentNames",
|
|
29183
|
-
"type": {
|
|
29184
|
-
"text": "Iterable<string>"
|
|
29185
|
-
}
|
|
29186
|
-
}
|
|
29187
|
-
],
|
|
29188
|
-
"description": "Names of agents the restored session holds machine/state snapshots for but\nwhich are **not** in the currently-configured agent set — their flow cannot\nresume. Common when the host's agent array is dynamic (agents gated by feature\nflags, project state, or permissions; e.g. genesis-create). Callers should\nsurface these; the restore is otherwise non-fatal (the transcript and any\nknown agents still restore). Returns `[]` when `knownAgentNames` is empty —\nthe agent set isn't known yet, so we can't classify without false positives."
|
|
29189
|
-
}
|
|
29190
|
-
],
|
|
29191
|
-
"exports": [
|
|
29192
29192
|
{
|
|
29193
29193
|
"kind": "js",
|
|
29194
|
-
"name": "
|
|
29194
|
+
"name": "GenesisWriteReview",
|
|
29195
29195
|
"declaration": {
|
|
29196
|
-
"name": "
|
|
29197
|
-
"module": "src/
|
|
29196
|
+
"name": "GenesisWriteReview",
|
|
29197
|
+
"module": "src/genesis/write-review/write-review.ts"
|
|
29198
29198
|
}
|
|
29199
29199
|
},
|
|
29200
29200
|
{
|
|
29201
|
-
"kind": "
|
|
29202
|
-
"name": "
|
|
29201
|
+
"kind": "custom-element-definition",
|
|
29202
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
29203
29203
|
"declaration": {
|
|
29204
|
-
"name": "
|
|
29205
|
-
"module": "src/
|
|
29204
|
+
"name": "GenesisWriteReview",
|
|
29205
|
+
"module": "src/genesis/write-review/write-review.ts"
|
|
29206
29206
|
}
|
|
29207
29207
|
}
|
|
29208
29208
|
]
|