@genesislcap/ai-assistant 15.37.0 → 15.39.0-rollup-removal.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/custom-elements.json +987 -349
  2. package/dist/dts/genesis/calendar.d.ts +25 -0
  3. package/dist/dts/genesis/calendar.d.ts.map +1 -0
  4. package/dist/dts/genesis/config.d.ts +16 -0
  5. package/dist/dts/genesis/config.d.ts.map +1 -1
  6. package/dist/dts/genesis/criteria.d.ts +24 -2
  7. package/dist/dts/genesis/criteria.d.ts.map +1 -1
  8. package/dist/dts/genesis/event-fields.d.ts +84 -0
  9. package/dist/dts/genesis/event-fields.d.ts.map +1 -0
  10. package/dist/dts/genesis/filter-fields.d.ts +69 -5
  11. package/dist/dts/genesis/filter-fields.d.ts.map +1 -1
  12. package/dist/dts/genesis/index.d.ts +3 -0
  13. package/dist/dts/genesis/index.d.ts.map +1 -1
  14. package/dist/dts/genesis/register-genesis-assistant.d.ts +13 -0
  15. package/dist/dts/genesis/register-genesis-assistant.d.ts.map +1 -1
  16. package/dist/dts/genesis/resource-tools.d.ts.map +1 -1
  17. package/dist/dts/genesis/review-model.d.ts +202 -0
  18. package/dist/dts/genesis/review-model.d.ts.map +1 -0
  19. package/dist/dts/genesis/row-source.d.ts +102 -0
  20. package/dist/dts/genesis/row-source.d.ts.map +1 -0
  21. package/dist/dts/genesis/serialisable.d.ts +25 -0
  22. package/dist/dts/genesis/serialisable.d.ts.map +1 -0
  23. package/dist/dts/genesis/server-text.d.ts +63 -0
  24. package/dist/dts/genesis/server-text.d.ts.map +1 -0
  25. package/dist/dts/genesis/type-name.d.ts +18 -0
  26. package/dist/dts/genesis/type-name.d.ts.map +1 -0
  27. package/dist/dts/genesis/types.d.ts +7 -0
  28. package/dist/dts/genesis/types.d.ts.map +1 -1
  29. package/dist/dts/genesis/value-compare.d.ts +19 -0
  30. package/dist/dts/genesis/value-compare.d.ts.map +1 -0
  31. package/dist/dts/genesis/write-commit.d.ts +53 -0
  32. package/dist/dts/genesis/write-commit.d.ts.map +1 -0
  33. package/dist/dts/genesis/write-outcome.d.ts +133 -0
  34. package/dist/dts/genesis/write-outcome.d.ts.map +1 -0
  35. package/dist/dts/genesis/write-payload.d.ts +129 -0
  36. package/dist/dts/genesis/write-payload.d.ts.map +1 -0
  37. package/dist/dts/genesis/write-plan.d.ts +109 -0
  38. package/dist/dts/genesis/write-plan.d.ts.map +1 -0
  39. package/dist/dts/genesis/write-review/write-review.d.ts +127 -0
  40. package/dist/dts/genesis/write-review/write-review.d.ts.map +1 -0
  41. package/dist/dts/genesis/write-review/write-review.styles.d.ts +2 -0
  42. package/dist/dts/genesis/write-review/write-review.styles.d.ts.map +1 -0
  43. package/dist/dts/genesis/write-review/write-review.template.d.ts +4 -0
  44. package/dist/dts/genesis/write-review/write-review.template.d.ts.map +1 -0
  45. package/dist/dts/genesis/write-tools.d.ts +99 -0
  46. package/dist/dts/genesis/write-tools.d.ts.map +1 -0
  47. package/dist/dts/react.d.ts +10 -0
  48. package/dist/esm/genesis/calendar.js +38 -0
  49. package/dist/esm/genesis/config.js +36 -1
  50. package/dist/esm/genesis/criteria.js +59 -55
  51. package/dist/esm/genesis/event-fields.js +158 -0
  52. package/dist/esm/genesis/filter-fields.js +111 -20
  53. package/dist/esm/genesis/index.js +2 -0
  54. package/dist/esm/genesis/register-genesis-assistant.js +76 -4
  55. package/dist/esm/genesis/resource-tools.js +21 -103
  56. package/dist/esm/genesis/review-model.js +248 -0
  57. package/dist/esm/genesis/row-source.js +127 -0
  58. package/dist/esm/genesis/serialisable.js +38 -0
  59. package/dist/esm/genesis/server-text.js +186 -0
  60. package/dist/esm/genesis/type-name.js +20 -0
  61. package/dist/esm/genesis/value-compare.js +87 -0
  62. package/dist/esm/genesis/write-commit.js +78 -0
  63. package/dist/esm/genesis/write-outcome.js +299 -0
  64. package/dist/esm/genesis/write-payload.js +632 -0
  65. package/dist/esm/genesis/write-plan.js +275 -0
  66. package/dist/esm/genesis/write-review/write-review.js +252 -0
  67. package/dist/esm/genesis/write-review/write-review.styles.js +214 -0
  68. package/dist/esm/genesis/write-review/write-review.template.js +182 -0
  69. package/dist/esm/genesis/write-tools.js +660 -0
  70. package/dist/react.cjs +7 -0
  71. package/dist/react.mjs +6 -0
  72. package/docs/genesis.md +152 -10
  73. package/package.json +17 -18
@@ -1644,206 +1644,7 @@
1644
1644
  },
