@kortix/ui 0.16.0 → 0.16.2

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 (285) hide show
  1. package/dist/_vendor/kortix-shared.js +157 -51
  2. package/dist/_vendor/shared/index.d.ts +1 -0
  3. package/dist/_vendor/shared/space-icon.d.ts +30 -0
  4. package/dist/_vendor/shared/space-slug.d.ts +12 -0
  5. package/dist/access/access/access-dialog.js +2 -2
  6. package/dist/access/share-dialog.d.ts +77 -0
  7. package/dist/access/share-dialog.js +160 -0
  8. package/dist/access/sharing-picker.d.ts +8 -1
  9. package/dist/access/sharing-picker.js +2 -2
  10. package/dist/changes/change-list.js +3 -3
  11. package/dist/customize/connectors/catalog/catalog-paging.d.ts +1 -1
  12. package/dist/customize/connectors/catalog/catalog-paging.js +1 -1
  13. package/dist/customize/providers/provider-sheet.js +17 -7
  14. package/dist/customize/sections/component/manifest-copy-block.js +1 -1
  15. package/dist/customize/sections/component/section-wrapper.d.ts +1 -8
  16. package/dist/customize/sections/component/section-wrapper.js +3 -3
  17. package/dist/customize/sections/llm-provider/model-capability-icons.js +1 -1
  18. package/dist/customize/sections/view/gateway/generation-controls.js +1 -1
  19. package/dist/customize/sections/view/git-view.js +1 -1
  20. package/dist/customize/settings/settings-tabs.js +0 -5
  21. package/dist/customize/settings/tabs/general-tab.js +2 -2
  22. package/dist/customize/shared/capability-page-shell.d.ts +2 -2
  23. package/dist/customize/shared/capability-page-shell.js +7 -5
  24. package/dist/customize/shared/capability-scroll-root.js +1 -2
  25. package/dist/customize/shared/catalog/catalog-card.js +1 -1
  26. package/dist/files/project/components/change-requests-panel.js +2 -2
  27. package/dist/files/project/components/checkpoint-detail-dialog.js +4 -4
  28. package/dist/files/project/components/checkpoints-panel.js +2 -2
  29. package/dist/files/project/components/drive-explorer.js +2 -2
  30. package/dist/files/project/components/file-breadcrumbs.js +1 -1
  31. package/dist/files/project/components/file-history-popover.js +2 -2
  32. package/dist/files/project/components/file-thumbnail.js +1 -1
  33. package/dist/files/project/components/open-change-request-dialog.js +1 -1
  34. package/dist/files/renderers/mermaid/mermaid-diagram.js +2 -2
  35. package/dist/files/renderers/show-content-renderer.js +6 -6
  36. package/dist/files/renderers/sqlite-renderer.js +8 -8
  37. package/dist/files/renderers/zip/zip-renderer.js +2 -2
  38. package/dist/files/viewer/file-content-renderer.js +5 -5
  39. package/dist/files/viewer/json-tree-view.js +3 -3
  40. package/dist/i18n/en.d.ts +133 -8
  41. package/dist/i18n/en.js +170 -45
  42. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -3
  43. package/dist/internal/billing/use-cost-explorer.d.ts +9 -2
  44. package/dist/internal/billing/use-cost-explorer.js +22 -0
  45. package/dist/internal/billing/use-session-costs.d.ts +7 -2
  46. package/dist/internal/billing/use-session-costs.js +6 -0
  47. package/dist/internal/chrome/use-chrome-offered.d.ts +3 -3
  48. package/dist/internal/chrome/use-chrome-offered.js +3 -3
  49. package/dist/internal/components/nav-rail.d.ts +1 -20
  50. package/dist/internal/components/nav-rail.js +1 -15
  51. package/dist/internal/layout/project-page-header.d.ts +13 -9
  52. package/dist/internal/layout/project-page-header.js +14 -10
  53. package/dist/internal/lib/browser-noise/evidence.d.ts +2 -0
  54. package/dist/internal/lib/browser-noise/rules/injected-scripts.js +16 -1
  55. package/dist/internal/lib/error-handler.js +0 -9
  56. package/dist/internal/lib/interface-theme-defaults.js +2 -2
  57. package/dist/internal/lib/project-actions.d.ts +4 -5
  58. package/dist/internal/lib/project-actions.js +3 -5
  59. package/dist/internal/lib/project-preamble.d.ts +42 -4
  60. package/dist/internal/lib/project-preamble.js +49 -5
  61. package/dist/internal/lib/web-notifications.js +17 -29
  62. package/dist/internal/outcomes/outcome-vocabulary.js +1 -1
  63. package/dist/internal/stores/session-filter-store.d.ts +1 -1
  64. package/dist/internal/stores/user-preferences-store.d.ts +2 -2
  65. package/dist/internal/stores/workspace-settings-rail-store.d.ts +0 -8
  66. package/dist/internal/stores/workspace-settings-rail-store.js +0 -2
  67. package/dist/lib/routes.d.ts +7 -0
  68. package/dist/lib/routes.js +6 -1
  69. package/dist/markdown/doc-editor/doc-extensions.js +2 -0
  70. package/dist/markdown/doc-editor/doc-paste.d.ts +13 -0
  71. package/dist/markdown/doc-editor/doc-paste.js +67 -0
  72. package/dist/markdown/markdown-frontmatter.js +3 -3
  73. package/dist/markdown/markdown-policy.d.ts +1 -1
  74. package/dist/markdown/ordered-list.js +1 -1
  75. package/dist/primitives/context-menu.d.ts +1 -0
  76. package/dist/primitives/definition-list.js +1 -1
  77. package/dist/primitives/dropdown-menu.d.ts +1 -0
  78. package/dist/primitives/emoji-picker.js +1 -1
  79. package/dist/primitives/expandable-search.d.ts +57 -0
  80. package/dist/primitives/expandable-search.js +58 -0
  81. package/dist/primitives/favicon-avatar.js +1 -1
  82. package/dist/primitives/file-tree.d.ts +1 -1
  83. package/dist/primitives/file-tree.js +1 -1
  84. package/dist/primitives/glyph-picker.js +2 -2
  85. package/dist/primitives/input-group.js +1 -1
  86. package/dist/primitives/menu-base.d.ts +10 -0
  87. package/dist/primitives/menu-base.js +7 -2
  88. package/dist/primitives/phone-input.js +1 -1
  89. package/dist/primitives/profile-hover-card.d.ts +28 -0
  90. package/dist/primitives/profile-hover-card.js +22 -0
  91. package/dist/primitives/settings-section-header.d.ts +5 -5
  92. package/dist/primitives/settings-section-header.js +5 -5
  93. package/dist/primitives/sort-menu.d.ts +23 -0
  94. package/dist/primitives/sort-menu.js +54 -0
  95. package/dist/primitives/tabs.js +1 -1
  96. package/dist/primitives/toast-clearance.d.ts +12 -28
  97. package/dist/primitives/toast-clearance.js +23 -45
  98. package/dist/primitives/user-avatar.js +2 -3
  99. package/dist/session/agents/subagent-dialog-content.js +28 -70
  100. package/dist/session/composer/ComposerCard.d.ts +4 -1
  101. package/dist/session/composer/ComposerCard.js +51 -7
  102. package/dist/session/composer/composer-chat-input.js +3 -1
  103. package/dist/session/composer/composer-toolbar.d.ts +3 -1
  104. package/dist/session/composer/composer-toolbar.js +6 -2
  105. package/dist/session/composer/composer-underbar.d.ts +3 -1
  106. package/dist/session/composer/composer-underbar.js +2 -2
  107. package/dist/session/composer/composer.d.ts +12 -0
  108. package/dist/session/composer/composer.js +112 -6
  109. package/dist/session/composer/draft/composer-draft.d.ts +1 -0
  110. package/dist/session/composer/draft/composer-draft.js +10 -2
  111. package/dist/session/composer/draft/draft-uploads.js +13 -2
  112. package/dist/session/composer/draft/use-composer-draft.d.ts +2 -0
  113. package/dist/session/composer/draft/use-composer-draft.js +41 -6
  114. package/dist/session/composer/drive-mentions.d.ts +34 -0
  115. package/dist/session/composer/drive-mentions.js +98 -0
  116. package/dist/session/composer/editor/composer-editor.d.ts +3 -0
  117. package/dist/session/composer/editor/composer-editor.js +3 -1
  118. package/dist/session/composer/editor/serialize.js +3 -4
  119. package/dist/session/composer/menus/mention-controller.d.ts +3 -0
  120. package/dist/session/composer/menus/mention-controller.js +5 -0
  121. package/dist/session/composer/menus/mention-menu.d.ts +20 -3
  122. package/dist/session/composer/menus/mention-menu.js +33 -6
  123. package/dist/session/composer/menus/menu-items.d.ts +16 -1
  124. package/dist/session/composer/menus/menu-items.js +21 -1
  125. package/dist/session/composer/submit-latch.d.ts +3 -1
  126. package/dist/session/composer/submit-latch.js +5 -1
  127. package/dist/session/composer/types.d.ts +9 -2
  128. package/dist/session/header/session-changes-indicator.js +1 -1
  129. package/dist/session/header/session-site-header.js +2 -2
  130. package/dist/session/media/sandbox-url-detector.js +3 -3
  131. package/dist/session/models/model-connection-gate.d.ts +5 -0
  132. package/dist/session/models/model-connection-gate.js +12 -3
  133. package/dist/session/models/model-connection-layout.d.ts +7 -0
  134. package/dist/session/models/model-connection-layout.js +7 -0
  135. package/dist/session/models/provider-failure-recovery.js +1 -1
  136. package/dist/session/models/subscription-offer.d.ts +6 -5
  137. package/dist/session/models/subscription-offer.js +6 -6
  138. package/dist/session/panel/advanced/advanced-panel.js +1 -1
  139. package/dist/session/panel/session-detail-panel.js +1 -1
  140. package/dist/session/panel/session-diff-viewer.js +1 -1
  141. package/dist/session/panel/session-files-explorer.js +1 -1
  142. package/dist/session/panel/session-files-panel.js +3 -3
  143. package/dist/session/panel/shared/action-navigator.js +1 -1
  144. package/dist/session/status/provisioning-failure.d.ts +4 -4
  145. package/dist/session/status/provisioning-failure.js +4 -4
  146. package/dist/session/status/session-busy-indicator.js +1 -1
  147. package/dist/session/status/session-error-banner.js +6 -1
  148. package/dist/session/thread/mention-chip.d.ts +1 -1
  149. package/dist/session/thread/mention-segments.d.ts +4 -2
  150. package/dist/session/thread/mention-segments.js +28 -1
  151. package/dist/session/thread/message-parsing.d.ts +11 -0
  152. package/dist/session/thread/message-parsing.js +22 -3
  153. package/dist/session/thread/optimistic-turn.d.ts +4 -2
  154. package/dist/session/thread/optimistic-turn.js +13 -11
  155. package/dist/session/thread/session-chat.js +6 -1
  156. package/dist/session/thread/session-context-message-explorer.js +1 -1
  157. package/dist/session/thread/session-older-autoload.d.ts +2 -3
  158. package/dist/session/thread/session-older-autoload.js +2 -3
  159. package/dist/session/thread/transcript.js +8 -10
  160. package/dist/session/tool/shared/error-and-connector.js +1 -1
  161. package/dist/session/tool/shared/file-list.js +2 -2
  162. package/dist/session/tool/shared/infrastructure-parts.js +1 -1
  163. package/dist/session/tool/shared/infrastructure-preview.js +1 -1
  164. package/dist/session/tool/shared/infrastructure-row-header.js +3 -3
  165. package/dist/session/tool/shared/infrastructure-rows.js +2 -2
  166. package/dist/session/tool/shared/output-block.js +4 -4
  167. package/dist/session/tool/shared/session-helpers.js +3 -3
  168. package/dist/session/tool/shared/structured-output.js +3 -3
  169. package/dist/session/tool/shared/todo-helpers.js +1 -1
  170. package/dist/session/tool/tool-error.js +2 -2
  171. package/dist/session/tool/tools/agent-spawn-tool.js +3 -3
  172. package/dist/session/tool/tools/agent-status-tool.js +1 -1
  173. package/dist/session/tool/tools/apply-patch-tool.js +1 -1
  174. package/dist/session/tool/tools/connector-get-tool.js +1 -1
  175. package/dist/session/tool/tools/connector-list-tool.js +1 -1
  176. package/dist/session/tool/tools/connector-tools.js +1 -1
  177. package/dist/session/tool/tools/edit-tool.js +1 -1
  178. package/dist/session/tool/tools/get-mem-tool.js +1 -1
  179. package/dist/session/tool/tools/glob-tool.js +1 -1
  180. package/dist/session/tool/tools/image-search-tool.js +1 -1
  181. package/dist/session/tool/tools/memory-search-tool.js +1 -1
  182. package/dist/session/tool/tools/memory-tool.js +4 -4
  183. package/dist/session/tool/tools/presentation-gen-tool.js +2 -2
  184. package/dist/session/tool/tools/project-delete-tool.js +1 -1
  185. package/dist/session/tool/tools/project-list-tool.js +1 -1
  186. package/dist/session/tool/tools/pty-read-tool.js +1 -1
  187. package/dist/session/tool/tools/pty-spawn-tool.js +1 -1
  188. package/dist/session/tool/tools/pty-write-tool.js +1 -1
  189. package/dist/session/tool/tools/read-tool.js +1 -1
  190. package/dist/session/tool/tools/removed-connector-tool.js +1 -1
  191. package/dist/session/tool/tools/scrape-webpage-tool.js +1 -1
  192. package/dist/session/tool/tools/session-get-tool.js +3 -3
  193. package/dist/session/tool/tools/session-list-background-tool.js +1 -1
  194. package/dist/session/tool/tools/session-read-tool.js +1 -1
  195. package/dist/session/tool/tools/session-search-tool.js +1 -1
  196. package/dist/session/tool/tools/session-spawn-tool.js +1 -1
  197. package/dist/session/tool/tools/skill-tool.js +1 -1
  198. package/dist/session/tool/tools/todo-write-tool.js +1 -1
  199. package/dist/session/tool/tools/web-fetch-tool.js +1 -1
  200. package/dist/session/tool/tools/write-tool.js +1 -1
  201. package/dist/session/turn/activity-file-chips.js +7 -3
  202. package/dist/session/turn/activity-step.js +1 -1
  203. package/dist/session/turn/burst-summary-trigger.js +3 -3
  204. package/dist/session/turn/chain-step-trigger.js +1 -1
  205. package/dist/session/turn/plan-card.js +1 -1
  206. package/dist/session/turn/thought-chain-step.js +1 -1
  207. package/dist/session/turn/turn-work-accordion.js +1 -1
  208. package/dist/session/turn/user-message.js +13 -6
  209. package/dist/session/voice/use-call-card-position.d.ts +30 -0
  210. package/dist/session/voice/use-call-card-position.js +126 -0
  211. package/dist/session/voice/voice-call-card.js +10 -3
  212. package/dist/styles/theme.css +12 -0
  213. package/dist/styles/tokens.css +12 -6
  214. package/dist/styles.css +1 -1
  215. package/dist/terminal/session-terminal-panel.js +1 -1
  216. package/dist/test-utils/intl.d.ts +133 -8
  217. package/dist/workspace/admin/project-admin-dashboard.js +7 -24
  218. package/dist/workspace/calendar/calendar-page.js +1 -1
  219. package/dist/workspace/home/first-chat.d.ts +4 -3
  220. package/dist/workspace/home/first-chat.js +6 -6
  221. package/dist/workspace/home/welcome-body.js +2 -2
  222. package/dist/workspace/index.d.ts +1 -1
  223. package/dist/workspace/index.js +1 -1
  224. package/dist/workspace/layout/project-home.js +11 -4
  225. package/dist/workspace/layout/use-project-home-send.d.ts +3 -1
  226. package/dist/workspace/layout/use-project-home-send.js +6 -2
  227. package/dist/workspace/memory/company-memory-page.js +2 -4
  228. package/dist/workspace/new/github-source.js +0 -1
  229. package/dist/workspace/new/new-workspace-form.d.ts +0 -1
  230. package/dist/workspace/new/new-workspace-form.js +0 -3
  231. package/dist/workspace/new/use-create-workspace.d.ts +1 -1
  232. package/dist/workspace/new/use-create-workspace.js +1 -2
  233. package/dist/workspace/session-spaces/space-detail-page.d.ts +35 -0
  234. package/dist/workspace/session-spaces/space-detail-page.js +307 -0
  235. package/dist/workspace/session-spaces/space-form-modal.d.ts +16 -0
  236. package/dist/workspace/session-spaces/space-form-modal.js +92 -0
  237. package/dist/workspace/session-spaces/space-icon.d.ts +36 -0
  238. package/dist/workspace/session-spaces/space-icon.js +52 -0
  239. package/dist/workspace/session-spaces/space-people.d.ts +51 -0
  240. package/dist/workspace/session-spaces/space-people.js +91 -0
  241. package/dist/workspace/session-spaces/space-picker.d.ts +11 -0
  242. package/dist/workspace/session-spaces/space-picker.js +42 -0
  243. package/dist/workspace/session-spaces/space-share-modal.d.ts +14 -0
  244. package/dist/workspace/session-spaces/space-share-modal.js +93 -0
  245. package/dist/workspace/session-spaces/spaces-page.d.ts +8 -0
  246. package/dist/workspace/session-spaces/spaces-page.js +125 -0
  247. package/dist/workspace/sessions/session-owner-filters.d.ts +2 -0
  248. package/dist/workspace/sessions/session-owner-filters.js +2 -0
  249. package/dist/workspace/setup/setup-banner.d.ts +4 -0
  250. package/dist/workspace/setup/setup-banner.js +57 -0
  251. package/dist/workspace/setup/setup-steps.d.ts +14 -0
  252. package/dist/workspace/setup/setup-steps.js +15 -0
  253. package/dist/workspace/setup/use-setup-steps.d.ts +18 -0
  254. package/dist/workspace/setup/use-setup-steps.js +57 -0
  255. package/dist/workspace/setup/workspace-setup-page.js +8 -41
  256. package/dist/workspace/sidebar/footer/project-artifacts-nav.js +1 -1
  257. package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +7 -2
  258. package/dist/workspace/sidebar/footer/project-promo-cards.js +4 -3
  259. package/dist/workspace/sidebar/footer/project-sandbox-alert.js +1 -1
  260. package/dist/workspace/sidebar/footer/promo-card.d.ts +10 -1
  261. package/dist/workspace/sidebar/footer/promo-card.js +31 -2
  262. package/dist/workspace/sidebar/footer/sandbox-health.js +1 -1
  263. package/dist/workspace/sidebar/modal/session-people-picker.d.ts +13 -0
  264. package/dist/workspace/sidebar/modal/session-people-picker.js +72 -0
  265. package/dist/workspace/sidebar/modal/share-session-modal.js +2 -1
  266. package/dist/workspace/sidebar/project-nav-items.d.ts +1 -3
  267. package/dist/workspace/sidebar/project-nav-items.js +3 -8
  268. package/dist/workspace/sidebar/project-session-list.js +19 -12
  269. package/dist/workspace/sidebar/project-sidebar.js +13 -13
  270. package/dist/workspace/sidebar/project-spaces-nav.js +1 -2
  271. package/dist/workspace/sidebar/session-filter-menu.js +19 -13
  272. package/dist/workspace/sidebar/session-group-sections.d.ts +12 -12
  273. package/dist/workspace/sidebar/session-group-sections.js +56 -75
  274. package/dist/workspace/sidebar/sidebar-more-group.js +1 -1
  275. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +2 -2
  276. package/dist/workspace/spaces/space-tabs.d.ts +26 -6
  277. package/dist/workspace/spaces/space-tabs.js +19 -8
  278. package/package.json +27 -31
  279. package/skills/kortix-ui/references/modules.md +2 -2
  280. package/dist/workspace/new/clone-param.d.ts +0 -11
  281. package/dist/workspace/new/clone-param.js +0 -15
  282. package/dist/workspace/new/provision-new-workspace.d.ts +0 -14
  283. package/dist/workspace/new/provision-new-workspace.js +0 -14
  284. package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +0 -8
  285. package/dist/workspace/sidebar/footer/project-inbox-nav.js +0 -29
