@genesislcap/ai-assistant 15.36.2-alpha-ec480ce5f.0 → 15.38.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 (73) hide show
  1. package/dist/custom-elements.json +769 -131
  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 +21 -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 +10 -2
  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 +97 -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 +153 -11
  73. package/package.json +18 -18
@@ -1642,6 +1642,217 @@
1642
1642
  }
1643
1643
  ]
1644
1644
  },
1645
+ {
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",
1847
+ "declarations": [],
1848
+ "exports": []
1849
+ },
1850
+ {
1851
+ "kind": "javascript-module",
1852
+ "path": "src/genesis/calendar.ts",
1853
+ "declarations": [],
1854
+ "exports": []
1855
+ },
1645
1856
  {
1646
1857
  "kind": "javascript-module",
1647
1858
  "path": "src/genesis/config.ts",
@@ -1792,6 +2003,12 @@
1792
2003
  }
1793
2004
  ]
1794
2005
  },
2006
+ {
2007
+ "kind": "javascript-module",
2008
+ "path": "src/genesis/event-fields.ts",
2009
+ "declarations": [],
2010
+ "exports": []
2011
+ },
1795
2012
  {
1796
2013
  "kind": "javascript-module",
1797
2014
  "path": "src/genesis/filter-fields.ts",
@@ -1859,6 +2076,54 @@
1859
2076
  "module": "./resource-tools"
1860
2077
  }
1861
2078
  },
2079
+ {
2080
+ "kind": "js",
2081
+ "name": "createGenesisWriteTools",
2082
+ "declaration": {
2083
+ "name": "createGenesisWriteTools",
2084
+ "module": "./write-tools"
2085
+ }
2086
+ },
2087
+ {
2088
+ "kind": "js",
2089
+ "name": "GenesisWriteResult",
2090
+ "declaration": {
2091
+ "name": "GenesisWriteResult",
2092
+ "module": "./write-tools"
2093
+ }
2094
+ },
2095
+ {
2096
+ "kind": "js",
2097
+ "name": "GenesisWriteRowStatus",
2098
+ "declaration": {
2099
+ "name": "GenesisWriteRowStatus",
2100
+ "module": "./write-tools"
2101
+ }
2102
+ },
2103
+ {
2104
+ "kind": "js",
2105
+ "name": "GenesisWriteToolsOptions",
2106
+ "declaration": {
2107
+ "name": "GenesisWriteToolsOptions",
2108
+ "module": "./write-tools"
2109
+ }
2110
+ },
2111
+ {
2112
+ "kind": "js",
2113
+ "name": "GENESIS_WRITE_REVIEW",
2114
+ "declaration": {
2115
+ "name": "GENESIS_WRITE_REVIEW",
2116
+ "module": "./write-review/write-review"
2117
+ }
2118
+ },
2119
+ {
2120
+ "kind": "js",
2121
+ "name": "GenesisWriteReview",
2122
+ "declaration": {
2123
+ "name": "GenesisWriteReview",
2124
+ "module": "./write-review/write-review"
2125
+ }
2126
+ },
1862
2127
  {
1863
2128
  "kind": "js",
1864
2129
  "name": "GenesisReadResult",
@@ -2068,234 +2333,262 @@
2068
2333
  },
