@kabmo-labs/kabmo 0.32.1 → 0.33.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 (266) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +542 -535
  3. package/dist/client/static/js/{CsvGrid-4gx0jevc.js → CsvGrid-fncjbg6j.js} +2 -2
  4. package/dist/client/static/js/{DocxView-0667nr8h.js → DocxView-c9v2vr3r.js} +2 -2
  5. package/dist/client/static/js/{DrawioView-522v0d0r.js → DrawioView-vxjksm12.js} +2 -2
  6. package/dist/client/static/js/{ImageView-t8xp60hm.js → ImageView-a3g5k226.js} +1 -1
  7. package/dist/client/static/js/LayoutWrapper-hnjfwsjh.js +2 -0
  8. package/dist/client/static/js/Modal-qtftcp2t.js +38 -0
  9. package/dist/client/static/js/{PdfView-3fx172xh.js → PdfView-ksaes53y.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-n3agmf5t.js → SessionsView-30vcr95v.js} +1 -1
  11. package/dist/client/static/js/{SheetView-nmrdb1b8.js → SheetView-vc484scg.js} +6 -6
  12. package/dist/client/static/js/{SvgPreview-0xsc6xam.js → SvgPreview-tph89jet.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-jj31rs62.js → abnfDiagram-O67JEVCF-xbar278c.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-tavtgb8a.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-ay3yr7pf.js → architectureDiagram-NJMV4G6O-s171n2z6.js} +3 -3
  16. package/dist/client/static/js/{astro-qgx1r159.js → astro-80bs6hvg.js} +1 -1
  17. package/dist/client/static/js/bash-b3rwyg5p.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-4x33e16k.js → blockDiagram-BEXU5L5S-gzx6rv9n.js} +2 -2
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-dtb81cgz.js → c4Diagram-YGBWAQC7-7f00skch.js} +2 -2
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-vk5a2n9w.js → classDiagram-v2-NBCMYWYE-j79v95nc.js} +4 -4
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-6rbjbe19.js → cose-bilkent-JH36ORCC-5fkn7ee5.js} +1 -1
  22. package/dist/client/static/js/css-6vj0d308.js +1 -0
  23. package/dist/client/static/js/cynefin-OW5HDTMX-cdh3n2z2.js +1 -0
  24. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-vyjksedr.js → cynefinDiagram-VND7K2PF-cfs1yvrd.js} +2 -2
  25. package/dist/client/static/js/{dagre-6A5THRUB-7hey38z5.js → dagre-6A5THRUB-44bgc48p.js} +2 -2
  26. package/dist/client/static/js/{diagram-22UHCM2B-aes06jde.js → diagram-22UHCM2B-a4g4x83k.js} +14 -14
  27. package/dist/client/static/js/{diagram-3UASUU5V-3cfkgm3x.js → diagram-3UASUU5V-gm4rg5na.js} +1 -1
  28. package/dist/client/static/js/{diagram-ATOU4E4O-z8mfhwpy.js → diagram-ATOU4E4O-a95y41vk.js} +3 -3
  29. package/dist/client/static/js/{diagram-CDSNMT55-t4821ctz.js → diagram-CDSNMT55-t3j93mmc.js} +5 -5
  30. package/dist/client/static/js/{diagram-MLGK6HIB-23yxbfrx.js → diagram-MLGK6HIB-c2wdez02.js} +1 -1
  31. package/dist/client/static/js/{diagram-MPIPVDR6-chhtf7v0.js → diagram-MPIPVDR6-gya9jhs5.js} +2 -2
  32. package/dist/client/static/js/{dockerfile-5b87ghm7.js → dockerfile-a7q6174s.js} +1 -1
  33. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-9jejcvfr.js → ebnfDiagram-ZINNZB2B-jjhkza6t.js} +1 -1
  34. package/dist/client/static/js/{elk-276RUBZZ-xhhtkf58.js → elk-276RUBZZ-f7re45mw.js} +1 -1
  35. package/dist/client/static/js/{erDiagram-OPXOYQCR-mt2apjjb.js → erDiagram-OPXOYQCR-tpm9g5te.js} +6 -6
  36. package/dist/client/static/js/{erlang-6m6tpt72.js → erlang-qt876zrq.js} +1 -1
  37. package/dist/client/static/js/eventmodeling-NTZA5JFV-as97tpyp.js +1 -0
  38. package/dist/client/static/js/flowDiagram-KWPJA3E3-ggm06d12.js +1 -0
  39. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-8cm7a29w.js → ganttDiagram-FUAMR5RP-fz43n12d.js} +3 -3
  40. package/dist/client/static/js/gitGraph-4MIJSDKK-eqz7p9ng.js +1 -0
  41. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-5s0gbnx2.js → gitGraphDiagram-X574FWY7-f61hgbn6.js} +9 -9
  42. package/dist/client/static/js/graphql-n43pd5fs.js +1 -0
  43. package/dist/client/static/js/{index-z5s27s26.js → index-03h3bkcf.js} +1 -1
  44. package/dist/client/static/js/{index-360d7j0d.js → index-0e40xskg.js} +1 -1
  45. package/dist/client/static/js/{index-z4v1xmh1.js → index-0n5wwe60.js} +2 -2
  46. package/dist/client/static/js/{index-pf7syd7t.js → index-0tf0arsp.js} +3 -3
  47. package/dist/client/static/js/{index-fdbfzshx.js → index-14vndmcr.js} +2 -2
  48. package/dist/client/static/js/{index-7n68yx6m.js → index-1a0zkj8h.js} +2 -2
  49. package/dist/client/static/js/{index-p7btwjvj.js → index-1xqs14fr.js} +3 -3
  50. package/dist/client/static/js/{index-brj8qwa6.js → index-1y9r4frb.js} +2 -2
  51. package/dist/client/static/js/{index-6q80csr0.js → index-2svnq5gg.js} +1 -1
  52. package/dist/client/static/js/{index-9sd0vjmh.js → index-2x5f66t6.js} +2 -2
  53. package/dist/client/static/js/{index-dt7e1328.js → index-354mqqra.js} +2 -2
  54. package/dist/client/static/js/{index-5x95n3hx.js → index-3rcjx70v.js} +1 -1
  55. package/dist/client/static/js/{index-532btjmp.js → index-3zc1b0dv.js} +2 -2
  56. package/dist/client/static/js/{index-wzma5n54.js → index-5tgq7aqx.js} +1 -1
  57. package/dist/client/static/js/{index-xya34x4v.js → index-76zb4m0n.js} +2 -2
  58. package/dist/client/static/js/{index-2xj14800.js → index-7y6rpsrp.js} +2 -2
  59. package/dist/client/static/js/{index-h06bcfds.js → index-8239j2v1.js} +1 -1
  60. package/dist/client/static/js/{index-dq1kdt03.js → index-9fjt5anh.js} +1 -1
  61. package/dist/client/static/js/{index-ehcpzk5b.js → index-9y3gjdj7.js} +1 -1
  62. package/dist/client/static/js/{index-sa9cp6km.js → index-ahv9y42z.js} +2 -2
  63. package/dist/client/static/js/{index-vd0e25p0.js → index-ajs3jj6j.js} +1 -1
  64. package/dist/client/static/js/{index-qnwqaczk.js → index-apvkd37e.js} +3 -3
  65. package/dist/client/static/js/index-at6bhjyf.js +1 -0
  66. package/dist/client/static/js/index-bkye8mz4.js +2 -0
  67. package/dist/client/static/js/{index-dnp07j57.js → index-d495kfm0.js} +1 -1
  68. package/dist/client/static/js/{index-gbfg0anm.js → index-dbe6afkf.js} +2 -2
  69. package/dist/client/static/js/{index-g33knza2.js → index-djmg1d7h.js} +1 -1
  70. package/dist/client/static/js/{index-629kfbcb.js → index-e4p4cd3r.js} +2 -2
  71. package/dist/client/static/js/{index-5y7c62sm.js → index-eyzeya95.js} +5 -5
  72. package/dist/client/static/js/{index-3vhznzgr.js → index-gcs49f3p.js} +1 -1
  73. package/dist/client/static/js/{index-59jb53v3.js → index-gs6f0qwa.js} +2 -2
  74. package/dist/client/static/js/{index-7fdp9c7m.js → index-hf52f59k.js} +2 -2
  75. package/dist/client/static/js/{index-qkscve6n.js → index-j0r5hj0j.js} +2 -2
  76. package/dist/client/static/js/{index-ay34b398.js → index-js7t1vb1.js} +17 -17
  77. package/dist/client/static/js/{index-a0bdavdr.js → index-km2zb6wk.js} +2 -2
  78. package/dist/client/static/js/{index-ye3sr7db.js → index-m73za75e.js} +2 -2
  79. package/dist/client/static/js/{index-kpspnztv.js → index-pbe4yed4.js} +2 -2
  80. package/dist/client/static/js/{index-a6k2hqke.js → index-pxv2nw9w.js} +1 -1
  81. package/dist/client/static/js/{index-jz9fpznk.js → index-q2w6s8n7.js} +5 -5
  82. package/dist/client/static/js/{index-h7pn9qw6.js → index-qckv9nte.js} +2 -2
  83. package/dist/client/static/js/{index-a733k69t.js → index-qsm2z36d.js} +2 -2
  84. package/dist/client/static/js/{index-pf5sbesf.js → index-rytaa8ca.js} +2 -2
  85. package/dist/client/static/js/{index-c0x6s6f7.js → index-sdtye3jy.js} +2 -2
  86. package/dist/client/static/js/index-sffjtm5w.js +12 -0
  87. package/dist/client/static/js/{index-ejgd8w3s.js → index-trm9x02n.js} +28 -28
  88. package/dist/client/static/js/{index-c93sp4yh.js → index-vw4brsdx.js} +1 -1
  89. package/dist/client/static/js/{index-hc2jmzpx.js → index-vw5k8csz.js} +46 -46
  90. package/dist/client/static/js/{index-2gfc25tq.js → index-w0fwb80e.js} +1 -1
  91. package/dist/client/static/js/{index-bbggh3f8.js → index-ypx3qmhq.js} +2 -2
  92. package/dist/client/static/js/{index-4s8ttfxj.js → index-zt75xpq0.js} +193 -193
  93. package/dist/client/static/js/{index-jppt5mgc.js → index-zvfvqvn9.js} +2 -2
  94. package/dist/client/static/js/info-A6RAGUB7-4pkzh1qx.js +1 -0
  95. package/dist/client/static/js/{infoDiagram-VRGFBTTK-3w1yz32c.js → infoDiagram-VRGFBTTK-1qj804sn.js} +1 -1
  96. package/dist/client/static/js/ini-j5dyq6gm.js +1 -0
  97. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ckt471dy.js → ishikawaDiagram-OU5B5YK6-4j4qsnzw.js} +3 -3
  98. package/dist/client/static/js/java-g4dgwbfd.js +1 -0
  99. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-kfvn4w7e.js → journeyDiagram-ZHPQQLJL-j0brnfft.js} +4 -4
  100. package/dist/client/static/js/jsx-7t5ecz9s.js +1 -0
  101. package/dist/client/static/js/{julia-0j0gsjvc.js → julia-4ghmfy3e.js} +1 -1
  102. package/dist/client/static/js/{kanban-definition-PNTS6WVX-0q36cm83.js → kanban-definition-PNTS6WVX-qqc22br0.js} +2 -2
  103. package/dist/client/static/js/lua-1g6w30de.js +1 -0
  104. package/dist/client/static/js/markdown-afx21x8c.js +1 -0
  105. package/dist/client/static/js/{mermaid.core-b1ssa824.js → mermaid.core-vv3wbe65.js} +6 -6
  106. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-e2ym5en8.js → mindmap-definition-NLK3R4M7-y5b2z8zp.js} +2 -2
  107. package/dist/client/static/js/one-dark-pro-hm3f56n1.js +1 -0
  108. package/dist/client/static/js/one-light-xrz49rct.js +1 -0
  109. package/dist/client/static/js/packet-AYTQ26CC-yg71sp88.js +1 -0
  110. package/dist/client/static/js/{pegDiagram-GJSIUBJH-t8bbdyhe.js → pegDiagram-GJSIUBJH-0be07mqs.js} +1 -1
  111. package/dist/client/static/js/{perl-7n7e9ncg.js → perl-sd00t4b4.js} +1 -1
  112. package/dist/client/static/js/{php-32vy69vd.js → php-2zfyqa61.js} +1 -1
  113. package/dist/client/static/js/pie-WAS4IAKB-89wd6np0.js +1 -0
  114. package/dist/client/static/js/{pieDiagram-5QR66LMP-envv4brj.js → pieDiagram-5QR66LMP-544w86jk.js} +2 -2
  115. package/dist/client/static/js/properties-thd83wey.js +1 -0
  116. package/dist/client/static/js/python-264ns4xw.js +1 -0
  117. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-72rk137a.js → quadrantDiagram-O4NWA36T-p09e7z5s.js} +4 -4
  118. package/dist/client/static/js/r-qw82kkv9.js +1 -0
  119. package/dist/client/static/js/radar-RG4KPBEZ-avn0b8r9.js +1 -0
  120. package/dist/client/static/js/railroad-74A4TZTK-de27xv5w.js +1 -0
  121. package/dist/client/static/js/railroad-abnf-HS5TGJTU-rg4zzj7x.js +1 -0
  122. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d84fhj8v.js +1 -0
  123. package/dist/client/static/js/railroad-peg-WCYAUIDC-dvf8xrmc.js +1 -0
  124. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-1ej0f5hr.js → railroadDiagram-XR7U4H2S-de830ed2.js} +1 -1
  125. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-rvdaknpd.js → requirementDiagram-PLB6GJNP-b47d74p1.js} +4 -4
  126. package/dist/client/static/js/{ruby-5ty7fys7.js → ruby-v9qaqhby.js} +1 -1
  127. package/dist/client/static/js/{rust-2geezrcs.js → rust-fkt0qyrs.js} +1 -1
  128. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-nxvhtdaw.js → sankeyDiagram-IPEJSGJF-6ezc2fpj.js} +5 -5
  129. package/dist/client/static/js/{sass-mey5150f.js → sass-9bxped7y.js} +1 -1
  130. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-n5cn5qrt.js → sequenceDiagram-PO4LG4MO-by5zqj6w.js} +18 -18
  131. package/dist/client/static/js/{sizeCapture-INFHLROL-r074kj7s.js → sizeCapture-INFHLROL-q85r06j6.js} +1 -1
  132. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-vxghxdb0.js → stateDiagram-v2-GCMORJYK-ep5pyexs.js} +3 -3
  133. package/dist/client/static/js/{svelte-3ewx0hzx.js → svelte-mwtx07d9.js} +1 -1
  134. package/dist/client/static/js/{swimlanes-2SLR337P-qkkv894p.js → swimlanes-2SLR337P-95fcqkh8.js} +1 -1
  135. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xs2en5dv.js +8 -0
  136. package/dist/client/static/js/{timeline-definition-EJHVYXUP-5tbq4ex2.js → timeline-definition-EJHVYXUP-461e615g.js} +2 -2
  137. package/dist/client/static/js/treeView-Q6P3EWNA-mham0bh6.js +1 -0
  138. package/dist/client/static/js/treemap-WGGIJYW6-mxrxax86.js +1 -0
  139. package/dist/client/static/js/tsx-nm94hed6.js +1 -0
  140. package/dist/client/static/js/typescript-0s2t05jj.js +1 -0
  141. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-6p8hf0b7.js → usecaseDiagram-POWQR4AR-ftqfnvhg.js} +37 -37
  142. package/dist/client/static/js/{vennDiagram-UO4OBE2U-7k5jsxf9.js → vennDiagram-UO4OBE2U-7t96h6ez.js} +7 -7
  143. package/dist/client/static/js/{vue-06rdf4wh.js → vue-j8vb9d7r.js} +1 -1
  144. package/dist/client/static/js/wardley-WFR3VGLG-8vrvh9p3.js +1 -0
  145. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-km2x4er8.js → wardleyDiagram-VNRHLVJA-0de8w8c6.js} +4 -4
  146. package/dist/client/static/js/xml-dz51p1m3.js +1 -0
  147. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-kr3sgr4m.js → xychartDiagram-PMCCYNJV-dez9phkf.js} +5 -5
  148. package/dist/client/static/js/yaml-2cfkd30t.js +1 -0
  149. package/package.json +1 -1
  150. package/src/client/components/common/context-usage-button/McpSection.test.tsx +98 -0
  151. package/src/client/components/common/context-usage-button/McpSection.tsx +12 -5
  152. package/src/client/components/common/context-usage-button/SessionStats.tsx +80 -0
  153. package/src/client/components/common/context-usage-button/index.test.tsx +26 -0
  154. package/src/client/components/common/context-usage-button/index.tsx +36 -28
  155. package/src/client/components/common/harness-glyph/brands.ts +8 -0
  156. package/src/client/components/mobile/LayoutWrapper.tsx +12 -3
  157. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
  158. package/src/client/components/settings/apply-side-effects.test.ts +11 -0
  159. package/src/client/components/settings/apply-side-effects.ts +7 -0
  160. package/src/client/components/settings/categories/ChatSettings.test.tsx +1 -1
  161. package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
  162. package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
  163. package/src/client/components/settings/categories/chat-settings/ChangedFilesSection.tsx +79 -0
  164. package/src/client/components/settings/categories/chat-settings/groups.ts +4 -3
  165. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +101 -0
  166. package/src/client/components/workspace/chat-timeline/MessageList.tsx +33 -1
  167. package/src/client/components/workspace/chat-timeline/RunFooter.tsx +21 -1
  168. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +13 -0
  169. package/src/client/components/workspace/chat-timeline/index.tsx +1 -1
  170. package/src/client/components/workspace/diff-panel/Toolbar.tsx +17 -51
  171. package/src/client/components/workspace/diff-panel/index.tsx +23 -4
  172. package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +94 -0
  173. package/src/client/components/workspace/editor/Body.tsx +2 -0
  174. package/src/client/data/settings/omp-schema.json +73 -3
  175. package/src/client/hooks/chat/timeline/changed-files-setting.test.ts +31 -0
  176. package/src/client/hooks/chat/timeline/changed-files-setting.ts +60 -0
  177. package/src/client/hooks/chat/timeline/session-changes.ts +51 -0
  178. package/src/client/hooks/ui/notification-events.test.ts +3 -0
  179. package/src/client/hooks/ui/notification-events.ts +3 -1
  180. package/src/client/hooks/ui/notification-sound.ts +13 -6
  181. package/src/client/hooks/ui/ui-sounds.test.ts +15 -0
  182. package/src/client/hooks/workspace/diff-file.ts +11 -4
  183. package/src/client/hooks/workspace/file-tabs.ts +13 -4
  184. package/src/client/hooks/workspace/journal-diff.ts +97 -0
  185. package/src/client/lib/notifications/native-banner-sound.test.ts +93 -0
  186. package/src/client/lib/notifications/native-banner-sound.ts +46 -0
  187. package/src/client/lib/notifications/os.test.ts +14 -5
  188. package/src/client/lib/notifications/os.ts +8 -0
  189. package/src/server/lib/harness/launch-table.ts +10 -0
  190. package/src/server/lib/omp/session/changes.test.ts +138 -0
  191. package/src/server/lib/omp/session/changes.ts +220 -0
  192. package/src/server/lib/omp/session/session-discovery.test.ts +4 -4
  193. package/src/server/lib/omp/session/sidebar-activity.server.test.ts +6 -2
  194. package/src/server/lib/omp/session/subagent-presence-scan.ts +54 -0
  195. package/src/server/lib/omp/session/subagent-presence-store.test.ts +1 -1
  196. package/src/server/lib/omp/session/subagent-presence.test.ts +115 -0
  197. package/src/server/lib/omp/session/subagent-presence.ts +12 -3
  198. package/src/server/lib/omp/session/telemetry/compute.ts +68 -0
  199. package/src/server/lib/omp/session/telemetry.test.ts +81 -0
  200. package/src/server/routes/sessions/changes.test.ts +90 -0
  201. package/src/server/routes/sessions/changes.ts +55 -0
  202. package/src/server/routes/sessions/index.ts +6 -0
  203. package/src/shared/lib/chat/duration.ts +34 -0
  204. package/src/shared/lib/chat/timeline/changed-files.test.ts +121 -0
  205. package/src/shared/lib/chat/timeline/changed-files.ts +71 -0
  206. package/src/shared/lib/chat/timeline/fork-anchor.test.ts +3 -0
  207. package/src/shared/lib/format/duration.test.ts +31 -0
  208. package/src/shared/lib/format/duration.ts +27 -0
  209. package/src/shared/lib/fs/unified-diff.test.ts +53 -0
  210. package/src/shared/lib/fs/unified-diff.ts +127 -0
  211. package/src/shared/lib/harness/brand-color.ts +3 -0
  212. package/src/shared/lib/harness/catalog.test.ts +13 -0
  213. package/src/shared/lib/harness/catalog.ts +8 -1
  214. package/src/shared/lib/harness/fork.ts +4 -2
  215. package/src/shared/lib/harness/mcp-facts.ts +3 -0
  216. package/src/shared/lib/harness/provider-facts.ts +14 -0
  217. package/src/shared/lib/harness/updates.ts +5 -0
  218. package/src/shared/lib/icons/tint-hues.generated.ts +27 -27
  219. package/src/shared/lib/omp/config/schema.test.ts +4 -2
  220. package/src/shared/lib/settings/defaults.ts +1 -0
  221. package/src/shared/lib/workspace/file-tab-id.ts +9 -0
  222. package/src/shared/types/context.ts +18 -0
  223. package/src/shared/types/fs.ts +21 -0
  224. package/src/shared/types/index.ts +1 -0
  225. package/src/shared/types/omp/session.ts +6 -0
  226. package/src/shared/types/session-changes.ts +58 -0
  227. package/src/shared/types/settings/state.ts +8 -0
  228. package/dist/client/static/js/LayoutWrapper-xjnveecv.js +0 -2
  229. package/dist/client/static/js/Modal-k2jr9hc4.js +0 -38
  230. package/dist/client/static/js/architecture-7GRP2DOG-1y9zvsyt.js +0 -1
  231. package/dist/client/static/js/bash-m0qjsyy0.js +0 -1
  232. package/dist/client/static/js/css-t4ngafan.js +0 -1
  233. package/dist/client/static/js/cynefin-OW5HDTMX-k2188qcq.js +0 -1
  234. package/dist/client/static/js/eventmodeling-NTZA5JFV-pdr0qn0n.js +0 -1
  235. package/dist/client/static/js/flowDiagram-KWPJA3E3-zvz0mxne.js +0 -1
  236. package/dist/client/static/js/gitGraph-4MIJSDKK-wmqf046s.js +0 -1
  237. package/dist/client/static/js/graphql-692h0n2x.js +0 -1
  238. package/dist/client/static/js/index-61tm0v57.js +0 -1
  239. package/dist/client/static/js/index-kg86e3sy.js +0 -12
  240. package/dist/client/static/js/index-nmmxb4va.js +0 -2
  241. package/dist/client/static/js/info-A6RAGUB7-zg3twte6.js +0 -1
  242. package/dist/client/static/js/ini-cg0a5wm3.js +0 -1
  243. package/dist/client/static/js/java-vcck089n.js +0 -1
  244. package/dist/client/static/js/jsx-ht9zyzwa.js +0 -1
  245. package/dist/client/static/js/lua-ke895s2q.js +0 -1
  246. package/dist/client/static/js/markdown-gwmsh53r.js +0 -1
  247. package/dist/client/static/js/one-dark-pro-4geyzhjj.js +0 -1
  248. package/dist/client/static/js/one-light-tqssjm9t.js +0 -1
  249. package/dist/client/static/js/packet-AYTQ26CC-3pav51g0.js +0 -1
  250. package/dist/client/static/js/pie-WAS4IAKB-wqfh7zdk.js +0 -1
  251. package/dist/client/static/js/properties-mzvvbqg5.js +0 -1
  252. package/dist/client/static/js/python-3w64wsyd.js +0 -1
  253. package/dist/client/static/js/r-32re2zwb.js +0 -1
  254. package/dist/client/static/js/radar-RG4KPBEZ-w7qjdr2g.js +0 -1
  255. package/dist/client/static/js/railroad-74A4TZTK-rhr99kkj.js +0 -1
  256. package/dist/client/static/js/railroad-abnf-HS5TGJTU-c4jeea3m.js +0 -1
  257. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-x2ee66ex.js +0 -1
  258. package/dist/client/static/js/railroad-peg-WCYAUIDC-yw8wjfwg.js +0 -1
  259. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y81h9n27.js +0 -8
  260. package/dist/client/static/js/treeView-Q6P3EWNA-ekz05ccs.js +0 -1
  261. package/dist/client/static/js/treemap-WGGIJYW6-aq6qymjr.js +0 -1
  262. package/dist/client/static/js/tsx-0p183w2f.js +0 -1
  263. package/dist/client/static/js/typescript-t9a5jyvv.js +0 -1
  264. package/dist/client/static/js/wardley-WFR3VGLG-z34tj4y3.js +0 -1
  265. package/dist/client/static/js/xml-81hxjjt4.js +0 -1
  266. package/dist/client/static/js/yaml-yssayv8a.js +0 -1