1645
1645
  {
1646
1646
  "kind": "javascript-module",
1647
- "path": "src/config/config.ts",
1648
- "declarations": [
1649
- {
1650
- "kind": "function",
1651
- "name": "defineAgent",
1652
- "description": "Identity helper that infers the narrowest possible type for an agent config,\npreserving string literal types (including `name`) without requiring `as const`.\n\nUse this when you need `typeof myAgent` to carry the literal `name` type —\nfor example, when wiring `ChatToolHandlers<typeof myAgent>`.\n\n```ts\nconst myAgent = defineAgent({ name: 'my_agent', ... });\ntype Handlers = ChatToolHandlers<typeof myAgent>;\n// requestSubAgent name param is now typed as 'my_agent'\n```"
1653
- }
1654
- ],
1655
- "exports": [
1656
- {
1657
- "kind": "js",
1658
- "name": "CachePolicy",
1659
- "declaration": {
1660
- "name": "CachePolicy",
1661
- "module": "src/config/config.ts"
1662
- }
1663
- },
1664
- {
1665
- "kind": "js",
1666
- "name": "ChatFallback",
1667
- "declaration": {
1668
- "name": "ChatFallback",
1669
- "module": "src/config/config.ts"
1670
- }
1671
- },
1672
- {
1673
- "kind": "js",
1674
- "name": "ChatInputDuringExecutionMode",
1675
- "declaration": {
1676
- "name": "ChatInputDuringExecutionMode",
1677
- "module": "src/config/config.ts"
1678
- }
1679
- },
1680
- {
1681
- "kind": "js",
1682
- "name": "ChatThinkingPolicy",
1683
- "declaration": {
1684
- "name": "ChatThinkingPolicy",
1685
- "module": "src/config/config.ts"
1686
- }
1687
- },
1688
- {
1689
- "kind": "js",
1690
- "name": "ChatToolChoice",
1691
- "declaration": {
1692
- "name": "ChatToolChoice",
1693
- "module": "src/config/config.ts"
1694
- }
1695
- },
1696
- {
1697
- "kind": "js",
1698
- "name": "defineAgent",
1699
- "declaration": {
1700
- "name": "defineAgent",
1701
- "module": "src/config/config.ts"
1702
- }
1703
- }
1704
- ]
1705
- },
1706
- {
1707
- "kind": "javascript-module",
1708
- "path": "src/config/define-stateful-agent.ts",
1709
- "declarations": [
1710
- {
1711
- "kind": "function",
1712
- "name": "restoreMachine",
1713
- "return": {
1714
- "type": {
1715
- "text": "void"
1716
- }
1717
- },
1718
- "parameters": [
1719
- {
1720
- "name": "machine",
1721
- "type": {
1722
- "text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
1723
- },
1724
- "description": "the machine to restore (already constructed/started)."
1725
- },
1726
- {
1727
- "name": "restored",
1728
- "type": {
1729
- "text": "unknown"
1730
- },
1731
- "description": "the agent's serialized image (`ctx.restored` in `init`)."
1732
- },
1733
- {
1734
- "name": "key",
1735
- "default": "'machine'",
1736
- "description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
1737
- }
1738
- ],
1739
- "description": "Restore a foundation-state-machine instance from a snapshot produced by the\ndefault serializer (or `machine.getPersistedSnapshot()`). Call inside a\nstateful agent's `init` to resume the machine in its exact prior place:\n\n```ts\ninit: ({ restored }) => {\n const machine = new MyMachine();\n restoreMachine(machine, restored); // resume, or no-op on a fresh start\n return { machine };\n}\n```\n\nNo-ops when there is nothing to restore (a fresh session), leaving the\nfreshly-constructed machine in its initial state."
1740
- },
1741
- {
1742
- "kind": "function",
1743
- "name": "defineStatefulAgent",
1744
- "return": {
1745
- "type": {
1746
- "text": "AgentConfig"
1747
- }
1748
- },
1749
- "parameters": [
1750
- {
1751
- "name": "opts",
1752
- "type": {
1753
- "text": "StatefulAgentInit<S>"
1754
- }
1755
- }
1756
- ],
1757
- "description": "Build an `AgentConfig` whose `systemPrompt`, `toolDefinitions`, and tool\nhandlers all close over a long-lived state object created on activation.\n\nThe framework wires the lifecycle: `init` on `onActivate`, `dispose` on\n`onDeactivate`. State is held inside the helper's closure — never exposed on\nthe resulting `AgentConfig` — so the redux serializer doesn't see it."
1758
- }
1759
- ],
1760
- "exports": [
1761
- {
1762
- "kind": "js",
1763
- "name": "restoreMachine",
1764
- "declaration": {
1765
- "name": "restoreMachine",
1766
- "module": "src/config/define-stateful-agent.ts"
1767
- }
1768
- },
1769
- {
1770
- "kind": "js",
1771
- "name": "defineStatefulAgent",
1772
- "declaration": {
1773
- "name": "defineStatefulAgent",
1774
- "module": "src/config/define-stateful-agent.ts"
1775
- }
1776
- }
1777
- ]
1778
- },
1779
- {
1780
- "kind": "javascript-module",
1781
- "path": "src/config/fallback-agents.ts",
1782
- "declarations": [
1783
- {
1784
- "kind": "variable",
1785
- "name": "friendlyFallbackAgent",
1786
- "type": {
1787
- "text": "FallbackAgentConfig"
1788
- },
1789
- "default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a warm, friendly assistant. For general conversation like \"Hi\" or \"How are you\", you can have a friendly chat. For anything more complex, you cannot directly help, but you can explain what specialists are available. The available specialists are:\\n\\n{{agents}}\\n\\nPolitely let the user know what you can help with and invite them to rephrase their request if it is outside your scope.`,\n}",
1790
- "description": "A warm, conversational fallback agent. Acknowledges it can't help directly,\nexplains what the available specialists can do, and invites the user to retry.\n\nThe system prompt is generated at runtime by `OrchestratingDriver` from the\nspecialist list — no manual authoring required."
1791
- },
1792
- {
1793
- "kind": "variable",
1794
- "name": "strictFallbackAgent",
1795
- "type": {
1796
- "text": "FallbackAgentConfig"
1797
- },
1798
- "default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a concise assistant. The user's request is outside your scope. The available specialists are: {{agents}}.\n\n{{unroutable}}\n\nAnswer in a single short sentence. Do not elaborate.`,\n}",
1799
- "description": "A brief, professional fallback agent. States what is available without\nelaboration. The `{{agents}}` placeholder is replaced at runtime by\n`OrchestratingDriver` with the generated specialist list.\n\nThe `{{unroutable}}` placeholder positions `UNROUTABLE_INSTRUCTION` — the framework's\ninstruction for a substantive request no specialist covers, which is otherwise APPENDED to a\nstring-form prompt. Positioned rather than appended for one reason: this preset's whole point is\nbrevity, and appended text would be the last thing the model reads. Putting the block above the\nbrevity rule leaves \"a single short sentence\" with the recency, so the two compose instead of\ncompeting. A prompt whose tone rules matter should do the same."
1800
- }
1801
- ],
1802
- "exports": [
1803
- {
1804
- "kind": "js",
1805
- "name": "friendlyFallbackAgent",
1806
- "declaration": {
1807
- "name": "friendlyFallbackAgent",
1808
- "module": "src/config/fallback-agents.ts"
1809
- }
1810
- },
1811
- {
1812
- "kind": "js",
1813
- "name": "strictFallbackAgent",
1814
- "declaration": {
1815
- "name": "strictFallbackAgent",
1816
- "module": "src/config/fallback-agents.ts"
1817
- }
1818
- }
1819
- ]
1820
- },
1821
- {
1822
- "kind": "javascript-module",
1823
- "path": "src/config/index.ts",
1824
- "declarations": [],
1825
- "exports": [
1826
- {
1827
- "kind": "js",
1828
- "name": "*",
1829
- "declaration": {
1830
- "name": "*",
1831
- "package": "./config"
1832
- }
1833
- },
1834
- {
1835
- "kind": "js",
1836
- "name": "*",
1837
- "declaration": {
1838
- "name": "*",
1839
- "package": "./fallback-agents"
1840
- }
1841
- }
1842
- ]
1843
- },
1844
- {
1845
- "kind": "javascript-module",
1846
- "path": "src/config/validate-providers.ts",
1647
+ "path": "src/genesis/calendar.ts",
1847
1648
  "declarations": [],
1848
1649
  "exports": []
1849
1650
  },
@@ -1997,6 +1798,12 @@
1997
1798
  }
1998
1799
  ]
1999
1800
  },
1801
+ {
1802
+ "kind": "javascript-module",
1803
+ "path": "src/genesis/event-fields.ts",
1804
+ "declarations": [],
1805
+ "exports": []
1806
+ },
2000
1807
  {
2001
1808
  "kind": "javascript-module",
2002
1809
  "path": "src/genesis/filter-fields.ts",
@@ -2064,6 +1871,54 @@
2064
1871
  "module": "./resource-tools"
2065
1872
  }
2066
1873
  },
1874
+ {
1875
+ "kind": "js",
1876
+ "name": "createGenesisWriteTools",
1877
+ "declaration": {
1878
+ "name": "createGenesisWriteTools",
1879
+ "module": "./write-tools"
1880
+ }
1881
+ },
1882
+ {
1883
+ "kind": "js",
1884
+ "name": "GenesisWriteResult",
1885
+ "declaration": {
1886
+ "name": "GenesisWriteResult",
1887
+ "module": "./write-tools"
1888
+ }
1889
+ },
1890
+ {
1891
+ "kind": "js",
1892
+ "name": "GenesisWriteRowStatus",
1893
+ "declaration": {
1894
+ "name": "GenesisWriteRowStatus",
1895
+ "module": "./write-tools"
1896
+ }
1897
+ },
1898
+ {
1899
+ "kind": "js",
1900
+ "name": "GenesisWriteToolsOptions",
1901
+ "declaration": {
1902
+ "name": "GenesisWriteToolsOptions",
1903
+ "module": "./write-tools"
1904
+ }
1905
+ },
1906
+ {
1907
+ "kind": "js",
1908
+ "name": "GENESIS_WRITE_REVIEW",
1909
+ "declaration": {
1910
+ "name": "GENESIS_WRITE_REVIEW",
1911
+ "module": "./write-review/write-review"
1912
+ }
1913
+ },
1914
+ {
1915
+ "kind": "js",
1916
+ "name": "GenesisWriteReview",
1917
+ "declaration": {
1918
+ "name": "GenesisWriteReview",
1919
+ "module": "./write-review/write-review"
1920
+ }
1921
+ },
2067
1922
  {
2068
1923
  "kind": "js",
2069
1924
  "name": "GenesisReadResult",
@@ -2273,198 +2128,636 @@
2273
2128
  },
2274
2129
  {
2275
2130
  "kind": "javascript-module",
2276
- "path": "src/genesis/types.ts",
2131
+ "path": "src/genesis/review-model.ts",
2277
2132
  "declarations": [
2278
2133
  {
2279
2134
  "kind": "variable",
2280
- "name": "GENESIS_EVENT_OPS",
2135
+ "name": "LONG_VALUE",
2281
2136
  "type": {
2282
- "text": "['insert', 'modify', 'delete', 'custom']"
2137
+ "text": "number"
2283
2138
  },
2284
- "default": "['insert', 'modify', 'delete', 'custom']",
2285
- "description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
2139
+ "default": "24",
2140
+ "description": "Past this many characters a value wraps; at or under it, it stays on one line."
2286
2141
  }
2287
2142
  ],
2288
2143
  "exports": [
2289
2144
  {
2290
2145
  "kind": "js",
2291
- "name": "GENESIS_EVENT_OPS",
2146
+ "name": "LONG_VALUE",
2292
2147
  "declaration": {
2293
- "name": "GENESIS_EVENT_OPS",
2294
- "module": "src/genesis/types.ts"
2148
+ "name": "LONG_VALUE",
2149
+ "module": "src/genesis/review-model.ts"
2295
2150
  }
2296
2151
  }
2297
2152
  ]
2298
2153
  },
