@genesislcap/ai-assistant 15.44.0 → 15.45.0

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.
Files changed (39) hide show
  1. package/dist/ai-assistant.api.json +34 -19
  2. package/dist/ai-assistant.d.ts +36 -2
  3. package/dist/chat-driver.cjs +89 -10
  4. package/dist/chat-driver.cjs.map +2 -2
  5. package/dist/chat-driver.mjs +89 -10
  6. package/dist/chat-driver.mjs.map +2 -2
  7. package/dist/custom-elements.json +128 -6
  8. package/dist/dts/components/chat-driver/chat-driver.d.ts +15 -2
  9. package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
  10. package/dist/dts/components/chat-driver/interaction-controller.d.ts +26 -3
  11. package/dist/dts/components/chat-driver/interaction-controller.d.ts.map +1 -1
  12. package/dist/dts/components/chat-interaction-wrapper/chat-interaction-wrapper.d.ts +6 -0
  13. package/dist/dts/components/chat-interaction-wrapper/chat-interaction-wrapper.d.ts.map +1 -1
  14. package/dist/dts/genesis/review-model.d.ts +50 -0
  15. package/dist/dts/genesis/review-model.d.ts.map +1 -1
  16. package/dist/dts/genesis/write-review/write-review.d.ts +15 -1
  17. package/dist/dts/genesis/write-review/write-review.d.ts.map +1 -1
  18. package/dist/dts/genesis/write-review/write-review.styles.d.ts.map +1 -1
  19. package/dist/dts/genesis/write-review/write-review.template.d.ts.map +1 -1
  20. package/dist/dts/genesis/write-tools.d.ts +6 -1
  21. package/dist/dts/genesis/write-tools.d.ts.map +1 -1
  22. package/dist/dts/main/main.template.d.ts +8 -0
  23. package/dist/dts/main/main.template.d.ts.map +1 -1
  24. package/dist/dts/state/debug-event-log.d.ts +1 -1
  25. package/dist/dts/state/debug-event-log.d.ts.map +1 -1
  26. package/dist/dts/types/ai-chat-widget.d.ts +7 -0
  27. package/dist/dts/types/ai-chat-widget.d.ts.map +1 -1
  28. package/dist/esm/components/chat-driver/chat-driver.js +39 -6
  29. package/dist/esm/components/chat-driver/interaction-controller.js +50 -4
  30. package/dist/esm/components/chat-interaction-wrapper/chat-interaction-wrapper.js +17 -6
  31. package/dist/esm/genesis/review-model.js +78 -0
  32. package/dist/esm/genesis/write-review/write-review.js +70 -19
  33. package/dist/esm/genesis/write-review/write-review.styles.js +5 -2
  34. package/dist/esm/genesis/write-review/write-review.template.js +10 -1
  35. package/dist/esm/genesis/write-tools.js +14 -2
  36. package/dist/esm/main/main.template.js +19 -10
  37. package/dist/esm/state/debug-event-log.js +4 -0
  38. package/docs/genesis.md +11 -1
  39. package/package.json +18 -18
@@ -6735,7 +6735,7 @@
6735
6735
  "type": {
6736
6736
  "text": "Record<MetaEventType, MetaEventImportance>"
6737
6737
  },