@@ -0,0 +1,127 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * A unified diff from two texts, for the journal diff tab's Copy action.
8
+ *
9
+ * The diff panel renders the two sides itself (`@codemirror/merge`), so this
10
+ * patch is not what the reader sees — it is what "Copy diff text" puts on the
11
+ * clipboard, and what a plugin's diff renderer receives. Keeping it here (not
12
+ * in the server module) means the same function can be tested without a
13
+ * session, and a future client-side caller gets the same answer.
14
+ *
15
+ * Line-based LCS, capped: a pair whose product exceeds {@link MAX_LCS_CELLS}
16
+ * falls back to "every old line removed, every new line added". That is still a
17
+ * valid patch, and it keeps a 20 000-line file from allocating a 400M-cell
18
+ * table on a request thread.
19
+ */
20
+
21
+ /** Context lines around each change, as `git diff` emits by default. */
22
+ const CONTEXT = 3;
23
+ /** Above this many DP cells, fall back to a whole-file replacement. */
24
+ const MAX_LCS_CELLS = 4_000_000;
25
+
26
+ type Op = { kind: ' ' | '-' | '+'; text: string };
27
+
28
+ /** Split into lines, dropping the empty tail a trailing newline produces. */
29
+ function splitLines(text: string): string[] {
30
+ if (text === '') return [];
31
+ const lines = text.split('\n');
32
+ if (lines[lines.length - 1] === '') lines.pop();
33
+ return lines;
34
+ }
35
+
36
+ /** Line-level LCS edit script from `a` to `b`. */
37
+ function editScript(a: readonly string[], b: readonly string[]): Op[] {
38
+ const n = a.length;
39
+ const m = b.length;
40
+ if (n * m > MAX_LCS_CELLS) {
41
+ return [
42
+ ...a.map((text): Op => ({ kind: '-', text })),
43
+ ...b.map((text): Op => ({ kind: '+', text })),
44
+ ];
45
+ }
46
+ // `dp[i][j]` = LCS length of a[i..] and b[j..].
47
+ const dp: Uint32Array[] = Array.from({ length: n + 1 }, () => new Uint32Array(m + 1));
48
+ for (let i = n - 1; i >= 0; i--) {
49
+ for (let j = m - 1; j >= 0; j--) {
50
+ dp[i][j] = a[i] === b[j] ? dp[i + 1][j + 1] + 1 : Math.max(dp[i + 1][j], dp[i][j + 1]);
51
+ }
52
+ }
53
+ const ops: Op[] = [];
54
+ let i = 0;
55
+ let j = 0;
56
+ while (i < n && j < m) {
57
+ if (a[i] === b[j]) {
58
+ ops.push({ kind: ' ', text: a[i] });
59
+ i++;
60
+ j++;
61
+ } else if (dp[i + 1][j] >= dp[i][j + 1]) {
62
+ ops.push({ kind: '-', text: a[i] });
63
+ i++;
64
+ } else {
65
+ ops.push({ kind: '+', text: b[j] });
66
+ j++;
67
+ }
68
+ }
69
+ while (i < n) ops.push({ kind: '-', text: a[i++] });
70
+ while (j < m) ops.push({ kind: '+', text: b[j++] });
71
+ return ops;
72
+ }
73
+
74
+ /** `start,count` of a unified hunk range; a zero-length range names the line before it. */
75
+ function hunkRange(start: number, count: number): string {
76
+ return `${count === 0 ? start : start + 1},${count}`;
77
+ }
78
+
79
+ /**
80
+ * Unified diff turning `before` into `after` at `path`; `''` when they are
81
+ * equal. `path` is the display path (repo- or cwd-relative).
82
+ */
83
+ export function unifiedDiff(path: string, before: string, after: string): string {
84
+ if (before === after) return '';
85
+ const ops = editScript(splitLines(before), splitLines(after));
86
+ const changed: number[] = [];
87
+ for (let index = 0; index < ops.length; index++) {
88
+ if (ops[index].kind !== ' ') changed.push(index);
89
+ }
90
+ if (changed.length === 0) return '';
91
+
92
+ // Group changed indices into hunks, merging when the gap is within twice the
93
+ // context (the same rule `git diff` uses).
94
+ const ranges: Array<[number, number]> = [];
95
+ let start = Math.max(0, changed[0] - CONTEXT);
96
+ let end = Math.min(ops.length - 1, changed[0] + CONTEXT);
97
+ for (let k = 1; k < changed.length; k++) {
98
+ const index = changed[k];
99
+ if (index - end <= 2 * CONTEXT) {
100
+ end = Math.min(ops.length - 1, index + CONTEXT);
101
+ } else {
102
+ ranges.push([start, end]);
103
+ start = Math.max(0, index - CONTEXT);
104
+ end = Math.min(ops.length - 1, index + CONTEXT);
105
+ }
106
+ }
107
+ ranges.push([start, end]);
108
+
109
+ let out = `--- a/${path}\n+++ b/${path}\n`;
110
+ for (const [from, to] of ranges) {
111
+ let oldLine = 1;
112
+ let newLine = 1;
113
+ for (let index = 0; index < from; index++) {
114
+ if (ops[index].kind !== '+') oldLine++;
115
+ if (ops[index].kind !== '-') newLine++;
116
+ }
117
+ let oldCount = 0;
118
+ let newCount = 0;
119
+ for (let index = from; index <= to; index++) {
120
+ if (ops[index].kind !== '+') oldCount++;
121
+ if (ops[index].kind !== '-') newCount++;
122
+ }
123
+ out += `@@ -${hunkRange(oldLine - 1, oldCount)} +${hunkRange(newLine - 1, newCount)} @@\n`;
124
+ for (let index = from; index <= to; index++) out += `${ops[index].kind}${ops[index].text}\n`;
125
+ }
126
+ return out;
127
+ }
@@ -50,6 +50,9 @@ const HARNESS_BASES: Readonly<Record<string, string>> = {
50
50
  jcode: '#111111',
51
51
  // xAI publishes a one-colour mark.
52
52
  grok: '#000000',
53
+ // Hermes' mark is the vendor's black "nous girl" portrait, so it paints in the
54
+ // theme's ink like the other monochrome marks.
55
+ hermes: '#000000',
53
56
  };