2299
2154
  {
2300
2155
  "kind": "javascript-module",
2301
- "path": "src/main/attachment-controller.ts",
2302
- "declarations": [],
2303
- "exports": []
2304
- },
2305
- {
2306
- "kind": "javascript-module",
2307
- "path": "src/main/budget-controller.ts",
2156
+ "path": "src/genesis/row-source.ts",
2308
2157
  "declarations": [],
2309
2158
  "exports": []
2310
2159
  },
2311
2160
  {
2312
2161
  "kind": "javascript-module",
2313
- "path": "src/main/composer-menu-controller.ts",
2162
+ "path": "src/genesis/serialisable.ts",
2314
2163
  "declarations": [],
2315
2164
  "exports": []
2316
2165
  },
2317
2166
  {
2318
2167
  "kind": "javascript-module",
2319
- "path": "src/main/composer-resize-controller.ts",
2320
- "declarations": [],
2321
- "exports": []
2322
- },
2323
- {
2324
- "kind": "javascript-module",
2325
- "path": "src/main/context-gate-controller.ts",
2326
- "declarations": [],
2327
- "exports": []
2168
+ "path": "src/genesis/server-text.ts",
2169
+ "declarations": [
2170
+ {
2171
+ "kind": "function",
2172
+ "name": "readsLikeFieldName",
2173
+ "return": {
2174
+ "type": {
2175
+ "text": "boolean"
2176
+ }
2177
+ },
2178
+ "parameters": [
2179
+ {
2180
+ "name": "text",
2181
+ "type": {
2182
+ "text": "string"
2183
+ }
2184
+ }
2185
+ ],
2186
+ "description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
2187
+ },
2188
+ {
2189
+ "kind": "function",
2190
+ "name": "describeFailure",
2191
+ "return": {
2192
+ "type": {
2193
+ "text": "string | undefined"
2194
+ }
2195
+ },
2196
+ "parameters": [
2197
+ {
2198
+ "name": "error",
2199
+ "type": {
2200
+ "text": "unknown"
2201
+ }
2202
+ }
2203
+ ],
2204
+ "description": "Whatever a rejection turns out to be, as a sentence."
2205
+ }
2206
+ ],
2207
+ "exports": [
2208
+ {
2209
+ "kind": "js",
2210
+ "name": "readsLikeFieldName",
2211
+ "declaration": {
2212
+ "name": "readsLikeFieldName",
2213
+ "module": "src/genesis/server-text.ts"
2214
+ }
2215
+ },
2216
+ {
2217
+ "kind": "js",
2218
+ "name": "describeFailure",
2219
+ "declaration": {
2220
+ "name": "describeFailure",
2221
+ "module": "src/genesis/server-text.ts"
2222
+ }
2223
+ }
2224
+ ]
2328
2225
  },
2329
2226
  {
2330
2227
  "kind": "javascript-module",
2331
- "path": "src/main/cost-ledger-controller.ts",
2228
+ "path": "src/genesis/type-name.ts",
2332
2229
  "declarations": [],
2333
2230
  "exports": []
2334
2231
  },
2335
2232
  {
2336
2233
  "kind": "javascript-module",
2337
- "path": "src/main/index.ts",
2338
- "declarations": [],
2234
+ "path": "src/genesis/types.ts",
2235
+ "declarations": [
2236
+ {
2237
+ "kind": "variable",
2238
+ "name": "GENESIS_EVENT_OPS",
2239
+ "type": {
2240
+ "text": "['insert', 'modify', 'delete', 'custom']"
2241
+ },
2242
+ "default": "['insert', 'modify', 'delete', 'custom']",
2243
+ "description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
2244
+ }
2245
+ ],
2339
2246
  "exports": [
2340
2247
  {
2341
2248
  "kind": "js",
2342
- "name": "*",
2249
+ "name": "GENESIS_EVENT_OPS",
2343
2250
  "declaration": {
2344
- "name": "*",
2345
- "package": "./main.template"
2251
+ "name": "GENESIS_EVENT_OPS",
2252
+ "module": "src/genesis/types.ts"
2346
2253
  }
2347
- },
2254
+ }
2255
+ ]
2256
+ },
2257
+ {
2258
+ "kind": "javascript-module",
2259
+ "path": "src/genesis/value-compare.ts",
2260
+ "declarations": [],
2261
+ "exports": []
2262
+ },
2263
+ {
2264
+ "kind": "javascript-module",
2265
+ "path": "src/genesis/write-commit.ts",
2266
+ "declarations": [],
2267
+ "exports": []
2268
+ },
2269
+ {
2270
+ "kind": "javascript-module",
2271
+ "path": "src/genesis/write-outcome.ts",
2272
+ "declarations": [],
2273
+ "exports": []
2274
+ },
2275
+ {
2276
+ "kind": "javascript-module",
2277
+ "path": "src/genesis/write-payload.ts",
2278
+ "declarations": [
2348
2279
  {
2349
- "kind": "js",
2350
- "name": "*",
2351
- "declaration": {
2352
- "name": "*",
2353
- "package": "./main"
2354
- }
2355
- },
2280
+ "kind": "function",
2281
+ "name": "buildEventPayload",
2282
+ "return": {
2283
+ "type": {
2284
+ "text": "PayloadResult"
2285
+ }
2286
+ },
2287
+ "parameters": [
2288
+ {
2289
+ "name": "fields",
2290
+ "type": {
2291
+ "text": "readonly GenesisEventField[]"
2292
+ }
2293
+ },
2294
+ {
2295
+ "name": "row",
2296
+ "type": {
2297
+ "text": "unknown"
2298
+ }
2299
+ },
2300
+ {
2301
+ "name": "{ op, preImage }",
2302
+ "default": "{}",
2303
+ "type": {
2304
+ "text": "BuildPayloadOptions"
2305
+ }
2306
+ }
2307
+ ]
2308
+ }
2309
+ ],
2310
+ "exports": [
2356
2311
  {
2357
2312
  "kind": "js",
2358
- "name": "*",
2313
+ "name": "buildEventPayload",
2359
2314
  "declaration": {
2360
- "name": "*",
2361
- "package": "./main.types"
2315
+ "name": "buildEventPayload",
2316
+ "module": "src/genesis/write-payload.ts"
2362
2317
  }
2363
2318
  }
2364
2319
  ]
2365
2320
  },
2366
2321
  {
2367
2322
  "kind": "javascript-module",
2368
- "path": "src/main/main.styles.ts",
2323
+ "path": "src/genesis/write-plan.ts",
2369
2324
  "declarations": [
2370
2325
  {
2371
2326
  "kind": "variable",
2372
- "name": "styles",
2373
- "default": "css`\n ${baseStyles}\n ${\n /* The session menu's rows. Same partial the agent picker imports into its own\n shadow root — the one thing that keeps the two menus looking alike. */ ''\n }\n ${menuItemStyles}\n ${settingsModalStyles}\n`"
2327
+ "name": "MAX_WRITE_ROWS",
2328
+ "type": {
2329
+ "text": "number"
2330
+ },
2331
+ "default": "25",
2332
+ "description": "A batch a person can actually read before approving it."
2374
2333
  }
2375
2334
  ],
2376
2335
  "exports": [
2377
2336
  {
2378
2337
  "kind": "js",
2379
- "name": "styles",
2338
+ "name": "MAX_WRITE_ROWS",
2380
2339
  "declaration": {
2381
- "name": "styles",
2382
- "module": "src/main/main.styles.ts"
2340
+ "name": "MAX_WRITE_ROWS",
2341
+ "module": "src/genesis/write-plan.ts"
2383
2342
  }
2384
2343
  }
2385
2344
  ]
2386
2345
  },