6738
- "default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n // One per routing decision, with what the classifier answered and what the call cost. Same\n // level as the handoff it produces: you read them together to follow how a turn was routed.\n 'routing.decided': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n // Bookkeeping about an already-finished turn; interesting when reconciling a session total.\n 'interaction.external-cost': 'normal',\n // Spend that was billed but could NOT be recorded (the message was trimmed/condensed away, or\n // the value was not real spend). 'high': it is the one way the session total goes quietly\n // wrong, so it must stand out when reconciling.\n 'interaction.external-cost-dropped': 'high',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
6738
+ "default": "{\n 'turn.error': 'high',\n 'tool.failed': 'high',\n 'subagent.failed': 'high',\n 'file.read-failed': 'high',\n 'suggestions.failed': 'high',\n 'context.threshold-crossed': 'high',\n 'context.compacted': 'high',\n 'persistence.restore-orphan': 'high',\n // A save that did not land is silent data loss in progress: the transcript on screen\n // is no longer backed by the store, and every later turn widens the gap. GENC-1511.\n 'persistence.save-failed': 'high',\n\n 'assistant.connected': 'normal',\n 'assistant.disconnected': 'normal',\n 'assistant.popout': 'normal',\n 'assistant.popin': 'normal',\n 'driver.created': 'normal',\n 'state.changed': 'normal',\n 'turn.start': 'normal',\n 'turn.end': 'normal',\n 'turn.retry': 'normal',\n 'tool.unresolved': 'normal',\n 'subagent.started': 'normal',\n 'subagent.completed': 'normal',\n // One per routing decision, with what the classifier answered and what the call cost. Same\n // level as the handoff it produces: you read them together to follow how a turn was routed.\n 'routing.decided': 'normal',\n 'agent.handoff': 'normal',\n 'agent.pinned': 'normal',\n 'agent.unpinned': 'normal',\n 'provider.selected': 'normal',\n 'interaction.requested': 'normal',\n 'interaction.resolved': 'normal',\n // Bookkeeping about an already-finished turn; interesting when reconciling a session total.\n 'interaction.external-cost': 'normal',\n // Spend that was billed but could NOT be recorded (the message was trimmed/condensed away, or\n // the value was not real spend). 'high': it is the one way the session total goes quietly\n // wrong, so it must stand out when reconciling.\n 'interaction.external-cost-dropped': 'high',\n // What came of an answer, recorded by the tool that asked (see recordInteractionOutcome).\n 'interaction.outcome': 'normal',\n // An outcome that could not be recorded: the widget goes on showing only the answer.\n 'interaction.outcome-dropped': 'high',\n 'external-diagnostics.folded': 'normal',\n 'session.cleared': 'normal',\n 'session.switched': 'low',\n 'session.switch-deferred': 'low',\n 'persistence.restored': 'normal',\n 'persistence.suppressed': 'normal',\n 'persistence.not-resumable': 'normal',\n\n 'driver.wired': 'low',\n 'driver.unwired': 'low',\n 'context.updated': 'low',\n 'context.condensed': 'low',\n 'panel.toggled': 'low',\n 'persistence.toggled': 'low',\n 'persistence.saved': 'low',\n 'attachment.added': 'low',\n}",
6739
6739
  "description": "Importance is intrinsic to the event *type*, not the instance, so it's\ndefined once here and stamped automatically by recordMetaEvent — call\nsites never pass it. The `Record` is exhaustive: adding a `MetaEventType`\nwithout a level here is a compile error.\n\n- `high` — failures and hard limits you almost always want to see.\n- `normal` — meaningful session flow you read to follow what happened.\n- `low` — frequent UI / bookkeeping noise, usually safe to skip."
6740
6740
  },
6741
6741
  {
@@ -12867,7 +12867,14 @@
12867
12867
  {
12868
12868
  "name": "fn",
12869
12869
  "type": {
12870
- "text": "<T>(componentName: string, data: any, options?: InteractionRequestOptions) => Promise<T>"
12870
+ "text": "InteractionRequester"
12871
+ }
12872
+ },
12873
+ {
12874
+ "name": "recordOutcome",
12875
+ "optional": true,
12876
+ "type": {
12877
+ "text": "(interactionId: string, outcome: unknown) => boolean"
12871
12878
  }
12872
12879
  }
12873
12880
  ],
@@ -12904,6 +12911,13 @@
12904
12911
  "text": "InteractionRequestOptions"
12905
12912
  },
12906
12913
  "description": "Optional per-call overrides, including\n`chatInputDuringExecution` to hide or disable the main chat input while\nthe widget is awaiting user input (reverts when the interaction resolves),\nand `presentation` to control whether the host wraps the widget in a chat\nbubble and/or shows the \"Assistant\" label."
12914
+ },
12915
+ {
12916
+ "name": "onOpened",
12917
+ "optional": true,
12918
+ "type": {
12919
+ "text": "(interactionId: string) => void"
12920
+ }
12907
12921
  }
12908
12922
  ],
12909
12923
  "description": "Request a custom UI interaction. Emits a new message with the interaction.\nTool handlers can call this to pause execution until the user completes the UI interaction.\n\nIf a host requester is wired (sub-agent case), the call delegates upward\nso the interaction lives on the parent — the main UI is only listening to\nthe root driver. Only one interaction may be in flight at any time on a\ngiven root: concurrent calls (e.g. two parallel sub-agents both spawning a\nwidget) throw. Parallel sub-agents are for parallel work, not for user\ninteraction, which is inherently sequential."
@@ -13581,11 +13595,20 @@
13581
13595
  "kind": "field",
13582
13596
  "name": "hostRequester",
13583
13597
  "type": {
13584
- "text": "<T>(\n componentName: string,\n data: any,\n options?: InteractionRequestOptions,\n ) => Promise<T> | undefined"
13598
+ "text": "InteractionRequester | undefined"
13585
13599
  },
13586
13600
  "privacy": "private",
13587
13601
  "description": "When set, `request` delegates to this callback instead of using this controller's own pending\nmap. Wired by `invokeSubAgent` so a sub-agent's widget renders in — and resolves through — the\nparent (ultimately the root) driver, where the main UI is listening."
13588
13602
  },