54
57
 
55
58
  /**
@@ -89,6 +89,19 @@ describe('harness catalog after the Gemini retirement', () => {
89
89
  expect(HARNESS_LAUNCH.grok?.install).toContain('https://x.ai/cli/install.sh');
90
90
  });
91
91
 
92
+ test('hermes is listed and launches its own `acp` subcommand', () => {
93
+ // Hermes ships the ACP adapter in-tree (`acp_adapter/`), so the launch line
94
+ // is the CLI's own verb. The `acp` extra is a separate sync step, which the
95
+ // install hint has to name or the subcommand does not exist on a stock
96
+ // install.
97
+ const descriptor = harnessDescriptor('hermes');
98
+ expect(descriptor?.transport).toBe('acp');
99
+ expect(descriptor?.glyph).toBe('hermes');
100
+ expect(HARNESS_LAUNCH.hermes?.command).toEqual(['hermes', 'acp']);
101
+ expect(HARNESS_LAUNCH.hermes?.install).toContain('hermes-agent.nousresearch.com/install.sh');
102
+ expect(HARNESS_LAUNCH.hermes?.install).toContain("pm.sync_venv(['acp']");
103
+ });
104
+
92
105
  test('every catalog entry has a launch line or is the built-in transport', () => {
93
106
  // The built-in transport has no agent to launch by definition; everything
94
107
  // else without a line would probe to "no launch command is configured",
@@ -51,7 +51,11 @@ export type BuiltinHarnessId =
51
51
  * by the Jcode daemon. */
