@celljs/ta-web 4.23.0 → 4.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/esm/browser/assistant/assistant-chat-list.js +3 -1
  2. package/esm/browser/components/app-nav.d.ts +3 -1
  3. package/esm/browser/components/app-nav.js +10 -10
  4. package/esm/browser/components/app-shell-state.d.ts +1 -0
  5. package/esm/browser/components/app-shell-state.js +21 -1
  6. package/esm/browser/components/app-view.js +20 -14
  7. package/esm/browser/components/chat-home-util.d.ts +7 -0
  8. package/esm/browser/components/chat-home-util.js +10 -0
  9. package/esm/browser/components/chat-home.js +3 -3
  10. package/esm/browser/components/chat-list-hooks.d.ts +2 -0
  11. package/esm/browser/components/chat-list-hooks.js +6 -0
  12. package/esm/browser/components/chat-list-row.js +2 -2
  13. package/esm/browser/components/chat-list-util.d.ts +15 -3
  14. package/esm/browser/components/chat-list-util.js +26 -4
  15. package/esm/browser/components/chat-list.js +6 -5
  16. package/esm/browser/components/chat-seen.d.ts +4 -3
  17. package/esm/browser/components/chat-seen.js +6 -5
  18. package/esm/browser/components/chats-dot.d.ts +30 -0
  19. package/esm/browser/components/chats-dot.js +32 -0
  20. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  21. package/esm/browser/components/host-view.d.ts +1 -1
  22. package/esm/browser/components/list-motion.d.ts +44 -0
  23. package/esm/browser/components/list-motion.js +197 -0
  24. package/esm/browser/components/partner-row.js +1 -1
  25. package/esm/browser/components/settings-files.d.ts +7 -0
  26. package/esm/browser/components/settings-files.js +61 -0
  27. package/esm/browser/components/settings-more.js +2 -0
  28. package/esm/browser/components/side-lists.d.ts +7 -0
  29. package/esm/browser/components/side-lists.js +16 -0
  30. package/esm/browser/components/sortable.js +15 -0
  31. package/esm/browser/components/tool-view.js +23 -7
  32. package/esm/browser/components/workbench-tabs.d.ts +1 -0
  33. package/esm/browser/components/workbench-tabs.js +8 -3
  34. package/esm/browser/components/workbench-toggle.d.ts +5 -0
  35. package/esm/browser/components/workbench-toggle.js +10 -0
  36. package/esm/browser/extension/web-api-contributions.d.ts +2 -1
  37. package/esm/browser/extension/web-api-partners.d.ts +9 -1
  38. package/esm/browser/extension/web-view-util.d.ts +5 -0
  39. package/esm/browser/extension/web-view-util.js +8 -0
  40. package/esm/browser/i18n/locales.d.ts +10 -2
  41. package/esm/browser/i18n/messages-ja.js +9 -1
  42. package/esm/browser/i18n/messages-zh-tw.js +9 -1
  43. package/esm/browser/i18n/messages.d.ts +9 -1
  44. package/esm/browser/i18n/messages.js +18 -2
  45. package/esm/browser/partners/partners-util.d.ts +6 -0
  46. package/esm/browser/partners/partners-util.js +9 -0
  47. package/esm/browser/partners/partners-view.js +4 -1
  48. package/esm/browser/style/base.d.ts +1 -1
  49. package/esm/browser/style/base.js +5 -0
  50. package/esm/browser/style/chat-list.d.ts +1 -1
  51. package/esm/browser/style/chat-list.js +2 -0
  52. package/esm/browser/style/conversation.d.ts +1 -1
  53. package/esm/browser/style/conversation.js +3 -0
  54. package/esm/browser/style/device.js +4 -1
  55. package/esm/browser/style/layout.d.ts +1 -1
  56. package/esm/browser/style/layout.js +20 -6
  57. package/esm/browser/style/pages.d.ts +1 -1
  58. package/esm/browser/style/pages.js +8 -0
  59. package/esm/browser/style/shell.d.ts +1 -1
  60. package/esm/browser/style/shell.js +7 -2
  61. package/esm/browser/style/surfaces.d.ts +1 -1
  62. package/esm/browser/style/surfaces.js +1 -0
  63. package/esm/browser/util/process.d.ts +3 -1
  64. package/esm/browser/util/process.js +27 -0
  65. package/lib/browser/assistant/assistant-chat-list.js +3 -1
  66. package/lib/browser/components/app-nav.d.ts +3 -1
  67. package/lib/browser/components/app-nav.js +8 -8
  68. package/lib/browser/components/app-shell-state.d.ts +1 -0
  69. package/lib/browser/components/app-shell-state.js +21 -1
  70. package/lib/browser/components/app-view.js +19 -13
  71. package/lib/browser/components/chat-home-util.d.ts +7 -0
  72. package/lib/browser/components/chat-home-util.js +10 -0
  73. package/lib/browser/components/chat-home.js +3 -3
  74. package/lib/browser/components/chat-list-hooks.d.ts +2 -0
  75. package/lib/browser/components/chat-list-hooks.js +7 -0
  76. package/lib/browser/components/chat-list-row.js +2 -2
  77. package/lib/browser/components/chat-list-util.d.ts +15 -3
  78. package/lib/browser/components/chat-list-util.js +26 -4
  79. package/lib/browser/components/chat-list.js +5 -4
  80. package/lib/browser/components/chat-seen.d.ts +4 -3
  81. package/lib/browser/components/chat-seen.js +6 -5
  82. package/lib/browser/components/chats-dot.d.ts +31 -0
  83. package/lib/browser/components/chats-dot.js +68 -0
  84. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  85. package/lib/browser/components/host-view.d.ts +1 -1
  86. package/lib/browser/components/list-motion.d.ts +45 -0
  87. package/lib/browser/components/list-motion.js +234 -0
  88. package/lib/browser/components/partner-row.js +1 -1
  89. package/lib/browser/components/settings-files.d.ts +8 -0
  90. package/lib/browser/components/settings-files.js +97 -0
  91. package/lib/browser/components/settings-more.js +2 -0
  92. package/lib/browser/components/side-lists.d.ts +7 -0
  93. package/lib/browser/components/side-lists.js +16 -0
  94. package/lib/browser/components/sortable.js +15 -0
  95. package/lib/browser/components/tool-view.js +23 -7
  96. package/lib/browser/components/workbench-tabs.d.ts +1 -0
  97. package/lib/browser/components/workbench-tabs.js +7 -2
  98. package/lib/browser/components/workbench-toggle.d.ts +5 -0
  99. package/lib/browser/components/workbench-toggle.js +11 -0
  100. package/lib/browser/extension/web-api-contributions.d.ts +2 -1
  101. package/lib/browser/extension/web-api-partners.d.ts +9 -1
  102. package/lib/browser/extension/web-view-util.d.ts +5 -0
  103. package/lib/browser/extension/web-view-util.js +8 -0
  104. package/lib/browser/i18n/locales.d.ts +10 -2
  105. package/lib/browser/i18n/messages-ja.js +9 -1
  106. package/lib/browser/i18n/messages-zh-tw.js +9 -1
  107. package/lib/browser/i18n/messages.d.ts +9 -1
  108. package/lib/browser/i18n/messages.js +18 -2
  109. package/lib/browser/partners/partners-util.d.ts +6 -0
  110. package/lib/browser/partners/partners-util.js +9 -0
  111. package/lib/browser/partners/partners-view.js +4 -1
  112. package/lib/browser/style/base.d.ts +1 -1
  113. package/lib/browser/style/base.js +5 -0
  114. package/lib/browser/style/chat-list.d.ts +1 -1
  115. package/lib/browser/style/chat-list.js +2 -0
  116. package/lib/browser/style/conversation.d.ts +1 -1
  117. package/lib/browser/style/conversation.js +3 -0
  118. package/lib/browser/style/device.js +4 -1
  119. package/lib/browser/style/layout.d.ts +1 -1
  120. package/lib/browser/style/layout.js +20 -6
  121. package/lib/browser/style/pages.d.ts +1 -1
  122. package/lib/browser/style/pages.js +8 -0
  123. package/lib/browser/style/shell.d.ts +1 -1
  124. package/lib/browser/style/shell.js +7 -2
  125. package/lib/browser/style/surfaces.d.ts +1 -1
  126. package/lib/browser/style/surfaces.js +1 -0
  127. package/lib/browser/util/process.d.ts +3 -1
  128. package/lib/browser/util/process.js +27 -0
  129. package/package.json +7 -7
@@ -2,4 +2,4 @@
2
2
  * The launcher and the board (ta-launcher.md, components/board.tsx): their cards and rows, and the flyout
3
3
  * the rail opens them in on a computer or a tablet. Where they rest on a phone is in style/phone.ts.
4
4
  */