13603
+ {
13604
+ "kind": "field",
13605
+ "name": "hostOutcome",
13606
+ "type": {
13607
+ "text": "(interactionId: string, outcome: unknown) => boolean | undefined"
13608
+ },
13609
+ "privacy": "private",
13610
+ "description": "Wired with `hostRequester`: an outcome goes where its interaction went."
13611
+ },
13589
13612
  {
13590
13613
  "kind": "method",
13591
13614
  "name": "setHostRequester",
@@ -13598,7 +13621,14 @@
13598
13621
  {
13599
13622
  "name": "fn",
13600
13623
  "type": {
13601
- "text": "<T>(componentName: string, data: any, options?: InteractionRequestOptions) => Promise<T>"
13624
+ "text": "InteractionRequester"
13625
+ }
13626
+ },
13627
+ {
13628
+ "name": "recordOutcome",
13629
+ "optional": true,
13630
+ "type": {
13631
+ "text": "(interactionId: string, outcome: unknown) => boolean"
13602
13632
  }
13603
13633
  }
13604
13634
  ],
@@ -13631,9 +13661,16 @@
13631
13661
  "type": {
13632
13662
  "text": "InteractionRequestOptions"
13633
13663
  }
13664
+ },
13665
+ {
13666
+ "name": "onOpened",
13667
+ "optional": true,
13668
+ "type": {
13669
+ "text": "(interactionId: string) => void"
13670
+ }
13634
13671
  }
13635
13672
  ],
13636
- "description": "See `ChatDriver.requestInteraction`."
13673
+ "description": "See `ChatDriver.requestInteraction`. `onOpened` is told the id of the interaction this call\nopens, wherever it opens it, so the caller can later record its outcome and no other's."
13637
13674
  },
13638
13675
  {
13639
13676
  "kind": "method",
@@ -13683,6 +13720,30 @@
13683
13720
  ],
13684
13721
  "description": "See `ChatDriver.recordExternalCost`.\n\n**Why this exists separately from `resolve`.** A widget's spend reaches the session total only\nthrough `InteractionResult.costUsd`, which is read exactly once — `resolve` does its whole job\nagainst a live pending entry and then deletes it. That is correct for the resolution itself,\nbut it assumes a widget stops costing money when it resolves, and several deliberately do not:\na widget that resolves EARLY so the assistant stops waiting (options shown, a preview\nrendered) may stay interactive for minutes afterwards and do more paid work on the user's\nbehalf. Re-emitting `interaction-completed` does not help — with the interaction gone from the\nmap the call is a silent no-op — so that spend had nowhere to go and was simply missing from\nthe figure shown to the user.\n\nTouches only `externalCostUsd`: the recorded `interaction.resolved` payload is left exactly as\nthe resolution wrote it, because this is not a second resolution and must not read like one."
13685
13722
  },
13723
+ {
13724
+ "kind": "method",
13725
+ "name": "recordOutcome",
13726
+ "return": {
13727
+ "type": {
13728
+ "text": "boolean"
13729
+ }
13730
+ },
13731
+ "parameters": [
13732
+ {
13733
+ "name": "interactionId",
13734
+ "type": {
13735
+ "text": "string"
13736
+ }
13737
+ },
13738
+ {
13739
+ "name": "outcome",
13740
+ "type": {
13741
+ "text": "unknown"
13742
+ }
13743
+ }
13744
+ ],
13745
+ "description": "See `ChatDriver.recordInteractionOutcome`."
13746
+ },
13686
13747
  {
13687
13748
  "kind": "method",
13688
13749
  "name": "context",
@@ -14079,6 +14140,15 @@
14079
14140
  "default": "undefined",
14080
14141
  "description": "The resolved result once the interaction has completed. Forwarded to the rendered component. @internal"
14081
14142
  },
14143
+ {
14144
+ "kind": "field",
14145
+ "name": "outcome",
14146
+ "type": {
14147
+ "text": "unknown"
14148
+ },
14149
+ "default": "undefined",
14150
+ "description": "See `AiChatInteraction`'s resolved `outcome`: recorded after the answer, by the tool."
14151
+ },
14082
14152
  {
14083
14153
  "kind": "field",
14084
14154
  "name": "_resizeObserver",
@@ -14101,6 +14171,22 @@
14101
14171
  "kind": "method",
14102
14172
  "name": "resolvedChanged"
14103
14173
  },