52
52
  | 'jcode'
53
53
  /** xAI's Grok Build CLI, over its own ACP server (`grok agent stdio`). */
54
- | 'grok';
54
+ | 'grok'
55
+ /** Nous Research's Hermes Agent, over the ACP adapter it ships in-tree
56
+ * (`hermes acp`). The stock install exposes only the messages gateway and
57
+ * the TUI; the ACP surface arrives with its `acp` extra. */
58
+ | 'hermes';
55
59
 
56
60
  /**
57
61
  * A harness id: one this build ships, or one the user added.
@@ -82,6 +86,7 @@ export const HARNESS_IDS: readonly BuiltinHarnessId[] = [
82
86
  'zcode',
83
87
  'jcode',
84
88
  'grok',
89
+ 'hermes',
85
90
  ];
86
91
 
87
92
  export interface HarnessDescriptor {
@@ -136,6 +141,7 @@ export type HarnessGlyph =
136
141
  | 'zcode'
137
142
  | 'jcode'
138
143
  | 'grok'
144
+ | 'hermes'
139
145
  /** A user-added ACP harness: no vendor mark, drawn as its initial. */
140
146
  | 'custom';
141
147
 
@@ -162,6 +168,7 @@ export const HARNESS_CATALOG: Readonly<Record<BuiltinHarnessId, HarnessDescripto
162
168
  zcode: { id: 'zcode', label: 'zcode', initial: 'Z', transport: 'acp', glyph: 'zcode' },