2387
2346
  {
2388
2347
  "kind": "javascript-module",
2389
- "path": "src/main/main.template.ts",
2348
+ "path": "src/genesis/write-tools.ts",
2390
2349
  "declarations": [
2391
- {
2392
- "kind": "variable",
2393
- "name": "messageTimestampTemplate",
2394
- "default": "html<ChatMessage, FoundationAiAssistant>`\n <time\n class=\"message-timestamp\"\n part=\"message-timestamp\"\n datetime=\"${(m) => messageTimestampDateTime(m.timestamp)}\"\n >\n <span aria-hidden=\"true\">\n ${(m, c) => formatMessageTimestamp(m.timestamp, c.parent.timestampClock)}\n </span>\n <span class=\"visually-hidden\">${(m) => formatAbsoluteTimestamp(m.timestamp)}</span>\n </time>\n`",
2395
- "description": "The timestamp shown beside the sender name (GENC-1257).\n\nTwo strings, not one. A screen reader announces a `<time>` element's TEXT — it has no\nimplicit ARIA role, and the `datetime` attribute is never surfaced to the user — so the\nrelative text is hidden from assistive tech and paired with a visually-hidden absolute\nstring. Otherwise AT would hear \"5 minutes ago\" with nothing to anchor it, and in\n`'hover'` mode would hear it for a timestamp sighted users never asked to see.\n`datetime` stays because it is correct HTML and useful to tooling, not for a11y.\n\nOnly the VISUAL reveal is hover-gated, in CSS — see `.message-timestamp`. `opacity: 0`\nleaves the element in the accessibility tree, so AT gets a time in both visible modes;\n`'off'` is the only mode that removes it.\n\nReads `timestampClock` rather than `Date.now()` so every row shares one invalidatable\nclock and a tick re-evaluates them all; see `FoundationAiAssistant.timestampClock`."
2396
- },
2397
2350
  {
2398
2351
  "kind": "function",
2399
- "name": "FoundationAiAssistantTemplate",
2352
+ "name": "createGenesisWriteTools",
2400
2353
  "return": {
2401
2354
  "type": {
2402
- "text": "ViewTemplate<FoundationAiAssistant>"
2355
+ "text": "{ toolDefinitions: () => Promise<ChatToolDefinition[]>; toolHandlers: ChatToolHandlers }"
2403
2356
  }
2404
2357
  },
2405
2358
  "parameters": [
2406
2359
  {
2407
- "name": "designSystemPrefix",
2360
+ "name": "resources",
2408
2361
  "type": {
2409
- "text": "string"
2362
+ "text": "readonly GenesisAiResource[]"
2363
+ }
2364
+ },
2365
+ {
2366
+ "name": "options",
2367
+ "default": "{}",
2368
+ "type": {
2369
+ "text": "GenesisWriteToolsOptions"
2410
2370
  }
2411
2371
  }
2412
- ]
2372
+ ],
2373
+ "description": "Builds the assistant's write tools from an app's event resources."
2413
2374
  }
2414
2375
  ],
2415
2376
  "exports": [
2416
2377
  {
2417
2378
  "kind": "js",
2418
- "name": "messageTimestampTemplate",
2419
- "declaration": {
2420
- "name": "messageTimestampTemplate",
2421
- "module": "src/main/main.template.ts"
2422
- }
2423
- },
2424
- {
2425
- "kind": "js",
2426
- "name": "FoundationAiAssistantTemplate",
2379
+ "name": "createGenesisWriteTools",
2427
2380
  "declaration": {
2428
- "name": "FoundationAiAssistantTemplate",
2429
- "module": "src/main/main.template.ts"
2381
+ "name": "createGenesisWriteTools",
2382
+ "module": "src/genesis/write-tools.ts"
2430
2383
  }
2431
2384
  }
2432
2385
  ]
2433
2386
  },