14174
+ {
14175
+ "kind": "method",
14176
+ "name": "outcomeChanged",
14177
+ "description": "An outcome recorded after the answer reaches a widget already showing that answer."
14178
+ },
14179
+ {
14180
+ "kind": "method",
14181
+ "name": "resolvedInteraction",
14182
+ "privacy": "private",
14183
+ "return": {
14184
+ "type": {
14185
+ "text": "AiChatInteraction"
14186
+ }
14187
+ },
14188
+ "description": "The resolved descriptor, with the outcome when one has been recorded."
14189
+ },
14104
14190
  {
14105
14191
  "kind": "method",
14106
14192
  "name": "observeWidgetResize",
@@ -15584,7 +15670,7 @@
15584
15670
  {
15585
15671
  "kind": "variable",
15586
15672
  "name": "WriteReviewStyles",
15587
- "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 * 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.\n */\n .not-written {\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 /* 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 td.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 .actions {\n display: flex;\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`"
15673
+ "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 * 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 /* 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 td.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 .actions {\n display: flex;\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`"
15588
15674
  }
15589
15675
  ],
15590
15676
  "exports": [
@@ -15701,6 +15787,15 @@
15701
15787
  "privacy": "private",
15702
15788
  "description": "This element's own answer, until `sayOutcome` has said it."
15703
15789
  },
15790
+ {
15791
+ "kind": "field",
15792
+ "name": "heldAnswer",
15793
+ "type": {
15794
+ "text": "Answered | undefined"
15795
+ },
15796
+ "privacy": "private",
15797
+ "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."
15798
+ },
15704
15799
  {
15705
15800
  "kind": "field",
15706
15801
  "name": "model",
@@ -15755,6 +15850,33 @@
15755
15850
  "description": "The rows the user approved, once the review has resolved — empty for a rejection or a\ntimeout, and while it is still open.",
15756
15851
  "readonly": true
15757
15852
  },
15853
+ {
15854
+ "kind": "field",
15855
+ "name": "outcome",
15856
+ "type": {
15857
+ "text": "ReviewOutcome | undefined"
15858
+ },
15859
+ "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.",
15860
+ "readonly": true
15861
+ },
15862
+ {
15863
+ "kind": "method",
15864
+ "name": "fateOf",
15865
+ "return": {
15866
+ "type": {
15867
+ "text": "ReviewOutcome['rows'][number] | undefined"
15868
+ }
15869
+ },
15870
+ "parameters": [
15871
+ {
15872
+ "name": "index",
15873
+ "type": {
15874
+ "text": "number"
15875
+ }
15876
+ }
15877
+ ],
15878
+ "description": "An approved row's recorded fate, when there is one."
15879
+ },
15758
15880
  {
15759
15881
  "kind": "field",
15760
15882
  "name": "closedSummary",
@@ -9,6 +9,7 @@ import { type CompactionProjection } from '../../utils/context-tokens';
9
9
  import { type CompactionPlanOptions } from '../../utils/history-transform';
10
10
  import { AgentSession } from '../agent-session/agent-session';
11
11
  import type { AiDriver, AllAgentSummary } from '../ai-driver/ai-driver';
12
+ import { type InteractionRequester } from './interaction-controller';
12
13
  import { type TurnSnapshot } from './turn-recorder';
13
14
  /** Re-exported so `from './chat-driver'` keeps resolving these. */
14
15
  export { EMPTY_RESPONSE_NUDGE, MALFORMED_CALL_NUDGE, REQUEST_CONTINUATION_TOOL, } from './chat-driver.constants';
@@ -1066,7 +1067,7 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
1066
1067
  * resolves through) the parent's history and pending map. Calls chain
1067
1068
  * naturally: a grandchild → child → root.
1068
1069
  */
1069
- setHostInteractionRequester(fn: <T>(componentName: string, data: any, options?: InteractionRequestOptions) => Promise<T>): void;
1070
+ setHostInteractionRequester(fn: InteractionRequester, recordOutcome?: (interactionId: string, outcome: unknown) => boolean): void;
1070
1071
  /**
1071
1072
  * Request a custom UI interaction. Emits a new message with the interaction.
1072
1073
  * Tool handlers can call this to pause execution until the user completes the UI interaction.
@@ -1086,7 +1087,19 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
1086
1087
  * and `presentation` to control whether the host wraps the widget in a chat
1087
1088
  * bubble and/or shows the "Assistant" label.
1088
1089
  */