@@ -622,8 +622,8 @@ function agentDisplayName(slug, title) {
622
622
  if (isMyKortixAgentName(slug)) return MY_KORTIX_DISPLAY_NAME;
623
623
  if (typeof title === "string" && title.trim()) return title.trim();
624
624
  if (typeof slug !== "string") return String(slug);
625
- const words = slug.replace(/[-_]+/g, " ").trim();
626
- return words.charAt(0).toUpperCase() + words.slice(1);
625
+ const words2 = slug.replace(/[-_]+/g, " ").trim();
626
+ return words2.charAt(0).toUpperCase() + words2.slice(1);
627
627
  }
628
628
  var BEHAVIOR_KEYS_V3 = [
629
629
  "description",
@@ -1294,17 +1294,17 @@ function formatRelative(input, options = {}) {
1294
1294
 
1295
1295
  // ../shared/src/utils/chalk-colors.ts
1296
1296
  function hashLabel(seed) {
1297
- let hash = 0;
1297
+ let hash2 = 0;
1298
1298
  for (let i = 0; i < seed.length; i++) {
1299
- hash = hash * 31 + seed.charCodeAt(i) | 0;
1299
+ hash2 = hash2 * 31 + seed.charCodeAt(i) | 0;
1300
1300
  }
1301
- return Math.abs(hash);
1301
+ return Math.abs(hash2);
1302
1302
  }
1303
1303
  function chalkColors(label) {
1304
- const hash = hashLabel(label || "?");
1305
- const hue = hash % 360;
1306
- const sat = 35 + hash % 12;
1307
- const lift = (hash >> 3) % 10;
1304
+ const hash2 = hashLabel(label || "?");
1305
+ const hue = hash2 % 360;
1306
+ const sat = 35 + hash2 % 12;
1307
+ const lift = (hash2 >> 3) % 10;
1308
1308
  return {
1309
1309
  background: `hsl(${hue} ${sat}% ${77 + lift}%)`,
1310
1310
  foreground: `hsl(${hue} ${Math.min(sat + 10, 82)}% 27%)`,
@@ -2562,6 +2562,102 @@ function normalizeProjectGlyphColor(value) {
2562
2562
  return isProjectGlyphColor(candidate) ? candidate : null;
2563
2563
  }
2564
2564
 
2565
+ // ../shared/src/space-icon.ts
2566
+ var STEM_GLYPHS = [
2567
+ // Go-to-market
2568
+ ["Megaphone", ["market", "campaign", "launch", "announce", "promo", "brand", "growth", "advert"]],
2569
+ ["Handshake", ["sale", "deal", "partner", "crm", "leads", "prospect", "outreach", "bizdev", "bd"]],
2570
+ ["Headset", ["support", "helpdesk", "ticket", "customer", "cs", "success", "service"]],
2571
+ ["Users", ["team", "people", "hr", "hiring", "recruit", "talent", "onboard", "staff", "org", "community"]],
2572
+ ["ChatsCircle", ["chat", "discuss", "social", "slack", "comms", "communic", "feedback"]],
2573
+ ["Envelope", ["email", "mail", "newsletter", "inbox"]],
2574
+ // Product and engineering
2575
+ ["Code", ["code", "engineer", "dev", "backend", "frontend", "api", "sdk", "program", "software", "platform"]],
2576
+ ["Bug", ["bug", "fix", "qa", "issue", "incident", "triage", "debug"]],
2577
+ ["Rocket", ["ship", "release", "deploy", "startup", "mvp", "beta"]],
2578
+ ["Cube", ["product", "feature", "roadmap", "spec"]],
2579
+ ["GitBranch", ["git", "repo", "branch", "merge", "pr"]],
2580
+ ["Database", ["data", "database", "sql", "warehouse", "etl", "pipeline"]],
2581
+ ["Cloud", ["cloud", "infra", "devops", "aws", "server", "ops"]],
2582
+ ["Robot", ["ai", "agent", "bot", "llm", "model", "ml", "automat", "gpt", "claude"]],
2583
+ ["ShieldCheck", ["secur", "complian", "legal", "privacy", "audit", "risk", "soc", "gdpr"]],
2584
+ ["DeviceMobile", ["mobile", "ios", "android", "app"]],
2585
+ ["Browser", ["web", "site", "landing", "seo", "page"]],
2586
+ ["Terminal", ["cli", "terminal", "script", "shell"]],
2587
+ // Design and content
2588
+ ["Palette", ["design", "ui", "ux", "figma", "visual", "creative", "art"]],
2589
+ ["PenNib", ["write", "writing", "copy", "content", "blog", "article", "draft", "story", "editor"]],
2590
+ ["VideoCamera", ["video", "film", "youtube", "record", "stream", "podcast"]],
2591
+ ["Image", ["photo", "image", "picture", "graphic"]],
2592
+ ["FileText", ["doc", "docs", "documentation", "wiki", "guide", "manual", "note", "report"]],
2593
+ ["PresentationChart", ["deck", "pitch", "present", "slide", "board"]],
2594
+ // Numbers
2595
+ ["ChartLineUp", ["analytic", "metric", "kpi", "dashboard", "insight", "stat", "track", "perform"]],
2596
+ ["CurrencyDollar", ["financ", "money", "budget", "revenue", "invoice", "billing", "account", "tax", "pricing", "payroll", "fund", "invest"]],
2597
+ ["ShoppingCart", ["shop", "store", "ecommerce", "commerce", "order", "retail"]],
2598
+ ["Package", ["logistic", "inventory", "supply", "deliver", "parcel"]],
2599
+ // Planning and research
2600
+ ["Calendar", ["plan", "schedul", "calendar", "event", "meeting", "weekly", "daily", "sprint"]],
2601
+ ["Kanban", ["project", "task", "todo", "backlog", "kanban"]],
2602
+ ["Strategy", ["strategy", "okr", "goal", "vision", "exec", "leader"]],
2603
+ ["MagnifyingGlass", ["research", "search", "discover", "explor", "investig", "analysis", "compet"]],
2604
+ ["Flask", ["experiment", "lab", "test", "science", "prototype", "poc", "sandbox", "playground"]],
2605
+ ["Lightbulb", ["idea", "brainstorm", "innovat", "inspir", "think"]],
2606
+ ["GraduationCap", ["learn", "course", "study", "school", "train", "educat", "class", "tutor"]],
2607
+ ["BookOpen", ["book", "read", "library", "knowledge", "kb"]],
2608
+ // Life
2609
+ ["House", ["home", "house", "family", "personal", "life"]],
2610
+ ["AirplaneTilt", ["travel", "trip", "flight", "vacation", "holiday"]],
2611
+ ["Heartbeat", ["health", "fitness", "workout", "medical", "wellness", "gym"]],
2612
+ ["MusicNotes", ["music", "song", "audio", "sound"]],
2613
+ ["GameController", ["game", "gaming", "play", "fun"]],
2614
+ ["ForkKnife", ["food", "recipe", "cook", "restaurant", "meal"]],
2615
+ ["Briefcase", ["work", "job", "business", "office", "client", "agency", "consult"]],
2616
+ ["Sparkle", ["general", "misc", "random", "scratch", "new"]]
2617
+ ];
2618
+ var FALLBACK_GLYPHS = [
2619
+ "Cube",
2620
+ "Sparkle",
2621
+ "Lightning",
2622
+ "Star",
2623
+ "Hexagon",
2624
+ "Diamond",
2625
+ "Planet",
2626
+ "Leaf",
2627
+ "Compass",
2628
+ "Flag"
2629
+ ];
2630
+ var SUGGESTED_COLORS = PROJECT_GLYPH_COLORS.filter((color) => color !== "grey");
2631
+ function hash(text) {
2632
+ let h = 2166136261;
2633
+ for (let i = 0; i < text.length; i += 1) {
2634
+ h ^= text.charCodeAt(i);
2635
+ h = Math.imul(h, 16777619);
2636
+ }
2637
+ return h >>> 0;
2638
+ }
2639
+ function words(name) {
2640
+ return name.replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
2641
+ }
2642
+ function wordMatches(word, stem) {
2643
+ return stem.length <= 3 ? word === stem : word.startsWith(stem);
2644
+ }
2645
+ function glyphForName(name) {
2646
+ for (const word of words(name)) {
2647
+ for (const [glyph, stems] of STEM_GLYPHS) {
2648
+ if (stems.some((stem) => wordMatches(word, stem))) return glyph;
2649
+ }
2650
+ }
2651
+ return null;
2652
+ }
2653
+ function suggestSpaceIcon(name) {
2654
+ const key = name.trim().toLowerCase();
2655
+ const h = hash(key);
2656
+ const glyph = glyphForName(key) ?? FALLBACK_GLYPHS[h % FALLBACK_GLYPHS.length];
2657
+ const color = SUGGESTED_COLORS[(h >>> 8) % SUGGESTED_COLORS.length];
2658
+ return { glyph: { name: glyph, color } };
2659
+ }
2660
+
2565
2661
  // ../shared/src/prompt-attachments.ts
2566
2662
  var MAX_PROMPT_UPLOAD_FILENAME_BYTES = 255 - 40;
2567
2663
  var MAX_PROMPT_ATTACHMENT_BYTES = 50 * 1024 * 1024;
@@ -3527,6 +3623,10 @@ function spaceDriveFolders(kind, name, personalFolder, privateSpaceId = null) {
3527
3623
  if (!personalFolder) return null;
3528
3624
  return { files: `${personalFolder}/Agents/${name}`, memory: `${personalFolder}/Memory/${name}` };
3529
3625
  }
3626
+ function sessionGroupDriveFolder(groupId) {
3627
+ return FOLDER_SEGMENT.test(groupId) ? `${SESSION_GROUPS_DIR}/${groupId}` : null;
3628
+ }
3629
+ var SESSION_GROUPS_DIR = "/Spaces";
3530
3630
 
3531
3631
  // ../shared/src/session-delivery.ts
3532
3632
  var STALE_RUNTIME_DELIVERY_ERROR = "this session's computer cannot reach the API. Start a new session";
@@ -4433,14 +4533,21 @@ var OLD_CLI_NOTE = [
4433
4533
  "afterwards, an older copy is earlier on PATH: `which -a kortix` lists them;",
4434
4534
  "tell the person which one to remove, in one line."
4435
4535
  ].join("\n");
4536
+ var CLOUD_HOST = "cloud";
4436
4537
  function installBlock(target) {
4437
4538
  if (isProd(target)) {
4438
4539
  return [
4439
4540
  "```bash",
4440
4541
  `curl -fsSL ${target.origin}/install | bash # installs the CLI, or updates an older one`,
4441
4542
  "kortix --version",
4543
+ `kortix hosts use ${CLOUD_HOST} # Kortix Cloud, ${target.apiBase}`,
4544
+ `kortix hosts current # must print ${CLOUD_HOST}`,
4442
4545
  "```",
4443
4546
  "",
4547
+ "The CLI keeps the host an earlier guide or command chose (a test or",
4548
+ `self-hosted deployment). \`kortix hosts use ${CLOUD_HOST}\` points every later command at`,
4549
+ "Kortix Cloud.",
4550
+ "",
4444
4551
  OLD_CLI_NOTE
4445
4552
  ].join("\n");
4446
4553
  }
@@ -4559,15 +4666,10 @@ parse.
4559
4666
  9. **Keep the reply.** Do what the person chose. When a choice cannot work as
4560
4667
  chosen, only the person decides the change: say why in one line, give your
4561
4668
  fix and wait for the answer. Never swap a choice without saying so.
4562
- 10. **Make the clicks when you can.** When you can drive the person's browser
4563
- (a browser tool or MCP server that uses their own browser profile), offer
4564
- it in the step 3 message. With their yes, make their clicks yourself:
4565
- Authorize for \`kortix login\` (a new person signs up there with the Google
4566
- or GitHub sign-in they already have), each row of the setup page (a
4567
- connector's sign-in and consent, Add to Slack, a model plan) and the
4568
- GitHub App install. Never type a password, a one-time code, a card number
4569
- or a secret value: when a page asks for one, that step is the person's.
4570
- Say so in one line, wait, and go on.
4669
+ 10. **The setup page is the person's.** Every sign-in (the model plan, a
4670
+ connector, Slack, the GitHub App) and every pasted token happen there, in
4671
+ the page \`onboard\` opens. Never sign in, connect or click for the person,
4672
+ in the terminal or in a browser.
4571
4673
 
4572
4674
  ## 0. Install
4573
4675
 
@@ -4613,6 +4715,11 @@ message of step 3.
4613
4715
  the shape: one repository (a monorepo is one: several apps, one
4614
4716
  repository), or one product over several repositories (a web app, an API,
4615
4717
  services, each in its own). The shape decides where Kortix lives (step 3).
4718
+ Check the person's rights on each code repository:
4719
+ \`gh api repos/<owner>/<repo> --jq .permissions\`. \`onboard\` creates the
4720
+ GitHub webhooks with their \`gh\`, which needs \`admin\`. Without it, say so on
4721
+ the \`Found:\` line and name who can: an owner of the repository runs
4722
+ \`kortix doctor --loops --fix\` once, or the triggers poll instead.
4616
4723
  3. **The software.** Start from the plan's \`integrations\` (each has a
4617
4724
  category and its evidence), \`unrecognized_services\` and \`mcp_servers\`.
4618
4725
  Add what you find yourself: SDK imports, webhook handlers, secret names in
@@ -4736,9 +4843,7 @@ The questions:
4736
4843
  names to upload (every \`local\` name the app reads; never a \`remote\` or
4737
4844
  \`prod\` one), the sandbox size with its cost ("4 vCPU, 8 GB, 30 GB disk:
4738
4845
  about $${sandboxHourlyUsd(4, 8).toFixed(2)} an hour while a session runs"), the Kortix
4739
- rule in \`AGENTS.md\` (default: add it) and, when
4740
- you can drive their browser, "I make the sign-in clicks in your browser"
4741
- (rule 10).
4846
+ rule in \`AGENTS.md\` (default: add it).
4742
4847
  - **A gap is a question only when a chosen source needs it.** An
4743
4848
  \`unrecognized_services\` prefix or an empty category becomes one question
4744
4849
  with likely answers ("Tickets: a) GitHub Issues (recommended) b) Linear
@@ -4861,27 +4966,23 @@ repository, the step 3 answer decides how they land:
4861
4966
  open a pull request instead.
4862
4967
  - **A pull request:** \`git switch -c kortix/setup\`, commit, push,
4863
4968
  \`gh pr create\`. When the person has merged it, switch to the default
4864
- branch, pull, and go on.
4969
+ branch, pull, and go on. Never point the workspace at \`kortix/setup\` to
4970
+ start before the merge: many repositories delete a merged branch
4971
+ (\`delete_branch_on_merge\`), and the workspace would then read a branch
4972
+ that no longer exists.
4865
4973
 
4866
4974
  ## 5. Connect the models
4867
4975
 
4868
4976
  The setup page (step 6) asks for a model first when the workspace has none:
4869
- the person picks their Claude or ChatGPT plan, or adds a key, in the browser.
4870
- Use these commands only when the person wants it done in the terminal:
4871
-
4872
- - **Claude Pro or Max:** \`kortix providers login claude --start --share workspace --json\`;
4873
- give the person the \`authorize_url\`; they paste the code back;
4874
- \`kortix providers login claude --flow <flow_id> --code <code> --share workspace\`.
4875
- - **ChatGPT Plus or Pro:** \`kortix providers login openai\` in the background;
4876
- give the person the link and the code it prints.
4877
- - **An API key:** \`kortix providers set <provider>\`; the person types the key.
4977
+ the person picks their Claude or ChatGPT plan, or adds a key, there (rule
4978
+ 10). Connect no model from the terminal.
4878
4979
 
4879
4980
  ## 6. Do it
4880
4981
 
4881
4982
  \`\`\`bash
4882
4983
  kortix onboard --yes --json --wait \\
4883
4984
  [--env-file <file> --only <A,B>]... \\
4884
- [--channels <a,b>] [--connect <slug,...>] \\
4985
+ [--channels <a,b>] \\
4885
4986
  --repo <owner/repo> [--name "<workspace name>"]
4886
4987
  \`\`\`
4887
4988
 
@@ -4919,6 +5020,12 @@ row is done." Never print those links in the terminal. \`--wait\` keeps the run
4919
5020
  going until the page shows every row done, then finishes the phases that
4920
5021
  waited.
4921
5022
 
5023
+ Run the command as written. Never add \`--no-open\` and never drop \`--wait\`:
5024
+ the page is where the person makes every click (rule 10). Wait for
5025
+ \`onboard\` to exit before you end your turn: ending the turn can stop a
5026
+ command that runs in the background, and a question to the person never waits
5027
+ on a running \`onboard\`.
5028
+
4922
5029
  A repository webhook that already sends the same event to another Kortix
4923
5030
  workspace is left in place and reported in the \`webhooks\` detail. Tell the
4924
5031
  person: two workspaces would act on the same event. They pick one; delete the
@@ -4933,8 +5040,7 @@ App. The first run asks for the App's install on this repository: a
4933
5040
 
4934
5041
  Exit 0 is done and green. Exit 4: steps are left. A \`user_action\` the page
4935
5042
  does not show (\`/invite\` the bot to a private Slack channel, install the
4936
- GitHub App) goes to the person once, in one message, or is your click with
4937
- their yes (rule 10). \`--wait\` timed out
5043
+ GitHub App) goes to the person once, in one message. \`--wait\` timed out
4938
5044
  (\`next\` says what the page still lists): tell the person in one line, then
4939
5045
  run the same command again. Exit 1: read the failed phase's \`detail\`, fix
4940
5046
  it, run again.
@@ -5315,11 +5421,11 @@ function observationHeader(text) {
5315
5421
  for (let at = text.indexOf("==="); at !== -1; at = text.indexOf("===", at + 1)) {
5316
5422
  const word = whitespaceEnd(text, at + 3);
5317
5423
  if (!startsWithIgnoreCase(text, "Observation", word)) continue;
5318
- const hash = whitespaceEnd(text, word + 11);
5319
- if (text.charCodeAt(hash) !== HASH) continue;
5320
- let digits = hash + 1;
5424
+ const hash2 = whitespaceEnd(text, word + 11);
5425
+ if (text.charCodeAt(hash2) !== HASH) continue;
5426
+ let digits = hash2 + 1;
5321
5427
  while (isDigit(text.charCodeAt(digits))) digits++;
5322
- if (digits === hash + 1) continue;
5428
+ if (digits === hash2 + 1) continue;
5323
5429
  const open = whitespaceEnd(text, digits);
5324
5430
  if (text.charCodeAt(open) !== BRACKET_OPEN) continue;
5325
5431
  if (nextClose < open + 1) nextClose = text.indexOf("]", open + 1);
@@ -5332,7 +5438,7 @@ function observationHeader(text) {
5332
5438
  }
5333
5439
  if (checkedEnd === -1) continue;
5334
5440
  return [
5335
- text.slice(hash + 1, digits),
5441
+ text.slice(hash2 + 1, digits),
5336
5442
  text.slice(open + 1, nextClose),
5337
5443
  text.slice(whitespaceEnd(text, checkedEnd))
5338
5444
  ];
@@ -5346,13 +5452,13 @@ function inlineToolPrompt(line) {
5346
5452
  while (toolEnd > 1 && isWhitespace2(line.charCodeAt(toolEnd - 1))) toolEnd--;
5347
5453
  const word = whitespaceEnd(line, pipe + 1);
5348
5454
  if (!startsWithIgnoreCase(line, "Prompt", word)) return null;
5349
- const hash = whitespaceEnd(line, word + 6);
5350
- if (line.charCodeAt(hash) !== HASH) return null;
5351
- if (hash + 1 >= line.length) return null;
5352
- for (let i = hash + 1; i < line.length; i++) {
5455
+ const hash2 = whitespaceEnd(line, word + 6);
5456
+ if (line.charCodeAt(hash2) !== HASH) return null;
5457
+ if (hash2 + 1 >= line.length) return null;
5458
+ for (let i = hash2 + 1; i < line.length; i++) {
5353
5459
  if (isWhitespace2(line.charCodeAt(i))) return null;
5354
5460
  }
5355
- return [line.slice(0, toolEnd), line.slice(hash + 1)];
5461
+ return [line.slice(0, toolEnd), line.slice(hash2 + 1)];
5356
5462
  }
5357
5463
  function splitBullets(text) {
5358
5464
  const parts = [];
@@ -5712,15 +5818,15 @@ function detailedBlocks(body) {
5712
5818
  let typeEnd = at + 5;
5713
5819
  while (typeEnd < n && /\w/.test(body[typeEnd] ?? "")) typeEnd++;
5714
5820
  if (typeEnd === at + 5 || body.charCodeAt(typeEnd) !== BRACKET_CLOSE) continue;
5715
- const hash = whitespaceEnd(body, typeEnd + 1);
5716
- if (body.charCodeAt(hash) !== HASH2) continue;
5717
- const idRunEnd = solidEnd(hash + 1);
5718
- if (idRunEnd === hash + 1) continue;
5821
+ const hash2 = whitespaceEnd(body, typeEnd + 1);
5822
+ if (body.charCodeAt(hash2) !== HASH2) continue;
5823
+ const idRunEnd = solidEnd(hash2 + 1);
5824
+ if (idRunEnd === hash2 + 1) continue;
5719
5825
  if (checkedEnd !== idRunEnd) checkRun(idRunEnd, runStart);
5720
5826
  let idEnd = idRunEnd;
5721
5827
  let found = whole;
5722
5828
  const shorter = inner;
5723
- if (!found && shorter && shorter.at > hash + 1) {
5829
+ if (!found && shorter && shorter.at > hash2 + 1) {
5724
5830
  idEnd = shorter.at;
5725
5831
  found = shorter.rest;
5726
5832
  }
@@ -5729,7 +5835,7 @@ function detailedBlocks(body) {
5729
5835
  blocks.push([
5730
5836
  source,
5731
5837
  body.slice(at + 5, typeEnd),
5732
- body.slice(hash + 1, idEnd),
5838
+ body.slice(hash2 + 1, idEnd),
5733
5839
  confidence ? body.slice(confidence[0], confidence[1]) : void 0,
5734
5840
  body.slice(content[0], content[1]),
5735
5841
  files ? body.slice(files[0], files[1]) : void 0
@@ -6569,4 +6675,4 @@ function parseWorkspaceSettingsSection(raw) {
6569
6675
  return Object.prototype.hasOwnProperty.call(WORKSPACE_SETTINGS_SECTION_ALIASES, value) ? WORKSPACE_SETTINGS_SECTION_ALIASES[value] : null;
6570
6676
  }
6571
6677
 
6572
- export { AGENT_TITLE_MAX_LENGTH, ARTIFACT_DOC_CSS, AVATAR_INK, CARD_TEXT_RATIO, CHANNELS, CHANNEL_PLATFORM_IDS, CHROME_LAUNCHED, COMMIT_CONFIRM_ATTEMPTS, COMMIT_CONFIRM_DELAY_MS, CREDITS_PER_DOLLAR, CURATED_SECTIONS, HUMAN_ONLY, KATEX_FENCE_LANGUAGES, LANGUAGE_ALIASES, LONG_NAME_THRESHOLD, MAX_PROMPT_ATTACHMENTS_BYTES, MAX_PROMPT_ATTACHMENT_BYTES, MAX_PROMPT_ATTACHMENT_FILES, MAX_PROMPT_UPLOAD_FILENAME_BYTES, MERMAID_DIAGRAM_STARTERS, MY_KORTIX_AGENT_NAME, MY_KORTIX_SANDBOX_SLUG, NAME_TAIL_CHARS, NOT_TURN_PROMPTER, OTHER, PASTED_INLINE_MAX_BYTES, PIXEL_KORTIX_ROWS, PIXEL_MARK_TONES, POLICY_SETS_UNSUPPORTED_PROVIDERS, POPULAR_SECTION, PREVIEW_BUILDING_STATES, PREVIEW_STATE_MESSAGE, PROJECT_GLYPH_COLORS, PROJECT_GLYPH_GROUPS, SPACE_POST_SUMMARY, STALE_RUNTIME_DELIVERY_ERROR, UNKNOWN_RATIO, UPLOAD_LIMITS, WORKSPACE_SETTINGS_GROUPS, agentDisplayName, appAdminsOnly, attachmentExtension, autoLinkUrls, avatarFill, bashRowTitle, buildWebhookSampleRequest, cardImageShape, cardListLayout, chalkColors, channelPromptTail, classifySessionStarter, confirmCommitted, countInSection, dedentCommand, dollarsToCredits, editConfigPrompt, errorCode, escapeCurrencyDollars, expandPastedContent, extractReadableHtml, fileTagBlocks, filenameBreakSegments, fixManifestText, formatDurationSeconds, formatFileSize, formatRelative, formatUsdAsCredits, gridApps, groupIntoSections, hasReferenceDefinitionOutsideFences, humanizeCategory, indexOfIgnoreCase, isAllowedWebPushHost, isAmbiguousCreateFailure, isChannelFileLabel, isChannelPlatform, isMermaidCode, isMyKortixAgentName, isPreviewableImage, isProjectGlyphColor, isProjectGlyphName, isProjectGlyphPaletteColor, languageLabel, looksLikeMarkdown, masonryColumns, neutralizePastedTags, newConfigPrompt, newPastedContentId, normalizeLanguage, normalizeLatexDelimiters, normalizeProjectGlyphColor, openMarkdownLinkAtEnd, parseBackgroundWorkers, parseBalanceUsd, parseChannelMessage, parseDurationSeconds, parseGrepOutput, parseManifestText, parseMemoryEntryOutput, parseMemorySearchOutput, parsePeerMessagePrompt, parseReminderPrompt, parseSessionGetOutput, parseSessionMessagesOutput, parseSessionMetadataOutput, parseSessionSearchHits, parseTriggerEvent, parseTriggerLines, parseWorkspaceSettingsSection, passesPixelMarkGate, peerHandleLabel, pixelMark, policySetNameError, prefersPreviewLink, prepareMarkdownForKatex, prepareMarkdownForMath, promptFileReferenceXml, ptyOutputBlock, ptySpawnedBody, pushTypeOf, referenceHeaders, removeSpans, replaceSpans, resolveRegisteredKey, safeHttpUrl, sandboxMediaPath, sanitizePromptUploadFilename, sectionKeyForCategory, sectionKeysForEntry, sectionTitle, selfClosingTags, serializePromptWithPastes, setupPrompt, setupTarget, shouldTilePaste, skillDocumentBody, slackPlainText, slugifySlug, spaceDriveFolders, spaceSlug, splitFilenameForTile, splitPastedContent, stopRefusalMessage, stripBashMetadata, stripChatMentionMarkup, stripMarkupForToolOutput, tagBlocks, toolRegistryCandidates, trimPastedText, truncateString, utf8Bytes, withoutEdgeQuotes, xmlBlocks };
6678
+ export { AGENT_TITLE_MAX_LENGTH, ARTIFACT_DOC_CSS, AVATAR_INK, CARD_TEXT_RATIO, CHANNELS, CHANNEL_PLATFORM_IDS, CHROME_LAUNCHED, COMMIT_CONFIRM_ATTEMPTS, COMMIT_CONFIRM_DELAY_MS, CREDITS_PER_DOLLAR, CURATED_SECTIONS, HUMAN_ONLY, KATEX_FENCE_LANGUAGES, LANGUAGE_ALIASES, LONG_NAME_THRESHOLD, MAX_PROMPT_ATTACHMENTS_BYTES, MAX_PROMPT_ATTACHMENT_BYTES, MAX_PROMPT_ATTACHMENT_FILES, MAX_PROMPT_UPLOAD_FILENAME_BYTES, MERMAID_DIAGRAM_STARTERS, MY_KORTIX_AGENT_NAME, MY_KORTIX_SANDBOX_SLUG, NAME_TAIL_CHARS, NOT_TURN_PROMPTER, OTHER, PASTED_INLINE_MAX_BYTES, PIXEL_KORTIX_ROWS, PIXEL_MARK_TONES, POLICY_SETS_UNSUPPORTED_PROVIDERS, POPULAR_SECTION, PREVIEW_BUILDING_STATES, PREVIEW_STATE_MESSAGE, PROJECT_GLYPH_COLORS, PROJECT_GLYPH_GROUPS, SPACE_POST_SUMMARY, STALE_RUNTIME_DELIVERY_ERROR, UNKNOWN_RATIO, UPLOAD_LIMITS, WORKSPACE_SETTINGS_GROUPS, agentDisplayName, appAdminsOnly, attachmentExtension, autoLinkUrls, avatarFill, bashRowTitle, buildWebhookSampleRequest, cardImageShape, cardListLayout, chalkColors, channelPromptTail, classifySessionStarter, confirmCommitted, countInSection, dedentCommand, dollarsToCredits, editConfigPrompt, errorCode, escapeCurrencyDollars, expandPastedContent, extractReadableHtml, fileTagBlocks, filenameBreakSegments, fixManifestText, formatDurationSeconds, formatFileSize, formatRelative, formatUsdAsCredits, gridApps, groupIntoSections, hasReferenceDefinitionOutsideFences, humanizeCategory, indexOfIgnoreCase, isAllowedWebPushHost, isAmbiguousCreateFailure, isChannelFileLabel, isChannelPlatform, isMermaidCode, isMyKortixAgentName, isPreviewableImage, isProjectGlyphColor, isProjectGlyphName, isProjectGlyphPaletteColor, languageLabel, looksLikeMarkdown, masonryColumns, neutralizePastedTags, newConfigPrompt, newPastedContentId, normalizeLanguage, normalizeLatexDelimiters, normalizeProjectGlyphColor, openMarkdownLinkAtEnd, parseBackgroundWorkers, parseBalanceUsd, parseChannelMessage, parseDurationSeconds, parseGrepOutput, parseManifestText, parseMemoryEntryOutput, parseMemorySearchOutput, parsePeerMessagePrompt, parseReminderPrompt, parseSessionGetOutput, parseSessionMessagesOutput, parseSessionMetadataOutput, parseSessionSearchHits, parseTriggerEvent, parseTriggerLines, parseWorkspaceSettingsSection, passesPixelMarkGate, peerHandleLabel, pixelMark, policySetNameError, prefersPreviewLink, prepareMarkdownForKatex, prepareMarkdownForMath, promptFileReferenceXml, ptyOutputBlock, ptySpawnedBody, pushTypeOf, referenceHeaders, removeSpans, replaceSpans, resolveRegisteredKey, safeHttpUrl, sandboxMediaPath, sanitizePromptUploadFilename, sectionKeyForCategory, sectionKeysForEntry, sectionTitle, selfClosingTags, serializePromptWithPastes, sessionGroupDriveFolder, setupPrompt, setupTarget, shouldTilePaste, skillDocumentBody, slackPlainText, slugifySlug, spaceDriveFolders, spaceSlug, splitFilenameForTile, splitPastedContent, stopRefusalMessage, stripBashMetadata, stripChatMentionMarkup, stripMarkupForToolOutput, suggestSpaceIcon, tagBlocks, toolRegistryCandidates, trimPastedText, truncateString, utf8Bytes, withoutEdgeQuotes, xmlBlocks };
@@ -10,6 +10,7 @@ export * from "./constants/upload-limits";
10
10
  export * from "./constants/auto-topup";
11
11
  export * from "./runtime-versions";
12
12
  export * from "./project-glyphs";
13
+ export * from "./space-icon";
13
14
  export * from "./my-kortix-agent";
14
15
  export * from "./utils/format-relative";
15
16
  export * from './prompt-attachments';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * A space's icon, and the icon a new space gets from its name.
3
+ *
4
+ * A space wears one icon: an emoji XOR a named glyph from the project glyph
5
+ * catalogue (`project-glyphs.ts`). The value is a union, the same shape the
6
+ * web picker (`ProjectIconValue`) holds, so a host cannot build a value that
7
+ * sets both.
8
+ *
9
+ * `suggestSpaceIcon` runs on every space the API creates without an icon, and
10
+ * in clients for a space that has none (spaces created before icons existed).
11
+ * It is pure and deterministic: the same name always gives the same icon, on
12
+ * the server and in every client.
13
+ */
14
+ import { type ProjectGlyph } from './project-glyphs';
15
+ export type SpaceIcon = {
16
+ emoji: string;
17
+ } | {
18
+ glyph: ProjectGlyph;
19
+ };
20
+ /**
21
+ * The icon a space named `name` gets when nobody picked one: a glyph that
22
+ * fits the name's first meaningful word, else a neutral glyph, in a colour
23
+ * from the name's hash. Same name, same icon, everywhere.
24
+ */
25
+ export declare function suggestSpaceIcon(name: string): {
26
+ glyph: ProjectGlyph;
27
+ };
28
+ /** The table, for the catalogue test. */
29
+ export declare const SPACE_ICON_STEM_GLYPHS: readonly (readonly ["KortixMark" | "KortixPixel" | "KortixDither" | "BrandIcon" | "Calendar" | "Clock" | "Alarm" | "Hourglass" | "Envelope" | "ChatCircle" | "Phone" | "Megaphone" | "PaperPlaneTilt" | "PresentationChart" | "Kanban" | "ListChecks" | "Notepad" | "Strategy" | "Stamp" | "Signature" | "CalendarCheck" | "CalendarBlank" | "CalendarDots" | "ClockCountdown" | "Timer" | "ClipboardText" | "Checks" | "Desk" | "ChatText" | "OfficeChair" | "ArchiveBox" | "TrayArrowDown" | "AddressBookTabs" | "IdentificationBadge" | "ChartLineUp" | "ChartDonut" | "ChartScatter" | "ChartPolar" | "Table" | "Rows" | "Columns" | "FunnelSimple" | "Funnel" | "Gauge" | "Speedometer" | "Pulse" | "Presentation" | "Sigma" | "SquaresFour" | "GridFour" | "Cards" | "Faders" | "ArrowsSplit" | "Path" | "ChartBarHorizontal" | "ChartLineDown" | "ChartPieSlice" | "Activity" | "Binary" | "ListNumbers" | "SortAscending" | "Ranking" | "Chat" | "ChatsCircle" | "ChatTeardrop" | "ChatCenteredDots" | "Chats" | "EnvelopeOpen" | "Tray" | "Mailbox" | "PhoneCall" | "Voicemail" | "VideoConference" | "Broadcast" | "Rss" | "Translate" | "Quotes" | "HandWaving" | "HandsClapping" | "Headset" | "BellRinging" | "UsersThree" | "UserCircle" | "AddressBook" | "SealCheck" | "ChatDots" | "ChatCircleDots" | "ChatCircleText" | "MegaphoneSimple" | "PhoneIncoming" | "PhoneOutgoing" | "EnvelopeSimple" | "UserPlus" | "UserFocus" | "GraduationCap" | "BookOpen" | "Books" | "BookBookmark" | "Bookmarks" | "Exam" | "Student" | "Chalkboard" | "ChalkboardTeacher" | "PencilSimple" | "Pen" | "Highlighter" | "Backpack" | "Certificate" | "Lectern" | "Article" | "NewspaperClipping" | "Scroll" | "BookOpenText" | "BookOpenUser" | "NotePencil" | "PencilRuler" | "NoteBlank" | "ProjectorScreen" | "ProjectorScreenChart" | "Slideshow" | "HighlighterCircle" | "Trash" | "ShoppingCart" | "Package" | "Briefcase" | "Gift" | "Lightbulb" | "Wrench" | "Hammer" | "Key" | "Lock" | "Umbrella" | "Trophy" | "Bag" | "Eyeglasses" | "Sock" | "TShirt" | "Dress" | "Pants" | "Sneaker" | "Boot" | "Hoodie" | "Beanie" | "BaseballCap" | "CowboyHat" | "HighHeel" | "Belt" | "ShirtFolded" | "CoatHanger" | "BriefcaseMetal" | "Shapes" | "Circle" | "Square" | "Triangle" | "Diamond" | "Hexagon" | "Star" | "Heart" | "Lightning" | "Spade" | "Club" | "Cube" | "Polygon" | "Octagon" | "Pentagon" | "Parallelogram" | "Rectangle" | "Spiral" | "Crosshair" | "Cylinder" | "Sphere" | "CircleHalf" | "StarHalf" | "TriangleDashed" | "Union" | "ThreeD" | "Files" | "File" | "FileText" | "Folder" | "FolderOpen" | "Note" | "Book" | "Newspaper" | "Paperclip" | "Archive" | "Notebook" | "FolderPlus" | "FileCode" | "FilePdf" | "FileImage" | "FileVideo" | "FileAudio" | "FileZip" | "FileCsv" | "FileDoc" | "FileXls" | "FilePpt" | "FileMd" | "FileLock" | "FolderLock" | "FolderStar" | "FolderUser" | "FolderNotch" | "Folders" | "FileArrowUp" | "FileArrowDown" | "Plus" | "Minus" | "Copy" | "Check" | "X" | "Pencil" | "Bookmark" | "Eraser" | "Scissors" | "LinkSimple" | "ShareNetwork" | "Clipboard" | "PencilLine" | "FloppyDisk" | "DownloadSimple" | "UploadSimple" | "Export" | "MagnifyingGlass" | "Prohibit" | "ArrowClockwise" | "ArrowCounterClockwise" | "Power" | "LockOpen" | "EyeSlash" | "ThumbsDown" | "HandPointing" | "Share" | "Link" | "PaperPlaneRight" | "CheckCircle" | "XCircle" | "Download" | "Upload" | "ShareFat" | "PaperPlane" | "Backspace" | "Resize" | "MagnifyingGlassPlus" | "ArrowUp" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowsClockwise" | "ArrowSquareOut" | "TrendUp" | "TrendDown" | "ArrowsLeftRight" | "ArrowUUpLeft" | "ArrowsOut" | "ArrowsIn" | "ArrowCircleUp" | "ArrowCircleDown" | "ArrowCircleLeft" | "ArrowCircleRight" | "ArrowFatUp" | "ArrowFatDown" | "ArrowFatLeft" | "ArrowFatRight" | "ArrowBendUpRight" | "ArrowBendDownLeft" | "ArrowsDownUp" | "ArrowsCounterClockwise" | "ArrowElbowDownRight" | "ArrowLineUp" | "ArrowLineDown" | "CaretCircleUp" | "CaretCircleDown" | "CaretDoubleRight" | "Swap" | "ShuffleAngular" | "Code" | "Terminal" | "Database" | "Cloud" | "Cpu" | "Bug" | "GitBranch" | "Rocket" | "Monitor" | "DeviceMobile" | "Keyboard" | "Robot" | "CodeBlock" | "CodeSimple" | "TerminalWindow" | "CloudArrowUp" | "CloudArrowDown" | "CloudCheck" | "GlobeSimple" | "Network" | "BugDroid" | "PlugsConnected" | "AppWindow" | "Browsers" | "Tabs" | "Sidebar" | "ToggleLeft" | "Laptop" | "Desktop" | "DeviceTablet" | "DeviceMobileCamera" | "Watch" | "Printer" | "Mouse" | "HardDrive" | "Usb" | "Bluetooth" | "Memory" | "SimCard" | "Webcam" | "CellSignalFull" | "DesktopTower" | "ComputerTower" | "GraphicsCard" | "VirtualReality" | "Drone" | "Vibrate" | "Airplay" | "MouseScroll" | "Numpad" | "BracketsCurly" | "GitMerge" | "GitPullRequest" | "WifiHigh" | "Plug" | "Plugs" | "Gear" | "Sliders" | "Command" | "Browser" | "Function" | "TreeStructure" | "Circuitry" | "GitCommit" | "GitFork" | "FlowArrow" | "Blueprint" | "Crane" | "HardHat" | "Bulldozer" | "ShippingContainer" | "Toolbox" | "Screwdriver" | "Gavel" | "Axe" | "Shovel" | "Ladder" | "PaintRoller" | "Nut" | "GearSix" | "BatteryFull" | "BatteryCharging" | "Flashlight" | "Flame" | "Needle" | "Pipe" | "PipeWrench" | "GearFine" | "FireExtinguisher" | "SprayBottle" | "MagnetStraight" | "Barricade" | "TrafficCone" | "PaintBrush" | "Palette" | "PenNib" | "Ruler" | "MagicWand" | "Swatches" | "Cursor" | "Eyedropper" | "PaintBucket" | "Crop" | "Camera" | "Aperture" | "Image" | "VideoCamera" | "FilmSlate" | "FilmStrip" | "PaintBrushBroad" | "PaintBrushHousehold" | "PencilCircle" | "Selection" | "BoundingBox" | "TextAa" | "TextT" | "Textbox" | "FrameCorners" | "Layout" | "BezierCurve" | "VectorTwo" | "VectorThree" | "Scribble" | "ScribbleLoop" | "CursorClick" | "CubeTransparent" | "Perspective" | "PenNibStraight" | "Gradient" | "Atom" | "Flask" | "TestTube" | "Microscope" | "Dna" | "Brain" | "Virus" | "Magnet" | "Calculator" | "MathOperations" | "Graph" | "Infinity" | "Pi" | "Radioactive" | "Biohazard" | "HeadCircuit" | "NuclearPlant" | "FalloutShelter" | "Radical" | "Lemniscate" | "Divide" | "Angle" | "WaveSine" | "Shield" | "ShieldCheck" | "ShieldWarning" | "LockKey" | "Fingerprint" | "Password" | "Vault" | "IdentificationCard" | "Detective" | "Scan" | "Siren" | "LockSimple" | "Keyhole" | "ShieldSlash" | "ShieldStar" | "ShieldPlus" | "ShieldChevron" | "WarningOctagon" | "UserCircleCheck" | "UserCheck" | "SecurityCamera" | "SignIn" | "SignOut" | "ProhibitInset" | "House" | "Buildings" | "Storefront" | "Factory" | "Warehouse" | "Hospital" | "Church" | "CastleTurret" | "Lighthouse" | "Bridge" | "Barn" | "Tent" | "Island" | "GasPump" | "MapPin" | "Globe" | "Compass" | "Building" | "BuildingOffice" | "BuildingApartment" | "HouseLine" | "HouseSimple" | "Park" | "Mosque" | "Synagogue" | "City" | "Farm" | "Wall" | "Stairs" | "SolarRoof" | "Couch" | "Armchair" | "Bed" | "Bathtub" | "Toilet" | "Lamp" | "Television" | "Oven" | "CookingPot" | "ForkKnife" | "Knife" | "Broom" | "Door" | "Chair" | "Fan" | "LampPendant" | "Shower" | "DoorOpen" | "Garage" | "WashingMachine" | "Dresser" | "Leaf" | "Tree" | "Sun" | "Moon" | "Drop" | "Fire" | "Mountains" | "Planet" | "Flower" | "Cactus" | "Snowflake" | "Rainbow" | "Meteor" | "ShootingStar" | "StarFour" | "RainbowCloud" | "Log" | "Recycle" | "SolarPanel" | "CloudSun" | "CloudMoon" | "CloudFog" | "SunHorizon" | "MoonStars" | "Tornado" | "ThermometerHot" | "ThermometerCold" | "DropHalf" | "SunDim" | "CloudWarning" | "UmbrellaSimple" | "ThermometerSimple" | "Hurricane" | "LightningSlash" | "DropSlash" | "Plant" | "Clover" | "Acorn" | "Grains" | "TreePalm" | "TreeEvergreen" | "FlowerLotus" | "FlowerTulip" | "Waves" | "Orange" | "Pepper" | "Cherries" | "PottedPlant" | "PicnicTable" | "Jar" | "JarLabel" | "TeaBag" | "Bomb" | "FlagBanner" | "Lifebuoy" | "Parachute" | "PushPin" | "Seal" | "Sticker" | "Windmill" | "Yarn" | "Pinwheel" | "Rug" | "TreasureChest" | "DiscoBall" | "CallBell" | "TipJar" | "Stool" | "ToiletPaper" | "Hash" | "At" | "Percent" | "Asterisk" | "Question" | "Warning" | "Info" | "Bell" | "Crown" | "Flag" | "Medal" | "Sparkle" | "SealQuestion" | "SealWarning" | "Equals" | "NotEquals" | "Copyright" | "Trademark" | "Peace" | "YinYang" | "Cross" | "StarOfDavid" | "HandPeace" | "StarAndCrescent" | "Copyleft" | "TrademarkRegistered" | "ExclamationMark" | "Tilde" | "ApproximateEquals" | "GreaterThan" | "LessThan" | "Carrot" | "Pizza" | "Hamburger" | "IceCream" | "Coffee" | "BeerStein" | "Cookie" | "Cake" | "Egg" | "Bread" | "Wine" | "Martini" | "CoffeeBean" | "Cheese" | "EggCrack" | "OrangeSlice" | "BowlFood" | "BowlSteam" | "Brandy" | "Champagne" | "BeerBottle" | "Onigiri" | "Popsicle" | "PintGlass" | "ChefHat" | "Cheers" | "Dog" | "Cat" | "Bird" | "Butterfly" | "Rabbit" | "Horse" | "Cow" | "PawPrint" | "Fish" | "Shrimp" | "Feather" | "Bone" | "FishSimple" | "BugBeetle" | "Suitcase" | "SuitcaseRolling" | "AirplaneTilt" | "AirplaneTakeoff" | "Sailboat" | "Anchor" | "Subway" | "MapTrifold" | "Signpost" | "Campfire" | "Binoculars" | "GlobeHemisphereWest" | "Footprints" | "MapPinLine" | "TrolleySuitcase" | "Tipi" | "CableCar" | "RoadHorizon" | "SwimmingPool" | "Elevator" | "EscalatorUp" | "Seat" | "Seatbelt" | "Car" | "Bus" | "Truck" | "Train" | "Airplane" | "Bicycle" | "Motorcycle" | "Boat" | "Scooter" | "Taxi" | "Van" | "Jeep" | "CarProfile" | "CarSimple" | "TrainSimple" | "TrainRegional" | "AirplaneInFlight" | "AirplaneLanding" | "RocketLaunch" | "Tractor" | "Ambulance" | "FireTruck" | "PoliceCar" | "Tram" | "Moped" | "MopedFront" | "TruckTrailer" | "SteeringWheel" | "Tire" | "Engine" | "ChargingStation" | "GasCan" | "TrafficSignal" | "TrafficSign" | "User" | "Users" | "Smiley" | "SmileyMeh" | "SmileySad" | "Ghost" | "Alien" | "Baby" | "PersonSimpleRun" | "Hand" | "ThumbsUp" | "Eye" | "UserGear" | "UserList" | "UserSquare" | "UserMinus" | "UserSound" | "UsersFour" | "PersonArmsSpread" | "Person" | "PersonSimple" | "PersonSimpleThrow" | "PersonSimpleHike" | "GenderFemale" | "GenderMale" | "SmileyWink" | "SmileyNervous" | "SmileySticker" | "SmileyXEyes" | "SmileyAngry" | "SmileyBlank" | "SmileyMelting" | "HandHeart" | "HandFist" | "HandGrabbing" | "HandPalm" | "GenderIntersex" | "GenderNeuter" | "GenderNonbinary" | "GenderTransgender" | "ScanSmiley" | "Play" | "Pause" | "Stop" | "Record" | "SkipForward" | "Repeat" | "Shuffle" | "SpeakerSlash" | "MusicNoteSimple" | "VinylRecord" | "MonitorPlay" | "CameraRotate" | "Images" | "ImageSquare" | "Video" | "FilmReel" | "MicrophoneStage" | "PlayCircle" | "PauseCircle" | "StopCircle" | "SkipBack" | "FastForward" | "Rewind" | "SpeakerLow" | "SpeakerNone" | "Subtitles" | "ClosedCaptioning" | "Screencast" | "Panorama" | "Gif" | "FourK" | "PictureInPicture" | "Eject" | "RepeatOnce" | "FastForwardCircle" | "RewindCircle" | "MusicNote" | "MusicNotes" | "Guitar" | "Microphone" | "SpeakerHigh" | "Radio" | "Playlist" | "Metronome" | "Waveform" | "Disc" | "Headphones" | "Equalizer" | "MusicNotesSimple" | "MusicNotesPlus" | "PianoKeys" | "SpeakerSimpleHigh" | "Queue" | "CassetteTape" | "WaveSawtooth" | "WaveSquare" | "WaveTriangle" | "Basketball" | "Football" | "SoccerBall" | "Baseball" | "TennisBall" | "Barbell" | "Target" | "Golf" | "Volleyball" | "PingPong" | "Racquet" | "PersonSimpleSwim" | "PersonSimpleSki" | "PersonSimpleSnowboard" | "MedalMilitary" | "FlagCheckered" | "SneakerMove" | "Hockey" | "BoxingGlove" | "BowlingBall" | "FootballHelmet" | "BaseballHelmet" | "Cricket" | "CourtBasketball" | "Boules" | "GameController" | "Joystick" | "PuzzlePiece" | "DiceFive" | "Sword" | "Skull" | "MaskHappy" | "Ticket" | "Popcorn" | "Balloon" | "Confetti" | "FlyingSaucer" | "Lego" | "CardsThree" | "DiceOne" | "DiceSix" | "DiceThree" | "PokerChip" | "LegoSmiley" | "BeachBall" | "SpinnerBall" | "MaskSad" | "DiceTwo" | "DiceFour" | "DiamondsFour" | "ShoppingBag" | "ShoppingBagOpen" | "Basket" | "Tote" | "Barcode" | "QrCode" | "Money" | "CurrencyEur" | "CurrencyGbp" | "CurrencyBtc" | "HandCoins" | "Invoice" | "CashRegister" | "Coin" | "ShoppingCartSimple" | "TagSimple" | "Handbag" | "HandbagSimple" | "SealPercent" | "Trolley" | "TagChevron" | "ContactlessPayment" | "BoxArrowDown" | "CurrencyDollar" | "Wallet" | "CreditCard" | "PiggyBank" | "Coins" | "Receipt" | "Bank" | "ChartLine" | "Tag" | "ChartBar" | "ChartPie" | "Handshake" | "CurrencyCircleDollar" | "CurrencyInr" | "CurrencyJpy" | "CurrencyCny" | "CurrencyEth" | "CurrencyRub" | "CoinVertical" | "ReceiptX" | "Scales" | "MoneyWavy" | "Cardholder" | "FirstAidKit" | "Tooth" | "Ear" | "Wheelchair" | "PersonSimpleWalk" | "PersonSimpleBike" | "PersonSimpleTaiChi" | "Avocado" | "HeartHalf" | "Asclepius" | "Caduceus" | "Prescription" | "FaceMask" | "HeartBreak" | "WheelchairMotion" | "Goggles" | "CloudRain" | "CloudSnow" | "CloudLightning" | "Wind" | "Thermometer" | "Sunglasses" | "Heartbeat" | "Pill" | "FirstAid" | "Syringe" | "Bandaids" | "Stethoscope" | "HeartStraight" | "HandsPraying" | "HairDryer" | "Towel" | "BabyCarriage" | "HeartStraightBreak" | "NumberCircleZero" | "NumberCircleOne" | "NumberCircleTwo" | "NumberCircleThree" | "NumberCircleFour" | "NumberCircleFive" | "NumberCircleSix" | "NumberCircleSeven" | "NumberCircleEight" | "NumberCircleNine" | "NumberSquareZero" | "NumberSquareOne" | "NumberSquareTwo" | "NumberSquareThree" | "NumberSquareFour" | "NumberSquareFive" | "NumberSquareSix" | "NumberSquareSeven" | "NumberSquareEight" | "NumberSquareNine", readonly string[]])[];
30
+ export declare const SPACE_ICON_FALLBACK_GLYPHS: readonly ("KortixMark" | "KortixPixel" | "KortixDither" | "BrandIcon" | "Calendar" | "Clock" | "Alarm" | "Hourglass" | "Envelope" | "ChatCircle" | "Phone" | "Megaphone" | "PaperPlaneTilt" | "PresentationChart" | "Kanban" | "ListChecks" | "Notepad" | "Strategy" | "Stamp" | "Signature" | "CalendarCheck" | "CalendarBlank" | "CalendarDots" | "ClockCountdown" | "Timer" | "ClipboardText" | "Checks" | "Desk" | "ChatText" | "OfficeChair" | "ArchiveBox" | "TrayArrowDown" | "AddressBookTabs" | "IdentificationBadge" | "ChartLineUp" | "ChartDonut" | "ChartScatter" | "ChartPolar" | "Table" | "Rows" | "Columns" | "FunnelSimple" | "Funnel" | "Gauge" | "Speedometer" | "Pulse" | "Presentation" | "Sigma" | "SquaresFour" | "GridFour" | "Cards" | "Faders" | "ArrowsSplit" | "Path" | "ChartBarHorizontal" | "ChartLineDown" | "ChartPieSlice" | "Activity" | "Binary" | "ListNumbers" | "SortAscending" | "Ranking" | "Chat" | "ChatsCircle" | "ChatTeardrop" | "ChatCenteredDots" | "Chats" | "EnvelopeOpen" | "Tray" | "Mailbox" | "PhoneCall" | "Voicemail" | "VideoConference" | "Broadcast" | "Rss" | "Translate" | "Quotes" | "HandWaving" | "HandsClapping" | "Headset" | "BellRinging" | "UsersThree" | "UserCircle" | "AddressBook" | "SealCheck" | "ChatDots" | "ChatCircleDots" | "ChatCircleText" | "MegaphoneSimple" | "PhoneIncoming" | "PhoneOutgoing" | "EnvelopeSimple" | "UserPlus" | "UserFocus" | "GraduationCap" | "BookOpen" | "Books" | "BookBookmark" | "Bookmarks" | "Exam" | "Student" | "Chalkboard" | "ChalkboardTeacher" | "PencilSimple" | "Pen" | "Highlighter" | "Backpack" | "Certificate" | "Lectern" | "Article" | "NewspaperClipping" | "Scroll" | "BookOpenText" | "BookOpenUser" | "NotePencil" | "PencilRuler" | "NoteBlank" | "ProjectorScreen" | "ProjectorScreenChart" | "Slideshow" | "HighlighterCircle" | "Trash" | "ShoppingCart" | "Package" | "Briefcase" | "Gift" | "Lightbulb" | "Wrench" | "Hammer" | "Key" | "Lock" | "Umbrella" | "Trophy" | "Bag" | "Eyeglasses" | "Sock" | "TShirt" | "Dress" | "Pants" | "Sneaker" | "Boot" | "Hoodie" | "Beanie" | "BaseballCap" | "CowboyHat" | "HighHeel" | "Belt" | "ShirtFolded" | "CoatHanger" | "BriefcaseMetal" | "Shapes" | "Circle" | "Square" | "Triangle" | "Diamond" | "Hexagon" | "Star" | "Heart" | "Lightning" | "Spade" | "Club" | "Cube" | "Polygon" | "Octagon" | "Pentagon" | "Parallelogram" | "Rectangle" | "Spiral" | "Crosshair" | "Cylinder" | "Sphere" | "CircleHalf" | "StarHalf" | "TriangleDashed" | "Union" | "ThreeD" | "Files" | "File" | "FileText" | "Folder" | "FolderOpen" | "Note" | "Book" | "Newspaper" | "Paperclip" | "Archive" | "Notebook" | "FolderPlus" | "FileCode" | "FilePdf" | "FileImage" | "FileVideo" | "FileAudio" | "FileZip" | "FileCsv" | "FileDoc" | "FileXls" | "FilePpt" | "FileMd" | "FileLock" | "FolderLock" | "FolderStar" | "FolderUser" | "FolderNotch" | "Folders" | "FileArrowUp" | "FileArrowDown" | "Plus" | "Minus" | "Copy" | "Check" | "X" | "Pencil" | "Bookmark" | "Eraser" | "Scissors" | "LinkSimple" | "ShareNetwork" | "Clipboard" | "PencilLine" | "FloppyDisk" | "DownloadSimple" | "UploadSimple" | "Export" | "MagnifyingGlass" | "Prohibit" | "ArrowClockwise" | "ArrowCounterClockwise" | "Power" | "LockOpen" | "EyeSlash" | "ThumbsDown" | "HandPointing" | "Share" | "Link" | "PaperPlaneRight" | "CheckCircle" | "XCircle" | "Download" | "Upload" | "ShareFat" | "PaperPlane" | "Backspace" | "Resize" | "MagnifyingGlassPlus" | "ArrowUp" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowsClockwise" | "ArrowSquareOut" | "TrendUp" | "TrendDown" | "ArrowsLeftRight" | "ArrowUUpLeft" | "ArrowsOut" | "ArrowsIn" | "ArrowCircleUp" | "ArrowCircleDown" | "ArrowCircleLeft" | "ArrowCircleRight" | "ArrowFatUp" | "ArrowFatDown" | "ArrowFatLeft" | "ArrowFatRight" | "ArrowBendUpRight" | "ArrowBendDownLeft" | "ArrowsDownUp" | "ArrowsCounterClockwise" | "ArrowElbowDownRight" | "ArrowLineUp" | "ArrowLineDown" | "CaretCircleUp" | "CaretCircleDown" | "CaretDoubleRight" | "Swap" | "ShuffleAngular" | "Code" | "Terminal" | "Database" | "Cloud" | "Cpu" | "Bug" | "GitBranch" | "Rocket" | "Monitor" | "DeviceMobile" | "Keyboard" | "Robot" | "CodeBlock" | "CodeSimple" | "TerminalWindow" | "CloudArrowUp" | "CloudArrowDown" | "CloudCheck" | "GlobeSimple" | "Network" | "BugDroid" | "PlugsConnected" | "AppWindow" | "Browsers" | "Tabs" | "Sidebar" | "ToggleLeft" | "Laptop" | "Desktop" | "DeviceTablet" | "DeviceMobileCamera" | "Watch" | "Printer" | "Mouse" | "HardDrive" | "Usb" | "Bluetooth" | "Memory" | "SimCard" | "Webcam" | "CellSignalFull" | "DesktopTower" | "ComputerTower" | "GraphicsCard" | "VirtualReality" | "Drone" | "Vibrate" | "Airplay" | "MouseScroll" | "Numpad" | "BracketsCurly" | "GitMerge" | "GitPullRequest" | "WifiHigh" | "Plug" | "Plugs" | "Gear" | "Sliders" | "Command" | "Browser" | "Function" | "TreeStructure" | "Circuitry" | "GitCommit" | "GitFork" | "FlowArrow" | "Blueprint" | "Crane" | "HardHat" | "Bulldozer" | "ShippingContainer" | "Toolbox" | "Screwdriver" | "Gavel" | "Axe" | "Shovel" | "Ladder" | "PaintRoller" | "Nut" | "GearSix" | "BatteryFull" | "BatteryCharging" | "Flashlight" | "Flame" | "Needle" | "Pipe" | "PipeWrench" | "GearFine" | "FireExtinguisher" | "SprayBottle" | "MagnetStraight" | "Barricade" | "TrafficCone" | "PaintBrush" | "Palette" | "PenNib" | "Ruler" | "MagicWand" | "Swatches" | "Cursor" | "Eyedropper" | "PaintBucket" | "Crop" | "Camera" | "Aperture" | "Image" | "VideoCamera" | "FilmSlate" | "FilmStrip" | "PaintBrushBroad" | "PaintBrushHousehold" | "PencilCircle" | "Selection" | "BoundingBox" | "TextAa" | "TextT" | "Textbox" | "FrameCorners" | "Layout" | "BezierCurve" | "VectorTwo" | "VectorThree" | "Scribble" | "ScribbleLoop" | "CursorClick" | "CubeTransparent" | "Perspective" | "PenNibStraight" | "Gradient" | "Atom" | "Flask" | "TestTube" | "Microscope" | "Dna" | "Brain" | "Virus" | "Magnet" | "Calculator" | "MathOperations" | "Graph" | "Infinity" | "Pi" | "Radioactive" | "Biohazard" | "HeadCircuit" | "NuclearPlant" | "FalloutShelter" | "Radical" | "Lemniscate" | "Divide" | "Angle" | "WaveSine" | "Shield" | "ShieldCheck" | "ShieldWarning" | "LockKey" | "Fingerprint" | "Password" | "Vault" | "IdentificationCard" | "Detective" | "Scan" | "Siren" | "LockSimple" | "Keyhole" | "ShieldSlash" | "ShieldStar" | "ShieldPlus" | "ShieldChevron" | "WarningOctagon" | "UserCircleCheck" | "UserCheck" | "SecurityCamera" | "SignIn" | "SignOut" | "ProhibitInset" | "House" | "Buildings" | "Storefront" | "Factory" | "Warehouse" | "Hospital" | "Church" | "CastleTurret" | "Lighthouse" | "Bridge" | "Barn" | "Tent" | "Island" | "GasPump" | "MapPin" | "Globe" | "Compass" | "Building" | "BuildingOffice" | "BuildingApartment" | "HouseLine" | "HouseSimple" | "Park" | "Mosque" | "Synagogue" | "City" | "Farm" | "Wall" | "Stairs" | "SolarRoof" | "Couch" | "Armchair" | "Bed" | "Bathtub" | "Toilet" | "Lamp" | "Television" | "Oven" | "CookingPot" | "ForkKnife" | "Knife" | "Broom" | "Door" | "Chair" | "Fan" | "LampPendant" | "Shower" | "DoorOpen" | "Garage" | "WashingMachine" | "Dresser" | "Leaf" | "Tree" | "Sun" | "Moon" | "Drop" | "Fire" | "Mountains" | "Planet" | "Flower" | "Cactus" | "Snowflake" | "Rainbow" | "Meteor" | "ShootingStar" | "StarFour" | "RainbowCloud" | "Log" | "Recycle" | "SolarPanel" | "CloudSun" | "CloudMoon" | "CloudFog" | "SunHorizon" | "MoonStars" | "Tornado" | "ThermometerHot" | "ThermometerCold" | "DropHalf" | "SunDim" | "CloudWarning" | "UmbrellaSimple" | "ThermometerSimple" | "Hurricane" | "LightningSlash" | "DropSlash" | "Plant" | "Clover" | "Acorn" | "Grains" | "TreePalm" | "TreeEvergreen" | "FlowerLotus" | "FlowerTulip" | "Waves" | "Orange" | "Pepper" | "Cherries" | "PottedPlant" | "PicnicTable" | "Jar" | "JarLabel" | "TeaBag" | "Bomb" | "FlagBanner" | "Lifebuoy" | "Parachute" | "PushPin" | "Seal" | "Sticker" | "Windmill" | "Yarn" | "Pinwheel" | "Rug" | "TreasureChest" | "DiscoBall" | "CallBell" | "TipJar" | "Stool" | "ToiletPaper" | "Hash" | "At" | "Percent" | "Asterisk" | "Question" | "Warning" | "Info" | "Bell" | "Crown" | "Flag" | "Medal" | "Sparkle" | "SealQuestion" | "SealWarning" | "Equals" | "NotEquals" | "Copyright" | "Trademark" | "Peace" | "YinYang" | "Cross" | "StarOfDavid" | "HandPeace" | "StarAndCrescent" | "Copyleft" | "TrademarkRegistered" | "ExclamationMark" | "Tilde" | "ApproximateEquals" | "GreaterThan" | "LessThan" | "Carrot" | "Pizza" | "Hamburger" | "IceCream" | "Coffee" | "BeerStein" | "Cookie" | "Cake" | "Egg" | "Bread" | "Wine" | "Martini" | "CoffeeBean" | "Cheese" | "EggCrack" | "OrangeSlice" | "BowlFood" | "BowlSteam" | "Brandy" | "Champagne" | "BeerBottle" | "Onigiri" | "Popsicle" | "PintGlass" | "ChefHat" | "Cheers" | "Dog" | "Cat" | "Bird" | "Butterfly" | "Rabbit" | "Horse" | "Cow" | "PawPrint" | "Fish" | "Shrimp" | "Feather" | "Bone" | "FishSimple" | "BugBeetle" | "Suitcase" | "SuitcaseRolling" | "AirplaneTilt" | "AirplaneTakeoff" | "Sailboat" | "Anchor" | "Subway" | "MapTrifold" | "Signpost" | "Campfire" | "Binoculars" | "GlobeHemisphereWest" | "Footprints" | "MapPinLine" | "TrolleySuitcase" | "Tipi" | "CableCar" | "RoadHorizon" | "SwimmingPool" | "Elevator" | "EscalatorUp" | "Seat" | "Seatbelt" | "Car" | "Bus" | "Truck" | "Train" | "Airplane" | "Bicycle" | "Motorcycle" | "Boat" | "Scooter" | "Taxi" | "Van" | "Jeep" | "CarProfile" | "CarSimple" | "TrainSimple" | "TrainRegional" | "AirplaneInFlight" | "AirplaneLanding" | "RocketLaunch" | "Tractor" | "Ambulance" | "FireTruck" | "PoliceCar" | "Tram" | "Moped" | "MopedFront" | "TruckTrailer" | "SteeringWheel" | "Tire" | "Engine" | "ChargingStation" | "GasCan" | "TrafficSignal" | "TrafficSign" | "User" | "Users" | "Smiley" | "SmileyMeh" | "SmileySad" | "Ghost" | "Alien" | "Baby" | "PersonSimpleRun" | "Hand" | "ThumbsUp" | "Eye" | "UserGear" | "UserList" | "UserSquare" | "UserMinus" | "UserSound" | "UsersFour" | "PersonArmsSpread" | "Person" | "PersonSimple" | "PersonSimpleThrow" | "PersonSimpleHike" | "GenderFemale" | "GenderMale" | "SmileyWink" | "SmileyNervous" | "SmileySticker" | "SmileyXEyes" | "SmileyAngry" | "SmileyBlank" | "SmileyMelting" | "HandHeart" | "HandFist" | "HandGrabbing" | "HandPalm" | "GenderIntersex" | "GenderNeuter" | "GenderNonbinary" | "GenderTransgender" | "ScanSmiley" | "Play" | "Pause" | "Stop" | "Record" | "SkipForward" | "Repeat" | "Shuffle" | "SpeakerSlash" | "MusicNoteSimple" | "VinylRecord" | "MonitorPlay" | "CameraRotate" | "Images" | "ImageSquare" | "Video" | "FilmReel" | "MicrophoneStage" | "PlayCircle" | "PauseCircle" | "StopCircle" | "SkipBack" | "FastForward" | "Rewind" | "SpeakerLow" | "SpeakerNone" | "Subtitles" | "ClosedCaptioning" | "Screencast" | "Panorama" | "Gif" | "FourK" | "PictureInPicture" | "Eject" | "RepeatOnce" | "FastForwardCircle" | "RewindCircle" | "MusicNote" | "MusicNotes" | "Guitar" | "Microphone" | "SpeakerHigh" | "Radio" | "Playlist" | "Metronome" | "Waveform" | "Disc" | "Headphones" | "Equalizer" | "MusicNotesSimple" | "MusicNotesPlus" | "PianoKeys" | "SpeakerSimpleHigh" | "Queue" | "CassetteTape" | "WaveSawtooth" | "WaveSquare" | "WaveTriangle" | "Basketball" | "Football" | "SoccerBall" | "Baseball" | "TennisBall" | "Barbell" | "Target" | "Golf" | "Volleyball" | "PingPong" | "Racquet" | "PersonSimpleSwim" | "PersonSimpleSki" | "PersonSimpleSnowboard" | "MedalMilitary" | "FlagCheckered" | "SneakerMove" | "Hockey" | "BoxingGlove" | "BowlingBall" | "FootballHelmet" | "BaseballHelmet" | "Cricket" | "CourtBasketball" | "Boules" | "GameController" | "Joystick" | "PuzzlePiece" | "DiceFive" | "Sword" | "Skull" | "MaskHappy" | "Ticket" | "Popcorn" | "Balloon" | "Confetti" | "FlyingSaucer" | "Lego" | "CardsThree" | "DiceOne" | "DiceSix" | "DiceThree" | "PokerChip" | "LegoSmiley" | "BeachBall" | "SpinnerBall" | "MaskSad" | "DiceTwo" | "DiceFour" | "DiamondsFour" | "ShoppingBag" | "ShoppingBagOpen" | "Basket" | "Tote" | "Barcode" | "QrCode" | "Money" | "CurrencyEur" | "CurrencyGbp" | "CurrencyBtc" | "HandCoins" | "Invoice" | "CashRegister" | "Coin" | "ShoppingCartSimple" | "TagSimple" | "Handbag" | "HandbagSimple" | "SealPercent" | "Trolley" | "TagChevron" | "ContactlessPayment" | "BoxArrowDown" | "CurrencyDollar" | "Wallet" | "CreditCard" | "PiggyBank" | "Coins" | "Receipt" | "Bank" | "ChartLine" | "Tag" | "ChartBar" | "ChartPie" | "Handshake" | "CurrencyCircleDollar" | "CurrencyInr" | "CurrencyJpy" | "CurrencyCny" | "CurrencyEth" | "CurrencyRub" | "CoinVertical" | "ReceiptX" | "Scales" | "MoneyWavy" | "Cardholder" | "FirstAidKit" | "Tooth" | "Ear" | "Wheelchair" | "PersonSimpleWalk" | "PersonSimpleBike" | "PersonSimpleTaiChi" | "Avocado" | "HeartHalf" | "Asclepius" | "Caduceus" | "Prescription" | "FaceMask" | "HeartBreak" | "WheelchairMotion" | "Goggles" | "CloudRain" | "CloudSnow" | "CloudLightning" | "Wind" | "Thermometer" | "Sunglasses" | "Heartbeat" | "Pill" | "FirstAid" | "Syringe" | "Bandaids" | "Stethoscope" | "HeartStraight" | "HandsPraying" | "HairDryer" | "Towel" | "BabyCarriage" | "HeartStraightBreak" | "NumberCircleZero" | "NumberCircleOne" | "NumberCircleTwo" | "NumberCircleThree" | "NumberCircleFour" | "NumberCircleFive" | "NumberCircleSix" | "NumberCircleSeven" | "NumberCircleEight" | "NumberCircleNine" | "NumberSquareZero" | "NumberSquareOne" | "NumberSquareTwo" | "NumberSquareThree" | "NumberSquareFour" | "NumberSquareFive" | "NumberSquareSix" | "NumberSquareSeven" | "NumberSquareEight" | "NumberSquareNine")[];
@@ -34,3 +34,15 @@ privateSpaceId?: string | null): {
34
34
  files: string;
35
35
  memory: string;
36
36
  } | null;
37
+ /**
38
+ * A space's folder in the project's Files (flag `session_groups`; a space is a
39
+ * session group): `/Spaces/<group_id>`. Outside `/Company`, like a private
40
+ * channel's: only the people who see the space reach it (admins only under
41
+ * account session oversight). Named by the group's id, never its name: a
42
+ * rename moves nothing, and a later space that takes the name never inherits
43
+ * the folder. Every session of the space mounts it read-write. Null for an id
44
+ * that is not one plain path segment.
45
+ */
46
+ export declare function sessionGroupDriveFolder(groupId: string): string | null;
47
+ /** Where every space's folder lives (`sessionGroupDriveFolder`). */
48
+ export declare const SESSION_GROUPS_DIR = "/Spaces";
@@ -913,7 +913,7 @@ function FixedPrincipals({ principals }) {
913
913
  (principal.type === 'group' ? (_jsx(EntityAvatar, { label: principal.label, hint: principal.label, size: "sm" })) : principal.type === 'agent' ? (_jsx(AgentMark, { slug: principal.label })) : (_jsx(UserAvatar, { email: principal.label, hint: principal.label, size: "sm" }))), _jsx("span", { className: "text-foreground min-w-0 flex-1 truncate text-sm font-medium", children: principal.label }), principal.type === 'group' ? (_jsx(Badge, { variant: "outline", size: "sm", children: tI18nComplete.raw('text34ca0e766088') })) : principal.type === 'agent' ? (_jsx(Badge, { variant: "outline", size: "sm", children: tAgents('agentBadge') })) : null] }, principal.id))) }));
914
914
  }
915
915
  function ScopeLine({ icon: Icon, label, items, }) {
916
- return (_jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [_jsx(Icon, { className: "text-muted-foreground/70 size-3.5 shrink-0" }), _jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }), items.map((name) => (_jsx(Badge, { variant: "outline", size: "xs", className: "font-mono", children: name }, name)))] }));
916
+ return (_jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [_jsx(Icon, { className: "text-muted-foreground size-3.5 shrink-0" }), _jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }), items.map((name) => (_jsx(Badge, { variant: "outline", size: "xs", className: "font-mono", children: name }, name)))] }));
917
917
  }
918
918
  /**
919
919
  * The concrete secrets + connectors an assignee INHERITS from the picked
@@ -926,7 +926,7 @@ export function BlastRadiusPreview({ declares, }) {
926
926
  const secrets = declares.secrets === 'all' ? [] : declares.secrets;
927
927
  const connectors = declares.connectors === 'all' ? [] : declares.connectors;
928
928
  const nothingExtra = secrets.length === 0 && connectors.length === 0;
929
- return (_jsxs("div", { className: "border-border/60 bg-muted/30 space-y-2 rounded-md border p-3", children: [_jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(ArrowElbowDownRightIcon, { className: "text-muted-foreground/70 size-3.5 shrink-0" }), _jsx("span", { className: "text-foreground text-xs font-medium", children: tI18nComplete.raw('text4fb37eec9d1d') })] }), nothingExtra ? (_jsx("p", { className: "text-muted-foreground text-xs leading-relaxed", children: tI18nComplete.raw('text7cbab07cd223') })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: "space-y-1.5", children: [secrets.length > 0 ? (_jsx(ScopeLine, { icon: KeyIcon, label: tI18nComplete.raw('textd8707d411d99'), items: secrets })) : null, connectors.length > 0 ? (_jsx(ScopeLine, { icon: PlugIcon, label: tI18nComplete.raw('textc3d2e79ebdd0'), items: connectors })) : null] }), _jsx("p", { className: "text-muted-foreground text-xs leading-relaxed", children: tI18nComplete.raw('text4b25aab8909e') })] }))] }));
929
+ return (_jsxs("div", { className: "border-border/60 bg-muted/30 space-y-2 rounded-md border p-3", children: [_jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(ArrowElbowDownRightIcon, { className: "text-muted-foreground size-3.5 shrink-0" }), _jsx("span", { className: "text-foreground text-xs font-medium", children: tI18nComplete.raw('text4fb37eec9d1d') })] }), nothingExtra ? (_jsx("p", { className: "text-muted-foreground text-xs leading-relaxed", children: tI18nComplete.raw('text7cbab07cd223') })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: "space-y-1.5", children: [secrets.length > 0 ? (_jsx(ScopeLine, { icon: KeyIcon, label: tI18nComplete.raw('textd8707d411d99'), items: secrets })) : null, connectors.length > 0 ? (_jsx(ScopeLine, { icon: PlugIcon, label: tI18nComplete.raw('textc3d2e79ebdd0'), items: connectors })) : null] }), _jsx("p", { className: "text-muted-foreground text-xs leading-relaxed", children: tI18nComplete.raw('text4b25aab8909e') })] }))] }));
930
930
  }
931
931
  function ProjectAccessRows({ accountId, rows, onChange, expanded, onExpand, disabled, rbacEnabled, canManageRoles, }) {
932
932
  const tI18nComplete = useI18nTranslations('hardcodedUi.i18nComplete');
@@ -0,0 +1,77 @@
1
+ import { type ReactNode } from 'react';
2
+ export declare const SHARE_GROUP = "divide-border border-border divide-y rounded-md border";
3
+ export declare const SHARE_ROW = "flex min-h-14 items-center gap-3 px-3 py-2";
4
+ /** Someone or something that can be given access. */
5
+ export interface ShareCandidate {
6
+ id: string;
7
+ kind: 'member' | 'group';
8
+ /** A person's name or email; a group's name. */
9
+ label: string;
10
+ /** Under the label: a named person's email, a group's member count. */
11
+ sublabel?: string | null;
12
+ /** A person's email: matched when one is typed or pasted. */
13
+ email?: string | null;
14
+ avatarUrl?: string | null;
15
+ }
16
+ /** A labelled section: the label above one group of rows. */
17
+ export declare function ShareSection({ label, children }: {
18
+ label: ReactNode;
19
+ children: ReactNode;
20
+ }): import("react").JSX.Element;
21
+ /** One row with access: picture or group tile, name over meta, and the trailing slot. */
22
+ export declare function ShareRow({ candidate, trailing }: {
23
+ candidate: ShareCandidate;
24
+ trailing: ReactNode;
25
+ }): import("react").JSX.Element;
26
+ /** The trailing role word of a row that cannot change ("Owner"). */
27
+ export declare function ShareRole({ children }: {
28
+ children: ReactNode;
29
+ }): import("react").JSX.Element;
30
+ /** The trailing role menu of a row that can be removed: "Member ▾" → Remove. */
31
+ export declare function ShareRoleMenu({ label, removeLabel, removeIcon, onRemove, disabled, }: {
32
+ label: ReactNode;
33
+ removeLabel: ReactNode;
34
+ removeIcon: ReactNode;
35
+ onRemove: () => void;
36
+ disabled?: boolean;
37
+ }): import("react").JSX.Element;
38
+ /** General access: one row, the current choice on the left, "Change ▾" on the right. */
39
+ export declare function ShareGeneralAccess<T extends string>({ value, options, onChange, changeLabel, disabled, }: {
40
+ value: T;
41
+ options: ReadonlyArray<{
42
+ value: T;
43
+ label: string;
44
+ hint: string;
45
+ icon: ReactNode;
46
+ disabled?: boolean;
47
+ }>;
48
+ onChange: (next: T) => void;
49
+ changeLabel: ReactNode;
50
+ disabled?: boolean;
51
+ }): import("react").JSX.Element;
52
+ /** The thing's link in a muted field, with Copy link one inset from three edges. */
53
+ export declare function ShareLinkField({ link, copyLabel, onCopy }: {
54
+ link: string;
55
+ copyLabel: ReactNode;
56
+ onCopy: () => void;
57
+ }): import("react").JSX.Element;
58
+ /**
59
+ * Add people (and groups): a multi-select field and a Share button of one
60
+ * height. Focus lists everyone who can still be added; typing narrows it;
61
+ * picking stages a chip; pasting or typing emails (comma, space or newline
62
+ * separated) stages every member they match. Share hands the whole set over.
63
+ */
64
+ export declare function ShareAddField({ candidates, excludeIds, onShare, pending, disabled, placeholder, shareLabel, removeLabel, onUnknownEmails, }: {
65
+ candidates: readonly ShareCandidate[];
66
+ /** Already have access: never offered. */
67
+ excludeIds: ReadonlySet<string>;
68
+ /** Resolves true when the share saved; the field then clears. */
69
+ onShare: (picked: ShareCandidate[]) => Promise<boolean>;
70
+ pending: boolean;
71
+ disabled: boolean;
72
+ placeholder: string;
73
+ shareLabel: ReactNode;
74
+ removeLabel: string;
75
+ /** Emails typed or pasted that match nobody who can be added. */
76
+ onUnknownEmails: (emails: string[]) => void;
77
+ }): import("react").JSX.Element;