2434
2387
  {
2435
2388
  "kind": "javascript-module",
2436
- "path": "src/main/main.ts",
2389
+ "path": "src/config/config.ts",
2437
2390
  "declarations": [
2438
2391
  {
2439
- "kind": "variable",
2440
- "name": "sparkleIconSvg",
2441
- "default": "`<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.5 5 C9.5 11.4 11.1 13 17.5 13 C11.1 13 9.5 14.6 9.5 21 C9.5 14.6 7.9 13 1.5 13 C7.9 13 9.5 11.4 9.5 5 Z\" fill=\"currentColor\"/><path d=\"M17 2.5 C17 5.7 17.8 6.5 21 6.5 C17.8 6.5 17 7.3 17 10.5 C17 7.3 16.2 6.5 13 6.5 C16.2 6.5 17 5.7 17 2.5 Z\" fill=\"currentColor\"/><path d=\"M17.5 15 C17.5 17 18 17.5 20 17.5 C18 17.5 17.5 18 17.5 20 C17.5 18 17 17.5 15 17.5 C17 17.5 17.5 17 17.5 15 Z\" fill=\"currentColor\"/></svg>`",
2442
- "description": "Three-star AI \"sparkle\" mark — the conventional AI signifier; default assistant avatar."
2392
+ "kind": "function",
2393
+ "name": "defineAgent",
2394
+ "description": "Identity helper that infers the narrowest possible type for an agent config,\npreserving string literal types (including `name`) without requiring `as const`.\n\nUse this when you need `typeof myAgent` to carry the literal `name` type —\nfor example, when wiring `ChatToolHandlers<typeof myAgent>`.\n\n```ts\nconst myAgent = defineAgent({ name: 'my_agent', ... });\ntype Handlers = ChatToolHandlers<typeof myAgent>;\n// requestSubAgent name param is now typed as 'my_agent'\n```"
2395
+ }
2396
+ ],
2397
+ "exports": [
2398
+ {
2399
+ "kind": "js",
2400
+ "name": "CachePolicy",
2401
+ "declaration": {
2402
+ "name": "CachePolicy",
2403
+ "module": "src/config/config.ts"
2404
+ }
2443
2405
  },
2444
2406
  {
2445
- "kind": "variable",
2446
- "name": "userIconSvg",
2447
- "default": "`<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\" fill=\"currentColor\"/></svg>`",
2448
- "description": "Person silhouette — default user avatar."
2407
+ "kind": "js",
2408
+ "name": "ChatFallback",
2409
+ "declaration": {
2410
+ "name": "ChatFallback",
2411
+ "module": "src/config/config.ts"
2412
+ }
2449
2413
  },
2450
2414
  {
2451
- "kind": "variable",
2452
- "name": "genesisIconSvg",
2453
- "default": "`<svg viewBox=\"-4 0 30 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M18.7702 23.0437C18.7702 22.4675 18.8526 21.8089 19.0995 21.3149C19.3465 20.7386 19.6758 20.2447 20.0874 19.833C20.4991 19.4214 20.993 19.0921 21.5693 18.8451C22.1456 18.5982 22.7219 18.5158 23.2981 18.5158H25.9326V11.6828H19.1819V14.3172C19.1819 15.5521 18.6879 16.7047 17.8647 17.5279C17.0414 18.3512 15.8888 18.8451 14.7363 18.9275H6.7507V6.99025H16.4651V0.157227H3.54C2.63442 0.157227 1.72884 0.568855 1.07023 1.22746C0.411628 1.88606 0 2.79165 0 3.77955V22.2205C0 23.1261 0.411628 24.0316 1.07023 24.7726C1.72884 25.4312 2.63442 25.8428 3.54 25.8428H18.7702V23.0437Z\" fill=\"currentColor\"/></svg>`",
2454
- "description": "Genesis G-mark — opt-in assistant avatar (the default before the sparkle mark)."
2415
+ "kind": "js",
2416
+ "name": "ChatInputDuringExecutionMode",
2417
+ "declaration": {
2418
+ "name": "ChatInputDuringExecutionMode",
2419
+ "module": "src/config/config.ts"
2420
+ }
2455
2421
  },
2456
2422
  {
2457
- "kind": "class",
2458
- "description": "Foundation AI Assistant component.",
2459
- "name": "FoundationAiAssistant",
2460
- "members": [
2461
- {
2462
- "kind": "field",
2463
- "name": "composerResize",
2464
- "privacy": "private",
2465
- "readonly": true,
2466
- "default": "new ComposerResizeController({\n enabled: () => this.chatConfig.ui?.resizableInput !== false,\n inputEl: () => this.chatInputEl,\n messagesEl: () => this.messagesEl,\n })"
2467
- },
2423
+ "kind": "js",
2424
+ "name": "ChatThinkingPolicy",
2425
+ "declaration": {
2426
+ "name": "ChatThinkingPolicy",
2427
+ "module": "src/config/config.ts"
2428
+ }
2429
+ },
2430
+ {
2431
+ "kind": "js",
2432
+ "name": "ChatToolChoice",
2433
+ "declaration": {
2434
+ "name": "ChatToolChoice",
2435
+ "module": "src/config/config.ts"
2436
+ }
2437
+ },
2438
+ {
2439
+ "kind": "js",
2440
+ "name": "defineAgent",
2441
+ "declaration": {
2442
+ "name": "defineAgent",
2443
+ "module": "src/config/config.ts"
2444
+ }
2445
+ }
2446
+ ]
2447
+ },
2448
+ {
2449
+ "kind": "javascript-module",
2450
+ "path": "src/config/define-stateful-agent.ts",
2451
+ "declarations": [
2452
+ {
2453
+ "kind": "function",
2454
+ "name": "restoreMachine",
2455
+ "return": {
2456
+ "type": {
2457
+ "text": "void"
2458
+ }
2459
+ },
2460
+ "parameters": [
2461
+ {
2462
+ "name": "machine",
2463
+ "type": {
2464
+ "text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
2465
+ },
2466
+ "description": "the machine to restore (already constructed/started)."
2467
+ },
2468
+ {
2469
+ "name": "restored",
2470
+ "type": {
2471
+ "text": "unknown"
2472
+ },
2473
+ "description": "the agent's serialized image (`ctx.restored` in `init`)."
2474
+ },
2475
+ {
2476
+ "name": "key",
2477
+ "default": "'machine'",
2478
+ "description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
2479
+ }
2480
+ ],
2481
+ "description": "Restore a foundation-state-machine instance from a snapshot produced by the\ndefault serializer (or `machine.getPersistedSnapshot()`). Call inside a\nstateful agent's `init` to resume the machine in its exact prior place:\n\n```ts\ninit: ({ restored }) => {\n const machine = new MyMachine();\n restoreMachine(machine, restored); // resume, or no-op on a fresh start\n return { machine };\n}\n```\n\nNo-ops when there is nothing to restore (a fresh session), leaving the\nfreshly-constructed machine in its initial state."
2482
+ },
2483
+ {
2484
+ "kind": "function",
2485
+ "name": "defineStatefulAgent",
2486
+ "return": {
2487
+ "type": {
2488
+ "text": "AgentConfig"
2489
+ }
2490
+ },
2491
+ "parameters": [
2492
+ {
2493
+ "name": "opts",
2494
+ "type": {
2495
+ "text": "StatefulAgentInit<S>"
2496
+ }
2497
+ }
2498
+ ],
2499
+ "description": "Build an `AgentConfig` whose `systemPrompt`, `toolDefinitions`, and tool\nhandlers all close over a long-lived state object created on activation.\n\nThe framework wires the lifecycle: `init` on `onActivate`, `dispose` on\n`onDeactivate`. State is held inside the helper's closure — never exposed on\nthe resulting `AgentConfig` — so the redux serializer doesn't see it."
2500
+ }
2501
+ ],
2502
+ "exports": [
2503
+ {
2504
+ "kind": "js",
2505
+ "name": "restoreMachine",
2506
+ "declaration": {
2507
+ "name": "restoreMachine",
2508
+ "module": "src/config/define-stateful-agent.ts"
2509
+ }
2510
+ },
2511
+ {
2512
+ "kind": "js",
2513
+ "name": "defineStatefulAgent",
2514
+ "declaration": {
2515
+ "name": "defineStatefulAgent",
2516
+ "module": "src/config/define-stateful-agent.ts"
2517
+ }
2518
+ }
2519
+ ]
2520
+ },
2521
+ {
2522
+ "kind": "javascript-module",
2523
+ "path": "src/config/fallback-agents.ts",
2524
+ "declarations": [
2525
+ {
2526
+ "kind": "variable",
2527
+ "name": "friendlyFallbackAgent",
2528
+ "type": {
2529
+ "text": "FallbackAgentConfig"
2530
+ },
2531
+ "default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a warm, friendly assistant. For general conversation like \"Hi\" or \"How are you\", you can have a friendly chat. For anything more complex, you cannot directly help, but you can explain what specialists are available. The available specialists are:\\n\\n{{agents}}\\n\\nPolitely let the user know what you can help with and invite them to rephrase their request if it is outside your scope.`,\n}",
2532
+ "description": "A warm, conversational fallback agent. Acknowledges it can't help directly,\nexplains what the available specialists can do, and invites the user to retry.\n\nThe system prompt is generated at runtime by `OrchestratingDriver` from the\nspecialist list — no manual authoring required."
2533
+ },
2534
+ {
2535
+ "kind": "variable",
2536
+ "name": "strictFallbackAgent",
2537
+ "type": {
2538
+ "text": "FallbackAgentConfig"
2539
+ },
2540
+ "default": "{\n name: 'Assistant',\n fallback: true,\n systemPrompt: `You are a concise assistant. The user's request is outside your scope. The available specialists are: {{agents}}.\n\n{{unroutable}}\n\nAnswer in a single short sentence. Do not elaborate.`,\n}",
2541
+ "description": "A brief, professional fallback agent. States what is available without\nelaboration. The `{{agents}}` placeholder is replaced at runtime by\n`OrchestratingDriver` with the generated specialist list.\n\nThe `{{unroutable}}` placeholder positions `UNROUTABLE_INSTRUCTION` — the framework's\ninstruction for a substantive request no specialist covers, which is otherwise APPENDED to a\nstring-form prompt. Positioned rather than appended for one reason: this preset's whole point is\nbrevity, and appended text would be the last thing the model reads. Putting the block above the\nbrevity rule leaves \"a single short sentence\" with the recency, so the two compose instead of\ncompeting. A prompt whose tone rules matter should do the same."
2542
+ }
2543
+ ],
2544
+ "exports": [
2545
+ {
2546
+ "kind": "js",
2547
+ "name": "friendlyFallbackAgent",
2548
+ "declaration": {
2549
+ "name": "friendlyFallbackAgent",
2550
+ "module": "src/config/fallback-agents.ts"
2551
+ }
2552
+ },
2553
+ {
2554
+ "kind": "js",
2555
+ "name": "strictFallbackAgent",
2556
+ "declaration": {
2557
+ "name": "strictFallbackAgent",
2558
+ "module": "src/config/fallback-agents.ts"
2559
+ }
2560
+ }
2561
+ ]
2562
+ },
2563
+ {
2564
+ "kind": "javascript-module",
2565
+ "path": "src/config/index.ts",
2566
+ "declarations": [],
2567
+ "exports": [
2568
+ {
2569
+ "kind": "js",
2570
+ "name": "*",
2571
+ "declaration": {
2572
+ "name": "*",
2573
+ "package": "./config"
2574
+ }
2575
+ },
2576
+ {
2577
+ "kind": "js",
2578
+ "name": "*",
2579
+ "declaration": {
2580
+ "name": "*",
2581
+ "package": "./fallback-agents"
2582
+ }
2583
+ }
2584
+ ]
2585
+ },
2586
+ {
2587
+ "kind": "javascript-module",
2588
+ "path": "src/config/validate-providers.ts",
2589
+ "declarations": [],
2590
+ "exports": []
2591
+ },
2592
+ {
2593
+ "kind": "javascript-module",
2594
+ "path": "src/main/attachment-controller.ts",
2595
+ "declarations": [],
2596
+ "exports": []
2597
+ },
2598
+ {
2599
+ "kind": "javascript-module",
2600
+ "path": "src/main/budget-controller.ts",
2601
+ "declarations": [],
2602
+ "exports": []
2603
+ },
2604
+ {
2605
+ "kind": "javascript-module",
2606
+ "path": "src/main/composer-menu-controller.ts",
2607
+ "declarations": [],
2608
+ "exports": []
2609
+ },
2610
+ {
2611
+ "kind": "javascript-module",
2612
+ "path": "src/main/composer-resize-controller.ts",
2613
+ "declarations": [],
2614
+ "exports": []
2615
+ },
2616
+ {
2617
+ "kind": "javascript-module",
2618
+ "path": "src/main/context-gate-controller.ts",
2619
+ "declarations": [],
2620
+ "exports": []
2621
+ },
2622
+ {
2623
+ "kind": "javascript-module",
2624
+ "path": "src/main/cost-ledger-controller.ts",
2625
+ "declarations": [],
2626
+ "exports": []
2627
+ },
2628
+ {
2629
+ "kind": "javascript-module",
2630
+ "path": "src/main/index.ts",
2631
+ "declarations": [],
2632
+ "exports": [
2633
+ {
2634
+ "kind": "js",
2635
+ "name": "*",
2636
+ "declaration": {
2637
+ "name": "*",
2638
+ "package": "./main.template"
2639
+ }
2640
+ },
2641
+ {
2642
+ "kind": "js",
2643
+ "name": "*",
2644
+ "declaration": {
2645
+ "name": "*",
2646
+ "package": "./main"
2647
+ }
2648
+ },
2649
+ {
2650
+ "kind": "js",
2651
+ "name": "*",
2652
+ "declaration": {
2653
+ "name": "*",
2654
+ "package": "./main.types"
2655
+ }
2656
+ }
2657
+ ]
2658
+ },
2659
+ {
2660
+ "kind": "javascript-module",
2661
+ "path": "src/main/main.styles.ts",
2662
+ "declarations": [
2663
+ {
2664
+ "kind": "variable",
2665
+ "name": "styles",
2666
+ "default": "css`\n ${baseStyles}\n ${\n /* The session menu's rows. Same partial the agent picker imports into its own\n shadow root — the one thing that keeps the two menus looking alike. */ ''\n }\n ${menuItemStyles}\n ${settingsModalStyles}\n`"
2667
+ }
2668
+ ],
2669
+ "exports": [
2670
+ {
2671
+ "kind": "js",
2672
+ "name": "styles",
2673
+ "declaration": {
2674
+ "name": "styles",
2675
+ "module": "src/main/main.styles.ts"
2676
+ }
2677
+ }
2678
+ ]
2679
+ },
2680
+ {
2681
+ "kind": "javascript-module",
2682
+ "path": "src/main/main.template.ts",
2683
+ "declarations": [
2684
+ {
2685
+ "kind": "variable",
2686
+ "name": "messageTimestampTemplate",
2687
+ "default": "html<ChatMessage, FoundationAiAssistant>`\n <time\n class=\"message-timestamp\"\n part=\"message-timestamp\"\n datetime=\"${(m) => messageTimestampDateTime(m.timestamp)}\"\n >\n <span aria-hidden=\"true\">\n ${(m, c) => formatMessageTimestamp(m.timestamp, c.parent.timestampClock)}\n </span>\n <span class=\"visually-hidden\">${(m) => formatAbsoluteTimestamp(m.timestamp)}</span>\n </time>\n`",
2688
+ "description": "The timestamp shown beside the sender name (GENC-1257).\n\nTwo strings, not one. A screen reader announces a `<time>` element's TEXT — it has no\nimplicit ARIA role, and the `datetime` attribute is never surfaced to the user — so the\nrelative text is hidden from assistive tech and paired with a visually-hidden absolute\nstring. Otherwise AT would hear \"5 minutes ago\" with nothing to anchor it, and in\n`'hover'` mode would hear it for a timestamp sighted users never asked to see.\n`datetime` stays because it is correct HTML and useful to tooling, not for a11y.\n\nOnly the VISUAL reveal is hover-gated, in CSS — see `.message-timestamp`. `opacity: 0`\nleaves the element in the accessibility tree, so AT gets a time in both visible modes;\n`'off'` is the only mode that removes it.\n\nReads `timestampClock` rather than `Date.now()` so every row shares one invalidatable\nclock and a tick re-evaluates them all; see `FoundationAiAssistant.timestampClock`."
2689
+ },
2690
+ {
2691
+ "kind": "function",
2692
+ "name": "FoundationAiAssistantTemplate",
2693
+ "return": {
2694
+ "type": {
2695
+ "text": "ViewTemplate<FoundationAiAssistant>"
2696
+ }
2697
+ },
2698
+ "parameters": [
2699
+ {
2700
+ "name": "designSystemPrefix",
2701
+ "type": {
2702
+ "text": "string"
2703
+ }
2704
+ }
2705
+ ]
2706
+ }
2707
+ ],
2708
+ "exports": [
2709
+ {
2710
+ "kind": "js",
2711
+ "name": "messageTimestampTemplate",
2712
+ "declaration": {
2713
+ "name": "messageTimestampTemplate",
2714
+ "module": "src/main/main.template.ts"
2715
+ }
2716
+ },
2717
+ {
2718
+ "kind": "js",
2719
+ "name": "FoundationAiAssistantTemplate",
2720
+ "declaration": {
2721
+ "name": "FoundationAiAssistantTemplate",
2722
+ "module": "src/main/main.template.ts"
2723
+ }
2724
+ }
2725
+ ]
2726
+ },
2727
+ {
2728
+ "kind": "javascript-module",
2729
+ "path": "src/main/main.ts",
2730
+ "declarations": [
2731
+ {
2732
+ "kind": "variable",
2733
+ "name": "sparkleIconSvg",
2734
+ "default": "`<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.5 5 C9.5 11.4 11.1 13 17.5 13 C11.1 13 9.5 14.6 9.5 21 C9.5 14.6 7.9 13 1.5 13 C7.9 13 9.5 11.4 9.5 5 Z\" fill=\"currentColor\"/><path d=\"M17 2.5 C17 5.7 17.8 6.5 21 6.5 C17.8 6.5 17 7.3 17 10.5 C17 7.3 16.2 6.5 13 6.5 C16.2 6.5 17 5.7 17 2.5 Z\" fill=\"currentColor\"/><path d=\"M17.5 15 C17.5 17 18 17.5 20 17.5 C18 17.5 17.5 18 17.5 20 C17.5 18 17 17.5 15 17.5 C17 17.5 17.5 17 17.5 15 Z\" fill=\"currentColor\"/></svg>`",
2735
+ "description": "Three-star AI \"sparkle\" mark — the conventional AI signifier; default assistant avatar."
2736
+ },
2737
+ {
2738
+ "kind": "variable",
2739
+ "name": "userIconSvg",
2740
+ "default": "`<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\" fill=\"currentColor\"/></svg>`",
2741
+ "description": "Person silhouette — default user avatar."
2742
+ },
2743
+ {
2744
+ "kind": "variable",
2745
+ "name": "genesisIconSvg",
2746
+ "default": "`<svg viewBox=\"-4 0 30 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M18.7702 23.0437C18.7702 22.4675 18.8526 21.8089 19.0995 21.3149C19.3465 20.7386 19.6758 20.2447 20.0874 19.833C20.4991 19.4214 20.993 19.0921 21.5693 18.8451C22.1456 18.5982 22.7219 18.5158 23.2981 18.5158H25.9326V11.6828H19.1819V14.3172C19.1819 15.5521 18.6879 16.7047 17.8647 17.5279C17.0414 18.3512 15.8888 18.8451 14.7363 18.9275H6.7507V6.99025H16.4651V0.157227H3.54C2.63442 0.157227 1.72884 0.568855 1.07023 1.22746C0.411628 1.88606 0 2.79165 0 3.77955V22.2205C0 23.1261 0.411628 24.0316 1.07023 24.7726C1.72884 25.4312 2.63442 25.8428 3.54 25.8428H18.7702V23.0437Z\" fill=\"currentColor\"/></svg>`",
2747
+ "description": "Genesis G-mark — opt-in assistant avatar (the default before the sparkle mark)."
2748
+ },
2749
+ {
2750
+ "kind": "class",
2751
+ "description": "Foundation AI Assistant component.",
2752
+ "name": "FoundationAiAssistant",
2753
+ "members": [
2754
+ {
2755
+ "kind": "field",
2756
+ "name": "composerResize",
2757
+ "privacy": "private",
2758
+ "readonly": true,
2759
+ "default": "new ComposerResizeController({\n enabled: () => this.chatConfig.ui?.resizableInput !== false,\n inputEl: () => this.chatInputEl,\n messagesEl: () => this.messagesEl,\n })"
2760
+ },
2468
2761
  {
2469
2762
  "kind": "field",
2470
2763
  "name": "composerMenus",
@@ -14656,97 +14949,442 @@
14656
14949
  "text": "ViewTemplate<FoundationAiAssistant>"
14657
14950
  }
14658
14951
  },
14659
- "parameters": [
14952
+ "parameters": [
14953
+ {
14954
+ "name": "segmentedControlTag",
14955
+ "type": {
14956
+ "text": "string"
14957
+ }
14958
+ },
14959
+ {
14960
+ "name": "segmentedItemTag",
14961
+ "type": {
14962
+ "text": "string"
14963
+ }
14964
+ }
14965
+ ],
14966
+ "description": "Three-way picker for TimestampDisplay (GENC-1257).\n\nThe design system's segmented control rather than the `switch` every other row uses,\nbecause the setting genuinely has three states — and rather than hand-rolled buttons\ncarrying `role=\"radio\"`, because ARIA roles supply semantics but never behaviour:\npromising a radio group means owning roving `tabindex` and arrow-key navigation.\n\n`SegmentedControl extends FASTRadioGroup` (and `SegmentedItem extends FASTRadio`), so\nthis IS the DS radio group — it inherits the whole keyboard pattern — just skinned as\nsegments rather than dots, which is the right affordance for three short mode labels.\n\nThe usual reason to avoid a DS control here does not apply. `RadioGroup.valueChanged`\nemits `change` whenever `value` is written — including the write this template's own\nbinding performs on render, exactly the phantom-change footgun the DS switch has\n(GENC-1351 #1). It is harmless because the `timestampDisplay` setter guards on\n`preferenceUnchanged`, as every preference setter does, so a render-time echo returns early\nand never reaches the store or marks preferences user-changed."
14967
+ },
14968
+ {
14969
+ "kind": "function",
14970
+ "name": "agentLogSectionTemplate",
14971
+ "return": {
14972
+ "type": {
14973
+ "text": "ViewTemplate<FoundationAiAssistant>"
14974
+ }
14975
+ },
14976
+ "parameters": [
14977
+ {
14978
+ "name": "buttonTag",
14979
+ "type": {
14980
+ "text": "string"
14981
+ }
14982
+ },
14983
+ {
14984
+ "name": "textareaTag",
14985
+ "type": {
14986
+ "text": "string"
14987
+ }
14988
+ }
14989
+ ]
14990
+ },
14991
+ {
14992
+ "kind": "function",
14993
+ "name": "SettingsModalTemplate",
14994
+ "return": {
14995
+ "type": {
14996
+ "text": "ViewTemplate<FoundationAiAssistant>"
14997
+ }
14998
+ },
14999
+ "parameters": [
15000
+ {
15001
+ "name": "designSystemPrefix",
15002
+ "type": {
15003
+ "text": "string"
15004
+ }
15005
+ }
15006
+ ],
15007
+ "description": "Modal shell for assistant settings — Configuration and Usage tabs, section slots for\napp-specific UI, and built-in chat-bot toggles."
15008
+ }
15009
+ ],
15010
+ "exports": [
15011
+ {
15012
+ "kind": "js",
15013
+ "name": "timestampModePickerTemplate",
15014
+ "declaration": {
15015
+ "name": "timestampModePickerTemplate",
15016
+ "module": "src/components/settings-modal/settings-modal.template.ts"
15017
+ }
15018
+ },
15019
+ {
15020
+ "kind": "js",
15021
+ "name": "agentLogSectionTemplate",
15022
+ "declaration": {
15023
+ "name": "agentLogSectionTemplate",
15024
+ "module": "src/components/settings-modal/settings-modal.template.ts"
15025
+ }
15026
+ },
15027
+ {
15028
+ "kind": "js",
15029
+ "name": "SettingsModalTemplate",
15030
+ "declaration": {
15031
+ "name": "SettingsModalTemplate",
15032
+ "module": "src/components/settings-modal/settings-modal.template.ts"
15033
+ }
15034
+ }
15035
+ ]
15036
+ },
15037
+ {
15038
+ "kind": "javascript-module",
15039
+ "path": "src/components/settings-modal/settings-modal.ts",
15040
+ "declarations": [],
15041
+ "exports": []
15042
+ },
15043
+ {
15044
+ "kind": "javascript-module",
15045
+ "path": "src/genesis/write-review/write-review.styles.ts",
15046
+ "declarations": [
15047
+ {
15048
+ "kind": "variable",
15049
+ "name": "WriteReviewStyles",
15050
+ "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`"
15051
+ }
15052
+ ],
15053
+ "exports": [
15054
+ {
15055
+ "kind": "js",
15056
+ "name": "WriteReviewStyles",
15057
+ "declaration": {
15058
+ "name": "WriteReviewStyles",
15059
+ "module": "src/genesis/write-review/write-review.styles.ts"
15060
+ }
15061
+ }
15062
+ ]
15063
+ },
15064
+ {
15065
+ "kind": "javascript-module",
15066
+ "path": "src/genesis/write-review/write-review.template.ts",
15067
+ "declarations": [
15068
+ {
15069
+ "kind": "variable",
15070
+ "name": "WriteReviewTemplate",
15071
+ "type": {
15072
+ "text": "ViewTemplate<GenesisWriteReview>"
15073
+ },
15074
+ "default": "html<GenesisWriteReview>`\n ${when(\n (x) => !!x.model,\n html<GenesisWriteReview>`\n <p>\n ${(x) => x.model?.op} ${(x) => x.model?.rows.length} row(s) in ${(x) => x.model?.resource}.\n Nothing is written until you choose rows and select Write.\n </p>\n <div class=\"scroller\">\n <table aria-label=\"Rows to be written to ${(x) => x.model?.resource}\">\n <thead>\n <tr>\n <th>\n <rapid-checkbox\n aria-label=\"Select all rows\"\n :checked=\"${(x) => x.allSelected}\"\n ?disabled=\"${(x) => x.resolved || !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>${(c) => c.label}</th>\n `,\n )}\n </tr>\n </thead>\n <tbody>${repeat((x) => x.model?.rows ?? [], row)}</tbody>\n </table>\n </div>\n <div class=\"actions\">\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 ${when(\n (x) => !x.denying,\n html<GenesisWriteReview>`\n <rapid-button ?disabled=\"${(x) => x.resolved}\" @click=\"${(x) => x.startDeny()}\">\n Deny\n </rapid-button>\n `,\n )}\n ${when(\n (x) => x.denying,\n html<GenesisWriteReview>`\n <rapid-text-field\n placeholder=\"Why not? (optional)\"\n :value=\"${(x) => x.denyReason}\"\n @input=\"${(x, c) => {\n x.setDenyReason((c.event.target as HTMLInputElement).value);\n return true;\n }}\"\n ></rapid-text-field>\n <rapid-button ?disabled=\"${(x) => x.resolved}\" @click=\"${(x) => x.confirmDeny()}\">\n Confirm deny\n </rapid-button>\n `,\n )}\n </div>\n `,\n )}\n ${when(\n (x) => x.resolved,\n html<GenesisWriteReview>`\n <p class=\"closed\">${(x) => x.closedSummary}</p>\n `,\n )}\n`"
15075
+ }
15076
+ ],
15077
+ "exports": [
15078
+ {
15079
+ "kind": "js",
15080
+ "name": "WriteReviewTemplate",
15081
+ "declaration": {
15082
+ "name": "WriteReviewTemplate",
15083
+ "module": "src/genesis/write-review/write-review.template.ts"
15084
+ }
15085
+ }
15086
+ ]
15087
+ },
15088
+ {
15089
+ "kind": "javascript-module",
15090
+ "path": "src/genesis/write-review/write-review.ts",
15091
+ "declarations": [
15092
+ {
15093
+ "kind": "variable",
15094
+ "name": "GENESIS_WRITE_REVIEW",
15095
+ "type": {
15096
+ "text": "string"
15097
+ },
15098
+ "default": "'genesis-write-review'",
15099
+ "description": "The tag the bridge asks for by name when it requests the review interaction."
15100
+ },
15101
+ {
15102
+ "kind": "class",
15103
+ "description": "The review a user reads before anything is written.",
15104
+ "name": "GenesisWriteReview",
15105
+ "members": [
14660
15106
  {
14661
- "name": "segmentedControlTag",
15107
+ "kind": "field",
15108
+ "name": "interactionId",
14662
15109
  "type": {
14663
15110
  "text": "string"
14664
- }
15111
+ },
15112
+ "default": "''",
15113
+ "description": "Set by the interaction wrapper on every (re)mount."
14665
15114
  },
14666
15115
  {
14667
- "name": "segmentedItemTag",
15116
+ "kind": "field",
15117
+ "name": "interaction",
14668
15118
  "type": {
14669
- "text": "string"
14670
- }
14671
- }
14672
- ],
14673
- "description": "Three-way picker for TimestampDisplay (GENC-1257).\n\nThe design system's segmented control rather than the `switch` every other row uses,\nbecause the setting genuinely has three states — and rather than hand-rolled buttons\ncarrying `role=\"radio\"`, because ARIA roles supply semantics but never behaviour:\npromising a radio group means owning roving `tabindex` and arrow-key navigation.\n\n`SegmentedControl extends FASTRadioGroup` (and `SegmentedItem extends FASTRadio`), so\nthis IS the DS radio group — it inherits the whole keyboard pattern — just skinned as\nsegments rather than dots, which is the right affordance for three short mode labels.\n\nThe usual reason to avoid a DS control here does not apply. `RadioGroup.valueChanged`\nemits `change` whenever `value` is written — including the write this template's own\nbinding performs on render, exactly the phantom-change footgun the DS switch has\n(GENC-1351 #1). It is harmless because the `timestampDisplay` setter guards on\n`preferenceUnchanged`, as every preference setter does, so a render-time echo returns early\nand never reaches the store or marks preferences user-changed."
14674
- },
14675
- {
14676
- "kind": "function",
14677
- "name": "agentLogSectionTemplate",
14678
- "return": {
14679
- "type": {
14680
- "text": "ViewTemplate<FoundationAiAssistant>"
14681
- }
14682
- },
14683
- "parameters": [
15119
+ "text": "AiChatInteraction<ReviewModel, number[]>"
15120
+ },
15121
+ "description": "The host-set descriptor: the model to render while pending, the outcome once resolved."
15122
+ },
14684
15123
  {
14685
- "name": "buttonTag",
15124
+ "kind": "field",
15125
+ "name": "selected",
14686
15126
  "type": {
14687
- "text": "string"
14688
- }
15127
+ "text": "number[]"
15128
+ },
15129
+ "description": "Chosen rows, by index. Starts empty — see canWrite and the model's own reasoning."
14689
15130
  },
14690
15131
  {
14691
- "name": "textareaTag",
15132
+ "kind": "field",
15133
+ "name": "denying",
15134
+ "type": {
15135
+ "text": "boolean"
15136
+ },
15137
+ "default": "false",
15138
+ "description": "True while the user is writing a reason for denying."
15139
+ },
15140
+ {
15141
+ "kind": "field",
15142
+ "name": "denyReason",
14692
15143
  "type": {
14693
15144
  "text": "string"
14694
- }
14695
- }
14696
- ]
14697
- },
14698
- {
14699
- "kind": "function",
14700
- "name": "SettingsModalTemplate",
14701
- "return": {
14702
- "type": {
14703
- "text": "ViewTemplate<FoundationAiAssistant>"
14704
- }
14705
- },
14706
- "parameters": [
15145
+ },
15146
+ "default": "''"
15147
+ },
14707
15148
  {
14708
- "name": "designSystemPrefix",
15149
+ "kind": "field",
15150
+ "name": "model",
15151
+ "type": {
15152
+ "text": "ReviewModel | undefined"
15153
+ },
15154
+ "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 `resolved`\nstops, not reading it.",
15155
+ "readonly": true
15156
+ },
15157
+ {
15158
+ "kind": "field",
15159
+ "name": "resolved",
15160
+ "type": {
15161
+ "text": "boolean"
15162
+ },
15163
+ "readonly": true
15164
+ },
15165
+ {
15166
+ "kind": "field",
15167
+ "name": "approved",
15168
+ "type": {
15169
+ "text": "number[]"
15170
+ },
15171
+ "description": "The rows the user approved, once the review has resolved — empty for a rejection or a\ntimeout, and while it is still open.",
15172
+ "readonly": true
15173
+ },
15174
+ {
15175
+ "kind": "field",
15176
+ "name": "closedSummary",
14709
15177
  "type": {
14710
15178
  "text": "string"
15179
+ },
15180
+ "description": "What a CLOSED review can truthfully say about its outcome.",
15181
+ "readonly": true
15182
+ },
15183
+ {
15184
+ "kind": "method",
15185
+ "name": "interactionChanged",
15186
+ "return": {
15187
+ "type": {
15188
+ "text": "void"
15189
+ }
15190
+ },
15191
+ "description": "Every mount is a fresh element whose selection starts empty, so each state says where its\nselection comes from."
15192
+ },
15193
+ {
15194
+ "kind": "method",
15195
+ "name": "park",
15196
+ "privacy": "private",
15197
+ "return": {
15198
+ "type": {
15199
+ "text": "void"
15200
+ }
15201
+ },
15202
+ "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."
15203
+ },
15204
+ {
15205
+ "kind": "field",
15206
+ "name": "rowsSelected",
15207
+ "type": {
15208
+ "text": "number"
15209
+ },
15210
+ "readonly": true
15211
+ },
15212
+ {
15213
+ "kind": "field",
15214
+ "name": "writable",
15215
+ "type": {
15216
+ "text": "boolean"
15217
+ },
15218
+ "description": "Whether Write may fire: never on an empty selection.",
15219
+ "readonly": true
15220
+ },
15221
+ {
15222
+ "kind": "field",
15223
+ "name": "allSelected",
15224
+ "type": {
15225
+ "text": "boolean"
15226
+ },
15227
+ "readonly": true
15228
+ },
15229
+ {
15230
+ "kind": "method",
15231
+ "name": "isSelected",
15232
+ "return": {
15233
+ "type": {
15234
+ "text": "boolean"
15235
+ }
15236
+ },
15237
+ "parameters": [
15238
+ {
15239
+ "name": "index",
15240
+ "type": {
15241
+ "text": "number"
15242
+ }
15243
+ }
15244
+ ]
15245
+ },
15246
+ {
15247
+ "kind": "method",
15248
+ "name": "setSelected",
15249
+ "return": {
15250
+ "type": {
15251
+ "text": "void"
15252
+ }
15253
+ },
15254
+ "parameters": [
15255
+ {
15256
+ "name": "index",
15257
+ "type": {
15258
+ "text": "number"
15259
+ }
15260
+ },
15261
+ {
15262
+ "name": "checked",
15263
+ "type": {
15264
+ "text": "boolean"
15265
+ }
15266
+ }
15267
+ ],
15268
+ "description": "Makes one row agree with what its checkbox now says. A row the bridge refused cannot be\nchosen, whatever the markup does."
15269
+ },
15270
+ {
15271
+ "kind": "method",
15272
+ "name": "setAll",
15273
+ "return": {
15274
+ "type": {
15275
+ "text": "void"
15276
+ }
15277
+ },
15278
+ "parameters": [
15279
+ {
15280
+ "name": "checked",
15281
+ "type": {
15282
+ "text": "boolean"
15283
+ }
15284
+ }
15285
+ ],
15286
+ "description": "One click for a good batch — a deliberate one, which is the point of starting empty."
15287
+ },
15288
+ {
15289
+ "kind": "method",
15290
+ "name": "write",
15291
+ "return": {
15292
+ "type": {
15293
+ "text": "void"
15294
+ }
15295
+ }
15296
+ },
15297
+ {
15298
+ "kind": "method",
15299
+ "name": "resolve",
15300
+ "privacy": "private",
15301
+ "return": {
15302
+ "type": {
15303
+ "text": "void"
15304
+ }
15305
+ },
15306
+ "parameters": [
15307
+ {
15308
+ "name": "result",
15309
+ "type": {
15310
+ "text": "InteractionResult<number[]>"
15311
+ }
15312
+ }
15313
+ ],
15314
+ "description": "The one way this widget talks back: `interaction-completed`, exactly once."
15315
+ },
15316
+ {
15317
+ "kind": "method",
15318
+ "name": "startDeny",
15319
+ "return": {
15320
+ "type": {
15321
+ "text": "void"
15322
+ }
15323
+ }
15324
+ },
15325
+ {
15326
+ "kind": "method",
15327
+ "name": "setDenyReason",
15328
+ "return": {
15329
+ "type": {
15330
+ "text": "void"
15331
+ }
15332
+ },
15333
+ "parameters": [
15334
+ {
15335
+ "name": "reason",
15336
+ "type": {
15337
+ "text": "string"
15338
+ }
15339
+ }
15340
+ ],
15341
+ "description": "The deny reason as the user types it."
15342
+ },
15343
+ {
15344
+ "kind": "method",
15345
+ "name": "confirmDeny",
15346
+ "return": {
15347
+ "type": {
15348
+ "text": "void"
15349
+ }
14711
15350
  }
14712
15351
  }