1089
- requestInteraction<T>(componentName: string, data: any, options?: InteractionRequestOptions): Promise<T>;
1090
+ requestInteraction<T>(componentName: string, data: any, options?: InteractionRequestOptions, onOpened?: (interactionId: string) => void): Promise<T>;
1091
+ /**
1092
+ * Record what came of an interaction, after it resolved, on its history message
1093
+ * (`interaction.outcome`): handed to its widget and persisted with the session, never sent to a
1094
+ * model. Routed to the host driver when the interaction lives there (a sub-agent's). `false`,
1095
+ * changing nothing, when it is unknown, still pending, or the value cannot be stored as JSON.
1096
+ *
1097
+ * Tool handlers reach this through `recordInteractionOutcome` on their context, which binds it
1098
+ * to the interaction that call opened: see `buildHandlerContext`.
1099
+ *
1100
+ * @internal
1101
+ */
1102
+ recordInteractionOutcome(interactionId: string, outcome: unknown): boolean;
1090
1103
  /**
1091
1104
  * Add external (non-LLM) spend to an interaction's message AFTER it has resolved — for a widget
1092
1105
  * that resolves early so the assistant stops waiting, then keeps doing paid work on the user's
@@ -1 +1 @@
1
- {"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,cAAc,EAEd,cAAc,EACd,gBAAgB,EAGhB,WAAW,EAQX,yBAAyB,EACzB,qBAAqB,EAGrB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,cAAc,EACd,oBAAoB,EASrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EACV,WAAW,EAKX,iBAAiB,EAKjB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAML,KAAK,uBAAuB,EAK7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,qBAAqB,EAG3B,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,EAAE,QA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,OAAO,EAAE,OAAO,GAAG,OAAO;IAIjF;;;;;;;;;;;;;;;;;;;OAmBG;IACI,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAI1E;;;OAGG;IACI,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI;IAInE;;;;OAIG;IACI,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAInF;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAU/B;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI;IAK3C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAmE/F;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,mBAAmB;IAuH3B;;;;;OAKG;YACW,cAAc;IAoS5B;;;OAGG;IACG,mBAAmB,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;YAqEvE,WAAW;IA0jCzB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,eAAe;IAiBvB,gDAAgD;IAChD,OAAO,CAAC,oBAAoB;CAO7B"}
@@ -1,6 +1,11 @@
1
1
  import type { ChatMessage, InteractionRequestOptions } from '@genesislcap/foundation-ai';
2
2
  import type { ActivityBus } from '../../channel/ai-activity-bus';
3
3
  import type { InteractionContext } from '../../types/interaction-context';
4
+ /**
5
+ * Opens an interaction somewhere else — the parent driver, for a sub-agent's — and tells
6
+ * `onOpened` its id.
7
+ */
8
+ export type InteractionRequester = <T>(componentName: string, data: any, options?: InteractionRequestOptions, onOpened?: (interactionId: string) => void) => Promise<T>;
4
9
  /**
5
10
  * What a controller needs from the driver that owns it: the session it files meta events under,
6
11
  * and the history and event target the interaction is rendered and resolved through.
@@ -51,11 +56,16 @@ export declare class InteractionController {
51
56
  * parent (ultimately the root) driver, where the main UI is listening.
52
57
  */
53
58
  private hostRequester?;
59
+ /** Wired with `hostRequester`: an outcome goes where its interaction went. */
60
+ private hostOutcome?;
54
61
  constructor(deps: InteractionDeps);
55
62
  /** See `ChatDriver.setHostInteractionRequester`. */
56
- setHostRequester(fn: <T>(componentName: string, data: any, options?: InteractionRequestOptions) => Promise<T>): void;
57
- /** See `ChatDriver.requestInteraction`. */
58
- request<T>(componentName: string, data: any, options?: InteractionRequestOptions): Promise<T>;
63
+ setHostRequester(fn: InteractionRequester, recordOutcome?: (interactionId: string, outcome: unknown) => boolean): void;
64
+ /**
65
+ * See `ChatDriver.requestInteraction`. `onOpened` is told the id of the interaction this call
66
+ * opens, wherever it opens it, so the caller can later record its outcome and no other's.
67
+ */
68
+ request<T>(componentName: string, data: any, options?: InteractionRequestOptions, onOpened?: (interactionId: string) => void): Promise<T>;
59
69
  /**
60
70
  * See `ChatDriver.resolveInteraction`. Warns and returns when the id is unknown — a widget can
61
71
  * report twice, and the second report has nothing left to settle.
@@ -78,6 +88,19 @@ export declare class InteractionController {
78
88
  * the resolution wrote it, because this is not a second resolution and must not read like one.
79
89
  */
80
90
  recordExternalCost(interactionId: string, costUsd: number): boolean;
91
+ /**
92
+ * See `ChatDriver.recordInteractionOutcome`.
93
+ *
94
+ * @remarks
95
+ * Only once the interaction has resolved: an outcome is what came of an answer. The message is
96
+ * REPLACED, as `resolve` replaces it, never changed in place — the host's store freezes what it
97
+ * holds. The value is copied as JSON, the form it is persisted in, so what the widget shows now
98
+ * is what a reload shows, and nothing the caller keeps can change it afterwards.
99
+ *
100
+ * Announced on `history-updated`, unlike `recordExternalCost`: the outcome changes what the
101
+ * widget shows, so the resolved widget has to be rebuilt with it.
102
+ */
103
+ recordOutcome(interactionId: string, outcome: unknown): boolean;
81
104
  /** See `ChatDriver.getInteractionContext`. */