2069
2334
  {
2070
2335
  "kind": "javascript-module",
2071
- "path": "src/genesis/types.ts",
2336
+ "path": "src/genesis/review-model.ts",
2072
2337
  "declarations": [
2073
2338
  {
2074
2339
  "kind": "variable",
2075
- "name": "GENESIS_EVENT_OPS",
2340
+ "name": "LONG_VALUE",
2076
2341
  "type": {
2077
- "text": "['insert', 'modify', 'delete', 'custom']"
2342
+ "text": "number"
2078
2343
  },
2079
- "default": "['insert', 'modify', 'delete', 'custom']",
2080
- "description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
2344
+ "default": "24",
2345
+ "description": "Past this many characters a value wraps; at or under it, it stays on one line."
2081
2346
  }
2082
2347
  ],
2083
2348
  "exports": [
2084
2349
  {
2085
2350
  "kind": "js",
2086
- "name": "GENESIS_EVENT_OPS",
2351
+ "name": "LONG_VALUE",
2087
2352
  "declaration": {
2088
- "name": "GENESIS_EVENT_OPS",
2089
- "module": "src/genesis/types.ts"
2353
+ "name": "LONG_VALUE",
2354
+ "module": "src/genesis/review-model.ts"
2090
2355
  }
2091
2356
  }
2092
2357
  ]
2093
2358
  },
2094
2359
  {
2095
2360
  "kind": "javascript-module",
2096
- "path": "src/config/config.ts",
2097
- "declarations": [
2361
+ "path": "src/genesis/row-source.ts",
2362
+ "declarations": [],
2363
+ "exports": []
2364
+ },
2365
+ {
2366
+ "kind": "javascript-module",
2367
+ "path": "src/genesis/serialisable.ts",
2368
+ "declarations": [],
2369
+ "exports": []
2370
+ },
2371
+ {
2372
+ "kind": "javascript-module",
2373
+ "path": "src/genesis/server-text.ts",
2374
+ "declarations": [
2098
2375
  {
2099
2376
  "kind": "function",
2100
- "name": "defineAgent",
2101
- "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```"
2377
+ "name": "readsLikeFieldName",
2378
+ "return": {
2379
+ "type": {
2380
+ "text": "boolean"
2381
+ }
2382
+ },
2383
+ "parameters": [
2384
+ {
2385
+ "name": "text",
2386
+ "type": {
2387
+ "text": "string"
2388
+ }
2389
+ }
2390
+ ],
2391
+ "description": "Whether text is a Genesis identifier, the FIELD_NAME shape. @internal"
2392
+ },
2393
+ {
2394
+ "kind": "function",
2395
+ "name": "describeFailure",
2396
+ "return": {
2397
+ "type": {
2398
+ "text": "string | undefined"
2399
+ }
2400
+ },
2401
+ "parameters": [
2402
+ {
2403
+ "name": "error",
2404
+ "type": {
2405
+ "text": "unknown"
2406
+ }
2407
+ }
2408
+ ],
2409
+ "description": "Whatever a rejection turns out to be, as a sentence."
2102
2410
  }
2103
2411
  ],
2104
2412
  "exports": [
2105
2413
  {
2106
2414
  "kind": "js",
2107
- "name": "CachePolicy",
2415
+ "name": "readsLikeFieldName",
2108
2416
  "declaration": {
2109
- "name": "CachePolicy",
2110
- "module": "src/config/config.ts"
2417
+ "name": "readsLikeFieldName",
2418
+ "module": "src/genesis/server-text.ts"
2111
2419
  }
2112
2420
  },
2113
2421
  {
2114
2422
  "kind": "js",
2115
- "name": "ChatFallback",
2423
+ "name": "describeFailure",
2116
2424
  "declaration": {
2117
- "name": "ChatFallback",
2118
- "module": "src/config/config.ts"
2119
- }
2120
- },
2121
- {
2122
- "kind": "js",
2123
- "name": "ChatInputDuringExecutionMode",
2124
- "declaration": {
2125
- "name": "ChatInputDuringExecutionMode",
2126
- "module": "src/config/config.ts"
2127
- }
2128
- },
2129
- {
2130
- "kind": "js",
2131
- "name": "ChatThinkingPolicy",
2132
- "declaration": {
2133
- "name": "ChatThinkingPolicy",
2134
- "module": "src/config/config.ts"
2425
+ "name": "describeFailure",
2426
+ "module": "src/genesis/server-text.ts"
2135
2427
  }
2136
- },
2428
+ }
2429
+ ]
2430
+ },
2431
+ {
2432
+ "kind": "javascript-module",
2433
+ "path": "src/genesis/type-name.ts",
2434
+ "declarations": [],
2435
+ "exports": []
2436
+ },
2437
+ {
2438
+ "kind": "javascript-module",
2439
+ "path": "src/genesis/types.ts",
2440
+ "declarations": [
2137
2441
  {
2138
- "kind": "js",
2139
- "name": "ChatToolChoice",
2140
- "declaration": {
2141
- "name": "ChatToolChoice",
2142
- "module": "src/config/config.ts"
2143
- }
2144
- },
2442
+ "kind": "variable",
2443
+ "name": "GENESIS_EVENT_OPS",
2444
+ "type": {
2445
+ "text": "['insert', 'modify', 'delete', 'custom']"
2446
+ },
2447
+ "default": "['insert', 'modify', 'delete', 'custom']",
2448
+ "description": "The wire vocabulary for an event resource's operation. Custom handlers keep their own name."
2449
+ }
2450
+ ],
2451
+ "exports": [
2145
2452
  {
2146
2453
  "kind": "js",
2147
- "name": "defineAgent",
2454
+ "name": "GENESIS_EVENT_OPS",
2148
2455
  "declaration": {
2149
- "name": "defineAgent",
2150
- "module": "src/config/config.ts"
2456
+ "name": "GENESIS_EVENT_OPS",
2457
+ "module": "src/genesis/types.ts"
2151
2458
  }
2152
2459
  }
2153
2460
  ]