5
- export declare const SURFACES_STYLE = "\n.ta-kept-page { display: contents; }\n.ta-kept-page[hidden] { display: none; }\n/* Under the head of a page of an extension (PageView): what is taller than the window scrolls, never sideways. */\n.ta-page-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }\n.ta-launcher { display: flex; flex-direction: column; gap: 24px; }\n/* The launcher with its search: the stack fills it, its base scrolls. */\n.ta-launcher-surface { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-launcher-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; }\n.ta-launcher-field { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; margin-bottom: 18px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); font: inherit; font-size: calc(14px * var(--ta-font-scale)); cursor: text; -webkit-tap-highlight-color: transparent; transition: background 140ms; }\n.ta-launcher-field:active { background: var(--ta-hover); }\n.ta-launcher-search { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--ta-main); }\n.ta-launcher-search-head { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 8px; }\n.ta-launcher-search-head input::-webkit-search-cancel-button { display: none; }\n.ta-launcher-clear { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); }\n.ta-launcher-cancel { flex: none; height: 36px; padding: 0 8px; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); cursor: pointer; }\n.ta-launcher-search-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 16px; }\n.ta-launcher-results { margin: 0; padding: 0; list-style: none; animation: ta-fade 120ms ease-out; }\n.ta-launcher-results-section + .ta-launcher-results-section { margin-top: 14px; }\n.ta-launcher-results-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); font-weight: 600; }\n.ta-launcher-results-all { border: 0; padding: 4px 0; background: none; color: var(--ta-link); font: inherit; font-weight: 500; cursor: pointer; }\n.ta-launcher-more { height: 1px; }\n/* A long list draws the rows in view only; the rest keep their place. */\n.ta-launcher-result-row { position: relative; display: flex; align-items: center; content-visibility: auto; contain-intrinsic-size: auto 56px; }\n.ta-launcher-result-row > .ta-launcher-result { flex: 1; min-width: 0; }\n.ta-launcher-result-letter { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-launcher-result-action { flex: none; position: absolute; right: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; transition: background 140ms, transform 120ms var(--ta-ease); }\n.ta-launcher-result-action:hover { background: var(--ta-hover-strong); }\n.ta-launcher-result-action:active { transform: scale(0.95); }\n.ta-launcher-result-row:has(.ta-launcher-result-action) .ta-launcher-result { padding-right: 84px; }\n/* The share sheet (share-sheet.tsx): the card of what goes, its code and link, the actions in a row, notes, Stop. */\n.ta-share { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 2px 2px 4px; }\n.ta-share-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 16px 14px; border-radius: 16px; background: var(--ta-raised); }\n.ta-share-who { display: flex; align-items: center; gap: 12px; align-self: stretch; min-width: 0; }\n.ta-share-face { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--ta-tile); color: var(--ta-tile-ink); }\n.ta-share-who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-share-gets { color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); }\n.ta-share-qr { width: 196px; height: 196px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ta-border-muted); }\n.ta-share-qr svg { display: block; width: 100%; height: 100%; border-radius: 0; animation: ta-fade 160ms ease-out; }\n.ta-share-qr-busy { display: grid; place-items: center; background: var(--ta-card); }\n.ta-share-link { align-self: stretch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--ta-muted); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); user-select: all; }\n.ta-share-password { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-share-password > span { flex: 1; min-width: 0; }\n.ta-share-password code { color: var(--ta-text); font-family: var(--ta-mono); }\n.ta-share-tiles { display: flex; justify-content: center; gap: 4px; }\n.ta-share-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 4px 0; border: 0; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-share-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-share-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ta-raised); transition: background 140ms, transform 120ms var(--ta-ease); }\n.ta-share-tile:not(:disabled):hover .ta-share-tile-icon { background: var(--ta-hover-strong); }\n.ta-share-tile:not(:disabled):active .ta-share-tile-icon { transform: scale(0.94); }\n.ta-share-tile-label { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-share-friends { display: flex; flex-direction: column; gap: 10px; }\n.ta-share-friend-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-share-friend { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-share-friend:hover { background: var(--ta-hover); }\n.ta-share-friend-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-share-friend-check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: var(--ta-brand-text); transition: background 140ms, border-color 140ms; }\n.ta-share-friend.ta-on .ta-share-friend-check { border-color: var(--ta-brand); background: var(--ta-brand); }\n.ta-share-friends-actions { display: flex; justify-content: flex-end; gap: 8px; }\n.ta-share-notes { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }\n.ta-share-notes p { margin: 0; text-align: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); text-wrap: balance; }\n.ta-share-stop { position: relative; align-self: center; border: 0; padding: 4px 8px; background: none; color: var(--ta-red); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.ta-launcher-result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-launcher-result:hover, .ta-launcher-result:active { background: var(--ta-hover); }\n.ta-launcher-result-icon { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ta-tile); color: var(--ta-tile-ink); }\n.ta-launcher-result-icon > .ta-busy-mark { width: 16px; height: 16px; border-color: color-mix(in srgb, var(--ta-tile-ink) 25%, transparent); border-top-color: var(--ta-tile-ink); }\n.ta-launcher-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-launcher-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-launcher-result-title mark { background: none; color: var(--ta-accent); font-weight: 600; }\n.ta-launcher-result-detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n.ta-board { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-board-head { flex: none; display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 6px 14px 6px 16px; }\n.ta-board-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-board-title { font-size: calc(22px * var(--ta-font-scale)); line-height: calc(28px * var(--ta-font-scale)); font-weight: 700; letter-spacing: -0.01em; color: var(--ta-text); }\n.ta-board-date { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.ta-board-edit-button { flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 15px; background: var(--ta-chip); color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; transition: background 160ms, color 160ms, transform 120ms var(--ta-ease); }\n.ta-board-edit-button:hover { background: var(--ta-hover-strong); }\n.ta-board-edit-button:active { transform: scale(0.96); }\n.ta-board-edit-button.ta-active { background: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-board-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px calc(20px + env(safe-area-inset-bottom)); }\n.ta-board-cards { display: flex; flex-direction: column; gap: 12px; }\n.ta-board-card { padding: 12px 14px 14px; border-radius: 20px; background: var(--ta-main); box-shadow: 0 0 0 1px var(--ta-border-muted), 0 2px 6px rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.04); animation: ta-board-in 260ms var(--ta-ease) both; }\n:root[data-theme='dark'] .ta-board-card { background: var(--ta-card); box-shadow: 0 0 0 1px var(--ta-border-muted); }\n@keyframes ta-board-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }\n.ta-board-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); font-weight: 600; }\n.ta-board-card-icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--ta-accent) 14%, transparent); color: var(--ta-accent); }\n.ta-board-card-body { min-width: 0; color: var(--ta-body); font-size: calc(14px * var(--ta-font-scale)); }\n/* A card with nothing says so in one quiet line, where its content would start. */\n.ta-board-card-body .ta-empty { min-height: 0; align-items: flex-start; padding: 0 0 2px; text-align: left; }\n.ta-board-card-body .ta-empty-title { color: var(--ta-muted); font-weight: 400; }\n.ta-board-edit { display: flex; flex-direction: column; animation: ta-fade 160ms ease-out; }\n.ta-board-rows { display: flex; flex-direction: column; border-radius: 14px; background: var(--ta-main); box-shadow: 0 0 0 1px var(--ta-border-muted); }\n.ta-board-row { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--ta-main); transition: transform 200ms var(--ta-ease), box-shadow 160ms; }\n.ta-board-row + .ta-board-row::before { content: ''; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--ta-border-muted); }\n.ta-board-row[data-sorting] { z-index: 2; transition: box-shadow 160ms; box-shadow: var(--ta-shadow-pop); }\n.ta-board-row[data-sorting]::before, .ta-board-row[data-sorting] + .ta-board-row::before { display: none; }\n.ta-board-toggle { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; }\n.ta-board-off { color: var(--ta-red); }\n.ta-board-on { color: var(--ta-green); }\n.ta-board-row-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-secondary); }\n.ta-board-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-board-grip { flex: none; display: grid; place-items: center; width: 44px; height: 48px; padding: 0; border: 0; background: none; color: var(--ta-muted); cursor: grab; touch-action: none; }\n.ta-board-row[data-sorting] .ta-board-grip { cursor: grabbing; }\n.ta-board-label { margin: 20px 6px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n\n/* The rail's buttons for them, above the account; the flyout beside it. */\n.ta-rail-tools { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 4px; }\n.ta-flyout { position: fixed; z-index: 50; left: calc(64px + env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom)); width: 380px; max-width: calc(100vw - 80px); max-height: min(680px, calc(100vh - 20px - var(--ta-titlebar))); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); transform-origin: 0 100%; animation: ta-flyout-in 180ms var(--ta-ease); }\n.ta-flyout > .ta-launcher-surface { height: min(560px, calc(100vh - 20px - var(--ta-titlebar))); flex: none; }\n@keyframes ta-flyout-in { from { opacity: 0; transform: translate3d(-6px, 6px, 0) scale(0.97); } }\n/* The faces of those who are not Ta (components/face.tsx): they blink, and look about while they work */\n:root:not([data-theme='light']) .ta-face[data-face=\"11\"] .ta-face-body > g > circle { fill: #4a4a52; }\n.ta-face { position: relative; display: inline-flex; flex: none; }\n.ta-face svg { display: block; overflow: visible; }\n.ta-face-double { align-items: center; justify-content: center; }\n.ta-face-picture > img { display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--ta-main); }\n.ta-face-eyes { transform-box: fill-box; transform-origin: center; animation: ta-face-blink 5.2s infinite; }\n.ta-face[data-face=\"1\"] .ta-face-eyes, .ta-face[data-face=\"5\"] .ta-face-eyes, .ta-face[data-face=\"9\"] .ta-face-eyes, .ta-face[data-face=\"13\"] .ta-face-eyes, .ta-face[data-face=\"17\"] .ta-face-eyes, .ta-face[data-face=\"21\"] .ta-face-eyes { animation-delay: -1.7s; }\n.ta-face[data-face=\"2\"] .ta-face-eyes, .ta-face[data-face=\"6\"] .ta-face-eyes, .ta-face[data-face=\"10\"] .ta-face-eyes, .ta-face[data-face=\"14\"] .ta-face-eyes, .ta-face[data-face=\"18\"] .ta-face-eyes, .ta-face[data-face=\"22\"] .ta-face-eyes { animation-delay: -3.1s; }\n.ta-face[data-face=\"3\"] .ta-face-eyes, .ta-face[data-face=\"7\"] .ta-face-eyes, .ta-face[data-face=\"11\"] .ta-face-eyes, .ta-face[data-face=\"15\"] .ta-face-eyes, .ta-face[data-face=\"19\"] .ta-face-eyes, .ta-face[data-face=\"23\"] .ta-face-eyes { animation-delay: -4.4s; }\n.ta-face-working .ta-face-look { animation: ta-face-look 2.4s ease-in-out infinite; }\n.ta-face-working .ta-face-body { transform-box: fill-box; transform-origin: 50% 100%; animation: ta-face-bob 1.2s ease-in-out infinite; }\n.ta-face-dot { position: absolute; right: -1px; bottom: -1px; width: 27%; height: 27%; min-width: 7px; min-height: 7px; box-sizing: content-box; border-radius: 50%; border: 2px solid var(--ta-face-ring, var(--ta-main)); background: var(--ta-border-field); }\n.ta-face-dot.ta-face-on { background: var(--ta-green); }\n@keyframes ta-face-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }\n@keyframes ta-face-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.4px); } 70% { transform: translateX(1.4px); } }\n@keyframes ta-face-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-face * { animation: none !important; } }\n.ta-group-face { position: relative; display: inline-flex; flex: none; }\n.ta-group-face-back { position: absolute; right: 0; top: 0; }\n.ta-group-face-front { position: absolute; left: 0; bottom: 0; z-index: 1; }\n";
5
+ export declare const SURFACES_STYLE = "\n.ta-kept-page { display: contents; }\n.ta-kept-page[hidden] { display: none; }\n/* Under the head of a page of an extension (PageView): what is taller than the window scrolls, never sideways. */\n.ta-page-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }\n.ta-launcher { display: flex; flex-direction: column; gap: 24px; }\n/* The launcher with its search: the stack fills it, its base scrolls. */\n.ta-launcher-surface { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-launcher-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; }\n.ta-launcher-field { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; margin-bottom: 18px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); font: inherit; font-size: calc(14px * var(--ta-font-scale)); cursor: text; -webkit-tap-highlight-color: transparent; transition: background 140ms; }\n.ta-launcher-field:active { background: var(--ta-hover); }\n.ta-launcher-search { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--ta-main); }\n.ta-launcher-search-head { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 8px; }\n.ta-launcher-search-head input::-webkit-search-cancel-button { display: none; }\n.ta-launcher-clear { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); }\n.ta-launcher-cancel { flex: none; height: 36px; padding: 0 8px; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); cursor: pointer; }\n.ta-launcher-search-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 16px; }\n.ta-launcher-results { margin: 0; padding: 0; list-style: none; animation: ta-fade 120ms ease-out; }\n.ta-launcher-results-section + .ta-launcher-results-section { margin-top: 14px; }\n.ta-launcher-results-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); font-weight: 600; }\n.ta-launcher-results-all { border: 0; padding: 4px 0; background: none; color: var(--ta-link); font: inherit; font-weight: 500; cursor: pointer; }\n.ta-launcher-more { height: 1px; }\n/* A long list draws the rows in view only; the rest keep their place. */\n.ta-launcher-result-row { position: relative; display: flex; align-items: center; content-visibility: auto; contain-intrinsic-size: auto 56px; }\n.ta-launcher-result-row > .ta-launcher-result { flex: 1; min-width: 0; }\n.ta-launcher-result-letter { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-launcher-result-action { flex: none; position: absolute; right: 8px; height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; transition: background 140ms, transform 120ms var(--ta-ease); }\n.ta-launcher-result-action:hover { background: var(--ta-hover-strong); }\n.ta-launcher-result-action:active { transform: scale(0.95); }\n.ta-launcher-result-row:has(.ta-launcher-result-action) .ta-launcher-result { padding-right: 84px; }\n/* The share sheet (share-sheet.tsx): the card of what goes, its code and link, the actions in a row, notes, Stop. */\n.ta-share { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 2px 2px 4px; }\n.ta-share-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 16px 14px; border-radius: 16px; background: var(--ta-raised); }\n.ta-share-who { display: flex; align-items: center; gap: 12px; align-self: stretch; min-width: 0; }\n.ta-share-face { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--ta-tile); color: var(--ta-tile-ink); }\n.ta-share-who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-share-gets { color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); }\n.ta-share-qr { width: 196px; height: 196px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ta-border-muted); }\n.ta-share-qr svg { display: block; width: 100%; height: 100%; border-radius: 0; animation: ta-fade 160ms ease-out; }\n.ta-share-qr-busy { display: grid; place-items: center; background: var(--ta-card); }\n.ta-share-link { align-self: stretch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--ta-muted); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); user-select: all; }\n.ta-share-password { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-share-password > span { flex: 1; min-width: 0; }\n.ta-share-password code { color: var(--ta-text); font-family: var(--ta-mono); }\n.ta-share-tiles { display: flex; justify-content: center; gap: 4px; }\n.ta-share-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 4px 0; border: 0; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-share-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-share-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ta-raised); transition: background 140ms, transform 120ms var(--ta-ease); }\n.ta-share-tile:not(:disabled):hover .ta-share-tile-icon { background: var(--ta-hover-strong); }\n.ta-share-tile:not(:disabled):active .ta-share-tile-icon { transform: scale(0.94); }\n.ta-share-tile-label { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-share-friends { display: flex; flex-direction: column; gap: 10px; }\n.ta-share-friend-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-share-friend { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-share-friend:hover { background: var(--ta-hover); }\n.ta-share-friend-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-share-friend-check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: var(--ta-brand-text); transition: background 140ms, border-color 140ms; }\n.ta-share-friend.ta-on .ta-share-friend-check { border-color: var(--ta-brand); background: var(--ta-brand); }\n.ta-share-friends-actions { display: flex; justify-content: flex-end; gap: 8px; }\n.ta-share-notes { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }\n.ta-share-notes p { margin: 0; text-align: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); text-wrap: balance; }\n.ta-share-stop { position: relative; align-self: center; border: 0; padding: 4px 8px; background: none; color: var(--ta-red); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.ta-launcher-result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-launcher-result:hover, .ta-launcher-result:active { background: var(--ta-hover); }\n.ta-launcher-result-icon { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ta-tile); color: var(--ta-tile-ink); }\n.ta-launcher-result-icon > .ta-busy-mark { width: 16px; height: 16px; border-color: color-mix(in srgb, var(--ta-tile-ink) 25%, transparent); border-top-color: var(--ta-tile-ink); }\n.ta-launcher-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-launcher-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-launcher-result-title mark { background: none; color: var(--ta-accent); font-weight: 600; }\n.ta-launcher-result-detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n.ta-board { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-board-head { flex: none; display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 6px 14px 6px 16px; }\n.ta-board-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-board-title { font-size: calc(22px * var(--ta-font-scale)); line-height: calc(28px * var(--ta-font-scale)); font-weight: 700; letter-spacing: -0.01em; color: var(--ta-text); }\n.ta-board-date { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.ta-board-edit-button { flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 15px; background: var(--ta-chip); color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; transition: background 160ms, color 160ms, transform 120ms var(--ta-ease); }\n.ta-board-edit-button:hover { background: var(--ta-hover-strong); }\n.ta-board-edit-button:active { transform: scale(0.96); }\n.ta-board-edit-button.ta-active { background: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-board-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px calc(20px + env(safe-area-inset-bottom)); }\n.ta-board-cards { display: flex; flex-direction: column; gap: 12px; }\n.ta-board-card { padding: 12px 14px 14px; border-radius: 20px; background: var(--ta-main); box-shadow: 0 0 0 1px var(--ta-border-muted), 0 2px 6px rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.04); animation: ta-board-in 260ms var(--ta-ease) both; }\n:root[data-theme='dark'] .ta-board-card { background: var(--ta-card); box-shadow: 0 0 0 1px var(--ta-border-muted); }\n@keyframes ta-board-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }\n.ta-board-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); font-weight: 600; }\n.ta-board-card-icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--ta-accent) 14%, transparent); color: var(--ta-accent); }\n.ta-board-card-body { min-width: 0; color: var(--ta-body); font-size: calc(14px * var(--ta-font-scale)); }\n/* A card with nothing says so in one quiet line, where its content would start. */\n.ta-board-card-body .ta-empty { min-height: 0; align-items: flex-start; padding: 0 0 2px; text-align: left; }\n.ta-board-card-body .ta-empty-title { color: var(--ta-muted); font-weight: 400; }\n.ta-board-edit { display: flex; flex-direction: column; animation: ta-fade 160ms ease-out; }\n.ta-board-rows { display: flex; flex-direction: column; border-radius: 14px; background: var(--ta-main); box-shadow: 0 0 0 1px var(--ta-border-muted); }\n.ta-board-row { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--ta-main); transition: transform 200ms var(--ta-ease), box-shadow 160ms; }\n.ta-board-row + .ta-board-row::before { content: ''; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--ta-border-muted); }\n.ta-board-row[data-sorting] { z-index: 2; transition: box-shadow 160ms; box-shadow: var(--ta-shadow-pop); }\n.ta-board-row[data-moving] { z-index: 1; }\n.ta-board-row[data-sorting]::before, .ta-board-row[data-sorting] + .ta-board-row::before { display: none; }\n.ta-board-toggle { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; }\n.ta-board-off { color: var(--ta-red); }\n.ta-board-on { color: var(--ta-green); }\n.ta-board-row-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-secondary); }\n.ta-board-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-board-grip { flex: none; display: grid; place-items: center; width: 44px; height: 48px; padding: 0; border: 0; background: none; color: var(--ta-muted); cursor: grab; touch-action: none; }\n.ta-board-row[data-sorting] .ta-board-grip { cursor: grabbing; }\n.ta-board-label { margin: 20px 6px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n\n/* The rail's buttons for them, above the account; the flyout beside it. */\n.ta-rail-tools { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 4px; }\n.ta-flyout { position: fixed; z-index: 50; left: calc(64px + env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom)); width: 380px; max-width: calc(100vw - 80px); max-height: min(680px, calc(100vh - 20px - var(--ta-titlebar))); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); transform-origin: 0 100%; animation: ta-flyout-in 180ms var(--ta-ease); }\n.ta-flyout > .ta-launcher-surface { height: min(560px, calc(100vh - 20px - var(--ta-titlebar))); flex: none; }\n@keyframes ta-flyout-in { from { opacity: 0; transform: translate3d(-6px, 6px, 0) scale(0.97); } }\n/* The faces of those who are not Ta (components/face.tsx): they blink, and look about while they work */\n:root:not([data-theme='light']) .ta-face[data-face=\"11\"] .ta-face-body > g > circle { fill: #4a4a52; }\n.ta-face { position: relative; display: inline-flex; flex: none; }\n.ta-face svg { display: block; overflow: visible; }\n.ta-face-double { align-items: center; justify-content: center; }\n.ta-face-picture > img { display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--ta-main); }\n.ta-face-eyes { transform-box: fill-box; transform-origin: center; animation: ta-face-blink 5.2s infinite; }\n.ta-face[data-face=\"1\"] .ta-face-eyes, .ta-face[data-face=\"5\"] .ta-face-eyes, .ta-face[data-face=\"9\"] .ta-face-eyes, .ta-face[data-face=\"13\"] .ta-face-eyes, .ta-face[data-face=\"17\"] .ta-face-eyes, .ta-face[data-face=\"21\"] .ta-face-eyes { animation-delay: -1.7s; }\n.ta-face[data-face=\"2\"] .ta-face-eyes, .ta-face[data-face=\"6\"] .ta-face-eyes, .ta-face[data-face=\"10\"] .ta-face-eyes, .ta-face[data-face=\"14\"] .ta-face-eyes, .ta-face[data-face=\"18\"] .ta-face-eyes, .ta-face[data-face=\"22\"] .ta-face-eyes { animation-delay: -3.1s; }\n.ta-face[data-face=\"3\"] .ta-face-eyes, .ta-face[data-face=\"7\"] .ta-face-eyes, .ta-face[data-face=\"11\"] .ta-face-eyes, .ta-face[data-face=\"15\"] .ta-face-eyes, .ta-face[data-face=\"19\"] .ta-face-eyes, .ta-face[data-face=\"23\"] .ta-face-eyes { animation-delay: -4.4s; }\n.ta-face-working .ta-face-look { animation: ta-face-look 2.4s ease-in-out infinite; }\n.ta-face-working .ta-face-body { transform-box: fill-box; transform-origin: 50% 100%; animation: ta-face-bob 1.2s ease-in-out infinite; }\n.ta-face-dot { position: absolute; right: -1px; bottom: -1px; width: 27%; height: 27%; min-width: 7px; min-height: 7px; box-sizing: content-box; border-radius: 50%; border: 2px solid var(--ta-face-ring, var(--ta-main)); background: var(--ta-border-field); }\n.ta-face-dot.ta-face-on { background: var(--ta-green); }\n@keyframes ta-face-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }\n@keyframes ta-face-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.4px); } 70% { transform: translateX(1.4px); } }\n@keyframes ta-face-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-face * { animation: none !important; } }\n.ta-group-face { position: relative; display: inline-flex; flex: none; }\n.ta-group-face-back { position: absolute; right: 0; top: 0; }\n.ta-group-face-front { position: absolute; left: 0; bottom: 0; z-index: 1; }\n";
@@ -98,6 +98,7 @@ export const SURFACES_STYLE = `
98
98
  .ta-board-row { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--ta-main); transition: transform 200ms var(--ta-ease), box-shadow 160ms; }
99
99
  .ta-board-row + .ta-board-row::before { content: ''; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--ta-border-muted); }
100
100
  .ta-board-row[data-sorting] { z-index: 2; transition: box-shadow 160ms; box-shadow: var(--ta-shadow-pop); }
101
+ .ta-board-row[data-moving] { z-index: 1; }
101
102
  .ta-board-row[data-sorting]::before, .ta-board-row[data-sorting] + .ta-board-row::before { display: none; }
102
103
  .ta-board-toggle { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; }
103
104
  .ta-board-off { color: var(--ta-red); }
@@ -42,7 +42,8 @@ export type ProcessStep = {
42
42
  * A thing ta did, as one line of the work: a call of a tool, with the thoughts that led to it and, for a script of
43
43
  * another agent (its REPL), the calls the script made, which that agent reports after it as calls of their own. The
44
44
  * other steps stay as they are: what ta said on the way, a card, what the user said, an error; and a thought not
45
- * followed by a call (the latest, while ta thinks).
45
+ * followed by a call (the latest, while ta thinks). The same call made again right after it (a command polled, a file
46
+ * edited once more, as other agents report it) is the same line: `call` is the latest, `earlier` the ones before it.
46
47
  */
47
48
  export type ProcessAct = Exclude<ProcessStep, {
48
49
  kind: 'tool';
@@ -52,6 +53,7 @@ export type ProcessAct = Exclude<ProcessStep, {
52
53
  call: ContentBlock;
53
54
  nested: ContentBlock[];
54
55
  thoughts: string[];
56
+ earlier: ContentBlock[];
55
57
  };
56
58
  /**
57
59
  * How a turn that is over ended, when not with a reply: an error, stopped by the user, cut off in the middle of
@@ -204,6 +204,9 @@ export var ProcessUtil;
204
204
  function acts(steps, active = true) {
205
205
  var _a;
206
206
  const out = [];
207
+ // The last call on its own, and what it was: the same one after it goes with it.
208
+ let alone;
209
+ let aloneIs = '';
207
210
  let thoughts = [];
208
211
  let script;
209
212
  for (const step of steps) {
@@ -215,6 +218,7 @@ export var ProcessUtil;
215
218
  out.push(...thoughts, step);
216
219
  thoughts = [];
217
220
  script = undefined;
221
+ alone = undefined;
218
222
  continue;
219
223
  }
220
224
  const args = ((_a = step.call.arguments) !== null && _a !== void 0 ? _a : {});
@@ -225,15 +229,26 @@ export var ProcessUtil;
225
229
  thoughts = [];
226
230
  continue;
227
231
  }
232
+ const is = callKey(step.call);
233
+ if (alone && is && is === aloneIs) {
234
+ alone.earlier.push(alone.call);
235
+ alone.call = step.call;
236
+ alone.thoughts.push(...thoughts.map(thought => thought.text));
237
+ thoughts = [];
238
+ continue;
239
+ }
228
240
  const act = {
229
241
  kind: 'tool',
230
242
  key: step.key,
231
243
  call: step.call,
232
244
  nested: [],
233
245
  thoughts: thoughts.map(thought => thought.text),
246
+ earlier: [],
234
247
  };
235
248
  thoughts = [];
236
249
  script = step.call.name === 'agent_tool' && args.tool === 'REPL' ? act : undefined;
250
+ alone = script ? undefined : act;
251
+ aloneIs = is;
237
252
  out.push(act);
238
253
  }
239
254
  const last = out[out.length - 1];
@@ -246,6 +261,18 @@ export var ProcessUtil;
246
261
  return out;
247
262
  }
248
263
  ProcessUtil.acts = acts;
264
+ /**
265
+ * What makes a call the same as another, for one line of them: its tool and its arguments. None for a script
266
+ * (codemode, another agent's REPL), whose calls are its own.
267
+ */
268
+ function callKey(call) {
269
+ var _a, _b;
270
+ const args = ((_a = call.arguments) !== null && _a !== void 0 ? _a : {});
271
+ if (!call.name || call.name === 'codemode' || (call.name === 'agent_tool' && args.tool === 'REPL')) {
272
+ return '';
273
+ }
274
+ return `${call.name}\0${JSON.stringify((_b = call.arguments) !== null && _b !== void 0 ? _b : {})}`;
275
+ }
249
276
  /** The steps shown: all of them, or while it works the latest few when more than two would fold. */
250
277
  function fold(steps, active, showAll, visible = VISIBLE_STEPS) {
251
278
  if (!active || showAll || steps.length <= visible + 2) {
@@ -76,6 +76,7 @@ function useChatHome(onPicked) {
76
76
  const items = React.useSyncExternalStore(host.home.subscribe, host.home.items, host.home.items);
77
77
  const allPartners = React.useSyncExternalStore(host.partners.subscribe, host.partners.partners, host.partners.partners);
78
78
  const partners = React.useMemo(() => partners_util_1.PartnersUtil.chats(allPartners), [allPartners]);
79
+ const partnerSessions = React.useMemo(() => partners_util_1.PartnersUtil.sessions(allPartners), [allPartners]);
79
80
  // Its preview and whether it works, as one string: the same line stays the same value.
80
81
  const watch = React.useCallback((listener) => { var _a; var _b; return (_b = (_a = view === null || view === void 0 ? void 0 : view.subscribePreview) === null || _a === void 0 ? void 0 : _a.call(view, listener)) !== null && _b !== void 0 ? _b : (() => undefined); }, [view]);
81
82
  const read = () => {
@@ -108,6 +109,7 @@ function useChatHome(onPicked) {
108
109
  },
109
110
  items,
110
111
  partners,
112
+ partnerSessions,
111
113
  shownItem,
112
114
  openItem: entry => {
113
115
  latest.current();
@@ -122,7 +124,7 @@ function useChatHome(onPicked) {
122
124
  },
123
125
  remove: removed => void web_tasks_1.WebTaskUtil.remove(removed, notices, t),
124
126
  };
125
- }, [listed, line, name, shown, view, items, partners, shownItem, tasks, host, state, notices, t]);
127
+ }, [listed, line, name, shown, view, items, partners, partnerSessions, shownItem, tasks, host, state, notices, t]);
126
128
  }
127
129
  /** The list of chats with what the double knows of them: its tasks marked, a conversation to hand it; its home over them. */
128
130
  function AssistantChatList(props) {
@@ -35,13 +35,15 @@ export interface RailProps {
35
35
  onDismissAsks?(): void;
36
36
  /** A chat said something unseen: the amber dot on the double's entry, as on a phone's first tab; dragged away, all seen. */
37
37
  onSeeAll?(): void;
38
+ /** A double click where nothing is: the sidebar and the workbench both go, or both come back. */
39
+ onToggleSides?(): void;
38
40
  }
39
41
  /**
40
42
  * The navigation on the left, as the tabs of a phone: the logo; the lists of the sidebar; the pages, and Discover
41
43
  * once some are under it; the account with the settings at the bottom. A page's menu (a right click) puts it under
42
44
  * Discover; that of the double talks to it, and that of the chats opens a new one (entryMenu).
43
45
  */
44
- export declare function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, onSeeAll, }: RailProps): React.JSX.Element;
46
+ export declare function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, onSeeAll, onToggleSides, }: RailProps): React.JSX.Element;
45
47
  /** A sidebar view of a web extension, under its title or its own top bar. */
46
48
  export declare function SidebarView({ view }: {
47
49
  view: WebViewEntry;
@@ -45,7 +45,6 @@ const extension_view_1 = require("../extension/extension-view");
45
45
  const web_extension_protocol_1 = require("../extension/web-extension-protocol");
46
46
  const hooks_1 = require("../hooks");
47
47
  const use_t_1 = require("../i18n/use-t");
48
- const agent_settings_1 = require("../settings/agent-settings");
49
48
  const navigation_1 = require("../settings/navigation");
50
49
  const account_menu_1 = require("./account-menu");
51
50
  const asks_badge_1 = require("./asks-badge");
@@ -88,7 +87,7 @@ function RailItem({ label, place, active, onClick, onContextMenu, onPointerDown,
88
87
  * once some are under it; the account with the settings at the bottom. A page's menu (a right click) puts it under
89
88
  * Discover; that of the double talks to it, and that of the chats opens a new one (entryMenu).
90
89
  */
91
- function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, onSeeAll, }) {
90
+ function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, onSettings, settingsShown, surfaces, surface, onSurface, holds, asks, onDismissAsks, onSeeAll, onToggleSides, }) {
92
91
  const t = (0, use_t_1.useT)();
93
92
  const [{ server }] = (0, hooks_1.useWorkbench)();
94
93
  const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
@@ -102,9 +101,12 @@ function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, on
102
101
  React.createElement(Glyph, { size: 20, strokeWidth: 1.6 })));
103
102
  };
104
103
  const discover = (0, nav_places_1.hasDiscover)(navigation) || current === nav_places_1.DISCOVER;
105
- // The workbench from anywhere, a page or the settings too, as the launcher and the board.
106
- const workbench = React.useContext(workbench_toggle_1.WorkbenchToggleContext);
107
- return (React.createElement("nav", { className: "ta-rail", "aria-label": t('ta.menu') },
104
+ return (React.createElement("nav", { className: "ta-rail", "aria-label": t('ta.menu'), onDoubleClick: event => {
105
+ var _a, _b;
106
+ if (onToggleSides && !((_b = (_a = event.target).closest) === null || _b === void 0 ? void 0 : _b.call(_a, 'button, a, [role="button"], input'))) {
107
+ onToggleSides();
108
+ }
109
+ } },
108
110
  React.createElement("div", { className: "ta-rail-logo", title: server ? `Ta v${server.version}` : 'Ta' },
109
111
  React.createElement(dino_1.Dino, { size: 26 })),
110
112
  React.createElement("div", { className: "ta-rail-items" },
@@ -116,9 +118,7 @@ function Rail({ lists, list, onList, navigation, current, onPage, onDiscover, on
116
118
  navigation.nav.map(view => item(view)),
117
119
  discover && (React.createElement(RailItem, { label: t('ta.discover'), place: "discover", active: !settingsShown && current === nav_places_1.DISCOVER, onClick: onDiscover, onContextMenu: event => openMenu(event, [settingsItem]) },
118
120
  React.createElement(lucide_react_1.Compass, { size: 20, strokeWidth: 1.6 })))),
119
- (workbench || surfaces.launcher || surfaces.board) && (React.createElement("div", { className: "ta-rail-tools" },
120
- workbench && (React.createElement(RailItem, { label: `${t('ta.workbench')} (${agent_settings_1.ShortcutUtil.keys('Mod+J').join(agent_settings_1.ShortcutUtil.isMac() ? '' : '+')})`, active: workbench.open, onClick: workbench.toggle },
121
- React.createElement(icon_1.SidebarRight, { size: 20, strokeWidth: 1.6 }))),
121
+ (surfaces.launcher || surfaces.board) && (React.createElement("div", { className: "ta-rail-tools" },
122
122
  surfaces.launcher && (React.createElement(SurfaceButton, { label: t('ta.launcher'), active: surface === 'launcher', onClick: () => onSurface(surface === 'launcher' ? undefined : 'launcher') },
123
123
  React.createElement(lucide_react_1.Grip, { size: 20, strokeWidth: 1.6 }))),
124
124
  surfaces.board && (React.createElement(SurfaceButton, { label: t('ta.board'), active: surface === 'board', onClick: () => onSurface(surface === 'board' ? undefined : 'board') },
@@ -73,6 +73,7 @@ export declare function useAppShell(): {
73
73
  sideShown: boolean;
74
74
  showList: (id: string) => void;
75
75
  toggleWorkbench: () => void;
76
+ toggleSides: () => void;
76
77
  picking: React.RefObject<() => void>;
77
78
  chatsBusy: boolean;
78
79
  deciding: number;
@@ -43,6 +43,7 @@ const chat_view_1 = require("../chat/chat-view");
43
43
  const back_stack_1 = require("../device/back-stack");
44
44
  const device_1 = require("../device/device");
45
45
  const web_tasks_1 = require("../extension/web-tasks");
46
+ const web_view_util_1 = require("../extension/web-view-util");
46
47
  const files_protocol_1 = require("../files/files-protocol");
47
48
  const hooks_1 = require("../hooks");
48
49
  const use_t_1 = require("../i18n/use-t");
@@ -236,7 +237,7 @@ function useAppShell() {
236
237
  setSettings(undefined);
237
238
  setTabPage(undefined);
238
239
  };
239
- const tools = [...(hasCards ? [cardsTool] : []), ...extensions.views.filter(candidate => candidate.location === 'panel')];
240
+ const tools = [...(hasCards ? [cardsTool] : []), ...web_view_util_1.WebViewUtil.tools(extensions.views)];
240
241
  const openTool = (id) => (id === app_shell_hooks_1.CARDS_ID ? openCards() : host.openView(id));
241
242
  // The workbench: the tabs open, or the tools that open there.
242
243
  const editors = extensions.editors.length > 0 || tools.length > 0;
@@ -421,6 +422,24 @@ function useAppShell() {
421
422
  editor.reveal();
422
423
  }
423
424
  };
425
+ // A double click on the rail where nothing is: both sides go, or come back if neither shows.
426
+ const toggleSides = () => {
427
+ const workbench = !!editors && showEditors;
428
+ if (sideShown || workbench) {
429
+ if (sideShown) {
430
+ toggleSide();
431
+ }
432
+ if (workbench) {
433
+ toggleRight();
434
+ }
435
+ }
436
+ else {
437
+ toggleSide();
438
+ if (editors) {
439
+ toggleWorkbench();
440
+ }
441
+ }
442
+ };
424
443
  // Cmd/Ctrl+Shift+T: the conversation last taken out of the list, back in it and shown, as it is picked there.
425
444
  const picking = React.useRef(() => undefined);
426
445
  const reopenChat = React.useCallback(() => {
@@ -498,6 +517,7 @@ function useAppShell() {
498
517
  sideShown,
499
518
  showList,
500
519
  toggleWorkbench,
520
+ toggleSides,
501
521
  picking,
502
522
  chatsBusy,
503
523
  deciding,
@@ -46,7 +46,6 @@ const hooks_1 = require("../hooks");
46
46
  const notices_1 = require("../notices/notices");
47
47
  const shared_link_1 = require("../share/shared-link");
48
48
  const shared_page_1 = require("../share/shared-page");
49
- const workbench_util_1 = require("../workbench-util");
50
49
  const app_contexts_1 = require("./app-contexts");
51
50
  const app_nav_1 = require("./app-nav");
52
51
  const app_shell_hooks_1 = require("./app-shell-hooks");
@@ -54,9 +53,9 @@ const app_shell_state_1 = require("./app-shell-state");
54
53
  const auth_view_1 = require("./auth-view");
55
54
  const board_1 = require("./board");
56
55
  const chat_asks_1 = require("./chat-asks");
57
- const chat_icon_1 = require("./chat-icon");
58
56
  const chat_list_util_1 = require("./chat-list-util");
59
57
  const chat_seen_1 = require("./chat-seen");
58
+ const chats_dot_1 = require("./chats-dot");
60
59
  const connection_bar_1 = require("./connection-bar");
61
60
  const custom_host_1 = require("./custom-host");
62
61
  const device_sign_in_page_1 = require("./device-sign-in-page");
@@ -97,7 +96,7 @@ const workbench_view_1 = require("./workbench-view");
97
96
  function AppShell() {
98
97
  var _a, _b, _c;
99
98
  var _d, _e;
100
- const { t, workbench, extensions, host, store, pending, chat, setSideId, removedChats, chatsByDirectory, setChatsByDirectory, foldedChats, setFoldedChats, pinnedChats, setPinnedChats, letGoAsks, setLetGoAsks, navOpen, setNavOpen, phone, screenOpen, setScreenOpen, surface, setSurface, surfaces, settings, setSettings, settingsOpened, tabPage, setTabPage, openSettings, closeSettings, settingsShown, toggleRight, maximized, setMaximized, chatSettings, readArchived, sidebar, editor, online, fileUrl, openLink, activeEditor, view, sideView, side, showPage, lists, tools, openTool, editors, showEditors, navigation, codeScan, notices, railCurrent, tabView, screenPage, seenChats, looking, state, sideShown, showList, toggleWorkbench, picking, chatsBusy, setChatsBusy, deciding, } = (0, app_shell_state_1.useAppShell)();
99
+ const { t, workbench, extensions, host, store, pending, chat, setSideId, removedChats, chatsByDirectory, setChatsByDirectory, foldedChats, setFoldedChats, pinnedChats, setPinnedChats, letGoAsks, setLetGoAsks, navOpen, setNavOpen, phone, screenOpen, setScreenOpen, surface, setSurface, surfaces, settings, setSettings, settingsOpened, tabPage, setTabPage, openSettings, closeSettings, settingsShown, toggleRight, maximized, setMaximized, chatSettings, readArchived, sidebar, editor, online, fileUrl, openLink, activeEditor, view, sideView, side, showPage, lists, tools, openTool, editors, showEditors, navigation, codeScan, notices, railCurrent, tabView, screenPage, seenChats, looking, state, sideShown, showList, toggleWorkbench, toggleSides, picking, chatsBusy, setChatsBusy, deciding, } = (0, app_shell_state_1.useAppShell)();
101
100
  const [providers, reloadProviders] = (0, auth_view_1.useAuthProviders)(online);
102
101
  const [later, setLater] = (0, hooks_1.usePersisted)(app_shell_hooks_1.LOGIN_LATER);
103
102
  /** A call failed for want of a sign-in (SIGN_IN_EVENT): the page of sign-in, even if the user put it off. */
@@ -114,6 +113,20 @@ function AppShell() {
114
113
  // Where Ta's agents read the page to be, and go (docs/design/ta-app-use.md 3): set below as it renders.
115
114
  const screenShell = (0, screen_navigator_1.useScreenNavigator)();
116
115
  const inCall = (0, entry_holds_1.useCallGoingOn)();
116
+ // The chats' tab, and the double's on the rail, have the amber dot while a row of the double's list has one, as a
117
+ // messenger's; what waits for the user to decide is counted there until answered.
118
+ const { listed: listedChats, unseen: chatsUnseen } = (0, chats_dot_1.useChatsDot)({
119
+ sessions: workbench.sessions,
120
+ saved: workbench.saved,
121
+ removed: removedChats,
122
+ pinned: pinnedChats,
123
+ letGo: letGoAsks,
124
+ archiveDays: chatSettings.chatArchiveDays,
125
+ seen: seenChats,
126
+ looking,
127
+ extensions,
128
+ host,
129
+ });
117
130
  if (workbench.status === 'signed-out') {
118
131
  return workbench.leaving ? React.createElement("div", { className: "ta-signin" }) : React.createElement(workbench_view_1.SignIn, { error: workbench.error });
119
132
  }
@@ -130,9 +143,7 @@ function AppShell() {
130
143
  }, onProviders: reloadProviders }));
131
144
  }
132
145
  // What the columns beside the conversation and the editors take, so that the editors never take more than the conversation.
133
- const sideWidths = {
134
- '--ta-left': `${app_shell_hooks_1.RAIL + (sideShown ? sidebar.size : 0)}px`,
135
- };
146
+ const sideWidths = { '--ta-left': `${app_shell_hooks_1.RAIL + (sideShown ? sidebar.size : 0)}px` };
136
147
  const classes = ['ta-app', navOpen && 'ta-nav-open', showEditors && 'ta-editors-open', showEditors && maximized && 'ta-workbench-max'];
137
148
  const toggle = editors ? { open: showEditors, toggle: toggleWorkbench } : undefined;
138
149
  const picked = () => {
@@ -252,11 +263,6 @@ function AppShell() {
252
263
  picked();
253
264
  },
254
265
  });
255
- // The chats' tab, and the double's on the rail, have the amber dot of the rows listed while one said something unseen,
256
- // as a messenger's, but those quiet (a call); what waits for the user to decide is counted there until answered.
257
- const listedChats = chat_list_util_1.ChatListUtil.entries(workbench.sessions, workbench.saved, removedChats, undefined, workbench_util_1.WorkbenchUtil.daysAgo(Date.now(), chatSettings.chatArchiveDays), chat_list_util_1.ChatListUtil.keptFiles(workbench.saved, pinnedChats, letGoAsks), chat_icon_1.ChatIconUtil.archiveSince(extensions.chatIcons, Date.now())).listed;
258
- const inFront = looking ? workbench.sessions.find(session => session.sessionId === looking) : undefined;
259
- const chatsUnseen = chat_seen_1.ChatSeenUtil.anyUnseen(chat_icon_1.ChatIconUtil.loud(extensions.chatIcons, listedChats), seenChats, inFront && chat_list_util_1.ChatListUtil.file(inFront));
260
266
  // Dragged away, the dot of the chats: all seen.
261
267
  const seeAllChats = () => state.set(chat_seen_1.SEEN_CHATS, chat_seen_1.ChatSeenUtil.seeAll(state.get(chat_seen_1.SEEN_CHATS), listedChats, Date.now()));
262
268
  // Dragged away, the count of the double: what the conversations ask let go; the double's own tasks wait on.
@@ -376,8 +382,8 @@ function AppShell() {
376
382
  setSettings(undefined);
377
383
  setNavOpen(false);
378
384
  setTabPage('discover');
379
- }, onSettings: openSettings, settingsShown: settings !== undefined, surfaces: surfaces, surface: surface, onSurface: setSurface, holds: holds, asks: deciding, onDismissAsks: letGoAllAsks, onSeeAll: chatsUnseen ? seeAllChats : undefined }),
380
- sideShown && (React.createElement("div", { className: "ta-sidebar", style: (0, split_pane_1.paneStyle)(sidebar) },
385
+ }, onSettings: openSettings, settingsShown: settings !== undefined, surfaces: surfaces, surface: surface, onSurface: setSurface, holds: holds, asks: deciding, onDismissAsks: letGoAllAsks, onSeeAll: chatsUnseen ? seeAllChats : undefined, onToggleSides: toggleSides }),
386
+ sideShown && (React.createElement(workbench_toggle_1.SidebarPane, { style: (0, split_pane_1.paneStyle)(sidebar) },
381
387
  sideList,
382
388
  React.createElement(split_pane_1.Sash, { pane: sidebar, side: "start", label: t('ta.layout.sidebar') })))),
383
389
  React.createElement("main", { className: "ta-main" },
@@ -16,6 +16,8 @@ export interface ChatHome {
16
16
  * list by their time as any conversation (docs/design/ta-partners.md).
17
17
  */
18
18
  partners: readonly WebPartnerEntry[];
19
+ /** The conversations of pi that are partners' (PartnersUtil.sessions): listed once closed too, seen elsewhere till then. */
20
+ partnerSessions: ReadonlyMap<string, number>;
19
21
  /** The key of the row whose page is in front, as a conversation of the list is (WebExtensionsState.pageFrom). */
20
22
  shownItem?: string;
21
23
  /** Opens a row: a page it shows is shown beside the list (TaWebExtensions.openHome). */
@@ -104,6 +106,11 @@ export declare namespace ChatHomeUtil {
104
106
  };
105
107
  /** It ended after the user last opened it (once the seen were kept): an amber dot, as a conversation's unread. */
106
108
  function unseen(task: WebTaskEntry, seen: ChatSeen): boolean;
109
+ /**
110
+ * Whether a row of the double's list that is no conversation of pi has the amber dot: a row of its home, a
111
+ * conversation with a partner (a group chat, a chat of two), a task that is no conversation.
112
+ */
113
+ function anyUnseen(items: readonly WebHomeEntry[], partners: readonly WebPartnerEntry[], tasks: readonly WebTaskEntry[], seen: ChatSeen): boolean;
107
114
  /** Whether one of `texts` has the query (any case); all match an empty one. */
108
115
  function matches(query: string, ...texts: (string | undefined)[]): boolean;
109
116
  /**
@@ -103,6 +103,16 @@ var ChatHomeUtil;
103
103
  return seen.since > 0 && web_tasks_1.WebTaskUtil.ended(task) && task.endedAt !== undefined && task.endedAt > ((_a = seen.at[seenKey(task)]) !== null && _a !== void 0 ? _a : seen.since);
104
104
  }
105
105
  ChatHomeUtil.unseen = unseen;
106
+ /**
107
+ * Whether a row of the double's list that is no conversation of pi has the amber dot: a row of its home, a
108
+ * conversation with a partner (a group chat, a chat of two), a task that is no conversation.
109
+ */
110
+ function anyUnseen(items, partners, tasks, seen) {
111
+ return (ChatHomeUtil.items(items).some(item => item.unseen) ||
112
+ partners_util_1.PartnersUtil.chats(partners).some(partners_util_1.PartnersUtil.unseen) ||
113
+ ChatHomeUtil.tasks(tasks).rows.some(task => unseen(task, seen)));
114
+ }
115
+ ChatHomeUtil.anyUnseen = anyUnseen;
106
116
  /** Whether one of `texts` has the query (any case); all match an empty one. */
107
117
  function matches(query, ...texts) {
108
118
  const needle = query.trim().toLowerCase();
@@ -75,7 +75,7 @@ function ChatDoubleItem({ home, counts, unseen, now }) {
75
75
  const asks = counts.waiting > 0;
76
76
  const fresh = counts.fresh > 0 || unseen;
77
77
  const items = double.menu ? chat_home_util_1.ChatHomeUtil.menu(double.menu()) : [];
78
- return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row ta-chat-double ta-chat-home-double${double.shown ? ' ta-selected' : ''}`, "data-unseen": fresh && !asks ? '' : undefined, "data-asks": asks ? '' : undefined, overlay: menu, onContextMenu: items.length ? event => openMenu(event, items) : undefined },
78
+ return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row ta-chat-double ta-chat-home-double${double.shown ? ' ta-selected' : ''}`, "data-row": "double", "data-unseen": fresh && !asks ? '' : undefined, "data-asks": asks ? '' : undefined, overlay: menu, onContextMenu: items.length ? event => openMenu(event, items) : undefined },
79
79
  React.createElement("button", { type: "button", className: "ta-chat-item", title: double.name, "aria-current": double.shown ? 'true' : undefined, onClick: double.open },
80
80
  React.createElement("span", { className: "ta-chat-avatar-box" },
81
81
  React.createElement(ta_avatar_1.DinoFace, { className: "ta-chat-face", mood: asks ? 'attention' : double.busy || counts.running > 0 ? 'working' : 'idle', size: 38 }),
@@ -109,7 +109,7 @@ function ChatHomeItem({ row, time, home, selected, pinned, onPin, }) {
109
109
  };
110
110
  const pin = { label: t(pinned ? 'ta.chat.unpin' : 'ta.chat.pin'), run: () => onPin(!pinned) };
111
111
  const current = selected || home.shownItem === item.key;
112
- return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row ta-chat-home-item${current ? ' ta-selected' : ''}`, "data-unseen": item.unseen ? '' : undefined, actions: [{ key: 'pin', ...pin }], overlay: menu, onContextMenu: event => openMenu(event, context_menu_1.ContextMenuUtil.sections([{ label: t('ta.chat.open'), run: open }], [pin])) },
112
+ return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row ta-chat-home-item${current ? ' ta-selected' : ''}`, "data-row": row.key, "data-unseen": item.unseen ? '' : undefined, actions: [{ key: 'pin', ...pin }], overlay: menu, onContextMenu: event => openMenu(event, context_menu_1.ContextMenuUtil.sections([{ label: t('ta.chat.open'), run: open }], [pin])) },
113
113
  React.createElement("button", { type: "button", className: "ta-chat-item", title: item.title, "aria-current": current ? 'true' : undefined, onClick: open },
114
114
  React.createElement("span", { className: "ta-chat-avatar-box" },
115
115
  Own && !opening ? (React.createElement("span", { className: "ta-chat-face", style: { width: 38, height: 38 }, "aria-hidden": "true" },
@@ -143,7 +143,7 @@ exports.ChatTaskItem = React.memo(function ChatTaskItem({ task, home, unseen, ti
143
143
  const remove = task.remove ? () => home.remove([task]) : undefined;
144
144
  const items = () => chat_home_util_1.ChatHomeUtil.taskMenu(task, { label: t('ta.chat.open'), run: open }, remove && { label: t('ta.task.remove'), run: remove, danger: true });
145
145
  const ended = task.status === 'failed' || task.status === 'stopped' ? task.status : undefined;
146
- return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: "ta-chat-row ta-chat-task", "data-unseen": unseen && !asks ? '' : undefined, "data-asks": asks ? '' : undefined, actions: remove ? [{ key: 'remove', label: t('ta.chat.removeShort'), danger: true, run: remove }] : undefined, overlay: menu, onContextMenu: event => openMenu(event, items()) },
146
+ return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: "ta-chat-row ta-chat-task", "data-row": chat_home_util_1.ChatHomeUtil.seenKey(task), "data-unseen": unseen && !asks ? '' : undefined, "data-asks": asks ? '' : undefined, actions: remove ? [{ key: 'remove', label: t('ta.chat.removeShort'), danger: true, run: remove }] : undefined, overlay: menu, onContextMenu: event => openMenu(event, items()) },
147
147
  React.createElement("button", { type: "button", className: "ta-chat-item", title: task.title, onClick: open },
148
148
  React.createElement("span", { className: "ta-chat-avatar-box" },
149
149
  React.createElement(task_views_1.TaskIcon, { task: task, size: 38 }),
@@ -28,4 +28,6 @@ export declare function useMinute(): number;
28
28
  export declare function usePageEnd(more: boolean, root: React.RefObject<HTMLElement | null>, end: React.RefObject<HTMLElement | null>, onEnd: () => void,
29
29
  /** What the page drawn is: observed again as it changes. */
30
30
  page: string): void;
31
+ /** A conversation that comes to the top, is pinned or let go slides to its place in the list and in a folder opened, as the others make room. */
32
+ export declare function useChatListMotion(list: React.RefObject<HTMLElement | null>, folder: React.RefObject<HTMLElement | null>): void;
31
33
  //# sourceMappingURL=chat-list-hooks.d.ts.map
@@ -37,11 +37,13 @@ exports.useOfferPins = useOfferPins;
37
37
  exports.useReadArchive = useReadArchive;
38
38
  exports.useMinute = useMinute;
39
39
  exports.usePageEnd = usePageEnd;
40
+ exports.useChatListMotion = useChatListMotion;
40
41
  const react_1 = require("@celljs/react");
41
42
  const React = __importStar(require("react"));
42
43
  const state_protocol_1 = require("../state/state-protocol");
43
44
  const chat_home_util_1 = require("./chat-home-util");
44
45
  const chat_list_util_1 = require("./chat-list-util");
46
+ const list_motion_1 = require("./list-motion");
45
47
  /**
46
48
  * What comes as a row of its own (a folder, a row of the home) is pinned the first time it is there, once on any
47
49
  * device (PIN_OFFERED): unpinned by the user, it stays so. Read from the server first, not to write over its pins.
@@ -117,4 +119,9 @@ page) {
117
119
  return () => observer.disconnect();
118
120
  }, [more, page, root, end]);
119
121
  }
122
+ /** A conversation that comes to the top, is pinned or let go slides to its place in the list and in a folder opened, as the others make room. */
123
+ function useChatListMotion(list, folder) {
124
+ (0, list_motion_1.useListMotion)(list);
125
+ (0, list_motion_1.useListMotion)(folder);
126
+ }
120
127
  //# sourceMappingURL=chat-list-hooks.js.map
@@ -129,7 +129,7 @@ function ChatFolderItem({ folder, time, selected, unseen, pinned, onOpen, onPin,
129
129
  const working = folder.sessions.some(session => chat_list_util_1.ChatListUtil.isOpen(session) && session.isStreaming);
130
130
  const pin = { label: t(pinned ? 'ta.chat.unpin' : 'ta.chat.pin'), run: () => onPin(!pinned) };
131
131
  const [menu, openMenu] = (0, context_menu_1.useContextMenu)();
132
- return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row ta-chat-folder${selected ? ' ta-selected' : ''}`, "data-unseen": unseen.length > 0 ? '' : undefined, actions: [{ key: 'pin', ...pin }], overlay: menu, onContextMenu: event => openMenu(event, context_menu_1.ContextMenuUtil.sections([{ label: t('ta.chat.open'), run: onOpen }], [pin])) },
132
+ return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row ta-chat-folder${selected ? ' ta-selected' : ''}`, "data-row": folder.key, "data-unseen": unseen.length > 0 ? '' : undefined, actions: [{ key: 'pin', ...pin }], overlay: menu, onContextMenu: event => openMenu(event, context_menu_1.ContextMenuUtil.sections([{ label: t('ta.chat.open'), run: onOpen }], [pin])) },
133
133
  React.createElement("button", { type: "button", className: "ta-chat-item", title: `${folder.title} (${folder.sessions.length})`, "aria-current": selected ? 'true' : undefined, onClick: onOpen },
134
134
  React.createElement("span", { className: "ta-chat-avatar-box" },
135
135
  React.createElement(chat_icon_1.ChatIconTile, { found: folder.icon, size: 38 }),
@@ -197,7 +197,7 @@ exports.ChatItem = React.memo(function ChatItem({ session, source, selected, tim
197
197
  // Its directory too for one of a package's group, as a run of a scheduled task, not the package's name.
198
198
  const place = who || session.group ? message_1.MessageUtil.basename(session.cwd) : source.label;
199
199
  const ended = task === 'failed' || task === 'stopped' ? task : undefined;
200
- return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row${selected ? ' ta-selected' : ''}${who ? ` ta-chat-${who.kind}` : ''}`, "data-unseen": unseen && !asks ? '' : undefined, "data-asks": asks ? '' : undefined, actions: swipe, overlay: menu, onContextMenu: onContextMenu },
200
+ return (React.createElement(swipe_row_1.SwipeRow, { as: "li", className: `ta-chat-row${selected ? ' ta-selected' : ''}${who ? ` ta-chat-${who.kind}` : ''}`, "data-row": chat_list_util_1.ChatListUtil.key(session), "data-unseen": unseen && !asks ? '' : undefined, "data-asks": asks ? '' : undefined, actions: swipe, overlay: menu, onContextMenu: onContextMenu },
201
201
  React.createElement("button", { type: "button", className: `ta-chat-item${compact ? ' ta-compact' : ''}${removing ? ' ta-pending' : ''}`, title: `${title}\n${source.title}`, "aria-current": selected ? 'true' : undefined, onClick: onSelect, ...screen_protocol_1.ScreenUtil.item(chat_list_util_1.ChatListUtil.file(session)) }, compact ? (React.createElement("span", { className: "ta-chat-text" },
202
202
  React.createElement("span", { className: "ta-chat-line" },
203
203
  who && React.createElement(ChatAvatar, { session: session, source: source, who: who, size: 20, mood: mood }),
@@ -5,6 +5,7 @@ import { type StateSpec } from '../state/state-protocol';
5
5
  import { type LetGoAsks } from './chat-asks';
6
6
  import type { ChatHomeRow, ChatTaskRow } from './chat-home-util';
7
7
  import type { ChatFolderIcon } from './chat-icon';
8
+ import { type ChatSeen } from './chat-seen';
8
9
  /** Where a conversation belongs: the directory of the user's own, or the package that opened it. */
9
10
  export interface ChatSource {
10
11
  /** `dir:<cwd>` or `pkg:<package>`. */
@@ -130,14 +131,25 @@ export declare namespace ChatListUtil {
130
131
  pinned: T[];
131
132
  rest: T[];
132
133
  };
134
+ /**
135
+ * Whether a row said something the user has not seen (ChatSeenUtil.unseen): a saved one answers no more, and what
136
+ * a partner's conversation said till it was seen elsewhere (PartnersUtil.sessions) is seen.
137
+ */
138
+ function unseen(session: ChatEntry, seen: ChatSeen, shown?: string, partnerSessions?: ReadonlyMap<string, number>): boolean;
139
+ /**
140
+ * Which saved conversations of a package's group the list has (`entries`): those that fold into a folder of the
141
+ * list (WebChatIcon.folder), and those of partners (an agent's, PartnersUtil.sessions), the double's list having
142
+ * every conversation with a partner. ta serve opens either again with its group and role, from its file.
143
+ */
144
+ function groupListed(folderOf: ((session: TaSavedSessionInfo) => unknown) | undefined, partnerSessions: ReadonlyMap<string, number> | undefined): ((session: TaSavedSessionInfo) => boolean) | undefined;
133
145
  /**
134
146
  * The open sessions and the saved ones, those archived and those taken out apart. A saved conversation of a
135
- * package's group is not listed: its package opens it again, with its role; unless it folds into a folder of the
136
- * list (`folderOf`, WebChatIcon.folder), which opens it as the package does. An open one is always listed,
147
+ * package's group is not listed: its package opens it again, with its role; unless `listed` has it (groupListed:
148
+ * one that folds into a folder of the list, a partner's). An open one is always listed,
137
149
  * however old, and so is one pinned; a saved one not updated `since` is archived (a ta serve of before lists
138
150
  * them with the others), or not updated since what `sooner` says of it (ChatIconUtil.archiveSince).
139
151
  */
140
- function entries(sessions: TaSessionInfo[], saved: TaSavedSessionInfo[], removed: string[], archived?: TaSavedSessionInfo[], since?: number, pinned?: readonly string[], sooner?: (session: TaSavedSessionInfo) => number | undefined, folderOf?: (session: TaSavedSessionInfo) => unknown): {
152
+ function entries(sessions: TaSessionInfo[], saved: TaSavedSessionInfo[], removed: string[], archived?: TaSavedSessionInfo[], since?: number, pinned?: readonly string[], sooner?: (session: TaSavedSessionInfo) => number | undefined, listed?: (session: TaSavedSessionInfo) => unknown): {
141
153
  listed: ChatEntry[];
142
154
  archived: ChatEntry[];
143
155
  removed: ChatEntry[];