82
105
  context(interactionId: string): InteractionContext | undefined;
83
106
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"interaction-controller.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/interaction-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,yBAAyB,EAE1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAMjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAqB1E;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,iCAAiC;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,6FAA6F;IAC7F,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,8EAA8E;IAC9E,eAAe,IAAI,MAAM,GAAG,SAAS,CAAC;IACtC,gFAAgF;IAChF,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5C;;;OAGG;IACH,uBAAuB,CACrB,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,WAAW,GAC3C,OAAO,CAAC;IACX,yDAAyD;IACzD,oBAAoB,IAAI,IAAI,CAAC;IAC7B,iEAAiE;IACjE,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,+FAA+F;IAC/F,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;CAClE;AAED;;;;;;GAMG;AACH,qBAAa,qBAAqB;IAwBpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAvBjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyC;IAEjE;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+C;IAExE;;;;OAIG;IACH,OAAO,CAAC,aAAa,CAAC,CAIN;gBAEa,IAAI,EAAE,eAAe;IAElD,oDAAoD;IACpD,gBAAgB,CACd,EAAE,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,yBAAyB,KAAK,OAAO,CAAC,CAAC,CAAC,GAC3F,IAAI;IAIP,2CAA2C;IAC3C,OAAO,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,CAAC,CAAC;IAmF7F;;;OAGG;IACH,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI;IAwDjD;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IA+CnE,8CAA8C;IAC9C,OAAO,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAI9D;;;;;;;OAOG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAOhC;;;;OAIG;IACH,eAAe,IAAI,IAAI;CAIxB"}
1
+ {"version":3,"file":"interaction-controller.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/interaction-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,yBAAyB,EAE1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAMjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAqB1E;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,EACnC,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,yBAAyB,EACnC,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,KACvC,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB;;;GAGG;AACH,MAAM,W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,KAAK,IAAI,GACzC,OAAO,CAAC,CAAC,CAAC;IAoFb;;;OAGG;IACH,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI;IAwDjD;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IA+CnE;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO;IA4B/D,8CAA8C;IAC9C,OAAO,CAAC,aAAa,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAI9D;;;;;;;OAOG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAOhC;;;;OAIG;IACH,eAAe,IAAI,IAAI;CAIxB"}
@@ -35,6 +35,8 @@ export declare class AiChatInteractionWrapper extends GenesisElement {
35
35
  interactionId: string;
36
36
  /** The resolved result once the interaction has completed. Forwarded to the rendered component. @internal */
37
37
  resolved: InteractionResult<unknown> | undefined;
38
+ /** See `AiChatInteraction`'s resolved `outcome`: recorded after the answer, by the tool. */
39
+ outcome: unknown;
38
40
  /** @internal */
39
41
  container: HTMLElement;
40
42
  /** Observes the rendered widget for mid-lifecycle size changes — see {@link observeWidgetResize}. */
@@ -54,6 +56,10 @@ export declare class AiChatInteractionWrapper extends GenesisElement {
54
56
  */
55
57
  interactionIdChanged(): void;
56
58
  resolvedChanged(): void;
59
+ /** An outcome recorded after the answer reaches a widget already showing that answer. */
60
+ outcomeChanged(): void;
61
+ /** The resolved descriptor, with the outcome when one has been recorded. */
62
+ private resolvedInteraction;
57
63
  /**
58
64
  * Watch the rendered widget element for box-size changes. When the widget
59
65
  * grows or shrinks mid-lifecycle (e.g. expanding a "More info" panel,
@@ -1 +1 @@
1
- {"version":3,"file":"chat-interaction-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAclF,MAAM,MAAM,wBAAwB,GAAG;IACrC,uBAAuB,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAChF,kBAAkB,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAChE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,wBAAwB,CAAC,uBAAuB,CAAC,CAAC;AAEhG;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;AAEtF;;;;;;GAMG;AACH,qBAKa,wBAAyB,SAAQ,cAAc;IAC1D,gBAAgB;IACJ,aAAa,EAAE,MAAM,CAAM;IACvC,gBAAgB;IACJ,IAAI,EAAE,GAAG,CAAC;IACtB,gBAAgB;IACJ,aAAa,EAAE,MAAM,CAAM;IACvC,6GAA6G;IACjG,QAAQ,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG,SAAS,CAAa;IACzE,gBAAgB;IAChB,SAAS,EAAG,WAAW,CAAC;IAExB,qGAAqG;IACrG,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEzC,iBAAiB;IAKjB,oBAAoB;IAMpB,oBAAoB;IAIpB;;;;;;;;;OASG;IACH,oBAAoB;IAIpB,eAAe;IAcf;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,eAAe;IA8EvB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CA8BzB"}
1
+ {"version":3,"file":"chat-interaction-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,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@genesislcap/foundation-ai';
2
2
  import type { GenesisCustomCode, GenesisEventOp } from './types';
3
+ import type { GenesisWriteRowStatus } from './write-tools';
3
4
  export type { GenesisChangeRequest, GenesisReviewPayload } from './review-payload';
4
5
  /**
5
6
  * What the review table shows, and the rules its buttons obey.
@@ -260,4 +261,53 @@ export declare const selectedRows: (model: ReviewModel, selection: ReadonlySet<n
260
261
  index: number;
261
262
  details: Record<string, unknown>;
262
263
  }>;
264
+ /**
265
+ * What came of an approved review's rows, recorded by the write tool once it has written them
266
+ * (`recordInteractionOutcome`), so the review can say it itself: when the user stops the turn
267
+ * mid-write, no reply follows to say which rows landed.
268
+ *
269
+ * @internal
270
+ */
271
+ export interface ReviewOutcome {
272
+ /** The user stopped the turn while the approved rows were being written. */
273
+ stopped: boolean;
274
+ /** Each approved row's fate, by the review's own row index, as the tool result reports it. */
275
+ rows: Array<{
276
+ index: number;
277
+ status: GenesisWriteRowStatus;
278
+ message: string;
279
+ }>;
280
+ }
281
+ /**
282
+ * A recorded outcome as the review can use it, or nothing.
283
+ *
284
+ * @remarks
285
+ * It comes back from history — a saved session, a later version's shape — so it is read, not
286
+ * trusted: a row that does not have its three fields is left out rather than shown wrong.
287
+ *
288
+ * @internal
289
+ */
290
+ export declare function reviewOutcomeFrom(value: unknown): ReviewOutcome | undefined;
291
+ /**
292
+ * What a stopped write's closed review says: how many of its approved rows were written.
293
+ *
294
+ * @remarks
295
+ * Counted in three, never two: a row that was sent and got no answer (`unknown`) may well have
296
+ * been written, and counting it as not written is how a record gets written twice.
297
+ *
298
+ * @internal
299
+ */
300
+ export declare function stoppedSummary(outcome: ReviewOutcome): string;
301
+ /**
302
+ * What an approved row's mark says, from its recorded fate, in words for the user.
303
+ *
304
+ * @remarks
305
+ * A fate's `message` is written for the MODEL ("Read it again before proposing…"), so it is shown
306
+ * only where it carries the app's or the database's own refusal, which is the reason the user
307
+ * needs. A status this version does not know is marked as possibly written: the safe end, since
308
+ * a row counted as not written is one a user may write twice.
309
+ *
310
+ * @internal
311
+ */
312
+ export declare function rowFate(fate: ReviewOutcome['rows'][number]): string;
263
313
  //# sourceMappingURL=review-model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"review-model.d.ts","sourceRoot":"","sources":["../../../src/genesis/review-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIjE,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEnF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,sFAAsF;IACtF,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;;;;OAQG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAuBD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,gBAAgB;AAChB,MAAM,WAAW,SAAS;IACxB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB;;;;;;;;OAQG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;CACf;AAED,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AAa,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAyBnE"}
@@ -1,6 +1,6 @@
1
1
  import { GenesisElement } from '@genesislcap/web-core';
2
2
  import type { AiChatInteraction } from '../../types/ai-chat-widget';
3
- import { type ReviewModel } from '../review-model';
3
+ import { type ReviewModel, type ReviewOutcome } from '../review-model';
4
4
  import { type GenesisReviewPayload } from '../review-payload';
5
5
  /**
6
6
  * The tag the bridge asks for by name when it requests the review interaction.
@@ -41,6 +41,13 @@ export declare class GenesisWriteReview extends GenesisElement {
41
41
  announcement: string;
42
42
  /** This element's own answer, until `sayOutcome` has said it. */
43
43
  private answeredNow?;
44
+ /**
45
+ * The answer this element shows while its outcome is still to come, whose `focused` it keeps
46
+ * current. The rebuild that brings the outcome gives focus back only if this one held it when
47
+ * it was removed: a user who has since moved to the chat input keeps their place.
48
+ */
49
+ private heldAnswer?;
50
+ constructor();
44
51
  /**
45
52
  * The rows, whether the review is still open or already resolved: a user who has approved a
46
53
  * write should still be able to see what they approved. Acting on it is what `settled`
@@ -70,6 +77,13 @@ export declare class GenesisWriteReview extends GenesisElement {
70
77
  * timeout, and while it is still open.
71
78
  */
72
79
  get approved(): number[];
80
+ /**
81
+ * What came of the approved rows, once the write tool has recorded it: see `ReviewOutcome`.
82
+ * Only for an approval — nothing else writes — and only in the shape the review can read.
83
+ */
84
+ get outcome(): ReviewOutcome | undefined;
85
+ /** An approved row's recorded fate, when there is one. */
86
+ fateOf(index: number): ReviewOutcome['rows'][number] | undefined;
73
87
  /**
74
88
  * What a CLOSED review can truthfully say about its outcome.
75
89
  *
@@ -1 +1 @@
1
- {"version":3,"file":"write-review.d.ts","sourceRoot":"","sources":["../../../../src/genesis/write-review/write-review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAML,KAAK,WAAW,EACj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,MAAM,GAAG,OAAO;IAIlC;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;IASlD;;;;;;;;;OASG;IACH,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAM9B,KAAK,IAAI,IAAI;IASb,iFAAiF;IACjF,OAAO,CAAC,OAAO;IAWf;;;;;OAKG;IACH,IAAI,IAAI,IAAI;IAKZ,2DAA2D;IAC3D,WAAW,IAAI,IAAI;IAOnB,uFAAuF;IACvF,IAAI,IAAI,IAAI;IAOZ,gFAAgF;IAChF,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAMjC;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED,oEAAoE;IACpE,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;;;;;OAMG;IACH,WAAW,IAAI,IAAI;IAanB;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAOlB"}
1
+ {"version":3,"file":"write-review.d.ts","sourceRoot":"","sources":["../../../../src/genesis/write-review/write-review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAQL,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,mBAAmB,CAAC;AAK3B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAiE3D;;;;;;;;;;;;;;;;;GAiBG;AACH,qBACa,kBAAmB,SAAQ,cAAc;IACpD,yDAAyD;IACzD,aAAa,SAAM;IAEnB,6FAA6F;IACjF,WAAW,EAAG,iBAAiB,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;IAE/E,gGAAgG;IACpF,QAAQ,EAAE,MAAM,EAAE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G;IACH,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAM9B,KAAK,IAAI,IAAI;IASb,iFAAiF;IACjF,OAAO,CAAC,OAAO;IAWf;;;;;OAKG;IACH,IAAI,IAAI,IAAI;IAKZ,2DAA2D;IAC3D,WAAW,IAAI,IAAI;IAOnB,uFAAuF;IACvF,IAAI,IAAI,IAAI;IAOZ,gFAAgF;IAChF,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAMjC;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED,oEAAoE;IACpE,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;;;;;OAMG;IACH,WAAW,IAAI,IAAI;IAanB;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAOlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"write-review.styles.d.ts","sourceRoot":"","sources":["../../../../src/genesis/write-review/write-review.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,iDAsO7B,CAAC"}
1
+ {"version":3,"file":"write-review.styles.d.ts","sourceRoot":"","sources":["../../../../src/genesis/write-review/write-review.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,iDAyO7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"write-review.template.d.ts","sourceRoot":"","sources":["../../../../src/genesis/write-review/write-review.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,YAAY,EAAQ,MAAM,uBAAuB,CAAC;AAIzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AA2JzD,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,kBAAkB,CAsGhE,CAAC"}
1
+ {"version":3,"file":"write-review.template.d.ts","sourceRoot":"","sources":["../../../../src/genesis/write-review/write-review.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,YAAY,EAAQ,MAAM,uBAAuB,CAAC;AAIzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAqKzD,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,kBAAkB,CAsGhE,CAAC"}
@@ -26,7 +26,12 @@ export type GenesisWriteRowStatus = GenesisWriteStatus
26
26
  /** The user did not select it. Nothing was sent. */
27
27
  | 'not_selected'
28
28
  /** It changed between the review and the approval, so it was left alone. */
29
- | 'changed_since_review';
29
+ | 'changed_since_review'
30
+ /**
31
+ * Approved, and never sent: the user stopped the turn before its turn to be written came.
32
+ * Not `failed`, which says the app could not be reached or the row was refused first.
33
+ */
34
+ | 'stopped';
30
35
  /**
31
36
  * What the user decided in a write review.
32
37
  *
@@ -1 +1 @@
1
- {"version":3,"file":"write-tools.d.ts","sourceRoot":"","sources":["../../../src/genesis/write-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAKzE,OAAO,EAAE,mBAAmB,EAAyB,MAAM,kBAAkB,CAAC;AAY9E,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAwB1D;;;;;;;;;;;;;;;;;GAiBG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,qBAAqB,GAC7B,kBAAkB;AACpB,oDAAoD;GAClD,cAAc;AAChB,4EAA4E;GAC1E,sBAAsB,CAAC;AAE3B;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,mBAAmB,GAAG,WAAW,CAAC;AAE7F;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,QAAQ,EAAE,O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