2154
2461
  },
2155
2462
  {
2156
2463
  "kind": "javascript-module",
2157
- "path": "src/config/define-stateful-agent.ts",
2464
+ "path": "src/genesis/value-compare.ts",
2465
+ "declarations": [],
2466
+ "exports": []
2467
+ },
2468
+ {
2469
+ "kind": "javascript-module",
2470
+ "path": "src/genesis/write-commit.ts",
2471
+ "declarations": [],
2472
+ "exports": []
2473
+ },
2474
+ {
2475
+ "kind": "javascript-module",
2476
+ "path": "src/genesis/write-outcome.ts",
2477
+ "declarations": [],
2478
+ "exports": []
2479
+ },
2480
+ {
2481
+ "kind": "javascript-module",
2482
+ "path": "src/genesis/write-payload.ts",
2158
2483
  "declarations": [
2159
2484
  {
2160
2485
  "kind": "function",
2161
- "name": "restoreMachine",
2486
+ "name": "buildEventPayload",
2162
2487
  "return": {
2163
2488
  "type": {
2164
- "text": "void"
2489
+ "text": "PayloadResult"
2165
2490
  }
2166
2491
  },
2167
2492
  "parameters": [
2168
2493
  {
2169
- "name": "machine",
2494
+ "name": "fields",
2170
2495
  "type": {
2171
- "text": "{ stop: () => void; start: (options?: { state?: unknown }) => void }"
2172
- },
2173
- "description": "the machine to restore (already constructed/started)."
2496
+ "text": "readonly GenesisEventField[]"
2497
+ }
2174
2498
  },
2175
2499
  {
2176
- "name": "restored",
2500
+ "name": "row",
2177
2501
  "type": {
2178
2502
  "text": "unknown"
2179
- },
2180
- "description": "the agent's serialized image (`ctx.restored` in `init`)."
2503
+ }
2181
2504
  },
2182
2505
  {
2183
- "name": "key",
2184
- "default": "'machine'",
2185
- "description": "the property the machine occupies in the snapshot; defaults to\n`'machine'` to match the conventional `{ machine }` state bag."
2186
- }
2187
- ],
2188
- "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."
2189
- },
2190
- {
2191
- "kind": "function",
2192
- "name": "defineStatefulAgent",
2193
- "return": {
2194
- "type": {
2195
- "text": "AgentConfig"
2196
- }
2197
- },
2198
- "parameters": [
2199
- {
2200
- "name": "opts",
2506
+ "name": "{ op, preImage }",
2507
+ "default": "{}",
2201
2508
  "type": {
2202
- "text": "StatefulAgentInit<S>"
2509
+ "text": "BuildPayloadOptions"
2203
2510
  }
2204
2511
  }
2205
- ],
2206
- "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."
2512
+ ]
2207
2513
  }