163
169
  jcode: { id: 'jcode', label: 'jcode', initial: 'J', transport: 'acp', glyph: 'jcode' },
164
170
  grok: { id: 'grok', label: 'grok', initial: 'G', transport: 'acp', glyph: 'grok' },
171
+ hermes: { id: 'hermes', label: 'hermes', initial: 'H', transport: 'acp', glyph: 'hermes' },
165
172
  };
166
173
 
167
174
  /**
@@ -24,10 +24,12 @@ export function harnessForksAtMessage(harness: string | null | undefined): boole
24
24
  * Harnesses that advertise `session/fork` but take no anchor: the fork copies
25
25
  * the whole conversation. `zcode` is checkpoint-scoped (`latestCheckpoint`),
26
26
  * `opencode` and `minimax` have a message-level fork in their own API that
27
- * their ACP adapter does not pass through.
27
+ * their ACP adapter does not pass through, and `hermes` advertises
28
+ * `SessionForkCapabilities()` with a `fork_session(cwd, session_id)` that takes
29
+ * no message id.
28
30
  */
29
31
  export function harnessForksWholeChat(harness: string | null | undefined): boolean {
30
- return harness === 'opencode' || harness === 'minimax' || harness === 'zcode';
32
+ return harness === 'opencode' || harness === 'minimax' || harness === 'zcode' || harness === 'hermes';
31
33
  }
