@genesislcap/ai-assistant 15.111.1 → 15.111.2
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 +922 -922
- package/package.json +17 -17
|
@@ -27946,1263 +27946,1263 @@
|
|
|
27946
27946
|
},
|
|
27947
27947
|
{
|
|
27948
27948
|
"kind": "javascript-module",
|
|
27949
|
-
"path": "src/
|
|
27949
|
+
"path": "src/genesis/write-review/write-review.styles.ts",
|
|
27950
27950
|
"declarations": [
|
|
27951
27951
|
{
|
|
27952
|
-
"kind": "
|
|
27953
|
-
"name": "
|
|
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."
|
|
27952
|
+
"kind": "variable",
|
|
27953
|
+
"name": "WriteReviewStyles",
|
|
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`"
|
|
27968
27955
|
}
|
|
27969
27956
|
],
|
|
27970
27957
|
"exports": [
|
|
27971
27958
|
{
|
|
27972
27959
|
"kind": "js",
|
|
27973
|
-
"name": "
|
|
27960
|
+
"name": "WriteReviewStyles",
|
|
27974
27961
|
"declaration": {
|
|
27975
|
-
"name": "
|
|
27976
|
-
"module": "src/
|
|
27962
|
+
"name": "WriteReviewStyles",
|
|
27963
|
+
"module": "src/genesis/write-review/write-review.styles.ts"
|
|
27977
27964
|
}
|
|
27978
27965
|
}
|
|
27979
27966
|
]
|
|
27980
27967
|
},
|
|
27981
27968
|
{
|
|
27982
27969
|
"kind": "javascript-module",
|
|
27983
|
-
"path": "src/
|
|
27970
|
+
"path": "src/genesis/write-review/write-review.template.ts",
|
|
27984
27971
|
"declarations": [
|
|
27985
27972
|
{
|
|
27986
|
-
"kind": "
|
|
27987
|
-
"name": "
|
|
27988
|
-
"
|
|
27989
|
-
"
|
|
27990
|
-
"text": "DiagnosticEntry[]"
|
|
27991
|
-
}
|
|
27992
|
-
},
|
|
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
|
-
}
|
|
27973
|
+
"kind": "variable",
|
|
27974
|
+
"name": "WriteReviewTemplate",
|
|
27975
|
+
"type": {
|
|
27976
|
+
"text": "ViewTemplate<GenesisWriteReview>"
|
|
28010
27977
|
},
|
|
28011
|
-
"
|
|
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."
|
|
27978
|
+
"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`"
|
|
28020
27979
|
}
|
|
28021
27980
|
],
|
|
28022
27981
|
"exports": [
|
|
28023
27982
|
{
|
|
28024
27983
|
"kind": "js",
|
|
28025
|
-
"name": "
|
|
28026
|
-
"declaration": {
|
|
28027
|
-
"name": "buildDiagnosticEntries",
|
|
28028
|
-
"module": "src/state/persistence/debug-log-assembly.ts"
|
|
28029
|
-
}
|
|
28030
|
-
},
|
|
28031
|
-
{
|
|
28032
|
-
"kind": "js",
|
|
28033
|
-
"name": "lifetimeDebugLog",
|
|
27984
|
+
"name": "WriteReviewTemplate",
|
|
28034
27985
|
"declaration": {
|
|
28035
|
-
"name": "
|
|
28036
|
-
"module": "src/
|
|
27986
|
+
"name": "WriteReviewTemplate",
|
|
27987
|
+
"module": "src/genesis/write-review/write-review.template.ts"
|
|
28037
27988
|
}
|
|
28038
27989
|
}
|
|
28039
27990
|
]
|
|
28040
27991
|
},
|
|
28041
27992
|
{
|
|
28042
27993
|
"kind": "javascript-module",
|
|
28043
|
-
"path": "src/
|
|
27994
|
+
"path": "src/genesis/write-review/write-review.ts",
|
|
28044
27995
|
"declarations": [
|
|
28045
27996
|
{
|
|
28046
|
-
"kind": "
|
|
28047
|
-
"name": "
|
|
28048
|
-
"
|
|
28049
|
-
"
|
|
28050
|
-
"text": "DiagnosticsCursors"
|
|
28051
|
-
}
|
|
27997
|
+
"kind": "variable",
|
|
27998
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
27999
|
+
"type": {
|
|
28000
|
+
"text": "string"
|
|
28052
28001
|
},
|
|
28053
|
-
"
|
|
28002
|
+
"default": "'genesis-write-review'",
|
|
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": [
|
|
28054
28010
|
{
|
|
28055
|
-
"
|
|
28011
|
+
"kind": "field",
|
|
28012
|
+
"name": "interactionId",
|
|
28056
28013
|
"type": {
|
|
28057
28014
|
"text": "string"
|
|
28058
|
-
}
|
|
28059
|
-
|
|
28060
|
-
|
|
28061
|
-
|
|
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": [
|
|
28015
|
+
},
|
|
28016
|
+
"default": "''",
|
|
28017
|
+
"description": "Set by the interaction wrapper on every (re)mount."
|
|
28018
|
+
},
|
|
28106
28019
|
{
|
|
28107
|
-
"
|
|
28020
|
+
"kind": "field",
|
|
28021
|
+
"name": "interaction",
|
|
28108
28022
|
"type": {
|
|
28109
|
-
"text": "
|
|
28110
|
-
}
|
|
28023
|
+
"text": "AiChatInteraction<ReviewModel, GenesisReviewPayload>"
|
|
28024
|
+
},
|
|
28025
|
+
"description": "The host-set descriptor: the model to render while pending, the outcome once resolved."
|
|
28111
28026
|
},
|
|
28112
28027
|
{
|
|
28113
|
-
"
|
|
28028
|
+
"kind": "field",
|
|
28029
|
+
"name": "selected",
|
|
28114
28030
|
"type": {
|
|
28115
|
-
"text": "
|
|
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": [
|
|
28031
|
+
"text": "number[]"
|
|
28032
|
+
},
|
|
28033
|
+
"description": "Chosen rows, by index. Starts empty — see canWrite and the model's own reasoning."
|
|
28034
|
+
},
|
|
28130
28035
|
{
|
|
28131
|
-
"
|
|
28036
|
+
"kind": "field",
|
|
28037
|
+
"name": "asking",
|
|
28132
28038
|
"type": {
|
|
28133
|
-
"text": "
|
|
28134
|
-
}
|
|
28039
|
+
"text": "boolean"
|
|
28040
|
+
},
|
|
28041
|
+
"default": "false",
|
|
28042
|
+
"description": "True while the user is writing what they want changed."
|
|
28135
28043
|
},
|
|
28136
28044
|
{
|
|
28137
|
-
"
|
|
28138
|
-
"
|
|
28139
|
-
"text": "DiagnosticEntry"
|
|
28140
|
-
}
|
|
28141
|
-
}
|
|
28142
|
-
],
|
|
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."
|
|
28144
|
-
}
|
|
28145
|
-
],
|
|
28146
|
-
"exports": [
|
|
28147
|
-
{
|
|
28148
|
-
"kind": "js",
|
|
28149
|
-
"name": "assembleDebugLog",
|
|
28150
|
-
"declaration": {
|
|
28151
|
-
"name": "assembleDebugLog",
|
|
28152
|
-
"module": "src/state/persistence/diagnostics.ts"
|
|
28153
|
-
}
|
|
28154
|
-
},
|
|
28155
|
-
{
|
|
28156
|
-
"kind": "js",
|
|
28157
|
-
"name": "withFreshMetaSnapshot",
|
|
28158
|
-
"declaration": {
|
|
28159
|
-
"name": "withFreshMetaSnapshot",
|
|
28160
|
-
"module": "src/state/persistence/diagnostics.ts"
|
|
28161
|
-
}
|
|
28162
|
-
}
|
|
28163
|
-
]
|
|
28164
|
-
},
|
|
28165
|
-
{
|
|
28166
|
-
"kind": "javascript-module",
|
|
28167
|
-
"path": "src/state/persistence/index.ts",
|
|
28168
|
-
"declarations": [],
|
|
28169
|
-
"exports": [
|
|
28170
|
-
{
|
|
28171
|
-
"kind": "js",
|
|
28172
|
-
"name": "PERSISTED_SESSION_VERSION",
|
|
28173
|
-
"declaration": {
|
|
28174
|
-
"name": "PERSISTED_SESSION_VERSION",
|
|
28175
|
-
"module": "./session-snapshot"
|
|
28176
|
-
}
|
|
28177
|
-
},
|
|
28178
|
-
{
|
|
28179
|
-
"kind": "js",
|
|
28180
|
-
"name": "PersistedSession",
|
|
28181
|
-
"declaration": {
|
|
28182
|
-
"name": "PersistedSession",
|
|
28183
|
-
"module": "./session-snapshot"
|
|
28184
|
-
}
|
|
28185
|
-
},
|
|
28186
|
-
{
|
|
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
|
-
},
|
|
28258
|
-
{
|
|
28259
|
-
"kind": "js",
|
|
28260
|
-
"name": "buildDiagnosticEntries",
|
|
28261
|
-
"declaration": {
|
|
28262
|
-
"name": "buildDiagnosticEntries",
|
|
28263
|
-
"module": "./debug-log-assembly"
|
|
28264
|
-
}
|
|
28265
|
-
},
|
|
28266
|
-
{
|
|
28267
|
-
"kind": "js",
|
|
28268
|
-
"name": "lifetimeDebugLog",
|
|
28269
|
-
"declaration": {
|
|
28270
|
-
"name": "lifetimeDebugLog",
|
|
28271
|
-
"module": "./debug-log-assembly"
|
|
28272
|
-
}
|
|
28273
|
-
}
|
|
28274
|
-
]
|
|
28275
|
-
},
|
|
28276
|
-
{
|
|
28277
|
-
"kind": "javascript-module",
|
|
28278
|
-
"path": "src/state/persistence/persister-registry.ts",
|
|
28279
|
-
"declarations": [
|
|
28280
|
-
{
|
|
28281
|
-
"kind": "function",
|
|
28282
|
-
"name": "getOrCreatePersister",
|
|
28283
|
-
"return": {
|
|
28284
|
-
"type": {
|
|
28285
|
-
"text": "SessionPersister"
|
|
28286
|
-
}
|
|
28287
|
-
},
|
|
28288
|
-
"parameters": [
|
|
28289
|
-
{
|
|
28290
|
-
"name": "key",
|
|
28045
|
+
"kind": "field",
|
|
28046
|
+
"name": "changeText",
|
|
28291
28047
|
"type": {
|
|
28292
28048
|
"text": "string"
|
|
28293
|
-
}
|
|
28049
|
+
},
|
|
28050
|
+
"default": "''",
|
|
28051
|
+
"description": "What they have typed so far."
|
|
28294
28052
|
},
|
|
28295
28053
|
{
|
|
28296
|
-
"
|
|
28297
|
-
"
|
|
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",
|
|
28307
|
-
"return": {
|
|
28308
|
-
"type": {
|
|
28309
|
-
"text": "SessionPersister | undefined"
|
|
28310
|
-
}
|
|
28311
|
-
},
|
|
28312
|
-
"parameters": [
|
|
28313
|
-
{
|
|
28314
|
-
"name": "key",
|
|
28054
|
+
"kind": "field",
|
|
28055
|
+
"name": "announcement",
|
|
28315
28056
|
"type": {
|
|
28316
28057
|
"text": "string"
|
|
28317
|
-
}
|
|
28318
|
-
|
|
28319
|
-
|
|
28320
|
-
|
|
28321
|
-
},
|
|
28322
|
-
{
|
|
28323
|
-
"kind": "function",
|
|
28324
|
-
"name": "deletePersister",
|
|
28325
|
-
"return": {
|
|
28326
|
-
"type": {
|
|
28327
|
-
"text": "void"
|
|
28328
|
-
}
|
|
28329
|
-
},
|
|
28330
|
-
"parameters": [
|
|
28058
|
+
},
|
|
28059
|
+
"default": "''",
|
|
28060
|
+
"description": "What the live region says: the outcome once the review has resolved. See `sayOutcome`."
|
|
28061
|
+
},
|
|
28331
28062
|
{
|
|
28332
|
-
"
|
|
28063
|
+
"kind": "field",
|
|
28064
|
+
"name": "stacked",
|
|
28333
28065
|
"type": {
|
|
28334
|
-
"text": "
|
|
28335
|
-
}
|
|
28336
|
-
|
|
28337
|
-
|
|
28338
|
-
|
|
28339
|
-
}
|
|
28340
|
-
],
|
|
28341
|
-
"exports": [
|
|
28342
|
-
{
|
|
28343
|
-
"kind": "js",
|
|
28344
|
-
"name": "getOrCreatePersister",
|
|
28345
|
-
"declaration": {
|
|
28346
|
-
"name": "getOrCreatePersister",
|
|
28347
|
-
"module": "src/state/persistence/persister-registry.ts"
|
|
28348
|
-
}
|
|
28349
|
-
},
|
|
28350
|
-
{
|
|
28351
|
-
"kind": "js",
|
|
28352
|
-
"name": "getPersister",
|
|
28353
|
-
"declaration": {
|
|
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"
|
|
28364
|
-
}
|
|
28365
|
-
}
|
|
28366
|
-
]
|
|
28367
|
-
},
|
|
28368
|
-
{
|
|
28369
|
-
"kind": "javascript-module",
|
|
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",
|
|
28377
|
-
"declarations": [
|
|
28378
|
-
{
|
|
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": [
|
|
28066
|
+
"text": "boolean"
|
|
28067
|
+
},
|
|
28068
|
+
"default": "false",
|
|
28069
|
+
"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."
|
|
28070
|
+
},
|
|
28383
28071
|
{
|
|
28384
28072
|
"kind": "field",
|
|
28385
|
-
"name": "
|
|
28073
|
+
"name": "resizeObserver",
|
|
28386
28074
|
"type": {
|
|
28387
|
-
"text": "
|
|
28075
|
+
"text": "ResizeObserver | undefined"
|
|
28388
28076
|
},
|
|
28389
|
-
"privacy": "private"
|
|
28390
|
-
"readonly": true,
|
|
28391
|
-
"default": "storage"
|
|
28077
|
+
"privacy": "private"
|
|
28392
28078
|
},
|
|
28393
28079
|
{
|
|
28394
28080
|
"kind": "field",
|
|
28395
|
-
"name": "
|
|
28081
|
+
"name": "tableWidth",
|
|
28396
28082
|
"type": {
|
|
28397
|
-
"text": "
|
|
28083
|
+
"text": "number"
|
|
28398
28084
|
},
|
|
28399
28085
|
"privacy": "private",
|
|
28400
|
-
"
|
|
28086
|
+
"default": "0",
|
|
28087
|
+
"description": "The table's width when last laid out as a table: what the review needs to stop stacking."
|
|
28401
28088
|
},
|
|
28402
28089
|
{
|
|
28403
28090
|
"kind": "field",
|
|
28404
|
-
"name": "
|
|
28091
|
+
"name": "answeredNow",
|
|
28405
28092
|
"type": {
|
|
28406
|
-
"text": "
|
|
28093
|
+
"text": "Answered | undefined"
|
|
28407
28094
|
},
|
|
28408
|
-
"
|
|
28409
|
-
"description": "
|
|
28095
|
+
"privacy": "private",
|
|
28096
|
+
"description": "This element's own answer, until `sayOutcome` has said it."
|
|
28410
28097
|
},
|
|
28411
28098
|
{
|
|
28412
|
-
"kind": "
|
|
28413
|
-
"name": "
|
|
28414
|
-
"
|
|
28415
|
-
|
|
28416
|
-
"type": {
|
|
28417
|
-
"text": "string"
|
|
28418
|
-
}
|
|
28099
|
+
"kind": "field",
|
|
28100
|
+
"name": "heldAnswer",
|
|
28101
|
+
"type": {
|
|
28102
|
+
"text": "Answered | undefined"
|
|
28419
28103
|
},
|
|
28420
|
-
"
|
|
28421
|
-
|
|
28422
|
-
"name": "sessionKey",
|
|
28423
|
-
"type": {
|
|
28424
|
-
"text": "string"
|
|
28425
|
-
}
|
|
28426
|
-
}
|
|
28427
|
-
]
|
|
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."
|
|
28428
28106
|
},
|
|
28429
28107
|
{
|
|
28430
28108
|
"kind": "method",
|
|
28431
|
-
"name": "
|
|
28109
|
+
"name": "fitLayout",
|
|
28432
28110
|
"privacy": "private",
|
|
28433
28111
|
"return": {
|
|
28434
28112
|
"type": {
|
|
28435
|
-
"text": "
|
|
28113
|
+
"text": "void"
|
|
28436
28114
|
}
|
|
28437
28115
|
},
|
|
28438
|
-
"
|
|
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."
|
|
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."
|
|
28447
28117
|
},
|
|
28448
28118
|
{
|
|
28449
|
-
"kind": "
|
|
28450
|
-
"name": "
|
|
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",
|
|
28451
28211
|
"return": {
|
|
28452
28212
|
"type": {
|
|
28453
|
-
"text": "
|
|
28213
|
+
"text": "ReviewOutcome['rows'][number] | undefined"
|
|
28454
28214
|
}
|
|
28455
28215
|
},
|
|
28456
28216
|
"parameters": [
|
|
28457
28217
|
{
|
|
28458
|
-
"name": "
|
|
28218
|
+
"name": "index",
|
|
28459
28219
|
"type": {
|
|
28460
|
-
"text": "
|
|
28220
|
+
"text": "number"
|
|
28461
28221
|
}
|
|
28462
28222
|
}
|
|
28463
|
-
]
|
|
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
|
|
28464
28234
|
},
|
|
28465
28235
|
{
|
|
28466
28236
|
"kind": "method",
|
|
28467
|
-
"name": "
|
|
28237
|
+
"name": "interactionChanged",
|
|
28468
28238
|
"return": {
|
|
28469
28239
|
"type": {
|
|
28470
|
-
"text": "
|
|
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"
|
|
28471
28309
|
}
|
|
28472
28310
|
},
|
|
28473
28311
|
"parameters": [
|
|
28474
28312
|
{
|
|
28475
|
-
"name": "
|
|
28476
|
-
"type": {
|
|
28477
|
-
"text": "string"
|
|
28478
|
-
}
|
|
28479
|
-
},
|
|
28480
|
-
{
|
|
28481
|
-
"name": "snapshot",
|
|
28313
|
+
"name": "index",
|
|
28482
28314
|
"type": {
|
|
28483
|
-
"text": "
|
|
28315
|
+
"text": "number"
|
|
28484
28316
|
}
|
|
28485
28317
|
}
|
|
28486
28318
|
]
|
|
28487
28319
|
},
|
|
28488
28320
|
{
|
|
28489
28321
|
"kind": "method",
|
|
28490
|
-
"name": "
|
|
28322
|
+
"name": "setSelected",
|
|
28491
28323
|
"return": {
|
|
28492
28324
|
"type": {
|
|
28493
|
-
"text": "
|
|
28325
|
+
"text": "void"
|
|
28494
28326
|
}
|
|
28495
28327
|
},
|
|
28496
28328
|
"parameters": [
|
|
28497
28329
|
{
|
|
28498
|
-
"name": "
|
|
28330
|
+
"name": "index",
|
|
28499
28331
|
"type": {
|
|
28500
|
-
"text": "
|
|
28332
|
+
"text": "number"
|
|
28333
|
+
}
|
|
28334
|
+
},
|
|
28335
|
+
{
|
|
28336
|
+
"name": "checked",
|
|
28337
|
+
"type": {
|
|
28338
|
+
"text": "boolean"
|
|
28501
28339
|
}
|
|
28502
28340
|
}
|
|
28503
|
-
]
|
|
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."
|
|
28504
28343
|
},
|
|
28505
28344
|
{
|
|
28506
28345
|
"kind": "method",
|
|
28507
|
-
"name": "
|
|
28346
|
+
"name": "setAll",
|
|
28508
28347
|
"return": {
|
|
28509
28348
|
"type": {
|
|
28510
|
-
"text": "
|
|
28349
|
+
"text": "void"
|
|
28511
28350
|
}
|
|
28512
28351
|
},
|
|
28513
28352
|
"parameters": [
|
|
28514
28353
|
{
|
|
28515
|
-
"name": "
|
|
28354
|
+
"name": "checked",
|
|
28516
28355
|
"type": {
|
|
28517
|
-
"text": "
|
|
28356
|
+
"text": "boolean"
|
|
28518
28357
|
}
|
|
28519
28358
|
}
|
|
28520
|
-
]
|
|
28359
|
+
],
|
|
28360
|
+
"description": "One click for a good batch — a deliberate one, which is the point of starting empty."
|
|
28521
28361
|
},
|
|
28522
28362
|
{
|
|
28523
28363
|
"kind": "method",
|
|
28524
|
-
"name": "
|
|
28364
|
+
"name": "write",
|
|
28525
28365
|
"return": {
|
|
28526
28366
|
"type": {
|
|
28527
|
-
"text": "
|
|
28367
|
+
"text": "void"
|
|
28368
|
+
}
|
|
28369
|
+
}
|
|
28370
|
+
},
|
|
28371
|
+
{
|
|
28372
|
+
"kind": "method",
|
|
28373
|
+
"name": "resolve",
|
|
28374
|
+
"privacy": "private",
|
|
28375
|
+
"return": {
|
|
28376
|
+
"type": {
|
|
28377
|
+
"text": "void"
|
|
28528
28378
|
}
|
|
28529
28379
|
},
|
|
28530
28380
|
"parameters": [
|
|
28531
28381
|
{
|
|
28532
|
-
"name": "
|
|
28533
|
-
"type": {
|
|
28534
|
-
"text": "string"
|
|
28535
|
-
}
|
|
28536
|
-
},
|
|
28537
|
-
{
|
|
28538
|
-
"name": "preferences",
|
|
28382
|
+
"name": "result",
|
|
28539
28383
|
"type": {
|
|
28540
|
-
"text": "
|
|
28384
|
+
"text": "GenesisWriteReviewCompletedEventDetail"
|
|
28541
28385
|
}
|
|
28542
28386
|
}
|
|
28543
|
-
]
|
|
28544
|
-
|
|
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"
|
|
28578
|
-
},
|
|
28579
|
-
{
|
|
28580
|
-
"kind": "function",
|
|
28581
|
-
"name": "unknownAgentSnapshots",
|
|
28582
|
-
"return": {
|
|
28583
|
-
"type": {
|
|
28584
|
-
"text": "string[]"
|
|
28585
|
-
}
|
|
28586
|
-
},
|
|
28587
|
-
"parameters": [
|
|
28387
|
+
],
|
|
28388
|
+
"description": "The one way this widget talks back: `interaction-completed`, exactly once."
|
|
28389
|
+
},
|
|
28588
28390
|
{
|
|
28589
|
-
"
|
|
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",
|
|
28590
28441
|
"type": {
|
|
28591
|
-
"text": "
|
|
28592
|
-
}
|
|
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
|
|
28593
28446
|
},
|
|
28594
28447
|
{
|
|
28595
|
-
"
|
|
28448
|
+
"kind": "field",
|
|
28449
|
+
"name": "canSendChanges",
|
|
28596
28450
|
"type": {
|
|
28597
|
-
"text": "
|
|
28598
|
-
}
|
|
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."
|
|
28599
28491
|
}
|
|
28600
28492
|
],
|
|
28601
|
-
"
|
|
28493
|
+
"events": [
|
|
28494
|
+
{
|
|
28495
|
+
"description": "Fired once, when the user writes, asks for changes or denies. detail: `GenesisWriteReviewCompletedEventDetail`",
|
|
28496
|
+
"name": "interaction-completed"
|
|
28497
|
+
}
|
|
28498
|
+
],
|
|
28499
|
+
"superclass": {
|
|
28500
|
+
"name": "GenesisElement",
|
|
28501
|
+
"package": "@genesislcap/web-core"
|
|
28502
|
+
},
|
|
28503
|
+
"tagName": "GENESIS_WRITE_REVIEW",
|
|
28504
|
+
"customElement": true
|
|
28602
28505
|
}
|
|
28603
28506
|
],
|
|
28604
28507
|
"exports": [
|
|
28605
28508
|
{
|
|
28606
28509
|
"kind": "js",
|
|
28607
|
-
"name": "
|
|
28510
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
28608
28511
|
"declaration": {
|
|
28609
|
-
"name": "
|
|
28610
|
-
"module": "src/
|
|
28512
|
+
"name": "GENESIS_WRITE_REVIEW",
|
|
28513
|
+
"module": "src/genesis/write-review/write-review.ts"
|
|
28611
28514
|
}
|
|
28612
28515
|
},
|
|
28613
28516
|
{
|
|
28614
28517
|
"kind": "js",
|
|
28615
|
-
"name": "
|
|
28518
|
+
"name": "GenesisWriteReview",
|
|
28616
28519
|
"declaration": {
|
|
28617
|
-
"name": "
|
|
28618
|
-
"module": "src/
|
|
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",
|
|
28527
|
+
"declaration": {
|
|
28528
|
+
"name": "GenesisWriteReview",
|
|
28529
|
+
"module": "src/genesis/write-review/write-review.ts"
|
|
28619
28530
|
}
|
|
28620
28531
|
}
|
|
28621
28532
|
]
|
|
28622
28533
|
},
|
|
28623
28534
|
{
|
|
28624
28535
|
"kind": "javascript-module",
|
|
28625
|
-
"path": "src/
|
|
28536
|
+
"path": "src/state/persistence/build-timeline-entries.ts",
|
|
28626
28537
|
"declarations": [
|
|
28627
28538
|
{
|
|
28628
|
-
"kind": "
|
|
28629
|
-
"name": "
|
|
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`"
|
|
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."
|
|
28631
28555
|
}
|
|
28632
28556
|
],
|
|
28633
28557
|
"exports": [
|
|
28634
28558
|
{
|
|
28635
28559
|
"kind": "js",
|
|
28636
|
-
"name": "
|
|
28560
|
+
"name": "buildTimelineEntries",
|
|
28637
28561
|
"declaration": {
|
|
28638
|
-
"name": "
|
|
28639
|
-
"module": "src/
|
|
28562
|
+
"name": "buildTimelineEntries",
|
|
28563
|
+
"module": "src/state/persistence/build-timeline-entries.ts"
|
|
28640
28564
|
}
|
|
28641
28565
|
}
|
|
28642
28566
|
]
|
|
28643
28567
|
},
|
|
28644
28568
|
{
|
|
28645
28569
|
"kind": "javascript-module",
|
|
28646
|
-
"path": "src/
|
|
28570
|
+
"path": "src/state/persistence/debug-log-assembly.ts",
|
|
28647
28571
|
"declarations": [
|
|
28648
28572
|
{
|
|
28649
|
-
"kind": "
|
|
28650
|
-
"name": "
|
|
28651
|
-
"
|
|
28652
|
-
"
|
|
28573
|
+
"kind": "function",
|
|
28574
|
+
"name": "buildDiagnosticEntries",
|
|
28575
|
+
"return": {
|
|
28576
|
+
"type": {
|
|
28577
|
+
"text": "DiagnosticEntry[]"
|
|
28578
|
+
}
|
|
28653
28579
|
},
|
|
28654
|
-
"
|
|
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."
|
|
28589
|
+
},
|
|
28590
|
+
{
|
|
28591
|
+
"kind": "function",
|
|
28592
|
+
"name": "lifetimeDebugLog",
|
|
28593
|
+
"return": {
|
|
28594
|
+
"type": {
|
|
28595
|
+
"text": "Promise<DebugLog>"
|
|
28596
|
+
}
|
|
28597
|
+
},
|
|
28598
|
+
"parameters": [
|
|
28599
|
+
{
|
|
28600
|
+
"name": "input",
|
|
28601
|
+
"type": {
|
|
28602
|
+
"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}"
|
|
28603
|
+
}
|
|
28604
|
+
}
|
|
28605
|
+
],
|
|
28606
|
+
"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."
|
|
28655
28607
|
}
|
|
28656
28608
|
],
|
|
28657
28609
|
"exports": [
|
|
28658
28610
|
{
|
|
28659
28611
|
"kind": "js",
|
|
28660
|
-
"name": "
|
|
28612
|
+
"name": "buildDiagnosticEntries",
|
|
28661
28613
|
"declaration": {
|
|
28662
|
-
"name": "
|
|
28663
|
-
"module": "src/
|
|
28614
|
+
"name": "buildDiagnosticEntries",
|
|
28615
|
+
"module": "src/state/persistence/debug-log-assembly.ts"
|
|
28616
|
+
}
|
|
28617
|
+
},
|
|
28618
|
+
{
|
|
28619
|
+
"kind": "js",
|
|
28620
|
+
"name": "lifetimeDebugLog",
|
|
28621
|
+
"declaration": {
|
|
28622
|
+
"name": "lifetimeDebugLog",
|
|
28623
|
+
"module": "src/state/persistence/debug-log-assembly.ts"
|
|
28664
28624
|
}
|
|
28665
28625
|
}
|
|
28666
28626
|
]
|
|
28667
28627
|
},
|
|
28668
28628
|
{
|
|
28669
28629
|
"kind": "javascript-module",
|
|
28670
|
-
"path": "src/
|
|
28630
|
+
"path": "src/state/persistence/diagnostics-cursors.ts",
|
|
28671
28631
|
"declarations": [
|
|
28672
28632
|
{
|
|
28673
|
-
"kind": "
|
|
28674
|
-
"name": "
|
|
28675
|
-
"
|
|
28676
|
-
"
|
|
28633
|
+
"kind": "function",
|
|
28634
|
+
"name": "getDiagnosticsCursors",
|
|
28635
|
+
"return": {
|
|
28636
|
+
"type": {
|
|
28637
|
+
"text": "DiagnosticsCursors"
|
|
28638
|
+
}
|
|
28677
28639
|
},
|
|
28678
|
-
"
|
|
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
|
-
},
|
|
28765
|
-
{
|
|
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",
|
|
28814
|
-
"type": {
|
|
28815
|
-
"text": "string"
|
|
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
|
|
28819
|
-
},
|
|
28640
|
+
"parameters": [
|
|
28820
28641
|
{
|
|
28821
|
-
"
|
|
28822
|
-
"name": "rowActionHeading",
|
|
28642
|
+
"name": "key",
|
|
28823
28643
|
"type": {
|
|
28824
28644
|
"text": "string"
|
|
28825
|
-
}
|
|
28826
|
-
|
|
28827
|
-
|
|
28828
|
-
|
|
28645
|
+
}
|
|
28646
|
+
}
|
|
28647
|
+
],
|
|
28648
|
+
"description": "The shared cursors for `key`, created (empty) on first access. @internal"
|
|
28649
|
+
},
|
|
28650
|
+
{
|
|
28651
|
+
"kind": "function",
|
|
28652
|
+
"name": "clearDiagnosticsCursorRegistry",
|
|
28653
|
+
"return": {
|
|
28654
|
+
"type": {
|
|
28655
|
+
"text": "void"
|
|
28656
|
+
}
|
|
28657
|
+
},
|
|
28658
|
+
"description": "Drop all cursors — test isolation only. @internal"
|
|
28659
|
+
}
|
|
28660
|
+
],
|
|
28661
|
+
"exports": [
|
|
28662
|
+
{
|
|
28663
|
+
"kind": "js",
|
|
28664
|
+
"name": "getDiagnosticsCursors",
|
|
28665
|
+
"declaration": {
|
|
28666
|
+
"name": "getDiagnosticsCursors",
|
|
28667
|
+
"module": "src/state/persistence/diagnostics-cursors.ts"
|
|
28668
|
+
}
|
|
28669
|
+
},
|
|
28670
|
+
{
|
|
28671
|
+
"kind": "js",
|
|
28672
|
+
"name": "clearDiagnosticsCursorRegistry",
|
|
28673
|
+
"declaration": {
|
|
28674
|
+
"name": "clearDiagnosticsCursorRegistry",
|
|
28675
|
+
"module": "src/state/persistence/diagnostics-cursors.ts"
|
|
28676
|
+
}
|
|
28677
|
+
}
|
|
28678
|
+
]
|
|
28679
|
+
},
|
|
28680
|
+
{
|
|
28681
|
+
"kind": "javascript-module",
|
|
28682
|
+
"path": "src/state/persistence/diagnostics.ts",
|
|
28683
|
+
"declarations": [
|
|
28684
|
+
{
|
|
28685
|
+
"kind": "function",
|
|
28686
|
+
"name": "assembleDebugLog",
|
|
28687
|
+
"return": {
|
|
28688
|
+
"type": {
|
|
28689
|
+
"text": "DebugLog"
|
|
28690
|
+
}
|
|
28691
|
+
},
|
|
28692
|
+
"parameters": [
|
|
28829
28693
|
{
|
|
28830
|
-
"
|
|
28831
|
-
"name": "tableLabel",
|
|
28694
|
+
"name": "entries",
|
|
28832
28695
|
"type": {
|
|
28833
|
-
"text": "
|
|
28834
|
-
}
|
|
28835
|
-
"description": "The table's accessible name. A run's names its handler and table, as its header does.",
|
|
28836
|
-
"readonly": true
|
|
28696
|
+
"text": "DiagnosticEntry[]"
|
|
28697
|
+
}
|
|
28837
28698
|
},
|
|
28838
28699
|
{
|
|
28839
|
-
"
|
|
28840
|
-
"name": "rowActionLines",
|
|
28700
|
+
"name": "readme",
|
|
28841
28701
|
"type": {
|
|
28842
|
-
"text": "string[]"
|
|
28843
|
-
}
|
|
28844
|
-
|
|
28845
|
-
|
|
28846
|
-
|
|
28702
|
+
"text": "readonly string[]"
|
|
28703
|
+
}
|
|
28704
|
+
}
|
|
28705
|
+
],
|
|
28706
|
+
"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."
|
|
28707
|
+
},
|
|
28708
|
+
{
|
|
28709
|
+
"kind": "function",
|
|
28710
|
+
"name": "withFreshMetaSnapshot",
|
|
28711
|
+
"return": {
|
|
28712
|
+
"type": {
|
|
28713
|
+
"text": "DiagnosticEntry[]"
|
|
28714
|
+
}
|
|
28715
|
+
},
|
|
28716
|
+
"parameters": [
|
|
28847
28717
|
{
|
|
28848
|
-
"
|
|
28849
|
-
"name": "answered",
|
|
28718
|
+
"name": "stored",
|
|
28850
28719
|
"type": {
|
|
28851
|
-
"text": "
|
|
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."
|
|
28720
|
+
"text": "readonly DiagnosticEntry[]"
|
|
28721
|
+
}
|
|
28856
28722
|
},
|
|
28857
28723
|
{
|
|
28858
|
-
"
|
|
28859
|
-
"name": "settled",
|
|
28724
|
+
"name": "fresh",
|
|
28860
28725
|
"type": {
|
|
28861
|
-
"text": "
|
|
28862
|
-
}
|
|
28863
|
-
|
|
28864
|
-
|
|
28865
|
-
|
|
28726
|
+
"text": "DiagnosticEntry"
|
|
28727
|
+
}
|
|
28728
|
+
}
|
|
28729
|
+
],
|
|
28730
|
+
"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."
|
|
28731
|
+
}
|
|
28732
|
+
],
|
|
28733
|
+
"exports": [
|
|
28734
|
+
{
|
|
28735
|
+
"kind": "js",
|
|
28736
|
+
"name": "assembleDebugLog",
|
|
28737
|
+
"declaration": {
|
|
28738
|
+
"name": "assembleDebugLog",
|
|
28739
|
+
"module": "src/state/persistence/diagnostics.ts"
|
|
28740
|
+
}
|
|
28741
|
+
},
|
|
28742
|
+
{
|
|
28743
|
+
"kind": "js",
|
|
28744
|
+
"name": "withFreshMetaSnapshot",
|
|
28745
|
+
"declaration": {
|
|
28746
|
+
"name": "withFreshMetaSnapshot",
|
|
28747
|
+
"module": "src/state/persistence/diagnostics.ts"
|
|
28748
|
+
}
|
|
28749
|
+
}
|
|
28750
|
+
]
|
|
28751
|
+
},
|
|
28752
|
+
{
|
|
28753
|
+
"kind": "javascript-module",
|
|
28754
|
+
"path": "src/state/persistence/index.ts",
|
|
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
|
+
},
|
|
28829
|
+
{
|
|
28830
|
+
"kind": "js",
|
|
28831
|
+
"name": "DiagnosticEntry",
|
|
28832
|
+
"declaration": {
|
|
28833
|
+
"name": "DiagnosticEntry",
|
|
28834
|
+
"module": "./diagnostics"
|
|
28835
|
+
}
|
|
28836
|
+
},
|
|
28837
|
+
{
|
|
28838
|
+
"kind": "js",
|
|
28839
|
+
"name": "DebugLog",
|
|
28840
|
+
"declaration": {
|
|
28841
|
+
"name": "DebugLog",
|
|
28842
|
+
"module": "./diagnostics"
|
|
28843
|
+
}
|
|
28844
|
+
},
|
|
28845
|
+
{
|
|
28846
|
+
"kind": "js",
|
|
28847
|
+
"name": "buildDiagnosticEntries",
|
|
28848
|
+
"declaration": {
|
|
28849
|
+
"name": "buildDiagnosticEntries",
|
|
28850
|
+
"module": "./debug-log-assembly"
|
|
28851
|
+
}
|
|
28852
|
+
},
|
|
28853
|
+
{
|
|
28854
|
+
"kind": "js",
|
|
28855
|
+
"name": "lifetimeDebugLog",
|
|
28856
|
+
"declaration": {
|
|
28857
|
+
"name": "lifetimeDebugLog",
|
|
28858
|
+
"module": "./debug-log-assembly"
|
|
28859
|
+
}
|
|
28860
|
+
}
|
|
28861
|
+
]
|
|
28862
|
+
},
|
|
28863
|
+
{
|
|
28864
|
+
"kind": "javascript-module",
|
|
28865
|
+
"path": "src/state/persistence/persister-registry.ts",
|
|
28866
|
+
"declarations": [
|
|
28867
|
+
{
|
|
28868
|
+
"kind": "function",
|
|
28869
|
+
"name": "getOrCreatePersister",
|
|
28870
|
+
"return": {
|
|
28871
|
+
"type": {
|
|
28872
|
+
"text": "SessionPersister"
|
|
28873
|
+
}
|
|
28874
|
+
},
|
|
28875
|
+
"parameters": [
|
|
28866
28876
|
{
|
|
28867
|
-
"
|
|
28868
|
-
"name": "approved",
|
|
28877
|
+
"name": "key",
|
|
28869
28878
|
"type": {
|
|
28870
|
-
"text": "
|
|
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
|
|
28879
|
+
"text": "string"
|
|
28880
|
+
}
|
|
28874
28881
|
},
|
|
28875
28882
|
{
|
|
28876
|
-
"
|
|
28877
|
-
"name": "outcome",
|
|
28883
|
+
"name": "factory",
|
|
28878
28884
|
"type": {
|
|
28879
|
-
"text": "
|
|
28880
|
-
}
|
|
28881
|
-
|
|
28882
|
-
|
|
28883
|
-
|
|
28884
|
-
|
|
28885
|
-
|
|
28886
|
-
|
|
28887
|
-
|
|
28888
|
-
|
|
28889
|
-
|
|
28890
|
-
|
|
28891
|
-
|
|
28892
|
-
|
|
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
|
-
},
|
|
28885
|
+
"text": "() => SessionPersister"
|
|
28886
|
+
}
|
|
28887
|
+
}
|
|
28888
|
+
],
|
|
28889
|
+
"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."
|
|
28890
|
+
},
|
|
28891
|
+
{
|
|
28892
|
+
"kind": "function",
|
|
28893
|
+
"name": "getPersister",
|
|
28894
|
+
"return": {
|
|
28895
|
+
"type": {
|
|
28896
|
+
"text": "SessionPersister | undefined"
|
|
28897
|
+
}
|
|
28898
|
+
},
|
|
28899
|
+
"parameters": [
|
|
28902
28900
|
{
|
|
28903
|
-
"
|
|
28904
|
-
"name": "closedSummary",
|
|
28901
|
+
"name": "key",
|
|
28905
28902
|
"type": {
|
|
28906
28903
|
"text": "string"
|
|
28907
|
-
}
|
|
28908
|
-
|
|
28909
|
-
|
|
28910
|
-
|
|
28911
|
-
|
|
28912
|
-
|
|
28913
|
-
|
|
28914
|
-
|
|
28915
|
-
|
|
28916
|
-
|
|
28917
|
-
|
|
28918
|
-
|
|
28919
|
-
|
|
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
|
-
},
|
|
28904
|
+
}
|
|
28905
|
+
}
|
|
28906
|
+
],
|
|
28907
|
+
"description": "Returns the existing persister for `key`, or `undefined`."
|
|
28908
|
+
},
|
|
28909
|
+
{
|
|
28910
|
+
"kind": "function",
|
|
28911
|
+
"name": "deletePersister",
|
|
28912
|
+
"return": {
|
|
28913
|
+
"type": {
|
|
28914
|
+
"text": "void"
|
|
28915
|
+
}
|
|
28916
|
+
},
|
|
28917
|
+
"parameters": [
|
|
28943
28918
|
{
|
|
28944
|
-
"
|
|
28945
|
-
"
|
|
28946
|
-
|
|
28947
|
-
|
|
28948
|
-
|
|
28949
|
-
|
|
28950
|
-
|
|
28951
|
-
|
|
28952
|
-
|
|
28953
|
-
|
|
28919
|
+
"name": "key",
|
|
28920
|
+
"type": {
|
|
28921
|
+
"text": "string"
|
|
28922
|
+
}
|
|
28923
|
+
}
|
|
28924
|
+
],
|
|
28925
|
+
"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)."
|
|
28926
|
+
}
|
|
28927
|
+
],
|
|
28928
|
+
"exports": [
|
|
28929
|
+
{
|
|
28930
|
+
"kind": "js",
|
|
28931
|
+
"name": "getOrCreatePersister",
|
|
28932
|
+
"declaration": {
|
|
28933
|
+
"name": "getOrCreatePersister",
|
|
28934
|
+
"module": "src/state/persistence/persister-registry.ts"
|
|
28935
|
+
}
|
|
28936
|
+
},
|
|
28937
|
+
{
|
|
28938
|
+
"kind": "js",
|
|
28939
|
+
"name": "getPersister",
|
|
28940
|
+
"declaration": {
|
|
28941
|
+
"name": "getPersister",
|
|
28942
|
+
"module": "src/state/persistence/persister-registry.ts"
|
|
28943
|
+
}
|
|
28944
|
+
},
|
|
28945
|
+
{
|
|
28946
|
+
"kind": "js",
|
|
28947
|
+
"name": "deletePersister",
|
|
28948
|
+
"declaration": {
|
|
28949
|
+
"name": "deletePersister",
|
|
28950
|
+
"module": "src/state/persistence/persister-registry.ts"
|
|
28951
|
+
}
|
|
28952
|
+
}
|
|
28953
|
+
]
|
|
28954
|
+
},
|
|
28955
|
+
{
|
|
28956
|
+
"kind": "javascript-module",
|
|
28957
|
+
"path": "src/state/persistence/resume-verdict.ts",
|
|
28958
|
+
"declarations": [],
|
|
28959
|
+
"exports": []
|
|
28960
|
+
},
|
|
28961
|
+
{
|
|
28962
|
+
"kind": "javascript-module",
|
|
28963
|
+
"path": "src/state/persistence/session-persistence-provider.ts",
|
|
28964
|
+
"declarations": [
|
|
28965
|
+
{
|
|
28966
|
+
"kind": "class",
|
|
28967
|
+
"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.",
|
|
28968
|
+
"name": "WebStorageSessionProvider",
|
|
28969
|
+
"members": [
|
|
28954
28970
|
{
|
|
28955
28971
|
"kind": "field",
|
|
28956
|
-
"name": "
|
|
28972
|
+
"name": "storage",
|
|
28957
28973
|
"type": {
|
|
28958
|
-
"text": "
|
|
28974
|
+
"text": "Storage"
|
|
28959
28975
|
},
|
|
28960
|
-
"
|
|
28976
|
+
"privacy": "private",
|
|
28977
|
+
"readonly": true,
|
|
28978
|
+
"default": "storage"
|
|
28961
28979
|
},
|
|
28962
28980
|
{
|
|
28963
28981
|
"kind": "field",
|
|
28964
|
-
"name": "
|
|
28982
|
+
"name": "keyPrefix",
|
|
28965
28983
|
"type": {
|
|
28966
|
-
"text": "
|
|
28984
|
+
"text": "string"
|
|
28967
28985
|
},
|
|
28968
|
-
"
|
|
28986
|
+
"privacy": "private",
|
|
28969
28987
|
"readonly": true
|
|
28970
28988
|
},
|
|
28971
28989
|
{
|
|
28972
28990
|
"kind": "field",
|
|
28973
|
-
"name": "
|
|
28991
|
+
"name": "saveDebounceMs",
|
|
28974
28992
|
"type": {
|
|
28975
|
-
"text": "
|
|
28993
|
+
"text": "number"
|
|
28976
28994
|
},
|
|
28977
|
-
"readonly": true
|
|
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)."
|
|
28978
28997
|
},
|
|
28979
28998
|
{
|
|
28980
28999
|
"kind": "method",
|
|
28981
|
-
"name": "
|
|
29000
|
+
"name": "storageKey",
|
|
29001
|
+
"privacy": "private",
|
|
28982
29002
|
"return": {
|
|
28983
29003
|
"type": {
|
|
28984
|
-
"text": "
|
|
29004
|
+
"text": "string"
|
|
28985
29005
|
}
|
|
28986
29006
|
},
|
|
28987
29007
|
"parameters": [
|
|
28988
29008
|
{
|
|
28989
|
-
"name": "
|
|
29009
|
+
"name": "sessionKey",
|
|
28990
29010
|
"type": {
|
|
28991
|
-
"text": "
|
|
29011
|
+
"text": "string"
|
|
28992
29012
|
}
|
|
28993
29013
|
}
|
|
28994
29014
|
]
|
|
28995
29015
|
},
|
|
28996
29016
|
{
|
|
28997
29017
|
"kind": "method",
|
|
28998
|
-
"name": "
|
|
29018
|
+
"name": "preferencesKey",
|
|
29019
|
+
"privacy": "private",
|
|
28999
29020
|
"return": {
|
|
29000
29021
|
"type": {
|
|
29001
|
-
"text": "
|
|
29022
|
+
"text": "string"
|
|
29002
29023
|
}
|
|
29003
29024
|
},
|
|
29004
29025
|
"parameters": [
|
|
29005
29026
|
{
|
|
29006
|
-
"name": "
|
|
29007
|
-
"type": {
|
|
29008
|
-
"text": "number"
|
|
29009
|
-
}
|
|
29010
|
-
},
|
|
29011
|
-
{
|
|
29012
|
-
"name": "checked",
|
|
29027
|
+
"name": "sessionKey",
|
|
29013
29028
|
"type": {
|
|
29014
|
-
"text": "
|
|
29029
|
+
"text": "string"
|
|
29015
29030
|
}
|
|
29016
29031
|
}
|
|
29017
29032
|
],
|
|
29018
|
-
"description": "
|
|
29033
|
+
"description": "Preferences key, namespaced apart from the session key so `clear` leaves it."
|
|
29019
29034
|
},
|
|
29020
29035
|
{
|
|
29021
29036
|
"kind": "method",
|
|
29022
|
-
"name": "
|
|
29037
|
+
"name": "load",
|
|
29023
29038
|
"return": {
|
|
29024
29039
|
"type": {
|
|
29025
|
-
"text": "
|
|
29040
|
+
"text": "Promise<PersistedSession | null>"
|
|
29026
29041
|
}
|
|
29027
29042
|
},
|
|
29028
29043
|
"parameters": [
|
|
29029
29044
|
{
|
|
29030
|
-
"name": "
|
|
29045
|
+
"name": "sessionKey",
|
|
29031
29046
|
"type": {
|
|
29032
|
-
"text": "
|
|
29047
|
+
"text": "string"
|
|
29033
29048
|
}
|
|
29034
29049
|
}
|
|
29035
|
-
]
|
|
29036
|
-
"description": "One click for a good batch — a deliberate one, which is the point of starting empty."
|
|
29037
|
-
},
|
|
29038
|
-
{
|
|
29039
|
-
"kind": "method",
|
|
29040
|
-
"name": "write",
|
|
29041
|
-
"return": {
|
|
29042
|
-
"type": {
|
|
29043
|
-
"text": "void"
|
|
29044
|
-
}
|
|
29045
|
-
}
|
|
29050
|
+
]
|
|
29046
29051
|
},
|
|
29047
29052
|
{
|
|
29048
29053
|
"kind": "method",
|
|
29049
|
-
"name": "
|
|
29050
|
-
"privacy": "private",
|
|
29054
|
+
"name": "save",
|
|
29051
29055
|
"return": {
|
|
29052
29056
|
"type": {
|
|
29053
|
-
"text": "void"
|
|
29057
|
+
"text": "Promise<void>"
|
|
29054
29058
|
}
|
|
29055
29059
|
},
|
|
29056
29060
|
"parameters": [
|
|
29057
29061
|
{
|
|
29058
|
-
"name": "
|
|
29062
|
+
"name": "sessionKey",
|
|
29059
29063
|
"type": {
|
|
29060
|
-
"text": "
|
|
29064
|
+
"text": "string"
|
|
29065
|
+
}
|
|
29066
|
+
},
|
|
29067
|
+
{
|
|
29068
|
+
"name": "snapshot",
|
|
29069
|
+
"type": {
|
|
29070
|
+
"text": "PersistedSession"
|
|
29061
29071
|
}
|
|
29062
29072
|
}
|
|
29063
|
-
]
|
|
29064
|
-
"description": "The one way this widget talks back: `interaction-completed`, exactly once."
|
|
29065
|
-
},
|
|
29066
|
-
{
|
|
29067
|
-
"kind": "method",
|
|
29068
|
-
"name": "deny",
|
|
29069
|
-
"return": {
|
|
29070
|
-
"type": {
|
|
29071
|
-
"text": "void"
|
|
29072
|
-
}
|
|
29073
|
-
},
|
|
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."
|
|
29073
|
+
]
|
|
29075
29074
|
},
|
|
29076
29075
|
{
|
|
29077
29076
|
"kind": "method",
|
|
29078
|
-
"name": "
|
|
29077
|
+
"name": "clear",
|
|
29079
29078
|
"return": {
|
|
29080
29079
|
"type": {
|
|
29081
|
-
"text": "void"
|
|
29080
|
+
"text": "Promise<void>"
|
|
29082
29081
|
}
|
|
29083
29082
|
},
|
|
29084
|
-
"
|
|
29085
|
-
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
|
|
29089
|
-
|
|
29090
|
-
"type": {
|
|
29091
|
-
"text": "void"
|
|
29083
|
+
"parameters": [
|
|
29084
|
+
{
|
|
29085
|
+
"name": "sessionKey",
|
|
29086
|
+
"type": {
|
|
29087
|
+
"text": "string"
|
|
29088
|
+
}
|
|
29092
29089
|
}
|
|
29093
|
-
|
|
29094
|
-
"description": "Closes the change request without sending it; the text is kept for a second try."
|
|
29090
|
+
]
|
|
29095
29091
|
},
|
|
29096
29092
|
{
|
|
29097
29093
|
"kind": "method",
|
|
29098
|
-
"name": "
|
|
29094
|
+
"name": "loadPreferences",
|
|
29099
29095
|
"return": {
|
|
29100
29096
|
"type": {
|
|
29101
|
-
"text": "
|
|
29097
|
+
"text": "Promise<SessionPreferences | undefined>"
|
|
29102
29098
|
}
|
|
29103
29099
|
},
|
|
29104
29100
|
"parameters": [
|
|
29105
29101
|
{
|
|
29106
|
-
"name": "
|
|
29102
|
+
"name": "sessionKey",
|
|
29107
29103
|
"type": {
|
|
29108
29104
|
"text": "string"
|
|
29109
29105
|
}
|
|
29110
29106
|
}
|
|
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
|
|
29131
|
-
},
|
|
29132
|
-
{
|
|
29133
|
-
"kind": "method",
|
|
29134
|
-
"name": "sendChanges",
|
|
29135
|
-
"return": {
|
|
29136
|
-
"type": {
|
|
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."
|
|
29107
|
+
]
|
|
29141
29108
|
},
|
|
29142
29109
|
{
|
|
29143
29110
|
"kind": "method",
|
|
29144
|
-
"name": "
|
|
29145
|
-
"privacy": "private",
|
|
29111
|
+
"name": "savePreferences",
|
|
29146
29112
|
"return": {
|
|
29147
29113
|
"type": {
|
|
29148
|
-
"text": "void"
|
|
29114
|
+
"text": "Promise<void>"
|
|
29149
29115
|
}
|
|
29150
29116
|
},
|
|
29151
29117
|
"parameters": [
|
|
29152
29118
|
{
|
|
29153
|
-
"name": "
|
|
29119
|
+
"name": "sessionKey",
|
|
29154
29120
|
"type": {
|
|
29155
29121
|
"text": "string"
|
|
29156
29122
|
}
|
|
29157
29123
|
},
|
|
29158
29124
|
{
|
|
29159
|
-
"name": "
|
|
29160
|
-
"optional": true,
|
|
29125
|
+
"name": "preferences",
|
|
29161
29126
|
"type": {
|
|
29162
|
-
"text": "
|
|
29127
|
+
"text": "SessionPreferences"
|
|
29163
29128
|
}
|
|
29164
29129
|
}
|
|
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."
|
|
29167
|
-
}
|
|
29168
|
-
],
|
|
29169
|
-
"events": [
|
|
29170
|
-
{
|
|
29171
|
-
"description": "Fired once, when the user writes, asks for changes or denies. detail: `GenesisWriteReviewCompletedEventDetail`",
|
|
29172
|
-
"name": "interaction-completed"
|
|
29130
|
+
]
|
|
29173
29131
|
}
|
|
29174
|
-
]
|
|
29175
|
-
"superclass": {
|
|
29176
|
-
"name": "GenesisElement",
|
|
29177
|
-
"package": "@genesislcap/web-core"
|
|
29178
|
-
},
|
|
29179
|
-
"tagName": "GENESIS_WRITE_REVIEW",
|
|
29180
|
-
"customElement": true
|
|
29132
|
+
]
|
|
29181
29133
|
}
|
|
29182
29134
|
],
|
|
29183
29135
|
"exports": [
|
|
29184
29136
|
{
|
|
29185
29137
|
"kind": "js",
|
|
29186
|
-
"name": "
|
|
29138
|
+
"name": "WebStorageSessionProvider",
|
|
29187
29139
|
"declaration": {
|
|
29188
|
-
"name": "
|
|
29189
|
-
"module": "src/
|
|
29140
|
+
"name": "WebStorageSessionProvider",
|
|
29141
|
+
"module": "src/state/persistence/session-persistence-provider.ts"
|
|
29190
29142
|
}
|
|
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"
|
|
29191
29165
|
},
|
|
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": "PERSISTED_SESSION_VERSION",
|
|
29195
29195
|
"declaration": {
|
|
29196
|
-
"name": "
|
|
29197
|
-
"module": "src/
|
|
29196
|
+
"name": "PERSISTED_SESSION_VERSION",
|
|
29197
|
+
"module": "src/state/persistence/session-snapshot.ts"
|
|
29198
29198
|
}
|
|
29199
29199
|
},
|
|
29200
29200
|
{
|
|
29201
|
-
"kind": "
|
|
29202
|
-
"name": "
|
|
29201
|
+
"kind": "js",
|
|
29202
|
+
"name": "unknownAgentSnapshots",
|
|
29203
29203
|
"declaration": {
|
|
29204
|
-
"name": "
|
|
29205
|
-
"module": "src/
|
|
29204
|
+
"name": "unknownAgentSnapshots",
|
|
29205
|
+
"module": "src/state/persistence/session-snapshot.ts"
|
|
29206
29206
|
}
|
|
29207
29207
|
}
|
|
29208
29208
|
]
|