2208
2514
  ],
2209
2515
  "exports": [
2210
2516
  {
2211
2517
  "kind": "js",
2212
- "name": "restoreMachine",
2518
+ "name": "buildEventPayload",
2213
2519
  "declaration": {
2214
- "name": "restoreMachine",
2215
- "module": "src/config/define-stateful-agent.ts"
2216
- }
2217
- },
2218
- {
2219
- "kind": "js",
2220
- "name": "defineStatefulAgent",
2221
- "declaration": {
2222
- "name": "defineStatefulAgent",
2223
- "module": "src/config/define-stateful-agent.ts"
2520
+ "name": "buildEventPayload",
2521
+ "module": "src/genesis/write-payload.ts"
2224
2522
  }
2225
2523
  }
2226
2524
  ]
2227
2525
  },
2228
2526
  {
2229
2527
  "kind": "javascript-module",
2230
- "path": "src/config/fallback-agents.ts",
2528
+ "path": "src/genesis/write-plan.ts",
2231
2529
  "declarations": [
2232
2530
  {
2233
2531
  "kind": "variable",
2234
- "name": "friendlyFallbackAgent",
2235
- "type": {
2236
- "text": "FallbackAgentConfig"
2237
- },
2238
- "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}",
2239
- "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."
2240
- },
2241
- {
2242
- "kind": "variable",
2243
- "name": "strictFallbackAgent",
2532
+ "name": "MAX_WRITE_ROWS",
2244
2533
  "type": {
2245
- "text": "FallbackAgentConfig"
2534
+ "text": "number"
2246
2535
  },
2247
- "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}",
2248
- "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."
2536
+ "default": "25",
2537
+ "description": "A batch a person can actually read before approving it."
2249
2538
  }
2250
2539
  ],
2251
2540
  "exports": [
2252
2541
  {
2253
2542
  "kind": "js",
2254
- "name": "friendlyFallbackAgent",
2543
+ "name": "MAX_WRITE_ROWS",
2255
2544
  "declaration": {
2256
- "name": "friendlyFallbackAgent",
2257
- "module": "src/config/fallback-agents.ts"
2258
- }
2259
- },
2260
- {
2261
- "kind": "js",
2262
- "name": "strictFallbackAgent",
2263
- "declaration": {
2264
- "name": "strictFallbackAgent",
2265
- "module": "src/config/fallback-agents.ts"
2545
+ "name": "MAX_WRITE_ROWS",
2546
+ "module": "src/genesis/write-plan.ts"
2266
2547
  }
2267
2548
  }
2268
2549
  ]
2269
2550
  },
2270
2551
  {
2271
2552
  "kind": "javascript-module",
2272
- "path": "src/config/index.ts",
2273
- "declarations": [],
2274
- "exports": [
2553
+ "path": "src/genesis/write-tools.ts",
2554
+ "declarations": [
2275
2555
  {
2276
- "kind": "js",
2277
- "name": "*",
2278
- "declaration": {
2279
- "name": "*",
2280
- "package": "./config"
2281
- }
2282
- },
2556
+ "kind": "function",
2557
+ "name": "createGenesisWriteTools",
2558
+ "return": {
2559
+ "type": {
2560
+ "text": "{ toolDefinitions: () => Promise<ChatToolDefinition[]>; toolHandlers: ChatToolHandlers }"
2561
+ }
2562
+ },
2563
+ "parameters": [
2564
+ {
2565
+ "name": "resources",
2566
+ "type": {
2567
+ "text": "readonly GenesisAiResource[]"
2568
+ }
2569
+ },
2570
+ {
2571
+ "name": "options",
2572
+ "default": "{}",
2573
+ "type": {
2574
+ "text": "GenesisWriteToolsOptions"
2575
+ }
2576
+ }
2577
+ ],
2578
+ "description": "Builds the assistant's write tools from an app's event resources."
2579
+ }
2580
+ ],
2581
+ "exports": [
2283
2582
  {
2284
2583
  "kind": "js",
2285
- "name": "*",
2584
+ "name": "createGenesisWriteTools",
2286
2585
  "declaration": {
2287
- "name": "*",
2288
- "package": "./fallback-agents"
2586
+ "name": "createGenesisWriteTools",
2587
+ "module": "src/genesis/write-tools.ts"
2289
2588
  }
2290
2589
  }
2291
2590
  ]
2292
2591
  },