32
34
 
33
35
  /** What a harness can fork: nothing, the whole chat, or at a message. */
@@ -55,6 +55,9 @@ export const HARNESS_MCP_FACTS: Record<BuiltinHarnessId, HarnessMcpFacts> = {
55
55
  // Measured on 1.0.77: `mcpCapabilities` advertises stdio, http AND sse, and
56
56
  // the agent also loads config.toml / ~/.claude.json / .mcp.json on its own.
57
57
  grok: { delivery: 'acp', note: 'Injected on session/new and advertised for stdio, http and sse (measured 1.0.77); grok also loads MCP servers from config.toml, ~/.claude.json and the project .mcp.json.' },
58
+ // Hermes' ACP adapter takes the editor's `mcpServers` on session/new and adds
59
+ // them to the servers its own `config.yaml` already enables.
60
+ hermes: { delivery: 'acp', note: 'Injected on session/new, on top of the servers ~/.hermes/config.yaml enables; the editor list is always added.' },
58
61
  };
59
62
 
60
63
  /**
@@ -178,6 +178,20 @@ export const HARNESS_PROVIDER_FACTS: Readonly<Partial<Record<HarnessId, HarnessP
178
178
  importFrom: [],
179
179
  summary: 'Grok takes custom models as [model.<name>] tables in ~/.grok/config.toml (model, base_url, api_key or env_key, context_window). Kabmo does not write that file; xAI models still need `grok login`.',
180
180
  },
181
+ hermes: {
182
+ registry: {
183
+ // Hermes keeps providers in `providers.<name>` in ~/.hermes/config.yaml
184
+ // (`api` for the base URL, `api_key` or `key_env`, `transport`, `models`),
185
+ // and its own `hermes model` / dashboard write that file. The model list
186
+ // may be a string array OR a map, which no Kabmo writer models, so the
187
+ // file is read-only here.
188
+ kind: 'agent-managed', file: '.hermes/config.yaml', pointer: 'providers',
189
+ writable: false, baseUrlField: null, apiKeyField: null, modelsField: null,
190
+ },
191
+ createsChoice: true,
192
+ importFrom: [],
193
+ summary: 'Hermes keeps providers in ~/.hermes/config.yaml (api, api_key or key_env, transport, models), written by `hermes model` and its dashboard; Kabmo shows the models it publishes but does not edit that file.',
194
+ },
181
195
  claude: {
182
196
  registry: {
183
197
  kind: 'env', file: null, pointer: 'environment',
@@ -155,6 +155,11 @@ export const HARNESS_UPDATE_FACTS: Readonly<Partial<Record<HarnessId, HarnessUpd
155
155
  command: 'grok update',
156
156
  note: 'The CLI updates itself (`grok update`, plus `[cli] auto_update`); Kabmo runs its own subcommand.',
157
157
  },
158
+ hermes: {
159
+ kind: 'self',
160
+ command: 'hermes update',
161
+ note: 'The CLI updates itself (`hermes update`, which also adds the `hermes-acp` launcher to older installs); Kabmo runs its own subcommand.',
162
+ },
158
163
  };
159
164
 
160
165
  /** The facts for a harness, or "Kabmo knows nothing about updating it". */