14713
15352
  ],
14714
- "description": "Modal shell for assistant settings — Configuration and Usage tabs, section slots for\napp-specific UI, and built-in chat-bot toggles."
15353
+ "superclass": {
15354
+ "name": "GenesisElement",
15355
+ "package": "@genesislcap/web-core"
15356
+ },
15357
+ "tagName": "GENESIS_WRITE_REVIEW",
15358
+ "customElement": true
14715
15359
  }
14716
15360
  ],
14717
15361
  "exports": [
14718
15362
  {
14719
15363
  "kind": "js",
14720
- "name": "timestampModePickerTemplate",
15364
+ "name": "GENESIS_WRITE_REVIEW",
14721
15365
  "declaration": {
14722
- "name": "timestampModePickerTemplate",
14723
- "module": "src/components/settings-modal/settings-modal.template.ts"
15366
+ "name": "GENESIS_WRITE_REVIEW",
15367
+ "module": "src/genesis/write-review/write-review.ts"
14724
15368
  }
14725
15369
  },
14726
15370
  {
14727
15371
  "kind": "js",
14728
- "name": "agentLogSectionTemplate",
15372
+ "name": "GenesisWriteReview",
14729
15373
  "declaration": {
14730
- "name": "agentLogSectionTemplate",
14731
- "module": "src/components/settings-modal/settings-modal.template.ts"
15374
+ "name": "GenesisWriteReview",
15375
+ "module": "src/genesis/write-review/write-review.ts"
14732
15376
  }
14733
15377
  },
14734
15378
  {
14735
- "kind": "js",
14736
- "name": "SettingsModalTemplate",
15379
+ "kind": "custom-element-definition",
15380
+ "name": "GENESIS_WRITE_REVIEW",
14737
15381
  "declaration": {
14738
- "name": "SettingsModalTemplate",
14739
- "module": "src/components/settings-modal/settings-modal.template.ts"
15382
+ "name": "GenesisWriteReview",
15383
+ "module": "src/genesis/write-review/write-review.ts"
14740
15384
  }
14741
15385
  }
14742
15386
  ]
14743
15387
  },
14744
- {
14745
- "kind": "javascript-module",
14746
- "path": "src/components/settings-modal/settings-modal.ts",
14747
- "declarations": [],
14748
- "exports": []
14749
- },
14750
15388
  {
14751
15389
  "kind": "javascript-module",
14752
15390
  "path": "src/state/persistence/build-timeline-entries.ts",