2293
- {
2294
- "kind": "javascript-module",
2295
- "path": "src/config/validate-providers.ts",
2296
- "declarations": [],
2297
- "exports": []
2298
- },
2299
2592
  {
2300
2593
  "kind": "javascript-module",
2301
2594
  "path": "src/main/attachment-controller.ts",
@@ -14747,6 +15040,351 @@
14747
15040
  "declarations": [],
14748
15041
  "exports": []
14749
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": [
15106
+ {
15107
+ "kind": "field",
15108
+ "name": "interactionId",
15109
+ "type": {
15110
+ "text": "string"
15111
+ },
15112
+ "default": "''",
15113
+ "description": "Set by the interaction wrapper on every (re)mount."
15114
+ },
15115
+ {
15116
+ "kind": "field",
15117
+ "name": "interaction",
15118
+ "type": {
15119
+ "text": "AiChatInteraction<ReviewModel, number[]>"
15120
+ },
15121
+ "description": "The host-set descriptor: the model to render while pending, the outcome once resolved."
15122
+ },
15123
+ {
15124
+ "kind": "field",
15125
+ "name": "selected",
15126
+ "type": {
15127
+ "text": "number[]"
15128
+ },
15129
+ "description": "Chosen rows, by index. Starts empty — see canWrite and the model's own reasoning."
15130
+ },
15131
+ {
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",
15143
+ "type": {
15144
+ "text": "string"
15145
+ },
15146
+ "default": "''"
15147
+ },
15148
+ {
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",
15177
+ "type": {
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
+ }
15350
+ }
15351
+ }
15352
+ ],
15353
+ "superclass": {
15354
+ "name": "GenesisElement",
15355
+ "package": "@genesislcap/web-core"
15356
+ },
15357
+ "tagName": "GENESIS_WRITE_REVIEW",
15358
+ "customElement": true
15359
+ }
15360
+ ],
15361
+ "exports": [
15362
+ {
15363
+ "kind": "js",
15364
+ "name": "GENESIS_WRITE_REVIEW",
15365
+ "declaration": {
15366
+ "name": "GENESIS_WRITE_REVIEW",
15367
+ "module": "src/genesis/write-review/write-review.ts"
15368
+ }
15369
+ },
15370
+ {
15371
+ "kind": "js",
15372
+ "name": "GenesisWriteReview",
15373
+ "declaration": {
15374
+ "name": "GenesisWriteReview",
15375
+ "module": "src/genesis/write-review/write-review.ts"
15376
+ }
15377
+ },
15378
+ {
15379
+ "kind": "custom-element-definition",
15380
+ "name": "GENESIS_WRITE_REVIEW",
15381
+ "declaration": {
15382
+ "name": "GenesisWriteReview",
15383
+ "module": "src/genesis/write-review/write-review.ts"
15384
+ }
15385
+ }
15386
+ ]
15387
+ },
14750
15388
  {
14751
15389
  "kind": "javascript-module",
14752
15390
  "path": "src/state/persistence/build-timeline-entries.ts",