@@ -41,33 +41,33 @@ export const ICON_HUES: Readonly<Record<string, number>> = {
41
41
  Command: 100, Component: 200, Copy: 320, CopyPlus: 40, CornerDownLeft: 10, Cpu: 250,
42
42
  Database: 280, Dice5: 50, Diff: 300, DollarSign: 220, Download: 210, DownloadCloud: 180,
43
43
  Edit2: 210, Ellipsis: 100, ExternalLink: 60, Eye: 20, EyeOff: 350, File: 310,
44
- FileCode: 260, FileCog: 340, FileEdit: 270, FileImage: 40, FilePlus: 350, FilePlus2: 350,
45
- FileSearch: 310, FileText: 80, Files: 320, Flag: 350, FlaskConical: 170, Folder: 290,
46
- FolderGit: 190, FolderGit2: 190, FolderInput: 310, FolderOpen: 330, FolderPlus: 250, FolderSearch: 10,
47
- FolderTree: 10, Gamepad2: 300, GitBranch: 30, GitCommitVertical: 240, GitCompare: 340, GitFork: 30,
48
- GitMerge: 90, GitPullRequest: 10, Globe: 340, GraduationCap: 190, GripVertical: 350, Hammer: 310,
49
- Hand: 200, HardDrive: 0, Hash: 330, Heading: 250, Heart: 270, History: 110,
50
- Home: 20, Image: 140, Key: 240, KeyRound: 240, Keyboard: 120, Laptop: 170,
51
- Layers: 30, LayoutTemplate: 170, Leaf: 50, Library: 160, Lightbulb: 0, List: 170,
52
- ListChecks: 320, ListFilter: 230, ListOrdered: 220, ListTodo: 210, ListTree: 330, Loader2: 40,
53
- Lock: 220, LockKeyhole: 270, LockOpen: 180, LogIn: 140, LogOut: 190, Maximize: 310,
54
- Maximize2: 270, Menu: 100, MessageSquare: 150, MessageSquareOff: 40, MessageSquarePlus: 350, MessagesSquare: 220,
55
- Mic: 160, MicOff: 170, Minimize: 290, Minimize2: 130, Minus: 110, Monitor: 250,
56
- Moon: 80, MoreHorizontal: 160, MousePointerClick: 70, MoveVertical: 300, Music: 280, Package: 270,
57
- PackageOpen: 230, Paintbrush: 250, Palette: 320, PanelLeft: 280, PanelLeftClose: 160, PanelRight: 330,
58
- PanelRightClose: 350, Paperclip: 310, Pause: 10, Pencil: 0, PencilLine: 260, Pin: 0,
59
- PinOff: 50, Pipette: 120, Play: 310, Plug: 50, Plus: 210, Power: 340,
60
- Puzzle: 50, Quote: 110, Radio: 320, Ratio: 160, RefreshCw: 180, Regex: 280,
61
- Replace: 190, ReplaceAll: 140, Rocket: 210, RotateCcw: 330, RotateCw: 0, Rows: 160,
62
- Rows3: 250, Save: 40, SaveAll: 190, Scissors: 260, Search: 250, Send: 110,
63
- Server: 300, ServerCog: 50, Settings: 240, Settings2: 20, Shield: 160, Shrink: 160,
64
- Sliders: 290, SlidersHorizontal: 50, Smartphone: 20, Space: 290, Sparkles: 180, Square: 60,
65
- SquareFunction: 220, SquarePen: 10, Star: 170, StickyNote: 100, Store: 340, Sun: 90,
66
- Tablet: 290, Tag: 310, Target: 200, Terminal: 210, TextSelect: 220, Ticket: 170,
67
- TriangleAlert: 210, Type: 170, Undo2: 310, Upload: 0, UploadCloud: 50, User: 140,
68
- Variable: 330, Volume2: 270, VolumeX: 50, Wand2: 270, WandSparkles: 40, Waypoints: 30,
69
- WholeWord: 240, WrapText: 340, Wrench: 0, X: 230, Zap: 120, ZoomIn: 250,
70
- ZoomOut: 340,
44
+ FileCode: 260, FileCog: 340, FileDiff: 280, FileEdit: 270, FileImage: 40, FilePlus: 350,
45
+ FilePlus2: 350, FileSearch: 310, FileText: 80, Files: 320, Flag: 350, FlaskConical: 170,
46
+ Folder: 290, FolderGit: 190, FolderGit2: 190, FolderInput: 310, FolderOpen: 330, FolderPlus: 250,
47
+ FolderSearch: 10, FolderTree: 10, Gamepad2: 300, GitBranch: 30, GitCommitVertical: 240, GitCompare: 340,
48
+ GitFork: 30, GitMerge: 90, GitPullRequest: 10, Globe: 340, GraduationCap: 190, GripVertical: 350,
49
+ Hammer: 310, Hand: 200, HardDrive: 0, Hash: 330, Heading: 250, Heart: 270,
50
+ History: 110, Home: 20, Image: 140, Key: 240, KeyRound: 240, Keyboard: 120,
51
+ Laptop: 170, Layers: 30, LayoutTemplate: 170, Leaf: 50, Library: 160, Lightbulb: 0,
52
+ List: 170, ListChecks: 320, ListFilter: 230, ListOrdered: 220, ListTodo: 210, ListTree: 330,
53
+ Loader2: 40, Lock: 220, LockKeyhole: 270, LockOpen: 180, LogIn: 140, LogOut: 190,
54
+ Maximize: 310, Maximize2: 270, Menu: 100, MessageSquare: 150, MessageSquareOff: 40, MessageSquarePlus: 350,
55
+ MessagesSquare: 220, Mic: 160, MicOff: 170, Minimize: 290, Minimize2: 130, Minus: 110,
56
+ Monitor: 250, Moon: 80, MoreHorizontal: 160, MousePointerClick: 70, MoveVertical: 300, Music: 280,
57
+ Package: 270, PackageOpen: 230, Paintbrush: 250, Palette: 320, PanelLeft: 280, PanelLeftClose: 160,
58
+ PanelRight: 330, PanelRightClose: 350, Paperclip: 310, Pause: 10, Pencil: 0, PencilLine: 260,
59
+ Pin: 0, PinOff: 50, Pipette: 120, Play: 310, Plug: 50, Plus: 210,
60
+ Power: 340, Puzzle: 50, Quote: 110, Radio: 320, Ratio: 160, RefreshCw: 180,
61
+ Regex: 280, Replace: 190, ReplaceAll: 140, Rocket: 210, RotateCcw: 330, RotateCw: 0,
62
+ Rows: 160, Rows3: 250, Save: 40, SaveAll: 190, Scissors: 260, Search: 250,
63
+ Send: 110, Server: 300, ServerCog: 50, Settings: 240, Settings2: 20, Shield: 160,
64
+ Shrink: 160, Sliders: 290, SlidersHorizontal: 50, Smartphone: 20, Space: 290, Sparkles: 180,
65
+ Square: 60, SquareFunction: 220, SquarePen: 10, Star: 170, StickyNote: 100, Store: 340,
66
+ Sun: 90, Tablet: 290, Tag: 310, Target: 200, Terminal: 210, TextSelect: 220,
67
+ Ticket: 170, TriangleAlert: 210, Type: 170, Undo2: 310, Upload: 0, UploadCloud: 50,
68
+ User: 140, Variable: 330, Volume2: 270, VolumeX: 50, Wand2: 270, WandSparkles: 40,
69
+ Waypoints: 30, WholeWord: 240, WrapText: 340, Wrench: 0, X: 230, Zap: 120,
70
+ ZoomIn: 250, ZoomOut: 340,
71
71
  };
72
72
 
73
73
  /**
@@ -252,15 +252,17 @@ describe('isConditionMet', () => {
252
252
  });
253
253
 
254
254
  test('the provenance conditions degrade to visible, deliberately', () => {
255
- // These three hide an editor row when a PROJECT layer supplies the value,
255
+ // These hide an editor row when a PROJECT layer supplies the value,
256
256
  // because the editor writes the GLOBAL layer and promoting a repository's
257
257
  // list would be the bug. `omp config list --json` carries no provenance, so
258
258
  // the client cannot answer them — visible is the decision, not an oversight.
259
- // `perCallModelAllowNotProject` arrived with 18.15.0's `task.perCallModelAllow`.
259
+ // `perCallModelAllowNotProject` arrived with 18.15.0's `task.perCallModelAllow`;
260
+ // `unpausedProvidersNotProject` with 18.20.2's `auth.unpausedProviders`.
260
261
  for (const condition of [
261
262
  'contextFilesExtraNotProject',
262
263
  'restrictedFoldersNotProject',
263
264
  'perCallModelAllowNotProject',
265
+ 'unpausedProvidersNotProject',
264
266
  ]) {
265
267
  expect({ condition, met: isConditionMet(condition, {}) }).toEqual({ condition, met: true });
266
268
  }
@@ -46,6 +46,7 @@ export const DEFAULT_SETTINGS = {
46
46
  goalDefaultBudget: null,
47
47
  chatWidthMode: DEFAULT_CHAT_WIDTH_MODE,
48
48
  toolRenderStyle: DEFAULT_TOOL_RENDER_MODE,
49
+ showChangedFiles: true,
49
50
  sidebarStyle: DEFAULT_SIDEBAR_STYLE,
50
51
  composerStyle: DEFAULT_COMPOSER_STYLE,
51
52
  surfaceStyle: DEFAULT_SURFACE_STYLE,
@@ -23,6 +23,15 @@ export function diffTabId(path: string, staged: boolean): string {
23
23
  return `diff-${staged ? 'staged' : 'working'}-${path}`;
24
24
  }
25
25
 
26
+ /**
27
+ * The diff tab id for one journal range. The same file changed in two runs is
28
+ * two different diffs, so the range is part of the id — unlike a git diff,
29
+ * where the path and side are the whole identity.
30
+ */
31
+ export function journalDiffTabId(path: string, from: number, to: number): string {
32
+ return `diff-journal-${from}-${to}-${path}`;
33
+ }
34
+
26
35
  /** Display name for a diff tab: `main.ts` → `main.ts (Diff)`. */
27
36
  export function diffTabName(path: string): string {
28
37
  return `${path.split('/').pop() || path} (Diff)`;
@@ -47,6 +47,22 @@ export interface ContextCostBreakdown {
47
47
  total: number;
48
48
  }
49
49
 
50
+ /** Measured run timing for a session. Absent fields mean the source never
51
+ * reported them: an ACP chat sends no per-call timing, and transcripts that
52
+ * predate `ttft` have no first-token clock. */
53
+ export interface SessionTimingStats {
54
+ /** Summed request duration of every assistant call, ms (TTFT included). */
55
+ llmMs: number;
56
+ /** Summed wall time of every tool call that has both ends in the file, ms. */
57
+ toolMs: number;
58
+ /** Mean time to first token across calls that reported one, ms. */
59
+ ttftAvgMs?: number;
60
+ /** Output tokens per second of the last completed call. */
61
+ lastTps?: number;
62
+ /** Output tokens per second over the whole session (output / LLM time). */
63
+ avgTps?: number;
64
+ }
65
+
50
66
  export interface SessionContextTelemetry {
51
67
  sessionId: string;
52
68
  sessionTitle: string;
@@ -61,6 +77,8 @@ export interface SessionContextTelemetry {
61
77
  assistantCount: number;
62
78
  totalCost: number;
63
79
  costFormatted: string;
80
+ /** Measured turns/steps/LLM/tool timing; absent when the source has none. */
81
+ timing?: SessionTimingStats;
64
82
  /** Average cache-hit rate (%) across assistant turns. */
65
83
  cacheHitAverage?: number;
66
84
  /** Per-category cost breakdown for the cost detail popup. */
@@ -22,6 +22,15 @@ export interface OpenedFile {
22
22
  isDiff?: boolean;
23
23
  diffStatus?: string;
24
24
  diffStaged?: boolean;
25
+ /**
26
+ * Where a diff tab's two sides come from. `git` (the default) reads the
27
+ * working tree through `/api/fs/git`; `journal` reads the agent's own
28
+ * before/after snapshots from the session's `changes.jsonl`, so the tab shows
29
+ * what the agent wrote even after someone else edited the file.
30
+ */
31
+ diffSource?: 'git' | 'journal';
32
+ /** The journal range a `diffSource: 'journal'` tab renders. */
33
+ journalDiff?: JournalDiffRef;
25
34
  /**
26
35
  * The live `FileSystemFileHandle` id a PWA launch opened this tab through.
27
36
  *
@@ -39,6 +48,18 @@ export interface OpenedFile {
39
48
  deviceFile?: boolean;
40
49
  }
41
50
 
51
+ /**
52
+ * One agent write range in a session's change journal: the absolute path plus
53
+ * the run window (`from`/`to`, epoch ms) whose net change the diff shows.
54
+ */
55
+ export interface JournalDiffRef {
56
+ sessionId: string;
57
+ /** Absolute path as the journal recorded it. */
58
+ path: string;
59
+ from: number;
60
+ to: number;
61
+ }
62
+
42
63
  export interface SearchResultItem {
43
64
  file: string;
44
65
  line: number;
@@ -21,6 +21,7 @@ export * from '@/shared/types/settings/plugin';
21
21
  export * from '@/shared/types/settings/write';
22
22
  export * from '@/shared/types/context';
23
23
  export * from '@/shared/types/omp/session';
24
+ export * from '@/shared/types/session-changes';
24
25
  export * from '@/shared/types/omp/agent';
25
26
  export * from '@/shared/types/omp/instructions';
26
27
  export * from '@/shared/types/omp/subagent';
@@ -77,7 +77,10 @@ export interface OmpMessage {
77
77
  /** Wall-clock start (epoch ms) or ISO string, per omp version. */
78
78
  timestamp?: string | number;
79
79
  completedAt?: string | number;
80
+ /** Provider-reported request duration in milliseconds (TTFT included). */
80
81
  duration?: number;
82
+ /** Time to first token in milliseconds, as omp measured it. */
83
+ ttft?: number;
81
84
  /** Provider error fields recorded flat on an abnormal turn. */
82
85
  errorStatus?: number;
83
86
  errorId?: number;
@@ -106,6 +109,9 @@ export interface OmpMessageEntry {
106
109
  thinkingLevel?: string;
107
110
  content?: unknown;
108
111
  details?: unknown;
112
+ /** Payload of a `type:"custom"` entry (`tool_execution_start` carries the
113
+ * call's `toolCallId` and `startedAt` here — the only begin clock in JSONL). */
114
+ data?: unknown;
109
115
  /** Turn-level metadata omp may place beside the message rather than inside it. */
110
116
  attribution?: unknown;
111
117
  durationMs?: unknown;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The agent's own change journal, as the chat timeline reads it.
8
+ *
9
+ * omp writes `<sessionFile minus .jsonl>/changes.jsonl` from 18.20.1 on: one
10
+ * `change` record per edit-tool write, carrying the content before and after as
11
+ * content-addressed blob keys. Kabmo reads it to answer "which files did this
12
+ * run touch", which the transcript cannot: a tool call names a path, but only
13
+ * the journal holds the two sides of the write.
14
+ */
15
+
16
+ /** One `change` record from `changes.jsonl`, with the display path resolved. */
17
+ export interface SessionChangeRecord {
18
+ /** Epoch ms the write landed. */
19
+ at: number;
20
+ /** Registry id of the agent that wrote (`Main`, `AuthLoader`). */
21
+ agent: string;
22
+ /** Parent agent id; absent for the root agent. */
23
+ parent?: string;
24
+ /** Tool that wrote (`edit`, `write`, `ast_edit`, `task`). */
25
+ tool: string;
26
+ /** Absolute path as the journal recorded it. */
27
+ path: string;
28
+ /** `path` relative to the session cwd when inside it, else the absolute path. */
29
+ displayPath: string;
30
+ /** Blob key of the content before the write; `null` when the file did not exist. */
31
+ before: string | null | undefined;
32
+ /** Blob key of the content after the write; `null` when the write deleted the file. */
33
+ after: string | null | undefined;
34
+ }
35
+
36
+ /** One file a run changed, as the collapsed summary lists it. */
37
+ export interface ChangedFile {
38
+ /** Absolute path, the journal's own key. */
39
+ path: string;
40
+ /** Path to show the reader. */
41
+ displayPath: string;
42
+ status: 'added' | 'modified' | 'deleted';
43
+ /** Agent that made the run's last write to this path. */
44
+ agent: string;
45
+ }
46
+
47
+ /** The two sides of one file's net change in a run, plus a unified patch. */
48
+ export interface SessionChangeDiff {
49
+ path: string;
50
+ displayPath: string;
51
+ status: 'added' | 'modified' | 'deleted';
52
+ oldContent: string;
53
+ newContent: string;
54
+ /** Unified diff of the two sides; empty when they are equal. */
55
+ diff: string;
56
+ /** A blob was not stored (over 8 MB) or is missing, so the sides are unknown. */
57
+ unavailable: boolean;
58
+ }
@@ -139,6 +139,14 @@ export interface SettingsState {
139
139
  * display.
140
140
  */
141
141
  toolRenderStyle: ToolRenderMode;
142
+ /**
143
+ * Whether a run's footer carries the collapsed "N files changed" list, read
144
+ * from the session's agent change journal. On by default: the list is the
145
+ * only place the transcript says which files a run touched, and a reader who
146
+ * does not want it can turn it off. Global, like the other transcript
147
+ * presentation choices.
148
+ */
149
+ showChangedFiles: boolean;
142
150
  /**
143
151
  * Which chrome the session sidebar draws (`classic` | `modern`). A
144
152
  * PRESENTATION choice over one data source, not a second sidebar: both styles