@kortix/ui 0.14.3 → 0.14.5

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 (3134) hide show
  1. package/README.md +245 -49
  2. package/dist/_vendor/kortix-shared.js +10551 -54
  3. package/dist/_vendor/shared/channel-header.d.ts +12 -0
  4. package/dist/_vendor/shared/channel-message.d.ts +38 -0
  5. package/dist/_vendor/shared/chat-mention.d.ts +6 -0
  6. package/dist/_vendor/shared/code-language.d.ts +25 -0
  7. package/dist/_vendor/shared/connector-sections.d.ts +180 -0
  8. package/dist/_vendor/shared/constants/auto-topup.d.ts +13 -0
  9. package/dist/_vendor/shared/constants/upload-limits.d.ts +23 -0
  10. package/dist/_vendor/shared/file-tags.d.ts +28 -0
  11. package/dist/_vendor/shared/index.d.ts +28 -0
  12. package/dist/_vendor/shared/markdown-math.d.ts +46 -0
  13. package/dist/_vendor/shared/meta-agent.d.ts +7 -0
  14. package/dist/_vendor/shared/pasted-content.d.ts +38 -0
  15. package/dist/_vendor/shared/project-glyphs.d.ts +93 -0
  16. package/dist/_vendor/shared/prompt-attachments.d.ts +20 -0
  17. package/dist/_vendor/shared/reminder-prompt.d.ts +21 -0
  18. package/dist/_vendor/shared/room-prompt.d.ts +66 -0
  19. package/dist/_vendor/shared/runtime-versions.d.ts +57 -0
  20. package/dist/_vendor/shared/session-attachments.d.ts +8 -0
  21. package/dist/_vendor/shared/slack-text.d.ts +21 -0
  22. package/dist/_vendor/shared/tag-blocks.d.ts +118 -0
  23. package/dist/_vendor/shared/tool-output/background-workers.d.ts +11 -0
  24. package/dist/_vendor/shared/tool-output/diagnostics.d.ts +25 -0
  25. package/dist/_vendor/shared/tool-output/index.d.ts +25 -0
  26. package/dist/_vendor/shared/tool-output/markdown-detect.d.ts +18 -0
  27. package/dist/_vendor/shared/tool-output/media-path.d.ts +15 -0
  28. package/dist/_vendor/shared/tool-output/memory-entry.d.ts +55 -0
  29. package/dist/_vendor/shared/tool-output/memory-search.d.ts +41 -0
  30. package/dist/_vendor/shared/tool-output/projects.d.ts +81 -0
  31. package/dist/_vendor/shared/tool-output/scan.d.ts +39 -0
  32. package/dist/_vendor/shared/tool-output/session-dump.d.ts +62 -0
  33. package/dist/_vendor/shared/tool-output/session-get.d.ts +47 -0
  34. package/dist/_vendor/shared/tool-output/session-search.d.ts +15 -0
  35. package/dist/_vendor/shared/tool-output/skill.d.ts +6 -0
  36. package/dist/_vendor/shared/tool-output/tags.d.ts +19 -0
  37. package/dist/_vendor/shared/tool-output/triggers.d.ts +22 -0
  38. package/dist/_vendor/shared/tools/html-text.d.ts +12 -0
  39. package/dist/_vendor/shared/tools/index.d.ts +6 -0
  40. package/dist/_vendor/shared/tools/safe-url.d.ts +9 -0
  41. package/dist/_vendor/shared/tools/tool-registry-lookup.d.ts +2 -0
  42. package/dist/_vendor/shared/trigger-event.d.ts +21 -0
  43. package/dist/_vendor/shared/utils/ambiguous-write.d.ts +32 -0
  44. package/dist/_vendor/shared/utils/chalk-colors.d.ts +15 -0
  45. package/dist/_vendor/shared/utils/configure-prompts.d.ts +11 -0
  46. package/dist/_vendor/shared/utils/credit-formatter.d.ts +53 -0
  47. package/dist/_vendor/shared/utils/format-relative.d.ts +27 -0
  48. package/dist/_vendor/shared/utils/index.d.ts +12 -0
  49. package/dist/_vendor/shared/utils/json.d.ts +24 -0
  50. package/dist/_vendor/shared/utils/string.d.ts +18 -0
  51. package/dist/_vendor/shared/utils/unicode.d.ts +41 -0
  52. package/dist/_vendor/shared/utils/url-autolink.d.ts +48 -0
  53. package/dist/_vendor/shared/webhook-signing.d.ts +14 -0
  54. package/dist/access/access/access-detail-shell.d.ts +34 -0
  55. package/dist/access/access/access-detail-shell.js +22 -0
  56. package/dist/access/access/access-dialog-share.d.ts +54 -0
  57. package/dist/access/access/access-dialog-share.js +206 -0
  58. package/dist/access/access/access-dialog.d.ts +207 -0
  59. package/dist/access/access/access-dialog.js +982 -0
  60. package/dist/access/access/access-row.d.ts +106 -0
  61. package/dist/access/access/access-row.js +79 -0
  62. package/dist/access/access/access-shared.d.ts +86 -0
  63. package/dist/access/access/access-shared.js +143 -0
  64. package/dist/access/access/account-role-editor.d.ts +52 -0
  65. package/dist/access/access/account-role-editor.js +63 -0
  66. package/dist/access/access/agent-principals.d.ts +97 -0
  67. package/dist/access/access/agent-principals.js +210 -0
  68. package/dist/access/access/copy-row.d.ts +19 -0
  69. package/dist/access/access/copy-row.js +41 -0
  70. package/dist/access/access/index.d.ts +9 -0
  71. package/dist/access/access/index.js +16 -0
  72. package/dist/access/access/principal-picker.d.ts +90 -0
  73. package/dist/access/access/principal-picker.js +271 -0
  74. package/dist/access/access/project-select.d.ts +41 -0
  75. package/dist/access/access/project-select.js +59 -0
  76. package/dist/access/access/role-select.d.ts +108 -0
  77. package/dist/access/access/role-select.js +199 -0
  78. package/dist/access/iam/add-github-account-dialog.d.ts +33 -0
  79. package/dist/access/iam/add-github-account-dialog.js +51 -0
  80. package/dist/access/iam/api-key-expiry.d.ts +53 -0
  81. package/dist/access/iam/api-key-expiry.js +68 -0
  82. package/dist/access/iam/api-key-rows.d.ts +161 -0
  83. package/dist/access/iam/api-key-rows.js +178 -0
  84. package/dist/access/iam/managed-git-notice.d.ts +2 -0
  85. package/dist/access/iam/managed-git-notice.js +44 -0
  86. package/dist/access/iam/session-oversight-card.d.ts +4 -0
  87. package/dist/access/iam/session-oversight-card.js +52 -0
  88. package/dist/access/index.d.ts +7 -0
  89. package/dist/access/index.js +7 -0
  90. package/dist/access/sandbox-template-menu.d.ts +41 -0
  91. package/dist/access/sandbox-template-menu.js +69 -0
  92. package/dist/access/sharing-intent.d.ts +31 -0
  93. package/dist/access/sharing-intent.js +28 -0
  94. package/dist/access/sharing-picker.d.ts +55 -0
  95. package/dist/access/sharing-picker.js +61 -0
  96. package/dist/animated-copy-icon.d.ts +5 -0
  97. package/dist/animated-copy-icon.js +6 -0
  98. package/dist/apps/app-preview-pool.d.ts +31 -0
  99. package/dist/apps/app-preview-pool.js +157 -0
  100. package/dist/apps/app-preview.d.ts +128 -0
  101. package/dist/apps/app-preview.js +258 -0
  102. package/dist/apps/app-shared.d.ts +154 -0
  103. package/dist/apps/app-shared.js +213 -0
  104. package/dist/apps/index.d.ts +7 -0
  105. package/dist/apps/index.js +7 -0
  106. package/dist/apps/kortix-app-url.d.ts +7 -0
  107. package/dist/apps/kortix-app-url.js +20 -0
  108. package/dist/browser/app-in-browser.d.ts +20 -0
  109. package/dist/browser/app-in-browser.js +79 -0
  110. package/dist/browser/browser-landing.d.ts +32 -0
  111. package/dist/browser/browser-landing.js +103 -0
  112. package/dist/browser/browser-panel.d.ts +15 -0
  113. package/dist/browser/browser-panel.js +317 -0
  114. package/dist/browser/index.d.ts +5 -0
  115. package/dist/browser/index.js +5 -0
  116. package/dist/browser/sandbox-browser-chrome.d.ts +69 -0
  117. package/dist/browser/sandbox-browser-chrome.js +149 -0
  118. package/dist/changes/change-list.d.ts +50 -0
  119. package/dist/changes/change-list.js +129 -0
  120. package/dist/changes/change-vocabulary.d.ts +154 -0
  121. package/dist/changes/change-vocabulary.js +289 -0
  122. package/dist/changes/index.d.ts +2 -0
  123. package/dist/changes/index.js +2 -0
  124. package/dist/customize/agents/agent-apps-grant.d.ts +19 -0
  125. package/dist/customize/agents/agent-apps-grant.js +23 -0
  126. package/dist/customize/agents/agent-authority-card.d.ts +8 -0
  127. package/dist/customize/agents/agent-authority-card.js +46 -0
  128. package/dist/customize/agents/agent-detail-aside.d.ts +81 -0
  129. package/dist/customize/agents/agent-detail-aside.js +249 -0
  130. package/dist/customize/agents/agent-drives-section.d.ts +11 -0
  131. package/dist/customize/agents/agent-drives-section.js +67 -0
  132. package/dist/customize/agents/agent-filter.d.ts +27 -0
  133. package/dist/customize/agents/agent-filter.js +32 -0
  134. package/dist/customize/agents/agent-grant-pages.d.ts +33 -0
  135. package/dist/customize/agents/agent-grant-pages.js +203 -0
  136. package/dist/customize/agents/agent-page.d.ts +4 -0
  137. package/dist/customize/agents/agent-page.js +453 -0
  138. package/dist/customize/agents/agent-people-section.d.ts +8 -0
  139. package/dist/customize/agents/agent-people-section.js +152 -0
  140. package/dist/customize/agents/agent-share-control.d.ts +6 -0
  141. package/dist/customize/agents/agent-share-control.js +63 -0
  142. package/dist/customize/agents/agent-status.d.ts +7 -0
  143. package/dist/customize/agents/agent-status.js +9 -0
  144. package/dist/customize/agents/agent-triggers-section.d.ts +17 -0
  145. package/dist/customize/agents/agent-triggers-section.js +107 -0
  146. package/dist/customize/agents/agents-page.d.ts +24 -0
  147. package/dist/customize/agents/agents-page.js +214 -0
  148. package/dist/customize/agents/use-agent-grants.d.ts +1 -0
  149. package/dist/customize/agents/use-agent-grants.js +13 -0
  150. package/dist/customize/agents/use-default-agent.d.ts +1 -0
  151. package/dist/customize/agents/use-default-agent.js +19 -0
  152. package/dist/customize/connectors/add-mcp/add-mcp-server-deps.d.ts +3 -0
  153. package/dist/customize/connectors/add-mcp/add-mcp-server-deps.js +25 -0
  154. package/dist/customize/connectors/add-mcp/add-mcp-server-dialog.d.ts +20 -0
  155. package/dist/customize/connectors/add-mcp/add-mcp-server-dialog.js +114 -0
  156. package/dist/customize/connectors/add-mcp/add-mcp-server.d.ts +77 -0
  157. package/dist/customize/connectors/add-mcp/add-mcp-server.js +97 -0
  158. package/dist/customize/connectors/catalog/browse-sections.d.ts +62 -0
  159. package/dist/customize/connectors/catalog/browse-sections.js +119 -0
  160. package/dist/customize/connectors/catalog/catalog-entry.d.ts +111 -0
  161. package/dist/customize/connectors/catalog/catalog-entry.js +172 -0
  162. package/dist/customize/connectors/catalog/catalog-foot.d.ts +24 -0
  163. package/dist/customize/connectors/catalog/catalog-foot.js +39 -0
  164. package/dist/customize/connectors/catalog/catalog-paging.d.ts +34 -0
  165. package/dist/customize/connectors/catalog/catalog-paging.js +33 -0
  166. package/dist/customize/connectors/catalog/connector-browse.d.ts +34 -0
  167. package/dist/customize/connectors/catalog/connector-browse.js +151 -0
  168. package/dist/customize/connectors/catalog/connector-categories.d.ts +20 -0
  169. package/dist/customize/connectors/catalog/connector-categories.js +25 -0
  170. package/dist/customize/connectors/catalog/merge-search.d.ts +10 -0
  171. package/dist/customize/connectors/catalog/merge-search.js +26 -0
  172. package/dist/customize/connectors/catalog/use-catalog-autoload.d.ts +29 -0
  173. package/dist/customize/connectors/catalog/use-catalog-autoload.js +79 -0
  174. package/dist/customize/connectors/catalog/use-catalog.d.ts +161 -0
  175. package/dist/customize/connectors/catalog/use-catalog.js +336 -0
  176. package/dist/customize/connectors/connector-filter.d.ts +80 -0
  177. package/dist/customize/connectors/connector-filter.js +79 -0
  178. package/dist/customize/connectors/connector-identity.d.ts +35 -0
  179. package/dist/customize/connectors/connector-identity.js +67 -0
  180. package/dist/customize/connectors/connector-moves-banner.d.ts +4 -0
  181. package/dist/customize/connectors/connector-moves-banner.js +25 -0
  182. package/dist/customize/connectors/connector-routes.d.ts +40 -0
  183. package/dist/customize/connectors/connector-routes.js +74 -0
  184. package/dist/customize/connectors/connectors-app-return-bar.d.ts +18 -0
  185. package/dist/customize/connectors/connectors-app-return-bar.js +56 -0
  186. package/dist/customize/connectors/connectors-page.d.ts +40 -0
  187. package/dist/customize/connectors/connectors-page.js +412 -0
  188. package/dist/customize/connectors/detail/account-info.d.ts +5 -0
  189. package/dist/customize/connectors/detail/account-info.js +24 -0
  190. package/dist/customize/connectors/detail/app-page.d.ts +4 -0
  191. package/dist/customize/connectors/detail/app-page.js +263 -0
  192. package/dist/customize/connectors/detail/connector-accounts.d.ts +51 -0
  193. package/dist/customize/connectors/detail/connector-accounts.js +42 -0
  194. package/dist/customize/connectors/detail/connector-advanced-tools.d.ts +13 -0
  195. package/dist/customize/connectors/detail/connector-advanced-tools.js +75 -0
  196. package/dist/customize/connectors/detail/connector-detail-tabs.d.ts +10 -0
  197. package/dist/customize/connectors/detail/connector-detail-tabs.js +18 -0
  198. package/dist/customize/connectors/detail/connector-header-cta.d.ts +23 -0
  199. package/dist/customize/connectors/detail/connector-header-cta.js +9 -0
  200. package/dist/customize/connectors/detail/connector-modal.d.ts +32 -0
  201. package/dist/customize/connectors/detail/connector-modal.js +117 -0
  202. package/dist/customize/connectors/detail/connector-move-row.d.ts +17 -0
  203. package/dist/customize/connectors/detail/connector-move-row.js +73 -0
  204. package/dist/customize/connectors/detail/connector-notice-view.d.ts +22 -0
  205. package/dist/customize/connectors/detail/connector-notice-view.js +22 -0
  206. package/dist/customize/connectors/detail/connector-notice.d.ts +76 -0
  207. package/dist/customize/connectors/detail/connector-notice.js +79 -0
  208. package/dist/customize/connectors/detail/connector-page-state.d.ts +57 -0
  209. package/dist/customize/connectors/detail/connector-page-state.js +51 -0
  210. package/dist/customize/connectors/detail/connector-page.d.ts +19 -0
  211. package/dist/customize/connectors/detail/connector-page.js +343 -0
  212. package/dist/customize/connectors/detail/connector-settings.d.ts +36 -0
  213. package/dist/customize/connectors/detail/connector-settings.js +81 -0
  214. package/dist/customize/connectors/detail/connector-status.d.ts +20 -0
  215. package/dist/customize/connectors/detail/connector-status.js +42 -0
  216. package/dist/customize/connectors/detail/connector-tabs.d.ts +29 -0
  217. package/dist/customize/connectors/detail/connector-tabs.js +39 -0
  218. package/dist/customize/connectors/detail/connector-tools.d.ts +37 -0
  219. package/dist/customize/connectors/detail/connector-tools.js +224 -0
  220. package/dist/customize/connectors/detail/connector-triggers.d.ts +24 -0
  221. package/dist/customize/connectors/detail/connector-triggers.js +57 -0
  222. package/dist/customize/connectors/detail/detail-page-shell.d.ts +6 -0
  223. package/dist/customize/connectors/detail/detail-page-shell.js +5 -0
  224. package/dist/customize/connectors/detail/find-easy-connect-app.d.ts +29 -0
  225. package/dist/customize/connectors/detail/find-easy-connect-app.js +22 -0
  226. package/dist/customize/connectors/detail/provider-info.d.ts +14 -0
  227. package/dist/customize/connectors/detail/provider-info.js +32 -0
  228. package/dist/customize/connectors/detail/status-badge.d.ts +5 -0
  229. package/dist/customize/connectors/detail/status-badge.js +16 -0
  230. package/dist/customize/connectors/detail/use-connector-detail.d.ts +37 -0
  231. package/dist/customize/connectors/detail/use-connector-detail.js +134 -0
  232. package/dist/customize/connectors/install/install-menu.d.ts +19 -0
  233. package/dist/customize/connectors/install/install-menu.js +14 -0
  234. package/dist/customize/connectors/install/install.d.ts +71 -0
  235. package/dist/customize/connectors/install/install.js +97 -0
  236. package/dist/customize/connectors/install/mcp-first.d.ts +15 -0
  237. package/dist/customize/connectors/install/mcp-first.js +17 -0
  238. package/dist/customize/connectors/install/pick-surface.d.ts +22 -0
  239. package/dist/customize/connectors/install/pick-surface.js +32 -0
  240. package/dist/customize/connectors/install/use-install.d.ts +28 -0
  241. package/dist/customize/connectors/install/use-install.js +126 -0
  242. package/dist/customize/connectors/invalidate-connections.d.ts +2 -0
  243. package/dist/customize/connectors/invalidate-connections.js +4 -0
  244. package/dist/customize/connectors/provider-label.d.ts +20 -0
  245. package/dist/customize/connectors/provider-label.js +41 -0
  246. package/dist/customize/connectors/tools/pattern-rule-draft.d.ts +40 -0
  247. package/dist/customize/connectors/tools/pattern-rule-draft.js +43 -0
  248. package/dist/customize/connectors/tools/tool-groups.d.ts +46 -0
  249. package/dist/customize/connectors/tools/tool-groups.js +55 -0
  250. package/dist/customize/connectors/tools/tool-policy-control.d.ts +30 -0
  251. package/dist/customize/connectors/tools/tool-policy-control.js +47 -0
  252. package/dist/customize/connectors/tools/tool-policy-labels.d.ts +30 -0
  253. package/dist/customize/connectors/tools/tool-policy-labels.js +42 -0
  254. package/dist/customize/connectors/tools/tool-policy.d.ts +83 -0
  255. package/dist/customize/connectors/tools/tool-policy.js +116 -0
  256. package/dist/customize/index.d.ts +13 -0
  257. package/dist/customize/index.js +13 -0
  258. package/dist/customize/migrate-to-v2/index.d.ts +6 -0
  259. package/dist/customize/migrate-to-v2/index.js +6 -0
  260. package/dist/customize/migrate-to-v2/migration-prompt.d.ts +28 -0
  261. package/dist/customize/migrate-to-v2/migration-prompt.js +260 -0
  262. package/dist/customize/migrate-to-v2/upgrade-defs.d.ts +30 -0
  263. package/dist/customize/migrate-to-v2/upgrade-defs.js +42 -0
  264. package/dist/customize/migrate-to-v2/upgrade-view.d.ts +32 -0
  265. package/dist/customize/migrate-to-v2/upgrade-view.js +152 -0
  266. package/dist/customize/migrate-to-v2/use-migrate-to-v2.d.ts +9 -0
  267. package/dist/customize/migrate-to-v2/use-migrate-to-v2.js +24 -0
  268. package/dist/customize/migrate-to-v2/use-run-upgrade.d.ts +18 -0
  269. package/dist/customize/migrate-to-v2/use-run-upgrade.js +16 -0
  270. package/dist/customize/models/app-return-bar.d.ts +20 -0
  271. package/dist/customize/models/app-return-bar.js +42 -0
  272. package/dist/customize/models/app-return.d.ts +8 -0
  273. package/dist/customize/models/app-return.js +11 -0
  274. package/dist/customize/models/models-page.d.ts +28 -0
  275. package/dist/customize/models/models-page.js +35 -0
  276. package/dist/customize/project-settings/project-settings-page.d.ts +106 -0
  277. package/dist/customize/project-settings/project-settings-page.js +286 -0
  278. package/dist/customize/project-settings/project-settings-sections.d.ts +84 -0
  279. package/dist/customize/project-settings/project-settings-sections.js +99 -0
  280. package/dist/customize/providers/provider-accordion.d.ts +54 -0
  281. package/dist/customize/providers/provider-accordion.js +296 -0
  282. package/dist/customize/providers/provider-connect.d.ts +106 -0
  283. package/dist/customize/providers/provider-connect.js +277 -0
  284. package/dist/customize/providers/provider-sheet.d.ts +88 -0
  285. package/dist/customize/providers/provider-sheet.js +301 -0
  286. package/dist/customize/secrets/secrets-page.d.ts +29 -0
  287. package/dist/customize/secrets/secrets-page.js +35 -0
  288. package/dist/customize/sections/add-account-fields.d.ts +39 -0
  289. package/dist/customize/sections/add-account-fields.js +39 -0
  290. package/dist/customize/sections/component/byo-wizard-modal.d.ts +13 -0
  291. package/dist/customize/sections/component/byo-wizard-modal.js +18 -0
  292. package/dist/customize/sections/component/channel-connect-hero.d.ts +27 -0
  293. package/dist/customize/sections/component/channel-connect-hero.js +19 -0
  294. package/dist/customize/sections/component/channel-row.d.ts +29 -0
  295. package/dist/customize/sections/component/channel-row.js +62 -0
  296. package/dist/customize/sections/component/config-entity-source-path.d.ts +1 -0
  297. package/dist/customize/sections/component/config-entity-source-path.js +3 -0
  298. package/dist/customize/sections/component/manifest-copy-block.d.ts +12 -0
  299. package/dist/customize/sections/component/manifest-copy-block.js +81 -0
  300. package/dist/customize/sections/component/section-wrapper.d.ts +32 -0
  301. package/dist/customize/sections/component/section-wrapper.js +52 -0
  302. package/dist/customize/sections/component/slack-byo-wizard.d.ts +5 -0
  303. package/dist/customize/sections/component/slack-byo-wizard.js +120 -0
  304. package/dist/customize/sections/component/slack-connect-card.d.ts +5 -0
  305. package/dist/customize/sections/component/slack-connect-card.js +54 -0
  306. package/dist/customize/sections/component/teams-byo-wizard.d.ts +7 -0
  307. package/dist/customize/sections/component/teams-byo-wizard.js +155 -0
  308. package/dist/customize/sections/component/teams-connect-card.d.ts +6 -0
  309. package/dist/customize/sections/component/teams-connect-card.js +49 -0
  310. package/dist/customize/sections/component/telegram-channel-row.d.ts +6 -0
  311. package/dist/customize/sections/component/telegram-channel-row.js +77 -0
  312. package/dist/customize/sections/connector-connection-form.d.ts +56 -0
  313. package/dist/customize/sections/connector-connection-form.js +148 -0
  314. package/dist/customize/sections/connector-connection-header.d.ts +36 -0
  315. package/dist/customize/sections/connector-connection-header.js +33 -0
  316. package/dist/customize/sections/connector-connection-modal.d.ts +34 -0
  317. package/dist/customize/sections/connector-connection-modal.js +70 -0
  318. package/dist/customize/sections/connector-credential-target.d.ts +29 -0
  319. package/dist/customize/sections/connector-credential-target.js +23 -0
  320. package/dist/customize/sections/connector-oauth2-application-fields.d.ts +6 -0
  321. package/dist/customize/sections/connector-oauth2-application-fields.js +14 -0
  322. package/dist/customize/sections/connector-oauth2-auto.d.ts +45 -0
  323. package/dist/customize/sections/connector-oauth2-auto.js +78 -0
  324. package/dist/customize/sections/connector-oauth2-fields.d.ts +7 -0
  325. package/dist/customize/sections/connector-oauth2-fields.js +14 -0
  326. package/dist/customize/sections/connector-oauth2-scope-fields.d.ts +7 -0
  327. package/dist/customize/sections/connector-oauth2-scope-fields.js +10 -0
  328. package/dist/customize/sections/connector-oauth2-start.d.ts +22 -0
  329. package/dist/customize/sections/connector-oauth2-start.js +40 -0
  330. package/dist/customize/sections/connector-oauth2.d.ts +50 -0
  331. package/dist/customize/sections/connector-oauth2.js +165 -0
  332. package/dist/customize/sections/connectors-view.d.ts +103 -0
  333. package/dist/customize/sections/connectors-view.js +1267 -0
  334. package/dist/customize/sections/discover-catalogue-card.d.ts +19 -0
  335. package/dist/customize/sections/discover-catalogue-card.js +26 -0
  336. package/dist/customize/sections/discover-catalogue-detail.d.ts +15 -0
  337. package/dist/customize/sections/discover-catalogue-detail.js +24 -0
  338. package/dist/customize/sections/discover-catalogue.d.ts +17 -0
  339. package/dist/customize/sections/discover-catalogue.js +132 -0
  340. package/dist/customize/sections/gateway-access-tab.d.ts +6 -0
  341. package/dist/customize/sections/gateway-access-tab.js +66 -0
  342. package/dist/customize/sections/gateway-view.d.ts +176 -0
  343. package/dist/customize/sections/gateway-view.js +244 -0
  344. package/dist/customize/sections/llm-provider/chatgpt-device-challenge.d.ts +6 -0
  345. package/dist/customize/sections/llm-provider/chatgpt-device-challenge.js +11 -0
  346. package/dist/customize/sections/llm-provider/chatgpt-subscription-connect.d.ts +66 -0
  347. package/dist/customize/sections/llm-provider/chatgpt-subscription-connect.js +163 -0
  348. package/dist/customize/sections/llm-provider/constants.d.ts +2 -0
  349. package/dist/customize/sections/llm-provider/constants.js +2 -0
  350. package/dist/customize/sections/llm-provider/custom-provider-form.d.ts +16 -0
  351. package/dist/customize/sections/llm-provider/custom-provider-form.js +114 -0
  352. package/dist/customize/sections/llm-provider/custom-provider-panel.d.ts +12 -0
  353. package/dist/customize/sections/llm-provider/custom-provider-panel.js +179 -0
  354. package/dist/customize/sections/llm-provider/device-grant.d.ts +15 -0
  355. package/dist/customize/sections/llm-provider/device-grant.js +53 -0
  356. package/dist/customize/sections/llm-provider/llm-provider-modal.d.ts +3 -0
  357. package/dist/customize/sections/llm-provider/llm-provider-modal.js +86 -0
  358. package/dist/customize/sections/llm-provider/model-capability-icons.d.ts +13 -0
  359. package/dist/customize/sections/llm-provider/model-capability-icons.js +23 -0
  360. package/dist/customize/sections/llm-provider/model-rows.d.ts +23 -0
  361. package/dist/customize/sections/llm-provider/model-rows.js +73 -0
  362. package/dist/customize/sections/llm-provider/models-tab-group.d.ts +6 -0
  363. package/dist/customize/sections/llm-provider/models-tab-group.js +39 -0
  364. package/dist/customize/sections/llm-provider/models-tab-row.d.ts +12 -0
  365. package/dist/customize/sections/llm-provider/models-tab-row.js +85 -0
  366. package/dist/customize/sections/llm-provider/models-tab.d.ts +12 -0
  367. package/dist/customize/sections/llm-provider/models-tab.js +85 -0
  368. package/dist/customize/sections/llm-provider/provider-access-menu.d.ts +10 -0
  369. package/dist/customize/sections/llm-provider/provider-access-menu.js +23 -0
  370. package/dist/customize/sections/llm-provider/provider-loading-state.d.ts +10 -0
  371. package/dist/customize/sections/llm-provider/provider-loading-state.js +3 -0
  372. package/dist/customize/sections/llm-provider/subscription-control.d.ts +42 -0
  373. package/dist/customize/sections/llm-provider/subscription-control.js +42 -0
  374. package/dist/customize/sections/llm-provider/types.d.ts +43 -0
  375. package/dist/customize/sections/llm-provider/types.js +1 -0
  376. package/dist/customize/sections/llm-provider/use-connected-providers.d.ts +6 -0
  377. package/dist/customize/sections/llm-provider/use-connected-providers.js +70 -0
  378. package/dist/customize/sections/llm-provider/use-live-catalog.d.ts +23 -0
  379. package/dist/customize/sections/llm-provider/use-live-catalog.js +44 -0
  380. package/dist/customize/sections/llm-provider/utils.d.ts +141 -0
  381. package/dist/customize/sections/llm-provider/utils.js +269 -0
  382. package/dist/customize/sections/models-page-sheet.d.ts +24 -0
  383. package/dist/customize/sections/models-page-sheet.js +34 -0
  384. package/dist/customize/sections/use-add-request.d.ts +11 -0
  385. package/dist/customize/sections/use-add-request.js +23 -0
  386. package/dist/customize/sections/use-create-custom-connector.d.ts +19 -0
  387. package/dist/customize/sections/use-create-custom-connector.js +36 -0
  388. package/dist/customize/sections/view/account-secret-resources-panel.d.ts +18 -0
  389. package/dist/customize/sections/view/account-secret-resources-panel.js +295 -0
  390. package/dist/customize/sections/view/agent-editor-access-fields.d.ts +63 -0
  391. package/dist/customize/sections/view/agent-editor-access-fields.js +129 -0
  392. package/dist/customize/sections/view/agent-editor-basics-fields.d.ts +37 -0
  393. package/dist/customize/sections/view/agent-editor-basics-fields.js +102 -0
  394. package/dist/customize/sections/view/agent-editor-catalog.d.ts +64 -0
  395. package/dist/customize/sections/view/agent-editor-catalog.js +234 -0
  396. package/dist/customize/sections/view/agent-editor-primitives.d.ts +73 -0
  397. package/dist/customize/sections/view/agent-editor-primitives.js +66 -0
  398. package/dist/customize/sections/view/agent-editor.d.ts +330 -0
  399. package/dist/customize/sections/view/agent-editor.js +358 -0
  400. package/dist/customize/sections/view/audience-badge.d.ts +18 -0
  401. package/dist/customize/sections/view/audience-badge.js +40 -0
  402. package/dist/customize/sections/view/channel-binding-tabs.d.ts +9 -0
  403. package/dist/customize/sections/view/channel-binding-tabs.js +14 -0
  404. package/dist/customize/sections/view/channel-settings-patch.d.ts +19 -0
  405. package/dist/customize/sections/view/channel-settings-patch.js +19 -0
  406. package/dist/customize/sections/view/channels-view.d.ts +3 -0
  407. package/dist/customize/sections/view/channels-view.js +611 -0
  408. package/dist/customize/sections/view/connector-connections.d.ts +87 -0
  409. package/dist/customize/sections/view/connector-connections.js +101 -0
  410. package/dist/customize/sections/view/connectors-personal.d.ts +13 -0
  411. package/dist/customize/sections/view/connectors-personal.js +22 -0
  412. package/dist/customize/sections/view/gateway/_metrics.d.ts +101 -0
  413. package/dist/customize/sections/view/gateway/_metrics.js +99 -0
  414. package/dist/customize/sections/view/gateway/_shared.d.ts +35 -0
  415. package/dist/customize/sections/view/gateway/_shared.js +49 -0
  416. package/dist/customize/sections/view/gateway/gateway-api-reference.d.ts +27 -0
  417. package/dist/customize/sections/view/gateway/gateway-api-reference.js +173 -0
  418. package/dist/customize/sections/view/gateway/gateway-budgets.d.ts +38 -0
  419. package/dist/customize/sections/view/gateway/gateway-budgets.js +270 -0
  420. package/dist/customize/sections/view/gateway/gateway-keys.d.ts +24 -0
  421. package/dist/customize/sections/view/gateway/gateway-keys.js +133 -0
  422. package/dist/customize/sections/view/gateway/gateway-logs.d.ts +111 -0
  423. package/dist/customize/sections/view/gateway/gateway-logs.js +500 -0
  424. package/dist/customize/sections/view/gateway/gateway-overview.d.ts +31 -0
  425. package/dist/customize/sections/view/gateway/gateway-overview.js +189 -0
  426. package/dist/customize/sections/view/gateway/gateway-routing.d.ts +30 -0
  427. package/dist/customize/sections/view/gateway/gateway-routing.js +501 -0
  428. package/dist/customize/sections/view/gateway/generation-controls.d.ts +22 -0
  429. package/dist/customize/sections/view/gateway/generation-controls.js +60 -0
  430. package/dist/customize/sections/view/git-view-helpers.d.ts +65 -0
  431. package/dist/customize/sections/view/git-view-helpers.js +81 -0
  432. package/dist/customize/sections/view/git-view.d.ts +38 -0
  433. package/dist/customize/sections/view/git-view.js +510 -0
  434. package/dist/customize/sections/view/grant-mode-field.d.ts +54 -0
  435. package/dist/customize/sections/view/grant-mode-field.js +97 -0
  436. package/dist/customize/sections/view/permission-editor.d.ts +13 -0
  437. package/dist/customize/sections/view/permission-editor.js +117 -0
  438. package/dist/customize/sections/view/review-center-connected.d.ts +3 -0
  439. package/dist/customize/sections/view/review-center-connected.js +250 -0
  440. package/dist/customize/sections/view/review-view.d.ts +8 -0
  441. package/dist/customize/sections/view/review-view.js +19 -0
  442. package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +37 -0
  443. package/dist/customize/sections/view/sandbox-provider-coverage.js +65 -0
  444. package/dist/customize/sections/view/secret-audience.d.ts +12 -0
  445. package/dist/customize/sections/view/secret-audience.js +42 -0
  446. package/dist/customize/sections/view/secret-delivery.d.ts +449 -0
  447. package/dist/customize/sections/view/secret-delivery.js +720 -0
  448. package/dist/customize/sections/view/secret-optimistic-cache.d.ts +19 -0
  449. package/dist/customize/sections/view/secret-optimistic-cache.js +60 -0
  450. package/dist/customize/sections/view/secrets-view.d.ts +60 -0
  451. package/dist/customize/sections/view/secrets-view.js +699 -0
  452. package/dist/customize/sections/view/undecryptable-value.d.ts +13 -0
  453. package/dist/customize/sections/view/undecryptable-value.js +18 -0
  454. package/dist/customize/settings/rail-copy-context.d.ts +20 -0
  455. package/dist/customize/settings/rail-copy-context.js +29 -0
  456. package/dist/customize/settings/rail.d.ts +51 -0
  457. package/dist/customize/settings/rail.js +246 -0
  458. package/dist/customize/settings/settings-tab-header.d.ts +30 -0
  459. package/dist/customize/settings/settings-tab-header.js +42 -0
  460. package/dist/customize/settings/settings-tabs.d.ts +121 -0
  461. package/dist/customize/settings/settings-tabs.js +353 -0
  462. package/dist/customize/settings/tabs/connected-apps.d.ts +13 -0
  463. package/dist/customize/settings/tabs/connected-apps.js +85 -0
  464. package/dist/customize/settings/tabs/experimental-tab.d.ts +110 -0
  465. package/dist/customize/settings/tabs/experimental-tab.js +277 -0
  466. package/dist/customize/settings/tabs/fact-cell.d.ts +10 -0
  467. package/dist/customize/settings/tabs/fact-cell.js +5 -0
  468. package/dist/customize/settings/tabs/general-tab.d.ts +102 -0
  469. package/dist/customize/settings/tabs/general-tab.js +290 -0
  470. package/dist/customize/settings/tabs/project-edit-patch.d.ts +83 -0
  471. package/dist/customize/settings/tabs/project-edit-patch.js +76 -0
  472. package/dist/customize/settings/tabs/sandbox-tab.d.ts +98 -0
  473. package/dist/customize/settings/tabs/sandbox-tab.js +239 -0
  474. package/dist/customize/settings/tabs/sandbox-template-form.d.ts +9 -0
  475. package/dist/customize/settings/tabs/sandbox-template-form.js +162 -0
  476. package/dist/customize/settings/tabs/snapshots-query.d.ts +11 -0
  477. package/dist/customize/settings/tabs/snapshots-query.js +16 -0
  478. package/dist/customize/settings/tabs/snapshots-tab.d.ts +142 -0
  479. package/dist/customize/settings/tabs/snapshots-tab.js +358 -0
  480. package/dist/customize/settings/tabs/tokens-tab.d.ts +32 -0
  481. package/dist/customize/settings/tabs/tokens-tab.js +418 -0
  482. package/dist/customize/settings/type.d.ts +42 -0
  483. package/dist/customize/settings/type.js +1 -0
  484. package/dist/customize/shared/app-return-url.d.ts +7 -0
  485. package/dist/customize/shared/app-return-url.js +36 -0
  486. package/dist/customize/shared/capability-access-gate.d.ts +19 -0
  487. package/dist/customize/shared/capability-access-gate.js +52 -0
  488. package/dist/customize/shared/capability-page-shell.d.ts +43 -0
  489. package/dist/customize/shared/capability-page-shell.js +26 -0
  490. package/dist/customize/shared/capability-scroll-root.d.ts +12 -0
  491. package/dist/customize/shared/capability-scroll-root.js +43 -0
  492. package/dist/customize/shared/capability-skeleton.d.ts +14 -0
  493. package/dist/customize/shared/capability-skeleton.js +19 -0
  494. package/dist/customize/shared/capability-tabs.d.ts +3 -0
  495. package/dist/customize/shared/capability-tabs.js +136 -0
  496. package/dist/customize/shared/catalog/catalog-card.d.ts +45 -0
  497. package/dist/customize/shared/catalog/catalog-card.js +31 -0
  498. package/dist/customize/shared/catalog/catalog-empty-state.d.ts +31 -0
  499. package/dist/customize/shared/catalog/catalog-empty-state.js +22 -0
  500. package/dist/customize/shared/catalog/catalog-empty.d.ts +18 -0
  501. package/dist/customize/shared/catalog/catalog-empty.js +22 -0
  502. package/dist/customize/shared/catalog/catalog-error.d.ts +9 -0
  503. package/dist/customize/shared/catalog/catalog-error.js +65 -0
  504. package/dist/customize/shared/catalog/catalog-grid-tokens.d.ts +58 -0
  505. package/dist/customize/shared/catalog/catalog-grid-tokens.js +58 -0
  506. package/dist/customize/shared/catalog/catalog-grid.d.ts +53 -0
  507. package/dist/customize/shared/catalog/catalog-grid.js +66 -0
  508. package/dist/customize/shared/detail-selection.d.ts +54 -0
  509. package/dist/customize/shared/detail-selection.js +11 -0
  510. package/dist/customize/shared/entity/entity-files.d.ts +26 -0
  511. package/dist/customize/shared/entity/entity-files.js +121 -0
  512. package/dist/customize/shared/entity/entity-modal.d.ts +62 -0
  513. package/dist/customize/shared/entity/entity-modal.js +147 -0
  514. package/dist/customize/shared/feature-gate-screen.d.ts +11 -0
  515. package/dist/customize/shared/feature-gate-screen.js +44 -0
  516. package/dist/customize/shared/new-entity-menu.d.ts +61 -0
  517. package/dist/customize/shared/new-entity-menu.js +41 -0
  518. package/dist/customize/shared/standalone-settings-nav.d.ts +38 -0
  519. package/dist/customize/shared/standalone-settings-nav.js +129 -0
  520. package/dist/customize/shared/use-customize-prefetch.d.ts +67 -0
  521. package/dist/customize/shared/use-customize-prefetch.js +231 -0
  522. package/dist/customize/shared/utils.d.ts +21 -0
  523. package/dist/customize/shared/utils.js +23 -0
  524. package/dist/customize/shared/with-search.d.ts +2 -0
  525. package/dist/customize/shared/with-search.js +10 -0
  526. package/dist/customize/skills/new-skill-modal.d.ts +12 -0
  527. package/dist/customize/skills/new-skill-modal.js +57 -0
  528. package/dist/customize/skills/remove-skill-button.d.ts +16 -0
  529. package/dist/customize/skills/remove-skill-button.js +42 -0
  530. package/dist/customize/skills/skill-scope.d.ts +14 -0
  531. package/dist/customize/skills/skill-scope.js +18 -0
  532. package/dist/customize/skills/skills-page.d.ts +22 -0
  533. package/dist/customize/skills/skills-page.js +117 -0
  534. package/dist/customize/triggers/schedule/composer-parts.d.ts +12 -0
  535. package/dist/customize/triggers/schedule/composer-parts.js +16 -0
  536. package/dist/customize/triggers/schedule/event-account-picker.d.ts +16 -0
  537. package/dist/customize/triggers/schedule/event-account-picker.js +82 -0
  538. package/dist/customize/triggers/schedule/event-apps-strip.d.ts +7 -0
  539. package/dist/customize/triggers/schedule/event-apps-strip.js +21 -0
  540. package/dist/customize/triggers/schedule/event-check-times.d.ts +11 -0
  541. package/dist/customize/triggers/schedule/event-check-times.js +41 -0
  542. package/dist/customize/triggers/schedule/event-count.d.ts +5 -0
  543. package/dist/customize/triggers/schedule/event-count.js +11 -0
  544. package/dist/customize/triggers/schedule/event-trigger-copy.d.ts +176 -0
  545. package/dist/customize/triggers/schedule/event-trigger-copy.js +451 -0
  546. package/dist/customize/triggers/schedule/event-trigger-fields.d.ts +17 -0
  547. package/dist/customize/triggers/schedule/event-trigger-fields.js +47 -0
  548. package/dist/customize/triggers/schedule/schedule-builder.d.ts +25 -0
  549. package/dist/customize/triggers/schedule/schedule-builder.js +284 -0
  550. package/dist/customize/triggers/schedule/schedule-copy.d.ts +139 -0
  551. package/dist/customize/triggers/schedule/schedule-copy.js +368 -0
  552. package/dist/customize/triggers/schedule/schedule-detail-sheet.d.ts +37 -0
  553. package/dist/customize/triggers/schedule/schedule-detail-sheet.js +287 -0
  554. package/dist/customize/triggers/schedule/schedule-fields.d.ts +97 -0
  555. package/dist/customize/triggers/schedule/schedule-fields.js +172 -0
  556. package/dist/customize/triggers/schedule/then-fields.d.ts +12 -0
  557. package/dist/customize/triggers/schedule/then-fields.js +36 -0
  558. package/dist/customize/triggers/schedule/trigger-callouts.d.ts +12 -0
  559. package/dist/customize/triggers/schedule/trigger-callouts.js +34 -0
  560. package/dist/customize/triggers/schedule/trigger-composer-logic.d.ts +149 -0
  561. package/dist/customize/triggers/schedule/trigger-composer-logic.js +252 -0
  562. package/dist/customize/triggers/schedule/trigger-composer.d.ts +24 -0
  563. package/dist/customize/triggers/schedule/trigger-composer.js +273 -0
  564. package/dist/customize/triggers/schedule/trigger-controls.d.ts +3 -0
  565. package/dist/customize/triggers/schedule/trigger-controls.js +19 -0
  566. package/dist/customize/triggers/schedule/trigger-edit-logic.d.ts +18 -0
  567. package/dist/customize/triggers/schedule/trigger-edit-logic.js +133 -0
  568. package/dist/customize/triggers/schedule/trigger-filter.d.ts +54 -0
  569. package/dist/customize/triggers/schedule/trigger-filter.js +77 -0
  570. package/dist/customize/triggers/schedule/trigger-list.d.ts +26 -0
  571. package/dist/customize/triggers/schedule/trigger-list.js +70 -0
  572. package/dist/customize/triggers/schedule/trigger-options.d.ts +14 -0
  573. package/dist/customize/triggers/schedule/trigger-options.js +38 -0
  574. package/dist/customize/triggers/schedule/trigger-readonly.d.ts +8 -0
  575. package/dist/customize/triggers/schedule/trigger-readonly.js +51 -0
  576. package/dist/customize/triggers/schedule/trigger-runs-histogram.d.ts +14 -0
  577. package/dist/customize/triggers/schedule/trigger-runs-histogram.js +68 -0
  578. package/dist/customize/triggers/schedule/trigger-runs-logic.d.ts +49 -0
  579. package/dist/customize/triggers/schedule/trigger-runs-logic.js +90 -0
  580. package/dist/customize/triggers/schedule/trigger-runs-panel.d.ts +32 -0
  581. package/dist/customize/triggers/schedule/trigger-runs-panel.js +216 -0
  582. package/dist/customize/triggers/schedule/trigger-selection-bar.d.ts +22 -0
  583. package/dist/customize/triggers/schedule/trigger-selection-bar.js +47 -0
  584. package/dist/customize/triggers/schedule/trigger-selection.d.ts +33 -0
  585. package/dist/customize/triggers/schedule/trigger-selection.js +42 -0
  586. package/dist/customize/triggers/schedule/trigger-session-access-copy.d.ts +46 -0
  587. package/dist/customize/triggers/schedule/trigger-session-access-copy.js +35 -0
  588. package/dist/customize/triggers/schedule/trigger-status-badge.d.ts +13 -0
  589. package/dist/customize/triggers/schedule/trigger-status-badge.js +34 -0
  590. package/dist/customize/triggers/schedule/trigger-test-dialog.d.ts +7 -0
  591. package/dist/customize/triggers/schedule/trigger-test-dialog.js +61 -0
  592. package/dist/customize/triggers/schedule/trigger-tile.d.ts +20 -0
  593. package/dist/customize/triggers/schedule/trigger-tile.js +52 -0
  594. package/dist/customize/triggers/schedule/trigger-toast.d.ts +15 -0
  595. package/dist/customize/triggers/schedule/trigger-toast.js +50 -0
  596. package/dist/customize/triggers/schedule/use-event-app-connect.d.ts +8 -0
  597. package/dist/customize/triggers/schedule/use-event-app-connect.js +205 -0
  598. package/dist/customize/triggers/schedule/use-event-titles.d.ts +11 -0
  599. package/dist/customize/triggers/schedule/use-event-titles.js +28 -0
  600. package/dist/customize/triggers/schedule/use-trigger-mutations.d.ts +33 -0
  601. package/dist/customize/triggers/schedule/use-trigger-mutations.js +67 -0
  602. package/dist/customize/triggers/schedule/when-event-summary.d.ts +13 -0
  603. package/dist/customize/triggers/schedule/when-event-summary.js +28 -0
  604. package/dist/customize/triggers/schedule/when-event.d.ts +18 -0
  605. package/dist/customize/triggers/schedule/when-event.js +162 -0
  606. package/dist/customize/triggers/schedule/when-schedule.d.ts +8 -0
  607. package/dist/customize/triggers/schedule/when-schedule.js +11 -0
  608. package/dist/customize/triggers/schedule/when-webhook-address.d.ts +10 -0
  609. package/dist/customize/triggers/schedule/when-webhook-address.js +20 -0
  610. package/dist/customize/triggers/schedule/when-webhook.d.ts +8 -0
  611. package/dist/customize/triggers/schedule/when-webhook.js +16 -0
  612. package/dist/customize/triggers/schedule-view.d.ts +56 -0
  613. package/dist/customize/triggers/schedule-view.js +421 -0
  614. package/dist/customize/triggers/triggers-page.d.ts +21 -0
  615. package/dist/customize/triggers/triggers-page.js +24 -0
  616. package/dist/customize/use-configure-thread.d.ts +15 -0
  617. package/dist/customize/use-configure-thread.js +47 -0
  618. package/dist/diff/diff-view.d.ts +49 -0
  619. package/dist/diff/diff-view.js +61 -0
  620. package/dist/diff/index.d.ts +4 -0
  621. package/dist/diff/index.js +4 -0
  622. package/dist/files/drives/session-drives-chip.d.ts +19 -0
  623. package/dist/files/drives/session-drives-chip.js +71 -0
  624. package/dist/files/drives/use-drives.d.ts +10 -0
  625. package/dist/files/drives/use-drives.js +32 -0
  626. package/dist/files/editor/code-editor.d.ts +28 -0
  627. package/dist/files/editor/code-editor.js +518 -0
  628. package/dist/files/editor/codemirror-diagnostics.d.ts +29 -0
  629. package/dist/files/editor/codemirror-diagnostics.js +243 -0
  630. package/dist/files/editor/external-content.d.ts +19 -0
  631. package/dist/files/editor/external-content.js +17 -0
  632. package/dist/files/editor/lazy-code-editor.d.ts +9 -0
  633. package/dist/files/editor/lazy-code-editor.js +14 -0
  634. package/dist/files/editor/target-line.d.ts +9 -0
  635. package/dist/files/editor/target-line.js +35 -0
  636. package/dist/files/file-preview-dialog.d.ts +2 -0
  637. package/dist/files/file-preview-dialog.js +43 -0
  638. package/dist/files/file-preview-host.d.ts +5 -0
  639. package/dist/files/file-preview-host.js +18 -0
  640. package/dist/files/index.d.ts +23 -0
  641. package/dist/files/index.js +23 -0
  642. package/dist/files/project/api/branches.d.ts +8 -0
  643. package/dist/files/project/api/branches.js +10 -0
  644. package/dist/files/project/api/change-requests.d.ts +36 -0
  645. package/dist/files/project/api/change-requests.js +42 -0
  646. package/dist/files/project/api/commits.d.ts +15 -0
  647. package/dist/files/project/api/commits.js +14 -0
  648. package/dist/files/project/api/git-history.d.ts +14 -0
  649. package/dist/files/project/api/git-history.js +63 -0
  650. package/dist/files/project/api/runtime-files.d.ts +103 -0
  651. package/dist/files/project/api/runtime-files.js +289 -0
  652. package/dist/files/project/change-request-recovery.d.ts +26 -0
  653. package/dist/files/project/change-request-recovery.js +59 -0
  654. package/dist/files/project/components/change-request-detail-dialog.d.ts +13 -0
  655. package/dist/files/project/components/change-request-detail-dialog.js +187 -0
  656. package/dist/files/project/components/change-requests-panel.d.ts +14 -0
  657. package/dist/files/project/components/change-requests-panel.js +94 -0
  658. package/dist/files/project/components/checkpoint-detail-dialog.d.ts +11 -0
  659. package/dist/files/project/components/checkpoint-detail-dialog.js +201 -0
  660. package/dist/files/project/components/checkpoints-panel.d.ts +18 -0
  661. package/dist/files/project/components/checkpoints-panel.js +76 -0
  662. package/dist/files/project/components/diff-preview-banner.d.ts +30 -0
  663. package/dist/files/project/components/diff-preview-banner.js +45 -0
  664. package/dist/files/project/components/diff-renderer.d.ts +19 -0
  665. package/dist/files/project/components/diff-renderer.js +14 -0
  666. package/dist/files/project/components/drive-create-dialog.d.ts +26 -0
  667. package/dist/files/project/components/drive-create-dialog.js +52 -0
  668. package/dist/files/project/components/drive-empty-art.d.ts +2 -0
  669. package/dist/files/project/components/drive-empty-art.js +5 -0
  670. package/dist/files/project/components/drive-explorer.d.ts +84 -0
  671. package/dist/files/project/components/drive-explorer.js +1055 -0
  672. package/dist/files/project/components/drive-folder-thumbnail.d.ts +27 -0
  673. package/dist/files/project/components/drive-folder-thumbnail.js +63 -0
  674. package/dist/files/project/components/drive-grid-view.d.ts +72 -0
  675. package/dist/files/project/components/drive-grid-view.js +133 -0
  676. package/dist/files/project/components/drive-header.d.ts +61 -0
  677. package/dist/files/project/components/drive-header.js +75 -0
  678. package/dist/files/project/components/drive-list-view.d.ts +37 -0
  679. package/dist/files/project/components/drive-list-view.js +128 -0
  680. package/dist/files/project/components/drive-rename-dialog.d.ts +19 -0
  681. package/dist/files/project/components/drive-rename-dialog.js +57 -0
  682. package/dist/files/project/components/drive-selection-bar.d.ts +22 -0
  683. package/dist/files/project/components/drive-selection-bar.js +30 -0
  684. package/dist/files/project/components/drive-selection-ui.d.ts +18 -0
  685. package/dist/files/project/components/drive-selection-ui.js +17 -0
  686. package/dist/files/project/components/drive-selection.d.ts +68 -0
  687. package/dist/files/project/components/drive-selection.js +73 -0
  688. package/dist/files/project/components/drive-toolbar.d.ts +121 -0
  689. package/dist/files/project/components/drive-toolbar.js +185 -0
  690. package/dist/files/project/components/drive-upload-tray.d.ts +9 -0
  691. package/dist/files/project/components/drive-upload-tray.js +74 -0
  692. package/dist/files/project/components/file-breadcrumbs.d.ts +23 -0
  693. package/dist/files/project/components/file-breadcrumbs.js +147 -0
  694. package/dist/files/project/components/file-content-renderer.d.ts +5 -0
  695. package/dist/files/project/components/file-content-renderer.js +11 -0
  696. package/dist/files/project/components/file-explorer-page.d.ts +11 -0
  697. package/dist/files/project/components/file-explorer-page.js +367 -0
  698. package/dist/files/project/components/file-history-popover.d.ts +6 -0
  699. package/dist/files/project/components/file-history-popover.js +103 -0
  700. package/dist/files/project/components/file-icon.d.ts +16 -0
  701. package/dist/files/project/components/file-icon.js +203 -0
  702. package/dist/files/project/components/file-preview-modal.d.ts +14 -0
  703. package/dist/files/project/components/file-preview-modal.js +46 -0
  704. package/dist/files/project/components/file-route-state.d.ts +2 -0
  705. package/dist/files/project/components/file-route-state.js +3 -0
  706. package/dist/files/project/components/file-search.d.ts +1 -0
  707. package/dist/files/project/components/file-search.js +135 -0
  708. package/dist/files/project/components/file-thumbnail.d.ts +28 -0
  709. package/dist/files/project/components/file-thumbnail.js +81 -0
  710. package/dist/files/project/components/index.d.ts +18 -0
  711. package/dist/files/project/components/index.js +17 -0
  712. package/dist/files/project/components/load-more-row.d.ts +18 -0
  713. package/dist/files/project/components/load-more-row.js +35 -0
  714. package/dist/files/project/components/open-change-request-dialog.d.ts +12 -0
  715. package/dist/files/project/components/open-change-request-dialog.js +129 -0
  716. package/dist/files/project/components/own-clicks.d.ts +12 -0
  717. package/dist/files/project/components/own-clicks.js +20 -0
  718. package/dist/files/project/components/review-panel.d.ts +73 -0
  719. package/dist/files/project/components/review-panel.js +72 -0
  720. package/dist/files/project/components/use-drive-row-interactions.d.ts +27 -0
  721. package/dist/files/project/components/use-drive-row-interactions.js +121 -0
  722. package/dist/files/project/components/version-selector.d.ts +1 -0
  723. package/dist/files/project/components/version-selector.js +66 -0
  724. package/dist/files/project/context.d.ts +32 -0
  725. package/dist/files/project/context.js +38 -0
  726. package/dist/files/project/drop-tree.d.ts +34 -0
  727. package/dist/files/project/drop-tree.js +63 -0
  728. package/dist/files/project/explorer-source.d.ts +163 -0
  729. package/dist/files/project/explorer-source.js +14 -0
  730. package/dist/files/project/file-source.d.ts +11 -0
  731. package/dist/files/project/file-source.js +30 -0
  732. package/dist/files/project/git-ref-explorer-source.d.ts +6 -0
  733. package/dist/files/project/git-ref-explorer-source.js +50 -0
  734. package/dist/files/project/hooks/index.d.ts +14 -0
  735. package/dist/files/project/hooks/index.js +24 -0
  736. package/dist/files/project/hooks/use-binary-blob.d.ts +26 -0
  737. package/dist/files/project/hooks/use-binary-blob.js +72 -0
  738. package/dist/files/project/hooks/use-branches.d.ts +14 -0
  739. package/dist/files/project/hooks/use-branches.js +23 -0
  740. package/dist/files/project/hooks/use-change-request-recovery.d.ts +5 -0
  741. package/dist/files/project/hooks/use-change-request-recovery.js +53 -0
  742. package/dist/files/project/hooks/use-change-requests.d.ts +153 -0
  743. package/dist/files/project/hooks/use-change-requests.js +317 -0
  744. package/dist/files/project/hooks/use-commits.d.ts +30 -0
  745. package/dist/files/project/hooks/use-commits.js +57 -0
  746. package/dist/files/project/hooks/use-directory-download.d.ts +10 -0
  747. package/dist/files/project/hooks/use-directory-download.js +46 -0
  748. package/dist/files/project/hooks/use-file-content.d.ts +13 -0
  749. package/dist/files/project/hooks/use-file-content.js +52 -0
  750. package/dist/files/project/hooks/use-file-history.d.ts +31 -0
  751. package/dist/files/project/hooks/use-file-history.js +55 -0
  752. package/dist/files/project/hooks/use-file-list.d.ts +39 -0
  753. package/dist/files/project/hooks/use-file-list.js +83 -0
  754. package/dist/files/project/hooks/use-file-mutations.d.ts +22 -0
  755. package/dist/files/project/hooks/use-file-mutations.js +46 -0
  756. package/dist/files/project/hooks/use-file-search.d.ts +23 -0
  757. package/dist/files/project/hooks/use-file-search.js +54 -0
  758. package/dist/files/project/hooks/use-git-status.d.ts +21 -0
  759. package/dist/files/project/hooks/use-git-status.js +36 -0
  760. package/dist/files/project/hooks/use-server-health.d.ts +27 -0
  761. package/dist/files/project/hooks/use-server-health.js +36 -0
  762. package/dist/files/project/index.d.ts +20 -0
  763. package/dist/files/project/index.js +32 -0
  764. package/dist/files/project/search/workspace-search-service.d.ts +18 -0
  765. package/dist/files/project/search/workspace-search-service.js +19 -0
  766. package/dist/files/project/store/upload-store.d.ts +25 -0
  767. package/dist/files/project/store/upload-store.js +16 -0
  768. package/dist/files/project/store/version-store.d.ts +19 -0
  769. package/dist/files/project/store/version-store.js +25 -0
  770. package/dist/files/project/upload-batch.d.ts +92 -0
  771. package/dist/files/project/upload-batch.js +105 -0
  772. package/dist/files/renderers/csv/csv-copy.d.ts +8 -0
  773. package/dist/files/renderers/csv/csv-copy.js +36 -0
  774. package/dist/files/renderers/csv/csv-renderer.d.ts +15 -0
  775. package/dist/files/renderers/csv/csv-renderer.js +18 -0
  776. package/dist/files/renderers/csv/csv-viewer.d.ts +18 -0
  777. package/dist/files/renderers/csv/csv-viewer.js +342 -0
  778. package/dist/files/renderers/docx/docx-annotation-card.d.ts +4 -0
  779. package/dist/files/renderers/docx/docx-annotation-card.js +62 -0
  780. package/dist/files/renderers/docx/docx-renderer.d.ts +38 -0
  781. package/dist/files/renderers/docx/docx-renderer.js +49 -0
  782. package/dist/files/renderers/docx/docx-viewer.d.ts +13 -0
  783. package/dist/files/renderers/docx/docx-viewer.js +624 -0
  784. package/dist/files/renderers/image-renderer.d.ts +29 -0
  785. package/dist/files/renderers/image-renderer.js +285 -0
  786. package/dist/files/renderers/mermaid/mermaid-diagram.d.ts +10 -0
  787. package/dist/files/renderers/mermaid/mermaid-diagram.js +159 -0
  788. package/dist/files/renderers/mermaid/mermaid-utils.d.ts +44 -0
  789. package/dist/files/renderers/mermaid/mermaid-utils.js +119 -0
  790. package/dist/files/renderers/pdf/pdf-engine-loader.d.ts +2 -0
  791. package/dist/files/renderers/pdf/pdf-engine-loader.js +15 -0
  792. package/dist/files/renderers/pdf/pdf-renderer.d.ts +23 -0
  793. package/dist/files/renderers/pdf/pdf-renderer.js +54 -0
  794. package/dist/files/renderers/pdf/pdf-viewer.d.ts +86 -0
  795. package/dist/files/renderers/pdf/pdf-viewer.js +1361 -0
  796. package/dist/files/renderers/pptx-i18n.d.ts +2 -0
  797. package/dist/files/renderers/pptx-i18n.js +33 -0
  798. package/dist/files/renderers/pptx-renderer.d.ts +26 -0
  799. package/dist/files/renderers/pptx-renderer.js +153 -0
  800. package/dist/files/renderers/pptx-viewer.css +147 -0
  801. package/dist/files/renderers/presentation/FullScreenPresentationViewer.d.ts +10 -0
  802. package/dist/files/renderers/presentation/FullScreenPresentationViewer.js +337 -0
  803. package/dist/files/renderers/presentation/presentation-utils.d.ts +20 -0
  804. package/dist/files/renderers/presentation/presentation-utils.js +53 -0
  805. package/dist/files/renderers/presentation/presentation-viewer-store.d.ts +27 -0
  806. package/dist/files/renderers/presentation/presentation-viewer-store.js +37 -0
  807. package/dist/files/renderers/shared/document-viewer-sidebar.d.ts +15 -0
  808. package/dist/files/renderers/shared/document-viewer-sidebar.js +61 -0
  809. package/dist/files/renderers/shared/file-thumbnail.d.ts +17 -0
  810. package/dist/files/renderers/shared/file-thumbnail.js +71 -0
  811. package/dist/files/renderers/shared/scroll-area-compat.d.ts +45 -0
  812. package/dist/files/renderers/shared/scroll-area-compat.js +41 -0
  813. package/dist/files/renderers/shared/select-compat.d.ts +11 -0
  814. package/dist/files/renderers/shared/select-compat.js +19 -0
  815. package/dist/files/renderers/shared/spinner.d.ts +3 -0
  816. package/dist/files/renderers/shared/spinner.js +7 -0
  817. package/dist/files/renderers/shared/use-viewer-search.d.ts +13 -0
  818. package/dist/files/renderers/shared/use-viewer-search.js +86 -0
  819. package/dist/files/renderers/shared/viewer-copy-menu.d.ts +9 -0
  820. package/dist/files/renderers/shared/viewer-copy-menu.js +16 -0
  821. package/dist/files/renderers/shared/viewer-download-button.d.ts +10 -0
  822. package/dist/files/renderers/shared/viewer-download-button.js +27 -0
  823. package/dist/files/renderers/shared/viewer-file-name.d.ts +11 -0
  824. package/dist/files/renderers/shared/viewer-file-name.js +16 -0
  825. package/dist/files/renderers/shared/viewer-frame.d.ts +6 -0
  826. package/dist/files/renderers/shared/viewer-frame.js +26 -0
  827. package/dist/files/renderers/show-content-renderer.d.ts +116 -0
  828. package/dist/files/renderers/show-content-renderer.js +707 -0
  829. package/dist/files/renderers/show-type-utils.d.ts +45 -0
  830. package/dist/files/renderers/show-type-utils.js +85 -0
  831. package/dist/files/renderers/sqlite-renderer.d.ts +14 -0
  832. package/dist/files/renderers/sqlite-renderer.js +727 -0
  833. package/dist/files/renderers/video-renderer.d.ts +14 -0
  834. package/dist/files/renderers/video-renderer.js +181 -0
  835. package/dist/files/renderers/xlsx/xlsx-renderer.d.ts +25 -0
  836. package/dist/files/renderers/xlsx/xlsx-renderer.js +72 -0
  837. package/dist/files/renderers/xlsx/xlsx-viewer.d.ts +39 -0
  838. package/dist/files/renderers/xlsx/xlsx-viewer.js +722 -0
  839. package/dist/files/renderers/zip/zip-entries.d.ts +154 -0
  840. package/dist/files/renderers/zip/zip-entries.js +271 -0
  841. package/dist/files/renderers/zip/zip-renderer.d.ts +20 -0
  842. package/dist/files/renderers/zip/zip-renderer.js +317 -0
  843. package/dist/files/runtime/components/file-content-renderer.d.ts +5 -0
  844. package/dist/files/runtime/components/file-content-renderer.js +10 -0
  845. package/dist/files/runtime/file-source.d.ts +6 -0
  846. package/dist/files/runtime/file-source.js +22 -0
  847. package/dist/files/runtime/hooks/blob-identity.d.ts +12 -0
  848. package/dist/files/runtime/hooks/blob-identity.js +23 -0
  849. package/dist/files/runtime/hooks/index.d.ts +12 -0
  850. package/dist/files/runtime/hooks/index.js +21 -0
  851. package/dist/files/runtime/hooks/server-health-state.d.ts +18 -0
  852. package/dist/files/runtime/hooks/server-health-state.js +20 -0
  853. package/dist/files/runtime/hooks/system-dir.d.ts +1 -0
  854. package/dist/files/runtime/hooks/system-dir.js +16 -0
  855. package/dist/files/runtime/hooks/use-binary-blob.d.ts +29 -0
  856. package/dist/files/runtime/hooks/use-binary-blob.js +102 -0
  857. package/dist/files/runtime/hooks/use-directory-download.d.ts +16 -0
  858. package/dist/files/runtime/hooks/use-directory-download.js +59 -0
  859. package/dist/files/runtime/hooks/use-file-content.d.ts +17 -0
  860. package/dist/files/runtime/hooks/use-file-content.js +53 -0
  861. package/dist/files/runtime/hooks/use-file-history.d.ts +35 -0
  862. package/dist/files/runtime/hooks/use-file-history.js +75 -0
  863. package/dist/files/runtime/hooks/use-file-list.d.ts +172 -0
  864. package/dist/files/runtime/hooks/use-file-list.js +67 -0
  865. package/dist/files/runtime/hooks/use-file-mutations.d.ts +22 -0
  866. package/dist/files/runtime/hooks/use-file-mutations.js +122 -0
  867. package/dist/files/runtime/hooks/use-file-refresh.d.ts +16 -0
  868. package/dist/files/runtime/hooks/use-file-refresh.js +32 -0
  869. package/dist/files/runtime/hooks/use-file-search.d.ts +14 -0
  870. package/dist/files/runtime/hooks/use-file-search.js +26 -0
  871. package/dist/files/runtime/hooks/use-git-status.d.ts +16 -0
  872. package/dist/files/runtime/hooks/use-git-status.js +61 -0
  873. package/dist/files/runtime/hooks/use-server-health.d.ts +33 -0
  874. package/dist/files/runtime/hooks/use-server-health.js +49 -0
  875. package/dist/files/runtime/hooks/use-workspace-search.d.ts +54 -0
  876. package/dist/files/runtime/hooks/use-workspace-search.js +91 -0
  877. package/dist/files/runtime/index.d.ts +15 -0
  878. package/dist/files/runtime/index.js +25 -0
  879. package/dist/files/runtime/path-utils.d.ts +15 -0
  880. package/dist/files/runtime/path-utils.js +20 -0
  881. package/dist/files/runtime/sandbox-explorer-source.d.ts +7 -0
  882. package/dist/files/runtime/sandbox-explorer-source.js +74 -0
  883. package/dist/files/runtime/sandbox-file-explorer.d.ts +30 -0
  884. package/dist/files/runtime/sandbox-file-explorer.js +77 -0
  885. package/dist/files/runtime/search/workspace-search-service.d.ts +3 -0
  886. package/dist/files/runtime/search/workspace-search-service.js +7 -0
  887. package/dist/files/tree/components/file-tree-item.d.ts +31 -0
  888. package/dist/files/tree/components/file-tree-item.js +176 -0
  889. package/dist/files/tree/hooks/use-file-events.d.ts +11 -0
  890. package/dist/files/tree/hooks/use-file-events.js +14 -0
  891. package/dist/files/viewer/file-content-renderer.d.ts +48 -0
  892. package/dist/files/viewer/file-content-renderer.js +128 -0
  893. package/dist/files/viewer/file-header.d.ts +37 -0
  894. package/dist/files/viewer/file-header.js +21 -0
  895. package/dist/files/viewer/file-preview-modal.d.ts +63 -0
  896. package/dist/files/viewer/file-preview-modal.js +320 -0
  897. package/dist/files/viewer/file-source.d.ts +116 -0
  898. package/dist/files/viewer/file-source.js +14 -0
  899. package/dist/files/viewer/file-viewer.d.ts +36 -0
  900. package/dist/files/viewer/file-viewer.js +196 -0
  901. package/dist/files/viewer/html-preview.d.ts +32 -0
  902. package/dist/files/viewer/html-preview.js +101 -0
  903. package/dist/files/viewer/index.d.ts +20 -0
  904. package/dist/files/viewer/index.js +15 -0
  905. package/dist/files/viewer/json-tree-view.d.ts +3 -0
  906. package/dist/files/viewer/json-tree-view.js +49 -0
  907. package/dist/files/viewer/markdown-pdf.d.ts +38 -0
  908. package/dist/files/viewer/markdown-pdf.js +111 -0
  909. package/dist/files/viewer/preview-fit.d.ts +50 -0
  910. package/dist/files/viewer/preview-fit.js +51 -0
  911. package/dist/files/viewer/preview-policy.d.ts +46 -0
  912. package/dist/files/viewer/preview-policy.js +190 -0
  913. package/dist/files/viewer/print-document.d.ts +29 -0
  914. package/dist/files/viewer/print-document.js +88 -0
  915. package/dist/files/viewer/save-as-pdf-button.d.ts +22 -0
  916. package/dist/files/viewer/save-as-pdf-button.js +63 -0
  917. package/dist/files/viewer/use-content-revision.d.ts +18 -0
  918. package/dist/files/viewer/use-content-revision.js +29 -0
  919. package/dist/files/viewer/use-file-content-state.d.ts +60 -0
  920. package/dist/files/viewer/use-file-content-state.js +352 -0
  921. package/dist/files/viewer/viewer-actions.d.ts +99 -0
  922. package/dist/files/viewer/viewer-actions.js +262 -0
  923. package/dist/files/viewer/viewer-chrome.d.ts +27 -0
  924. package/dist/files/viewer/viewer-chrome.js +61 -0
  925. package/dist/hooks/use-is-dark.d.ts +6 -0
  926. package/dist/hooks/use-is-dark.js +11 -16
  927. package/dist/i18n/en.d.ts +6912 -0
  928. package/dist/i18n/en.js +6913 -0
  929. package/dist/i18n/index.d.ts +18 -0
  930. package/dist/i18n/index.js +33 -0
  931. package/dist/i18n/ui-catalog/account-hub-translation-keys.generated.d.ts +1 -0
  932. package/dist/i18n/ui-catalog/account-hub-translation-keys.generated.js +30 -0
  933. package/dist/i18n/ui-catalog/app-registry-translation-keys.generated.d.ts +1 -0
  934. package/dist/i18n/ui-catalog/app-registry-translation-keys.generated.js +109 -0
  935. package/dist/i18n/ui-catalog/localize-ui-catalog.d.ts +4 -0
  936. package/dist/i18n/ui-catalog/localize-ui-catalog.js +49 -0
  937. package/dist/i18n/ui-catalog/product-catalog-translation-keys.generated.d.ts +1 -0
  938. package/dist/i18n/ui-catalog/product-catalog-translation-keys.generated.js +149 -0
  939. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.d.ts +1 -0
  940. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +902 -0
  941. package/dist/i18n/ui-catalog/review-meta-translation-keys.generated.d.ts +1 -0
  942. package/dist/i18n/ui-catalog/review-meta-translation-keys.generated.js +21 -0
  943. package/dist/i18n/ui-catalog/review-mock-translation-keys.generated.d.ts +1 -0
  944. package/dist/i18n/ui-catalog/review-mock-translation-keys.generated.js +43 -0
  945. package/dist/i18n/ui-catalog/use-localized-ui-catalog.d.ts +1 -0
  946. package/dist/i18n/ui-catalog/use-localized-ui-catalog.js +9 -0
  947. package/dist/icons/index.d.ts +6 -0
  948. package/dist/icons/index.js +6 -0
  949. package/dist/icons/sidebar-toggle.d.ts +2 -2
  950. package/dist/icons/sidebar-toggle.js +1 -1
  951. package/dist/index.d.ts +36 -22
  952. package/dist/index.js +37 -23
  953. package/dist/internal/account-hub/account-hub-entry.d.ts +5 -0
  954. package/dist/internal/account-hub/account-hub-entry.js +22 -0
  955. package/dist/internal/account-hub/account-hub-location.d.ts +54 -0
  956. package/dist/internal/account-hub/account-hub-location.js +113 -0
  957. package/dist/internal/account-hub/account-settings-shell.d.ts +7 -0
  958. package/dist/internal/account-hub/account-settings-shell.js +87 -0
  959. package/dist/internal/account-hub/account-settings-sidebar.d.ts +2 -0
  960. package/dist/internal/account-hub/account-settings-sidebar.js +169 -0
  961. package/dist/internal/account-hub/hub-sheet.d.ts +39 -0
  962. package/dist/internal/account-hub/hub-sheet.js +46 -0
  963. package/dist/internal/account-hub/sections.d.ts +95 -0
  964. package/dist/internal/account-hub/sections.js +232 -0
  965. package/dist/internal/account-hub/use-account-detail.d.ts +2 -0
  966. package/dist/internal/account-hub/use-account-detail.js +20 -0
  967. package/dist/internal/account-hub/use-account-hub-access.d.ts +56 -0
  968. package/dist/internal/account-hub/use-account-hub-access.js +156 -0
  969. package/dist/internal/account-hub/use-account-members.d.ts +2 -0
  970. package/dist/internal/account-hub/use-account-members.js +24 -0
  971. package/dist/internal/auth/auth-card-shell.d.ts +36 -0
  972. package/dist/internal/auth/auth-card-shell.js +66 -0
  973. package/dist/internal/auth/auth-consent.d.ts +71 -0
  974. package/dist/internal/auth/auth-consent.js +75 -0
  975. package/dist/internal/auth/auth-primitives.d.ts +67 -0
  976. package/dist/internal/auth/auth-primitives.js +94 -0
  977. package/dist/internal/auth/code-input-logic.d.ts +23 -0
  978. package/dist/internal/auth/code-input-logic.js +33 -0
  979. package/dist/internal/auth/mfa-pending-action.d.ts +8 -0
  980. package/dist/internal/auth/mfa-pending-action.js +24 -0
  981. package/dist/internal/billing/account-state-gating.d.ts +23 -0
  982. package/dist/internal/billing/account-state-gating.js +21 -0
  983. package/dist/internal/billing/compute-pricing.d.ts +88 -0
  984. package/dist/internal/billing/compute-pricing.js +119 -0
  985. package/dist/internal/billing/index.d.ts +20 -0
  986. package/dist/internal/billing/index.js +36 -0
  987. package/dist/internal/billing/session-cost-format.d.ts +4 -0
  988. package/dist/internal/billing/session-cost-format.js +37 -0
  989. package/dist/internal/billing/use-account-state.d.ts +64 -0
  990. package/dist/internal/billing/use-account-state.js +231 -0
  991. package/dist/internal/billing/use-cost-explorer.d.ts +73 -0
  992. package/dist/internal/billing/use-cost-explorer.js +90 -0
  993. package/dist/internal/billing/use-download-restriction.d.ts +33 -0
  994. package/dist/internal/billing/use-download-restriction.js +60 -0
  995. package/dist/internal/billing/use-session-costs.d.ts +75 -0
  996. package/dist/internal/billing/use-session-costs.js +105 -0
  997. package/dist/internal/billing/use-transactions.d.ts +5 -0
  998. package/dist/internal/billing/use-transactions.js +34 -0
  999. package/dist/internal/branding/branding-provider.d.ts +39 -0
  1000. package/dist/internal/branding/branding-provider.js +203 -0
  1001. package/dist/internal/capture/use-capture-area.d.ts +51 -0
  1002. package/dist/internal/capture/use-capture-area.js +96 -0
  1003. package/dist/internal/components/clickable-path.d.ts +64 -0
  1004. package/dist/internal/components/clickable-path.js +170 -0
  1005. package/dist/internal/components/hover-prefetch-link.d.ts +32 -0
  1006. package/dist/internal/components/hover-prefetch-link.js +39 -0
  1007. package/dist/internal/components/mobile-store-qr.d.ts +18 -0
  1008. package/dist/internal/components/mobile-store-qr.js +40 -0
  1009. package/dist/internal/components/repository-disconnected.d.ts +46 -0
  1010. package/dist/internal/components/repository-disconnected.js +80 -0
  1011. package/dist/internal/desktop/desktop-back-button.d.ts +93 -0
  1012. package/dist/internal/desktop/desktop-back-button.js +128 -0
  1013. package/dist/internal/desktop/titlebar-control.d.ts +16 -0
  1014. package/dist/internal/desktop/titlebar-control.js +15 -0
  1015. package/dist/internal/files/file-availability.d.ts +34 -0
  1016. package/dist/internal/files/file-availability.js +81 -0
  1017. package/dist/internal/files/file-read-retry.d.ts +28 -0
  1018. package/dist/internal/files/file-read-retry.js +109 -0
  1019. package/dist/internal/files/git-history.d.ts +35 -0
  1020. package/dist/internal/files/git-history.js +221 -0
  1021. package/dist/internal/files/runtime-file-read.d.ts +5 -0
  1022. package/dist/internal/files/runtime-file-read.js +29 -0
  1023. package/dist/internal/files/runtime-files.d.ts +52 -0
  1024. package/dist/internal/files/runtime-files.js +193 -0
  1025. package/dist/internal/files/session-drive-files.d.ts +63 -0
  1026. package/dist/internal/files/session-drive-files.js +109 -0
  1027. package/dist/internal/files/types.d.ts +137 -0
  1028. package/dist/internal/files/types.js +5 -0
  1029. package/dist/internal/files/use-oc-file-open.d.ts +25 -0
  1030. package/dist/internal/files/use-oc-file-open.js +234 -0
  1031. package/dist/internal/hooks/account/use-accounts-list.d.ts +105 -0
  1032. package/dist/internal/hooks/account/use-accounts-list.js +103 -0
  1033. package/dist/internal/hooks/account/use-my-invites.d.ts +15 -0
  1034. package/dist/internal/hooks/account/use-my-invites.js +22 -0
  1035. package/dist/internal/hooks/admin/use-admin-role.d.ts +6 -0
  1036. package/dist/internal/hooks/admin/use-admin-role.js +6 -0
  1037. package/dist/internal/hooks/channels/use-channels-installations.d.ts +49 -0
  1038. package/dist/internal/hooks/channels/use-channels-installations.js +151 -0
  1039. package/dist/internal/hooks/connectors/use-add-account.d.ts +38 -0
  1040. package/dist/internal/hooks/connectors/use-add-account.js +138 -0
  1041. package/dist/internal/hooks/connectors/use-add-managed-account.d.ts +18 -0
  1042. package/dist/internal/hooks/connectors/use-add-managed-account.js +33 -0
  1043. package/dist/internal/hooks/connectors/use-connect-link.d.ts +20 -0
  1044. package/dist/internal/hooks/connectors/use-connect-link.js +115 -0
  1045. package/dist/internal/hooks/connectors/use-oauth2-return.d.ts +8 -0
  1046. package/dist/internal/hooks/connectors/use-oauth2-return.js +33 -0
  1047. package/dist/internal/hooks/connectors/use-pipedream-connect-member.d.ts +10 -0
  1048. package/dist/internal/hooks/connectors/use-pipedream-connect-member.js +38 -0
  1049. package/dist/internal/hooks/connectors/use-pipedream-connect-project.d.ts +67 -0
  1050. package/dist/internal/hooks/connectors/use-pipedream-connect-project.js +112 -0
  1051. package/dist/internal/hooks/connectors/use-tool-connect.d.ts +45 -0
  1052. package/dist/internal/hooks/connectors/use-tool-connect.js +50 -0
  1053. package/dist/internal/hooks/index.d.ts +7 -0
  1054. package/dist/internal/hooks/index.js +6 -0
  1055. package/dist/internal/hooks/projects/new-session-failure.d.ts +26 -0
  1056. package/dist/internal/hooks/projects/new-session-failure.js +72 -0
  1057. package/dist/internal/hooks/projects/new-session-guard.d.ts +48 -0
  1058. package/dist/internal/hooks/projects/new-session-guard.js +63 -0
  1059. package/dist/internal/hooks/projects/project-rename-cache.d.ts +42 -0
  1060. package/dist/internal/hooks/projects/project-rename-cache.js +51 -0
  1061. package/dist/internal/hooks/projects/session-reload-progress.d.ts +10 -0
  1062. package/dist/internal/hooks/projects/session-reload-progress.js +28 -0
  1063. package/dist/internal/hooks/projects/use-agent-config.d.ts +49 -0
  1064. package/dist/internal/hooks/projects/use-agent-config.js +73 -0
  1065. package/dist/internal/hooks/projects/use-new-project-session.d.ts +65 -0
  1066. package/dist/internal/hooks/projects/use-new-project-session.js +296 -0
  1067. package/dist/internal/hooks/projects/use-project-can-run.d.ts +8 -0
  1068. package/dist/internal/hooks/projects/use-project-can-run.js +46 -0
  1069. package/dist/internal/hooks/projects/use-restart-project-session.d.ts +49 -0
  1070. package/dist/internal/hooks/projects/use-restart-project-session.js +90 -0
  1071. package/dist/internal/hooks/projects/use-session-config-freshness.d.ts +106 -0
  1072. package/dist/internal/hooks/projects/use-session-config-freshness.js +291 -0
  1073. package/dist/internal/hooks/projects/use-warm-project-session.d.ts +270 -0
  1074. package/dist/internal/hooks/projects/use-warm-project-session.js +362 -0
  1075. package/dist/internal/hooks/projects/warm-session-seed.d.ts +66 -0
  1076. package/dist/internal/hooks/projects/warm-session-seed.js +80 -0
  1077. package/dist/internal/hooks/projects/warm-session-taken-registry.d.ts +61 -0
  1078. package/dist/internal/hooks/projects/warm-session-taken-registry.js +141 -0
  1079. package/dist/internal/hooks/use-auto-scroll-physics.d.ts +129 -0
  1080. package/dist/internal/hooks/use-auto-scroll-physics.js +191 -0
  1081. package/dist/internal/hooks/use-auto-scroll.d.ts +30 -0
  1082. package/dist/internal/hooks/use-auto-scroll.js +469 -0
  1083. package/dist/internal/hooks/use-bounded-runtime-wait.d.ts +4 -0
  1084. package/dist/internal/hooks/use-bounded-runtime-wait.js +20 -0
  1085. package/dist/internal/hooks/use-channel-bindings.d.ts +8 -0
  1086. package/dist/internal/hooks/use-channel-bindings.js +27 -0
  1087. package/dist/internal/hooks/use-copy.d.ts +11 -0
  1088. package/dist/internal/hooks/use-copy.js +38 -0
  1089. package/dist/internal/hooks/use-debounced-value.d.ts +2 -0
  1090. package/dist/internal/hooks/use-debounced-value.js +9 -0
  1091. package/dist/internal/hooks/use-heic-url.d.ts +9 -0
  1092. package/dist/internal/hooks/use-heic-url.js +49 -0
  1093. package/dist/internal/hooks/use-media-query.d.ts +2 -0
  1094. package/dist/internal/hooks/use-media-query.js +15 -0
  1095. package/dist/internal/hooks/use-notification-center.d.ts +43 -0
  1096. package/dist/internal/hooks/use-notification-center.js +117 -0
  1097. package/dist/internal/hooks/use-open-preview-link.d.ts +30 -0
  1098. package/dist/internal/hooks/use-open-preview-link.js +42 -0
  1099. package/dist/internal/hooks/use-opened-once.d.ts +9 -0
  1100. package/dist/internal/hooks/use-opened-once.js +15 -0
  1101. package/dist/internal/hooks/use-preview-frame-url.d.ts +13 -0
  1102. package/dist/internal/hooks/use-preview-frame-url.js +24 -0
  1103. package/dist/internal/hooks/use-review-session-summary.d.ts +59 -0
  1104. package/dist/internal/hooks/use-review-session-summary.js +95 -0
  1105. package/dist/internal/hooks/use-sandbox-proxy.d.ts +31 -0
  1106. package/dist/internal/hooks/use-sandbox-proxy.js +40 -0
  1107. package/dist/internal/hooks/use-slash-focus.d.ts +15 -0
  1108. package/dist/internal/hooks/use-slash-focus.js +44 -0
  1109. package/dist/internal/hooks/use-stable-callback.d.ts +15 -0
  1110. package/dist/internal/hooks/use-stable-callback.js +22 -0
  1111. package/dist/internal/icons/claude-code.d.ts +5 -0
  1112. package/dist/internal/icons/claude-code.js +7 -0
  1113. package/dist/internal/icons/claude.d.ts +4 -0
  1114. package/dist/internal/icons/claude.js +8 -0
  1115. package/dist/internal/icons/codex.d.ts +5 -0
  1116. package/dist/internal/icons/codex.js +14 -0
  1117. package/dist/internal/icons/cursor.d.ts +5 -0
  1118. package/dist/internal/icons/cursor.js +11 -0
  1119. package/dist/internal/icons/customize.d.ts +5 -0
  1120. package/dist/internal/icons/customize.js +6 -0
  1121. package/dist/internal/icons/download.d.ts +2 -0
  1122. package/dist/internal/icons/download.js +6 -0
  1123. package/dist/internal/icons/email.d.ts +5 -0
  1124. package/dist/internal/icons/email.js +7 -0
  1125. package/dist/internal/icons/github.d.ts +4 -0
  1126. package/dist/internal/icons/github.js +8 -0
  1127. package/dist/internal/icons/home.d.ts +5 -0
  1128. package/dist/internal/icons/home.js +7 -0
  1129. package/dist/internal/icons/kortix.d.ts +14 -0
  1130. package/dist/internal/icons/kortix.js +25 -0
  1131. package/dist/internal/icons/mcp.d.ts +9 -0
  1132. package/dist/internal/icons/mcp.js +9 -0
  1133. package/dist/internal/icons/microsoft-teams.d.ts +4 -0
  1134. package/dist/internal/icons/microsoft-teams.js +11 -0
  1135. package/dist/internal/icons/open-ai.d.ts +4 -0
  1136. package/dist/internal/icons/open-ai.js +8 -0
  1137. package/dist/internal/icons/plus.d.ts +4 -0
  1138. package/dist/internal/icons/plus.js +6 -0
  1139. package/dist/internal/icons/schedule.d.ts +5 -0
  1140. package/dist/internal/icons/schedule.js +7 -0
  1141. package/dist/internal/icons/slack.d.ts +4 -0
  1142. package/dist/internal/icons/slack.js +6 -0
  1143. package/dist/internal/icons/solid-check-icon.d.ts +2 -0
  1144. package/dist/internal/icons/solid-check-icon.js +6 -0
  1145. package/dist/internal/icons/telegram.d.ts +4 -0
  1146. package/dist/internal/icons/telegram.js +6 -0
  1147. package/dist/internal/layout/connect-mcp-modal.d.ts +35 -0
  1148. package/dist/internal/layout/connect-mcp-modal.js +78 -0
  1149. package/dist/internal/layout/files-nav-label.d.ts +14 -0
  1150. package/dist/internal/layout/files-nav-label.js +10 -0
  1151. package/dist/internal/layout/open-command-palette.d.ts +22 -0
  1152. package/dist/internal/layout/open-command-palette.js +34 -0
  1153. package/dist/internal/layout/project-nav-row.d.ts +9 -0
  1154. package/dist/internal/layout/project-nav-row.js +15 -0
  1155. package/dist/internal/layout/project-page-header.d.ts +16 -0
  1156. package/dist/internal/layout/project-page-header.js +19 -0
  1157. package/dist/internal/layout/project-settings-nav.d.ts +125 -0
  1158. package/dist/internal/layout/project-settings-nav.js +206 -0
  1159. package/dist/internal/layout/settings-nav-context.d.ts +74 -0
  1160. package/dist/internal/layout/settings-nav-context.js +58 -0
  1161. package/dist/internal/layout/sidebar-opener.d.ts +74 -0
  1162. package/dist/internal/layout/sidebar-opener.js +86 -0
  1163. package/dist/internal/layout/sidebar-toggle.d.ts +44 -0
  1164. package/dist/internal/layout/sidebar-toggle.js +56 -0
  1165. package/dist/internal/lib/account-secret-access.d.ts +42 -0
  1166. package/dist/internal/lib/account-secret-access.js +46 -0
  1167. package/dist/internal/lib/approval-expired.d.ts +3 -0
  1168. package/dist/internal/lib/approval-expired.js +4 -0
  1169. package/dist/internal/lib/attachment-mime.d.ts +30 -0
  1170. package/dist/internal/lib/attachment-mime.js +123 -0
  1171. package/dist/internal/lib/billing/billing-gate-state.d.ts +126 -0
  1172. package/dist/internal/lib/billing/billing-gate-state.js +217 -0
  1173. package/dist/internal/lib/browser-error-noise.d.ts +23 -0
  1174. package/dist/internal/lib/browser-error-noise.js +68 -0
  1175. package/dist/internal/lib/browser-noise/evidence.d.ts +73 -0
  1176. package/dist/internal/lib/browser-noise/evidence.js +101 -0
  1177. package/dist/internal/lib/browser-noise/rules/chunk-load.d.ts +37 -0
  1178. package/dist/internal/lib/browser-noise/rules/chunk-load.js +158 -0
  1179. package/dist/internal/lib/browser-noise/rules/expected-states.d.ts +85 -0
  1180. package/dist/internal/lib/browser-noise/rules/expected-states.js +390 -0
  1181. package/dist/internal/lib/browser-noise/rules/extensions.d.ts +196 -0
  1182. package/dist/internal/lib/browser-noise/rules/extensions.js +722 -0
  1183. package/dist/internal/lib/browser-noise/rules/graphics.d.ts +142 -0
  1184. package/dist/internal/lib/browser-noise/rules/graphics.js +606 -0
  1185. package/dist/internal/lib/browser-noise/rules/injected-scripts.d.ts +80 -0
  1186. package/dist/internal/lib/browser-noise/rules/injected-scripts.js +229 -0
  1187. package/dist/internal/lib/browser-noise/rules/messages.d.ts +5 -0
  1188. package/dist/internal/lib/browser-noise/rules/messages.js +81 -0
  1189. package/dist/internal/lib/browser-noise/rules/network.d.ts +117 -0
  1190. package/dist/internal/lib/browser-noise/rules/network.js +441 -0
  1191. package/dist/internal/lib/browser-noise/rules/old-browsers.d.ts +216 -0
  1192. package/dist/internal/lib/browser-noise/rules/old-browsers.js +684 -0
  1193. package/dist/internal/lib/browser-noise/rules/pdf.d.ts +60 -0
  1194. package/dist/internal/lib/browser-noise/rules/pdf.js +184 -0
  1195. package/dist/internal/lib/browser-noise/rules/react.d.ts +99 -0
  1196. package/dist/internal/lib/browser-noise/rules/react.js +504 -0
  1197. package/dist/internal/lib/browser-noise/rules/rejections.d.ts +140 -0
  1198. package/dist/internal/lib/browser-noise/rules/rejections.js +543 -0
  1199. package/dist/internal/lib/browser-noise/rules/storage.d.ts +65 -0
  1200. package/dist/internal/lib/browser-noise/rules/storage.js +190 -0
  1201. package/dist/internal/lib/browser-noise/rules/webview.d.ts +103 -0
  1202. package/dist/internal/lib/browser-noise/rules/webview.js +392 -0
  1203. package/dist/internal/lib/capability-tab-routes.d.ts +160 -0
  1204. package/dist/internal/lib/capability-tab-routes.js +176 -0
  1205. package/dist/internal/lib/chunk-load-recovery.d.ts +46 -0
  1206. package/dist/internal/lib/chunk-load-recovery.js +107 -0
  1207. package/dist/internal/lib/chunk-reload.d.ts +31 -0
  1208. package/dist/internal/lib/chunk-reload.js +59 -0
  1209. package/dist/internal/lib/code-theme.d.ts +22 -0
  1210. package/dist/internal/lib/code-theme.js +16 -0
  1211. package/dist/internal/lib/codemirror-pierre-theme.d.ts +3 -0
  1212. package/dist/internal/lib/codemirror-pierre-theme.js +138 -0
  1213. package/dist/internal/lib/delivered-but-disconnected.d.ts +4 -0
  1214. package/dist/internal/lib/delivered-but-disconnected.js +106 -0
  1215. package/dist/internal/lib/desktop-detect.d.ts +17 -0
  1216. package/dist/internal/lib/desktop-detect.js +36 -0
  1217. package/dist/internal/lib/desktop.d.ts +237 -0
  1218. package/dist/internal/lib/desktop.js +356 -0
  1219. package/dist/internal/lib/error-handler.d.ts +25 -0
  1220. package/dist/internal/lib/error-handler.js +327 -0
  1221. package/dist/internal/lib/github-installations.d.ts +47 -0
  1222. package/dist/internal/lib/github-installations.js +54 -0
  1223. package/dist/internal/lib/github-user-proof.d.ts +3 -0
  1224. package/dist/internal/lib/github-user-proof.js +38 -0
  1225. package/dist/internal/lib/interface-theme-defaults.d.ts +6 -0
  1226. package/dist/internal/lib/interface-theme-defaults.js +2 -0
  1227. package/dist/internal/lib/kortix-cli.d.ts +12 -0
  1228. package/dist/internal/lib/kortix-cli.js +31 -0
  1229. package/dist/internal/lib/llm-providers.d.ts +185 -0
  1230. package/dist/internal/lib/llm-providers.js +197 -0
  1231. package/dist/internal/lib/logger.d.ts +29 -0
  1232. package/dist/internal/lib/logger.js +36 -0
  1233. package/dist/internal/lib/manifest-version.d.ts +21 -0
  1234. package/dist/internal/lib/manifest-version.js +55 -0
  1235. package/dist/internal/lib/mermaid-utils.d.ts +22 -0
  1236. package/dist/internal/lib/mermaid-utils.js +85 -0
  1237. package/dist/internal/lib/mobile-store-urls.d.ts +9 -0
  1238. package/dist/internal/lib/mobile-store-urls.js +8 -0
  1239. package/dist/internal/lib/model-pricing.d.ts +33 -0
  1240. package/dist/internal/lib/model-pricing.js +107 -0
  1241. package/dist/internal/lib/navigation/modified-click.d.ts +15 -0
  1242. package/dist/internal/lib/navigation/modified-click.js +21 -0
  1243. package/dist/internal/lib/navigation/router-bridge.d.ts +20 -0
  1244. package/dist/internal/lib/navigation/router-bridge.js +60 -0
  1245. package/dist/internal/lib/navigation/session-href.d.ts +24 -0
  1246. package/dist/internal/lib/navigation/session-href.js +31 -0
  1247. package/dist/internal/lib/object-url-cache.d.ts +30 -0
  1248. package/dist/internal/lib/object-url-cache.js +72 -0
  1249. package/dist/internal/lib/onboarding/landing-destination.d.ts +111 -0
  1250. package/dist/internal/lib/onboarding/landing-destination.js +155 -0
  1251. package/dist/internal/lib/onboarding/last-project-cookie.d.ts +44 -0
  1252. package/dist/internal/lib/onboarding/last-project-cookie.js +77 -0
  1253. package/dist/internal/lib/onboarding/provision-errors.d.ts +29 -0
  1254. package/dist/internal/lib/onboarding/provision-errors.js +47 -0
  1255. package/dist/internal/lib/onboarding/use-app-home.d.ts +17 -0
  1256. package/dist/internal/lib/onboarding/use-app-home.js +22 -0
  1257. package/dist/internal/lib/project-actions.d.ts +75 -0
  1258. package/dist/internal/lib/project-actions.js +133 -0
  1259. package/dist/internal/lib/project-preamble.d.ts +71 -0
  1260. package/dist/internal/lib/project-preamble.js +112 -0
  1261. package/dist/internal/lib/promo-art.d.ts +9 -0
  1262. package/dist/internal/lib/promo-art.js +9 -0
  1263. package/dist/internal/lib/provider-branding.d.ts +26 -0
  1264. package/dist/internal/lib/provider-branding.js +186 -0
  1265. package/dist/internal/lib/query-client-singleton.d.ts +9 -0
  1266. package/dist/internal/lib/query-client-singleton.js +34 -0
  1267. package/dist/internal/lib/relative-time.d.ts +22 -0
  1268. package/dist/internal/lib/relative-time.js +48 -0
  1269. package/dist/internal/lib/safe-url.d.ts +2 -0
  1270. package/dist/internal/lib/safe-url.js +7 -0
  1271. package/dist/internal/lib/sandbox-providers.d.ts +11 -0
  1272. package/dist/internal/lib/sandbox-providers.js +27 -0
  1273. package/dist/internal/lib/security/iframe-sandbox.d.ts +15 -0
  1274. package/dist/internal/lib/security/iframe-sandbox.js +26 -0
  1275. package/dist/internal/lib/security/privileged-frame-origins.d.ts +10 -0
  1276. package/dist/internal/lib/security/privileged-frame-origins.js +22 -0
  1277. package/dist/internal/lib/settings-tab-id.d.ts +3 -0
  1278. package/dist/internal/lib/settings-tab-id.js +1 -0
  1279. package/dist/internal/lib/shaders-react.d.ts +2 -0
  1280. package/dist/internal/lib/shaders-react.js +1 -0
  1281. package/dist/internal/lib/site-metadata.d.ts +17 -0
  1282. package/dist/internal/lib/site-metadata.js +16 -0
  1283. package/dist/internal/lib/sounds.d.ts +37 -0
  1284. package/dist/internal/lib/sounds.js +131 -0
  1285. package/dist/internal/lib/storage/managed-storage.d.ts +2 -0
  1286. package/dist/internal/lib/storage/managed-storage.js +5 -0
  1287. package/dist/internal/lib/timeout-toast-policy.d.ts +5 -0
  1288. package/dist/internal/lib/timeout-toast-policy.js +14 -0
  1289. package/dist/internal/lib/trigger-clock.d.ts +42 -0
  1290. package/dist/internal/lib/trigger-clock.js +34 -0
  1291. package/dist/internal/lib/turn-broadcast.d.ts +47 -0
  1292. package/dist/internal/lib/turn-broadcast.js +90 -0
  1293. package/dist/internal/lib/use-deployment-cli-install-command.d.ts +7 -0
  1294. package/dist/internal/lib/use-deployment-cli-install-command.js +15 -0
  1295. package/dist/internal/lib/use-permission.d.ts +23 -0
  1296. package/dist/internal/lib/use-permission.js +79 -0
  1297. package/dist/internal/lib/use-project-can.d.ts +37 -0
  1298. package/dist/internal/lib/use-project-can.js +64 -0
  1299. package/dist/internal/lib/use-project-feature-flags.d.ts +26 -0
  1300. package/dist/internal/lib/use-project-feature-flags.js +72 -0
  1301. package/dist/internal/lib/utils/app-access-token.d.ts +10 -0
  1302. package/dist/internal/lib/utils/app-access-token.js +20 -0
  1303. package/dist/internal/lib/utils/clipboard.d.ts +7 -0
  1304. package/dist/internal/lib/utils/clipboard.js +19 -0
  1305. package/dist/internal/lib/utils/download.d.ts +2 -0
  1306. package/dist/internal/lib/utils/download.js +11 -0
  1307. package/dist/internal/lib/utils/file-utils.d.ts +44 -0
  1308. package/dist/internal/lib/utils/file-utils.js +287 -0
  1309. package/dist/internal/lib/utils/focus-without-scroll.d.ts +19 -0
  1310. package/dist/internal/lib/utils/focus-without-scroll.js +18 -0
  1311. package/dist/internal/lib/utils/heic-convert.d.ts +7 -0
  1312. package/dist/internal/lib/utils/heic-convert.js +13 -0
  1313. package/dist/internal/lib/utils/kortix-system-tags.d.ts +45 -0
  1314. package/dist/internal/lib/utils/kortix-system-tags.js +222 -0
  1315. package/dist/internal/lib/utils/kortix-tool-output.d.ts +58 -0
  1316. package/dist/internal/lib/utils/kortix-tool-output.js +148 -0
  1317. package/dist/internal/lib/utils/path-detection.d.ts +43 -0
  1318. package/dist/internal/lib/utils/path-detection.js +339 -0
  1319. package/dist/internal/lib/utils/random-uuid.d.ts +9 -0
  1320. package/dist/internal/lib/utils/random-uuid.js +16 -0
  1321. package/dist/internal/lib/utils/safe-scroll-to.d.ts +20 -0
  1322. package/dist/internal/lib/utils/safe-scroll-to.js +21 -0
  1323. package/dist/internal/lib/utils/sandbox-proxy.d.ts +8 -0
  1324. package/dist/internal/lib/utils/sandbox-proxy.js +15 -0
  1325. package/dist/internal/lib/utils/session-context.d.ts +25 -0
  1326. package/dist/internal/lib/utils/session-context.js +42 -0
  1327. package/dist/internal/lib/utils/strip-html-tags.d.ts +6 -0
  1328. package/dist/internal/lib/utils/strip-html-tags.js +13 -0
  1329. package/dist/internal/lib/utils/structured-output.d.ts +51 -0
  1330. package/dist/internal/lib/utils/structured-output.js +178 -0
  1331. package/dist/internal/lib/utils/time-budget.d.ts +37 -0
  1332. package/dist/internal/lib/utils/time-budget.js +37 -0
  1333. package/dist/internal/lib/utils.d.ts +8 -0
  1334. package/dist/internal/lib/utils.js +58 -0
  1335. package/dist/internal/lib/web-notifications.d.ts +127 -0
  1336. package/dist/internal/lib/web-notifications.js +703 -0
  1337. package/dist/internal/notifications/notification-bell.d.ts +46 -0
  1338. package/dist/internal/notifications/notification-bell.js +135 -0
  1339. package/dist/internal/notifications/notification-rows.d.ts +86 -0
  1340. package/dist/internal/notifications/notification-rows.js +128 -0
  1341. package/dist/internal/notifications/session-toast-cards.d.ts +26 -0
  1342. package/dist/internal/notifications/session-toast-cards.js +32 -0
  1343. package/dist/internal/notifications/web-push.d.ts +63 -0
  1344. package/dist/internal/notifications/web-push.js +193 -0
  1345. package/dist/internal/outcomes/outcome-card.d.ts +81 -0
  1346. package/dist/internal/outcomes/outcome-card.js +54 -0
  1347. package/dist/internal/outcomes/outcome-types.d.ts +77 -0
  1348. package/dist/internal/outcomes/outcome-types.js +15 -0
  1349. package/dist/internal/outcomes/outcome-vocabulary.d.ts +95 -0
  1350. package/dist/internal/outcomes/outcome-vocabulary.js +99 -0
  1351. package/dist/internal/project-scope.d.ts +13 -0
  1352. package/dist/internal/project-scope.js +15 -0
  1353. package/dist/internal/reminders/reminder-filter.d.ts +12 -0
  1354. package/dist/internal/reminders/reminder-filter.js +34 -0
  1355. package/dist/internal/reminders/reminder-format.d.ts +26 -0
  1356. package/dist/internal/reminders/reminder-format.js +90 -0
  1357. package/dist/internal/reminders/use-refetch-after-fire.d.ts +10 -0
  1358. package/dist/internal/reminders/use-refetch-after-fire.js +30 -0
  1359. package/dist/internal/selection/selection-bar.d.ts +31 -0
  1360. package/dist/internal/selection/selection-bar.js +45 -0
  1361. package/dist/internal/selection/selection.d.ts +9 -0
  1362. package/dist/internal/selection/selection.js +25 -0
  1363. package/dist/internal/session-types/index.d.ts +30 -0
  1364. package/dist/internal/session-types/index.js +28 -0
  1365. package/dist/internal/session-types/types.d.ts +78 -0
  1366. package/dist/internal/session-types/types.js +20 -0
  1367. package/dist/internal/share/public-share-link-button.d.ts +14 -0
  1368. package/dist/internal/share/public-share-link-button.js +17 -0
  1369. package/dist/internal/share/public-share-link-confirm.d.ts +15 -0
  1370. package/dist/internal/share/public-share-link-confirm.js +13 -0
  1371. package/dist/internal/share/session-shares-modal.d.ts +7 -0
  1372. package/dist/internal/share/session-shares-modal.js +59 -0
  1373. package/dist/internal/share/use-public-share-link.d.ts +39 -0
  1374. package/dist/internal/share/use-public-share-link.js +110 -0
  1375. package/dist/internal/share/use-session-public-shares.d.ts +60 -0
  1376. package/dist/internal/share/use-session-public-shares.js +140 -0
  1377. package/dist/internal/stores/account-panel-store.d.ts +94 -0
  1378. package/dist/internal/stores/account-panel-store.js +183 -0
  1379. package/dist/internal/stores/account-settings-modal-store.d.ts +41 -0
  1380. package/dist/internal/stores/account-settings-modal-store.js +33 -0
  1381. package/dist/internal/stores/billing-account-context.d.ts +16 -0
  1382. package/dist/internal/stores/billing-account-context.js +20 -0
  1383. package/dist/internal/stores/browser-recents-store.d.ts +36 -0
  1384. package/dist/internal/stores/browser-recents-store.js +50 -0
  1385. package/dist/internal/stores/chat-send-store.d.ts +34 -0
  1386. package/dist/internal/stores/chat-send-store.js +22 -0
  1387. package/dist/internal/stores/composer-prefill-store.d.ts +37 -0
  1388. package/dist/internal/stores/composer-prefill-store.js +27 -0
  1389. package/dist/internal/stores/connector-gate-store.d.ts +27 -0
  1390. package/dist/internal/stores/connector-gate-store.js +9 -0
  1391. package/dist/internal/stores/current-account-store.d.ts +28 -0
  1392. package/dist/internal/stores/current-account-store.js +12 -0
  1393. package/dist/internal/stores/diagnostics-store.d.ts +2 -0
  1394. package/dist/internal/stores/diagnostics-store.js +5 -0
  1395. package/dist/internal/stores/file-preview-store.d.ts +15 -0
  1396. package/dist/internal/stores/file-preview-store.js +24 -0
  1397. package/dist/internal/stores/files-store.d.ts +155 -0
  1398. package/dist/internal/stores/files-store.js +316 -0
  1399. package/dist/internal/stores/first-chat-store.d.ts +23 -0
  1400. package/dist/internal/stores/first-chat-store.js +53 -0
  1401. package/dist/internal/stores/kortix-computer-store.d.ts +230 -0
  1402. package/dist/internal/stores/kortix-computer-store.js +437 -0
  1403. package/dist/internal/stores/message-jump-store.d.ts +8 -0
  1404. package/dist/internal/stores/message-jump-store.js +6 -0
  1405. package/dist/internal/stores/mobile-app-promo-store.d.ts +19 -0
  1406. package/dist/internal/stores/mobile-app-promo-store.js +28 -0
  1407. package/dist/internal/stores/onboarding-mode-store.d.ts +34 -0
  1408. package/dist/internal/stores/onboarding-mode-store.js +20 -0
  1409. package/dist/internal/stores/panel-fallback-store.d.ts +32 -0
  1410. package/dist/internal/stores/panel-fallback-store.js +21 -0
  1411. package/dist/internal/stores/persisted-store-registry.d.ts +58 -0
  1412. package/dist/internal/stores/persisted-store-registry.js +57 -0
  1413. package/dist/internal/stores/project-switch-store.d.ts +49 -0
  1414. package/dist/internal/stores/project-switch-store.js +39 -0
  1415. package/dist/internal/stores/provider-modal-store.d.ts +10 -0
  1416. package/dist/internal/stores/provider-modal-store.js +7 -0
  1417. package/dist/internal/stores/session-browser-store.d.ts +111 -0
  1418. package/dist/internal/stores/session-browser-store.js +115 -0
  1419. package/dist/internal/stores/session-expanded-store.d.ts +21 -0
  1420. package/dist/internal/stores/session-expanded-store.js +42 -0
  1421. package/dist/internal/stores/session-filter-store.d.ts +91 -0
  1422. package/dist/internal/stores/session-filter-store.js +192 -0
  1423. package/dist/internal/stores/session-history-view-store.d.ts +23 -0
  1424. package/dist/internal/stores/session-history-view-store.js +43 -0
  1425. package/dist/internal/stores/session-hover-store.d.ts +64 -0
  1426. package/dist/internal/stores/session-hover-store.js +109 -0
  1427. package/dist/internal/stores/session-panel-memory-store.d.ts +57 -0
  1428. package/dist/internal/stores/session-panel-memory-store.js +76 -0
  1429. package/dist/internal/stores/session-switch-store.d.ts +24 -0
  1430. package/dist/internal/stores/session-switch-store.js +25 -0
  1431. package/dist/internal/stores/settings-panel-store.d.ts +38 -0
  1432. package/dist/internal/stores/settings-panel-store.js +35 -0
  1433. package/dist/internal/stores/sidebar-nav-store.d.ts +78 -0
  1434. package/dist/internal/stores/sidebar-nav-store.js +121 -0
  1435. package/dist/internal/stores/sound-store.d.ts +51 -0
  1436. package/dist/internal/stores/sound-store.js +42 -0
  1437. package/dist/internal/stores/subscription-store.d.ts +36 -0
  1438. package/dist/internal/stores/subscription-store.js +57 -0
  1439. package/dist/internal/stores/tab-store.d.ts +79 -0
  1440. package/dist/internal/stores/tab-store.js +222 -0
  1441. package/dist/internal/stores/turn-attention-store.d.ts +20 -0
  1442. package/dist/internal/stores/turn-attention-store.js +12 -0
  1443. package/dist/internal/stores/upgrade-dialog-store.d.ts +34 -0
  1444. package/dist/internal/stores/upgrade-dialog-store.js +20 -0
  1445. package/dist/internal/stores/user-preferences-store.d.ts +80 -0
  1446. package/dist/internal/stores/user-preferences-store.js +63 -0
  1447. package/dist/internal/stores/web-notification-store.d.ts +50 -0
  1448. package/dist/internal/stores/web-notification-store.js +76 -0
  1449. package/dist/internal/tunnel/computer-connect.d.ts +175 -0
  1450. package/dist/internal/tunnel/computer-connect.js +355 -0
  1451. package/dist/internal/tunnel/tunnel-connect-command.d.ts +23 -0
  1452. package/dist/internal/tunnel/tunnel-connect-command.js +23 -0
  1453. package/dist/lib/dotmatrix-core.d.ts +1 -2
  1454. package/dist/lib/dotmatrix-core.js +2 -3
  1455. package/dist/lib/host-env.d.ts +22 -0
  1456. package/dist/lib/host-env.js +9 -0
  1457. package/dist/lib/icon-config.d.ts +1 -1
  1458. package/dist/lib/lazy-client.d.ts +10 -0
  1459. package/dist/lib/lazy-client.js +20 -0
  1460. package/dist/lib/portal-container.d.ts +12 -0
  1461. package/dist/lib/portal-container.js +23 -0
  1462. package/dist/lib/routes.d.ts +52 -0
  1463. package/dist/lib/routes.js +54 -0
  1464. package/dist/lib/telemetry.d.ts +44 -0
  1465. package/dist/lib/telemetry.js +24 -0
  1466. package/dist/lib/utils.d.ts +1 -0
  1467. package/dist/lib/utils.js +8 -1
  1468. package/dist/markdown/code/children-text.d.ts +15 -0
  1469. package/dist/markdown/code/children-text.js +29 -0
  1470. package/dist/markdown/code/code-block.d.ts +33 -0
  1471. package/dist/markdown/code/code-block.js +88 -0
  1472. package/dist/markdown/code/copy-overlay.d.ts +6 -0
  1473. package/dist/markdown/code/copy-overlay.js +15 -0
  1474. package/dist/markdown/code/genui-fence.d.ts +35 -0
  1475. package/dist/markdown/code/genui-fence.js +81 -0
  1476. package/dist/markdown/code/index.d.ts +6 -0
  1477. package/dist/markdown/code/index.js +18 -0
  1478. package/dist/markdown/code/inline-chip.d.ts +42 -0
  1479. package/dist/markdown/code/inline-chip.js +108 -0
  1480. package/dist/markdown/code/inline-code.d.ts +6 -0
  1481. package/dist/markdown/code/inline-code.js +150 -0
  1482. package/dist/markdown/code/inside-link-context.d.ts +15 -0
  1483. package/dist/markdown/code/inside-link-context.js +17 -0
  1484. package/dist/markdown/code/markdown-code.d.ts +41 -0
  1485. package/dist/markdown/code/markdown-code.js +92 -0
  1486. package/dist/markdown/code/shiki-highlighter.d.ts +45 -0
  1487. package/dist/markdown/code/shiki-highlighter.js +261 -0
  1488. package/dist/markdown/copy-button.d.ts +8 -0
  1489. package/dist/markdown/copy-button.js +51 -0
  1490. package/dist/markdown/file-links.d.ts +13 -0
  1491. package/dist/markdown/file-links.js +93 -0
  1492. package/dist/markdown/genui/block-telemetry.d.ts +21 -0
  1493. package/dist/markdown/genui/block-telemetry.js +39 -0
  1494. package/dist/markdown/genui/components/charts.d.ts +7 -0
  1495. package/dist/markdown/genui/components/charts.js +185 -0
  1496. package/dist/markdown/genui/components/data.d.ts +15 -0
  1497. package/dist/markdown/genui/components/data.js +110 -0
  1498. package/dist/markdown/genui/components/index.d.ts +4 -0
  1499. package/dist/markdown/genui/components/index.js +38 -0
  1500. package/dist/markdown/genui/components/inline.d.ts +17 -0
  1501. package/dist/markdown/genui/components/inline.js +53 -0
  1502. package/dist/markdown/genui/components/layout.d.ts +6 -0
  1503. package/dist/markdown/genui/components/layout.js +180 -0
  1504. package/dist/markdown/genui/components/map-canvas.d.ts +35 -0
  1505. package/dist/markdown/genui/components/map-canvas.js +109 -0
  1506. package/dist/markdown/genui/components/map-geo.d.ts +45 -0
  1507. package/dist/markdown/genui/components/map-geo.js +52 -0
  1508. package/dist/markdown/genui/components/map.d.ts +6 -0
  1509. package/dist/markdown/genui/components/map.js +77 -0
  1510. package/dist/markdown/genui/components/pending.d.ts +19 -0
  1511. package/dist/markdown/genui/components/pending.js +38 -0
  1512. package/dist/markdown/genui/genui-message-block.d.ts +12 -0
  1513. package/dist/markdown/genui/genui-message-block.js +18 -0
  1514. package/dist/markdown/genui/index.d.ts +11 -0
  1515. package/dist/markdown/genui/index.js +11 -0
  1516. package/dist/markdown/genui/sdk.d.ts +10 -0
  1517. package/dist/markdown/genui/sdk.js +9 -0
  1518. package/dist/markdown/genui/to-markdown.d.ts +46 -0
  1519. package/dist/markdown/genui/to-markdown.js +86 -0
  1520. package/dist/markdown/genui/use-genui-enabled.d.ts +4 -0
  1521. package/dist/markdown/genui/use-genui-enabled.js +10 -0
  1522. package/dist/markdown/index.d.ts +16 -0
  1523. package/dist/markdown/index.js +14 -0
  1524. package/dist/markdown/katex-block.d.ts +4 -0
  1525. package/dist/markdown/katex-block.js +25 -0
  1526. package/dist/markdown/katex-markdown.d.ts +24 -0
  1527. package/dist/markdown/katex-markdown.js +163 -0
  1528. package/dist/markdown/markdown-frontmatter.d.ts +31 -0
  1529. package/dist/markdown/markdown-frontmatter.js +118 -0
  1530. package/dist/markdown/markdown-policy.d.ts +48 -0
  1531. package/dist/markdown/markdown-policy.js +31 -0
  1532. package/dist/markdown/ordered-list.d.ts +31 -0
  1533. package/dist/markdown/ordered-list.js +40 -0
  1534. package/dist/markdown/setup-link-blocks.d.ts +32 -0
  1535. package/dist/markdown/setup-link-blocks.js +114 -0
  1536. package/dist/markdown/setup-links/api-base.d.ts +2 -0
  1537. package/dist/markdown/setup-links/api-base.js +5 -0
  1538. package/dist/markdown/setup-links/approval-decision.d.ts +72 -0
  1539. package/dist/markdown/setup-links/approval-decision.js +322 -0
  1540. package/dist/markdown/setup-links/connector-handshake.d.ts +60 -0
  1541. package/dist/markdown/setup-links/connector-handshake.js +71 -0
  1542. package/dist/markdown/setup-links/connector-link-info.d.ts +3 -0
  1543. package/dist/markdown/setup-links/connector-link-info.js +15 -0
  1544. package/dist/markdown/setup-links/secret-intake-form.d.ts +14 -0
  1545. package/dist/markdown/setup-links/secret-intake-form.js +168 -0
  1546. package/dist/markdown/setup-links/setup-link-button.d.ts +26 -0
  1547. package/dist/markdown/setup-links/setup-link-button.js +150 -0
  1548. package/dist/markdown/setup-links/setup-link-close-finalize.d.ts +23 -0
  1549. package/dist/markdown/setup-links/setup-link-close-finalize.js +33 -0
  1550. package/dist/markdown/setup-links/util.d.ts +80 -0
  1551. package/dist/markdown/setup-links/util.js +220 -0
  1552. package/dist/markdown/stream-words.d.ts +68 -0
  1553. package/dist/markdown/stream-words.js +113 -0
  1554. package/dist/markdown/unified-markdown-utils.d.ts +68 -0
  1555. package/dist/markdown/unified-markdown-utils.js +151 -0
  1556. package/dist/markdown/unified-markdown.d.ts +46 -0
  1557. package/dist/markdown/unified-markdown.js +293 -0
  1558. package/dist/primitives/accordion.js +18 -0
  1559. package/dist/primitives/alert-dialog.js +50 -0
  1560. package/dist/primitives/alert.d.ts +13 -0
  1561. package/dist/primitives/alert.js +67 -0
  1562. package/dist/primitives/avatar.js +23 -0
  1563. package/dist/primitives/back-pill.js +18 -0
  1564. package/dist/primitives/badge.d.ts +10 -0
  1565. package/dist/primitives/badge.js +42 -0
  1566. package/dist/primitives/breadcrumb.js +28 -0
  1567. package/dist/primitives/bubble.d.ts +20 -0
  1568. package/dist/primitives/bubble.js +38 -0
  1569. package/dist/primitives/button-group.js +32 -0
  1570. package/dist/primitives/button.d.ts +13 -0
  1571. package/dist/primitives/button.js +67 -0
  1572. package/dist/primitives/calendar.js +39 -0
  1573. package/dist/primitives/card.d.ts +96 -0
  1574. package/dist/primitives/card.js +291 -0
  1575. package/dist/primitives/chain-of-thought.js +66 -0
  1576. package/dist/primitives/chart.js +118 -0
  1577. package/dist/primitives/checkbox-group.js +41 -0
  1578. package/dist/primitives/checkbox.js +27 -0
  1579. package/dist/primitives/collapsible.js +14 -0
  1580. package/dist/primitives/command.js +135 -0
  1581. package/dist/primitives/confirm-dialog.js +30 -0
  1582. package/dist/primitives/context-menu.d.ts +48 -0
  1583. package/dist/primitives/context-menu.js +94 -0
  1584. package/dist/primitives/count-badge.d.ts +28 -0
  1585. package/dist/primitives/count-badge.js +26 -0
  1586. package/dist/primitives/data-grid.js +107 -0
  1587. package/dist/primitives/date-range-picker.js +190 -0
  1588. package/dist/primitives/definition-list.js +26 -0
  1589. package/dist/primitives/dialog.d.ts +32 -0
  1590. package/dist/primitives/dialog.js +54 -0
  1591. package/dist/primitives/disclosure.js +138 -0
  1592. package/dist/primitives/dot-matrix/dotm-3x3-10.d.ts +4 -0
  1593. package/dist/primitives/dot-matrix/dotm-3x3-10.js +29 -0
  1594. package/dist/primitives/dot-matrix/dotm-3x3-12.d.ts +4 -0
  1595. package/dist/primitives/dot-matrix/dotm-3x3-12.js +19 -0
  1596. package/dist/primitives/dot-matrix/dotm-3x3-13.d.ts +4 -0
  1597. package/dist/primitives/dot-matrix/dotm-3x3-13.js +19 -0
  1598. package/dist/primitives/dot-matrix/dotm-3x3-15.d.ts +4 -0
  1599. package/dist/primitives/dot-matrix/dotm-3x3-15.js +22 -0
  1600. package/dist/primitives/dot-matrix/dotm-3x3-16.d.ts +4 -0
  1601. package/dist/primitives/dot-matrix/dotm-3x3-16.js +5 -0
  1602. package/dist/primitives/dot-matrix/dotm-3x3-18.d.ts +4 -0
  1603. package/dist/primitives/dot-matrix/dotm-3x3-18.js +5 -0
  1604. package/dist/primitives/dot-matrix/dotm-3x3-19.d.ts +4 -0
  1605. package/dist/primitives/dot-matrix/dotm-3x3-19.js +5 -0
  1606. package/dist/primitives/dot-matrix/dotm-3x3-2.d.ts +4 -0
  1607. package/dist/primitives/dot-matrix/dotm-3x3-2.js +3 -0
  1608. package/dist/primitives/dot-matrix/dotm-3x3-20.d.ts +4 -0
  1609. package/dist/primitives/dot-matrix/dotm-3x3-20.js +5 -0
  1610. package/dist/primitives/dot-matrix/dotm-3x3-21.d.ts +4 -0
  1611. package/dist/primitives/dot-matrix/dotm-3x3-21.js +5 -0
  1612. package/dist/primitives/dot-matrix/dotm-3x3-3.d.ts +4 -0
  1613. package/dist/primitives/dot-matrix/dotm-3x3-3.js +3 -0
  1614. package/dist/primitives/dot-matrix/dotm-3x3-4.d.ts +4 -0
  1615. package/dist/primitives/dot-matrix/dotm-3x3-4.js +3 -0
  1616. package/dist/primitives/dot-matrix/dotm-3x3-5.d.ts +4 -0
  1617. package/dist/primitives/dot-matrix/dotm-3x3-5.js +3 -0
  1618. package/dist/primitives/dot-matrix/dotm-3x3-6.d.ts +4 -0
  1619. package/dist/primitives/dot-matrix/dotm-3x3-6.js +19 -0
  1620. package/dist/primitives/dot-matrix/dotm-3x3-7.d.ts +4 -0
  1621. package/dist/primitives/dot-matrix/dotm-3x3-7.js +19 -0
  1622. package/dist/primitives/dot-matrix/dotm-3x3-8.d.ts +4 -0
  1623. package/dist/primitives/dot-matrix/dotm-3x3-8.js +19 -0
  1624. package/dist/primitives/dot-matrix/dotm-3x3-9.d.ts +4 -0
  1625. package/dist/primitives/dot-matrix/dotm-3x3-9.js +23 -0
  1626. package/dist/primitives/dot-matrix/dotm-circular-1.d.ts +4 -0
  1627. package/dist/primitives/dot-matrix/dotm-circular-1.js +28 -0
  1628. package/dist/primitives/dot-matrix/dotm-circular-10.d.ts +4 -0
  1629. package/dist/primitives/dot-matrix/dotm-circular-10.js +40 -0
  1630. package/dist/primitives/dot-matrix/dotm-circular-11.d.ts +4 -0
  1631. package/dist/primitives/dot-matrix/dotm-circular-11.js +37 -0
  1632. package/dist/primitives/dot-matrix/dotm-circular-12.d.ts +4 -0
  1633. package/dist/primitives/dot-matrix/dotm-circular-12.js +42 -0
  1634. package/dist/primitives/dot-matrix/dotm-circular-14.d.ts +4 -0
  1635. package/dist/primitives/dot-matrix/dotm-circular-14.js +37 -0
  1636. package/dist/primitives/dot-matrix/dotm-circular-15.d.ts +4 -0
  1637. package/dist/primitives/dot-matrix/dotm-circular-15.js +49 -0
  1638. package/dist/primitives/dot-matrix/dotm-circular-17.d.ts +4 -0
  1639. package/dist/primitives/dot-matrix/dotm-circular-17.js +31 -0
  1640. package/dist/primitives/dot-matrix/dotm-circular-2.d.ts +4 -0
  1641. package/dist/primitives/dot-matrix/dotm-circular-2.js +37 -0
  1642. package/dist/primitives/dot-matrix/dotm-circular-3.d.ts +4 -0
  1643. package/dist/primitives/dot-matrix/dotm-circular-3.js +54 -0
  1644. package/dist/primitives/dot-matrix/dotm-circular-4.d.ts +4 -0
  1645. package/dist/primitives/dot-matrix/dotm-circular-4.js +35 -0
  1646. package/dist/primitives/dot-matrix/dotm-circular-5.d.ts +4 -0
  1647. package/dist/primitives/dot-matrix/dotm-circular-5.js +30 -0
  1648. package/dist/primitives/dot-matrix/dotm-circular-6.d.ts +4 -0
  1649. package/dist/primitives/dot-matrix/dotm-circular-6.js +37 -0
  1650. package/dist/primitives/dot-matrix/dotm-circular-7.d.ts +4 -0
  1651. package/dist/primitives/dot-matrix/dotm-circular-7.js +25 -0
  1652. package/dist/primitives/dot-matrix/dotm-circular-8.d.ts +4 -0
  1653. package/dist/primitives/dot-matrix/dotm-circular-8.js +26 -0
  1654. package/dist/primitives/dot-matrix/dotm-circular-9.d.ts +4 -0
  1655. package/dist/primitives/dot-matrix/dotm-circular-9.js +41 -0
  1656. package/dist/primitives/dot-matrix/dotm-square-1.d.ts +4 -0
  1657. package/dist/primitives/dot-matrix/dotm-square-1.js +27 -0
  1658. package/dist/primitives/dot-matrix/dotm-square-10.d.ts +4 -0
  1659. package/dist/primitives/dot-matrix/dotm-square-10.js +27 -0
  1660. package/dist/primitives/dot-matrix/dotm-square-11.d.ts +4 -0
  1661. package/dist/primitives/dot-matrix/dotm-square-11.js +25 -0
  1662. package/dist/primitives/dot-matrix/dotm-square-12.d.ts +4 -0
  1663. package/dist/primitives/dot-matrix/dotm-square-12.js +28 -0
  1664. package/dist/primitives/dot-matrix/dotm-square-13.d.ts +4 -0
  1665. package/dist/primitives/dot-matrix/dotm-square-13.js +45 -0
  1666. package/dist/primitives/dot-matrix/dotm-square-14.d.ts +4 -0
  1667. package/dist/primitives/dot-matrix/dotm-square-14.js +38 -0
  1668. package/dist/primitives/dot-matrix/dotm-square-15.d.ts +4 -0
  1669. package/dist/primitives/dot-matrix/dotm-square-15.js +31 -0
  1670. package/dist/primitives/dot-matrix/dotm-square-16.d.ts +4 -0
  1671. package/dist/primitives/dot-matrix/dotm-square-16.js +33 -0
  1672. package/dist/primitives/dot-matrix/dotm-square-17.d.ts +4 -0
  1673. package/dist/primitives/dot-matrix/dotm-square-17.js +27 -0
  1674. package/dist/primitives/dot-matrix/dotm-square-18.d.ts +4 -0
  1675. package/dist/primitives/dot-matrix/dotm-square-18.js +29 -0
  1676. package/dist/primitives/dot-matrix/dotm-square-19.d.ts +4 -0
  1677. package/dist/primitives/dot-matrix/dotm-square-19.js +74 -0
  1678. package/dist/primitives/dot-matrix/dotm-square-2.d.ts +4 -0
  1679. package/dist/primitives/dot-matrix/dotm-square-2.js +72 -0
  1680. package/dist/primitives/dot-matrix/dotm-square-20.d.ts +4 -0
  1681. package/dist/primitives/dot-matrix/dotm-square-20.js +79 -0
  1682. package/dist/primitives/dot-matrix/dotm-square-3.d.ts +4 -0
  1683. package/dist/primitives/dot-matrix/dotm-square-3.js +23 -0
  1684. package/dist/primitives/dot-matrix/dotm-square-4.d.ts +4 -0
  1685. package/dist/primitives/dot-matrix/dotm-square-4.js +41 -0
  1686. package/dist/primitives/dot-matrix/dotm-square-5.d.ts +4 -0
  1687. package/dist/primitives/dot-matrix/dotm-square-5.js +23 -0
  1688. package/dist/primitives/dot-matrix/dotm-square-6.d.ts +4 -0
  1689. package/dist/primitives/dot-matrix/dotm-square-6.js +20 -0
  1690. package/dist/primitives/dot-matrix/dotm-square-7.d.ts +4 -0
  1691. package/dist/primitives/dot-matrix/dotm-square-7.js +43 -0
  1692. package/dist/primitives/dot-matrix/dotm-square-8.d.ts +4 -0
  1693. package/dist/primitives/dot-matrix/dotm-square-8.js +57 -0
  1694. package/dist/primitives/dot-matrix/dotm-square-9.d.ts +4 -0
  1695. package/dist/primitives/dot-matrix/dotm-square-9.js +89 -0
  1696. package/dist/primitives/dot-matrix/session-dot-matrix.d.ts +46 -0
  1697. package/dist/primitives/drawer.js +37 -0
  1698. package/dist/primitives/dropdown-menu.d.ts +52 -0
  1699. package/dist/primitives/dropdown-menu.js +114 -0
  1700. package/dist/primitives/emoji-picker.js +137 -0
  1701. package/dist/primitives/empty-state.d.ts +14 -0
  1702. package/dist/primitives/empty-state.js +23 -0
  1703. package/dist/primitives/empty.js +33 -0
  1704. package/dist/primitives/entity-avatar.js +106 -0
  1705. package/dist/primitives/error-boundary.d.ts +24 -0
  1706. package/dist/primitives/error-boundary.js +25 -0
  1707. package/dist/primitives/error-state.d.ts +12 -0
  1708. package/dist/primitives/error-state.js +21 -0
  1709. package/dist/primitives/faded-scroll-area.js +80 -0
  1710. package/dist/primitives/favicon-avatar.js +18 -0
  1711. package/dist/primitives/field.d.ts +15 -0
  1712. package/dist/primitives/field.js +48 -0
  1713. package/dist/primitives/file-tree.js +30 -0
  1714. package/dist/primitives/glyph-face.js +37 -0
  1715. package/dist/primitives/glyph-paths-source.js +40 -0
  1716. package/dist/primitives/glyph-paths.generated.js +207 -0
  1717. package/dist/primitives/glyph-picker.js +118 -0
  1718. package/dist/primitives/glyph-tint.js +93 -0
  1719. package/dist/primitives/histogram-bars.js +93 -0
  1720. package/dist/primitives/hover-card.d.ts +28 -0
  1721. package/dist/primitives/hover-card.js +40 -0
  1722. package/dist/primitives/icon-provider.js +30 -0
  1723. package/dist/primitives/info-banner.js +72 -0
  1724. package/dist/primitives/inline-meta.js +8 -0
  1725. package/dist/primitives/input-group.js +73 -0
  1726. package/dist/primitives/input.js +23 -0
  1727. package/dist/primitives/item.d.ts +23 -0
  1728. package/dist/primitives/item.js +67 -0
  1729. package/dist/primitives/kbd.js +20 -0
  1730. package/dist/primitives/kortix-asterisk.js +17 -0
  1731. package/dist/primitives/kortix-loader.js +74 -0
  1732. package/dist/primitives/kortix-logo.js +47 -0
  1733. package/dist/primitives/label.js +9 -0
  1734. package/dist/primitives/list.js +25 -0
  1735. package/dist/primitives/loading.js +31 -0
  1736. package/dist/primitives/map.js +257 -0
  1737. package/dist/primitives/marker.d.ts +14 -0
  1738. package/dist/primitives/marker.js +28 -0
  1739. package/dist/primitives/menu-recipe.js +129 -0
  1740. package/dist/primitives/mermaid-render.d.ts +52 -0
  1741. package/dist/primitives/mermaid-render.js +135 -0
  1742. package/dist/primitives/mermaid-renderer.js +262 -0
  1743. package/dist/primitives/message.js +26 -0
  1744. package/dist/primitives/modal.d.ts +107 -0
  1745. package/dist/primitives/modal.js +181 -0
  1746. package/dist/primitives/navigation-menu.js +35 -0
  1747. package/dist/primitives/page-search-bar.js +13 -0
  1748. package/dist/primitives/paper-wallpaper-shaders.d.ts +14 -0
  1749. package/dist/primitives/paper-wallpaper-shaders.js +73 -0
  1750. package/dist/primitives/phone-input.js +59 -0
  1751. package/dist/primitives/pixel-kortix-mark.js +40 -0
  1752. package/dist/primitives/popover.js +40 -0
  1753. package/dist/primitives/portal.js +17 -0
  1754. package/dist/primitives/preview-image.d.ts +17 -0
  1755. package/dist/primitives/preview-image.js +59 -0
  1756. package/dist/primitives/progress-ring.js +9 -0
  1757. package/dist/primitives/progress.js +8 -0
  1758. package/dist/primitives/project-icon-picker.d.ts +11 -0
  1759. package/dist/primitives/project-icon-picker.js +56 -0
  1760. package/dist/primitives/radio-group.js +20 -0
  1761. package/dist/primitives/resizable.d.ts +24 -0
  1762. package/dist/primitives/resizable.js +16 -0
  1763. package/dist/primitives/scroll-area.js +11 -0
  1764. package/dist/primitives/section-card.js +14 -0
  1765. package/dist/primitives/section.js +22 -0
  1766. package/dist/primitives/select.js +61 -0
  1767. package/dist/primitives/separator.js +8 -0
  1768. package/dist/primitives/settings-row.d.ts +54 -0
  1769. package/dist/primitives/settings-row.js +43 -0
  1770. package/dist/primitives/settings-section-header.d.ts +13 -0
  1771. package/dist/primitives/settings-section-header.js +11 -0
  1772. package/dist/primitives/settings-subsection-header.d.ts +48 -0
  1773. package/dist/primitives/settings-subsection-header.js +37 -0
  1774. package/dist/primitives/sheet.d.ts +35 -0
  1775. package/dist/primitives/sheet.js +56 -0
  1776. package/dist/primitives/sidebar-menu-primitives.d.ts +38 -0
  1777. package/dist/primitives/sidebar-menu-primitives.js +97 -0
  1778. package/dist/primitives/sidebar-panel.js +265 -0
  1779. package/dist/primitives/sidebar.js +194 -0
  1780. package/dist/primitives/skeleton.js +6 -0
  1781. package/dist/primitives/slider-native.js +16 -0
  1782. package/dist/primitives/slider.js +48 -0
  1783. package/dist/primitives/sliding-tab-indicator.js +128 -0
  1784. package/dist/primitives/split-sheet.js +239 -0
  1785. package/dist/primitives/spotlight-card.js +43 -0
  1786. package/dist/primitives/status.js +76 -0
  1787. package/dist/primitives/stepper.js +73 -0
  1788. package/dist/primitives/switch.js +131 -0
  1789. package/dist/primitives/system-message.js +51 -0
  1790. package/dist/primitives/table.js +28 -0
  1791. package/dist/primitives/tabs.js +207 -0
  1792. package/dist/primitives/tag.d.ts +7 -0
  1793. package/dist/primitives/tag.js +22 -0
  1794. package/dist/primitives/text-shimmer.js +91 -0
  1795. package/dist/primitives/textarea.js +87 -0
  1796. package/dist/primitives/toast.js +233 -0
  1797. package/dist/primitives/toggle.d.ts +12 -0
  1798. package/dist/primitives/toggle.js +26 -0
  1799. package/dist/primitives/tooltip.js +19 -0
  1800. package/dist/primitives/trigger-variants.js +67 -0
  1801. package/dist/primitives/type-to-confirm-dialog.js +101 -0
  1802. package/dist/primitives/typed-title.js +66 -0
  1803. package/dist/primitives/typing-animation.js +141 -0
  1804. package/dist/primitives/user-avatar.js +46 -0
  1805. package/dist/primitives/wallpaper-shaders.d.ts +7 -0
  1806. package/dist/primitives/wallpaper-shaders.js +50 -0
  1807. package/dist/providers/motion-features.d.ts +1 -0
  1808. package/dist/providers/motion-features.js +3 -0
  1809. package/dist/providers/session-ids.d.ts +21 -0
  1810. package/dist/providers/session-ids.js +13 -0
  1811. package/dist/providers/ui-provider.d.ts +338 -86
  1812. package/dist/providers/ui-provider.js +186 -61
  1813. package/dist/providers/use-host-preview-url.d.ts +14 -0
  1814. package/dist/providers/use-host-preview-url.js +32 -0
  1815. package/dist/session/actions/project-session-list-helpers.d.ts +156 -0
  1816. package/dist/session/actions/project-session-list-helpers.js +339 -0
  1817. package/dist/session/actions/rename-session-cache.d.ts +35 -0
  1818. package/dist/session/actions/rename-session-cache.js +50 -0
  1819. package/dist/session/actions/session-delete-modal.d.ts +17 -0
  1820. package/dist/session/actions/session-delete-modal.js +128 -0
  1821. package/dist/session/actions/session-label.d.ts +107 -0
  1822. package/dist/session/actions/session-label.js +149 -0
  1823. package/dist/session/actions/use-rename-session.d.ts +9 -0
  1824. package/dist/session/actions/use-rename-session.js +66 -0
  1825. package/dist/session/actions/use-session-list-actions.d.ts +10 -0
  1826. package/dist/session/actions/use-session-list-actions.js +51 -0
  1827. package/dist/session/composer/ComposerAboveCard.d.ts +23 -0
  1828. package/dist/session/composer/ComposerAboveCard.js +28 -0
  1829. package/dist/session/composer/ComposerCard.d.ts +74 -0
  1830. package/dist/session/composer/ComposerCard.js +63 -0
  1831. package/dist/session/composer/agent-selector.d.ts +20 -0
  1832. package/dist/session/composer/agent-selector.js +149 -0
  1833. package/dist/session/composer/animated-placeholder.d.ts +65 -0
  1834. package/dist/session/composer/animated-placeholder.js +119 -0
  1835. package/dist/session/composer/attachment-submission.d.ts +184 -0
  1836. package/dist/session/composer/attachment-submission.js +302 -0
  1837. package/dist/session/composer/attachment-tile.d.ts +84 -0
  1838. package/dist/session/composer/attachment-tile.js +124 -0
  1839. package/dist/session/composer/attachment-tiles.d.ts +53 -0
  1840. package/dist/session/composer/attachment-tiles.js +201 -0
  1841. package/dist/session/composer/clipboard-files.d.ts +16 -0
  1842. package/dist/session/composer/clipboard-files.js +23 -0
  1843. package/dist/session/composer/command-attachments.d.ts +151 -0
  1844. package/dist/session/composer/command-attachments.js +128 -0
  1845. package/dist/session/composer/composer-agent-access.d.ts +83 -0
  1846. package/dist/session/composer/composer-agent-access.js +89 -0
  1847. package/dist/session/composer/composer-chat-input.d.ts +89 -0
  1848. package/dist/session/composer/composer-chat-input.js +143 -0
  1849. package/dist/session/composer/composer-draft-recovery.d.ts +42 -0
  1850. package/dist/session/composer/composer-draft-recovery.js +83 -0
  1851. package/dist/session/composer/composer-drop-zone.d.ts +22 -0
  1852. package/dist/session/composer/composer-drop-zone.js +79 -0
  1853. package/dist/session/composer/composer-logic.d.ts +395 -0
  1854. package/dist/session/composer/composer-logic.js +389 -0
  1855. package/dist/session/composer/composer-reset.d.ts +34 -0
  1856. package/dist/session/composer/composer-reset.js +21 -0
  1857. package/dist/session/composer/composer-text-metrics.d.ts +28 -0
  1858. package/dist/session/composer/composer-text-metrics.js +28 -0
  1859. package/dist/session/composer/composer-toolbar.d.ts +117 -0
  1860. package/dist/session/composer/composer-toolbar.js +19 -0
  1861. package/dist/session/composer/composer-underbar.d.ts +54 -0
  1862. package/dist/session/composer/composer-underbar.js +58 -0
  1863. package/dist/session/composer/composer.d.ts +356 -0
  1864. package/dist/session/composer/composer.js +1455 -0
  1865. package/dist/session/composer/context-ring.d.ts +6 -0
  1866. package/dist/session/composer/context-ring.js +21 -0
  1867. package/dist/session/composer/context-usage.d.ts +48 -0
  1868. package/dist/session/composer/context-usage.js +93 -0
  1869. package/dist/session/composer/delivery-chain.d.ts +28 -0
  1870. package/dist/session/composer/delivery-chain.js +60 -0
  1871. package/dist/session/composer/draft/composer-draft-store.d.ts +21 -0
  1872. package/dist/session/composer/draft/composer-draft-store.js +41 -0
  1873. package/dist/session/composer/draft/composer-draft.d.ts +142 -0
  1874. package/dist/session/composer/draft/composer-draft.js +188 -0
  1875. package/dist/session/composer/draft/draft-uploads.d.ts +29 -0
  1876. package/dist/session/composer/draft/draft-uploads.js +84 -0
  1877. package/dist/session/composer/draft/use-composer-draft.d.ts +49 -0
  1878. package/dist/session/composer/draft/use-composer-draft.js +169 -0
  1879. package/dist/session/composer/editor/composer-editor.d.ts +266 -0
  1880. package/dist/session/composer/editor/composer-editor.js +436 -0
  1881. package/dist/session/composer/editor/extensions.d.ts +65 -0
  1882. package/dist/session/composer/editor/extensions.js +80 -0
  1883. package/dist/session/composer/editor/first-visual-line.d.ts +13 -0
  1884. package/dist/session/composer/editor/first-visual-line.js +19 -0
  1885. package/dist/session/composer/editor/mention-node.d.ts +51 -0
  1886. package/dist/session/composer/editor/mention-node.js +125 -0
  1887. package/dist/session/composer/editor/serialize.d.ts +69 -0
  1888. package/dist/session/composer/editor/serialize.js +175 -0
  1889. package/dist/session/composer/editor/suggestion.d.ts +87 -0
  1890. package/dist/session/composer/editor/suggestion.js +76 -0
  1891. package/dist/session/composer/entitlements-pending.d.ts +60 -0
  1892. package/dist/session/composer/entitlements-pending.js +57 -0
  1893. package/dist/session/composer/esc-to-stop.d.ts +50 -0
  1894. package/dist/session/composer/esc-to-stop.js +24 -0
  1895. package/dist/session/composer/held-commands.d.ts +44 -0
  1896. package/dist/session/composer/held-commands.js +41 -0
  1897. package/dist/session/composer/held-send-guard.d.ts +9 -0
  1898. package/dist/session/composer/held-send-guard.js +26 -0
  1899. package/dist/session/composer/hooks/use-composer-escape-stop.d.ts +6 -0
  1900. package/dist/session/composer/hooks/use-composer-escape-stop.js +28 -0
  1901. package/dist/session/composer/hooks/use-composer-focus.d.ts +33 -0
  1902. package/dist/session/composer/hooks/use-composer-focus.js +181 -0
  1903. package/dist/session/composer/hooks/use-debounced-value.d.ts +8 -0
  1904. package/dist/session/composer/hooks/use-debounced-value.js +27 -0
  1905. package/dist/session/composer/hooks/use-file-search.d.ts +137 -0
  1906. package/dist/session/composer/hooks/use-file-search.js +205 -0
  1907. package/dist/session/composer/hooks/use-latest-ref.d.ts +8 -0
  1908. package/dist/session/composer/hooks/use-latest-ref.js +15 -0
  1909. package/dist/session/composer/inbox-live-prompt.d.ts +9 -0
  1910. package/dist/session/composer/inbox-live-prompt.js +10 -0
  1911. package/dist/session/composer/inbox-row-claims.d.ts +64 -0
  1912. package/dist/session/composer/inbox-row-claims.js +61 -0
  1913. package/dist/session/composer/index.d.ts +24 -0
  1914. package/dist/session/composer/index.js +22 -0
  1915. package/dist/session/composer/menus/mention-controller.d.ts +40 -0
  1916. package/dist/session/composer/menus/mention-controller.js +107 -0
  1917. package/dist/session/composer/menus/mention-menu.d.ts +45 -0
  1918. package/dist/session/composer/menus/mention-menu.js +80 -0
  1919. package/dist/session/composer/menus/menu-items.d.ts +27 -0
  1920. package/dist/session/composer/menus/menu-items.js +89 -0
  1921. package/dist/session/composer/menus/menu-nav-state.d.ts +169 -0
  1922. package/dist/session/composer/menus/menu-nav-state.js +194 -0
  1923. package/dist/session/composer/menus/menu-navigation.d.ts +3 -0
  1924. package/dist/session/composer/menus/menu-navigation.js +29 -0
  1925. package/dist/session/composer/menus/menu-selection.d.ts +15 -0
  1926. package/dist/session/composer/menus/menu-selection.js +23 -0
  1927. package/dist/session/composer/menus/menu-shell.d.ts +69 -0
  1928. package/dist/session/composer/menus/menu-shell.js +91 -0
  1929. package/dist/session/composer/menus/mount.d.ts +79 -0
  1930. package/dist/session/composer/menus/mount.js +128 -0
  1931. package/dist/session/composer/menus/slash-actions.d.ts +78 -0
  1932. package/dist/session/composer/menus/slash-actions.js +89 -0
  1933. package/dist/session/composer/menus/slash-controller.d.ts +80 -0
  1934. package/dist/session/composer/menus/slash-controller.js +152 -0
  1935. package/dist/session/composer/menus/slash-files.d.ts +69 -0
  1936. package/dist/session/composer/menus/slash-files.js +97 -0
  1937. package/dist/session/composer/menus/slash-items.d.ts +86 -0
  1938. package/dist/session/composer/menus/slash-items.js +184 -0
  1939. package/dist/session/composer/menus/slash-menu.d.ts +44 -0
  1940. package/dist/session/composer/menus/slash-menu.js +138 -0
  1941. package/dist/session/composer/pasted-text.d.ts +25 -0
  1942. package/dist/session/composer/pasted-text.js +55 -0
  1943. package/dist/session/composer/queue-projection.d.ts +102 -0
  1944. package/dist/session/composer/queue-projection.js +144 -0
  1945. package/dist/session/composer/queued-message-restore.d.ts +58 -0
  1946. package/dist/session/composer/queued-message-restore.js +67 -0
  1947. package/dist/session/composer/queued-prompt-edit.d.ts +79 -0
  1948. package/dist/session/composer/queued-prompt-edit.js +114 -0
  1949. package/dist/session/composer/queued-prompt-list.d.ts +36 -0
  1950. package/dist/session/composer/queued-prompt-list.js +84 -0
  1951. package/dist/session/composer/quote-list.d.ts +47 -0
  1952. package/dist/session/composer/quote-list.js +41 -0
  1953. package/dist/session/composer/reasoning-effort-selector.d.ts +36 -0
  1954. package/dist/session/composer/reasoning-effort-selector.js +121 -0
  1955. package/dist/session/composer/send-blockers.d.ts +101 -0
  1956. package/dist/session/composer/send-blockers.js +122 -0
  1957. package/dist/session/composer/send-stop-control.d.ts +39 -0
  1958. package/dist/session/composer/send-stop-control.js +68 -0
  1959. package/dist/session/composer/sent-attachment-previews.d.ts +59 -0
  1960. package/dist/session/composer/sent-attachment-previews.js +128 -0
  1961. package/dist/session/composer/session-chat-input.d.ts +8 -0
  1962. package/dist/session/composer/session-chat-input.js +7 -0
  1963. package/dist/session/composer/session-composer-readiness.d.ts +173 -0
  1964. package/dist/session/composer/session-composer-readiness.js +158 -0
  1965. package/dist/session/composer/stores/queued-draft-store.d.ts +46 -0
  1966. package/dist/session/composer/stores/queued-draft-store.js +33 -0
  1967. package/dist/session/composer/stores/session-composer-handoff-store.d.ts +125 -0
  1968. package/dist/session/composer/stores/session-composer-handoff-store.js +142 -0
  1969. package/dist/session/composer/stores/session-composer-prefill-store.d.ts +54 -0
  1970. package/dist/session/composer/stores/session-composer-prefill-store.js +57 -0
  1971. package/dist/session/composer/submit-latch.d.ts +9 -0
  1972. package/dist/session/composer/submit-latch.js +27 -0
  1973. package/dist/session/composer/token-progress.d.ts +35 -0
  1974. package/dist/session/composer/token-progress.js +102 -0
  1975. package/dist/session/composer/types.d.ts +60 -0
  1976. package/dist/session/composer/types.js +9 -0
  1977. package/dist/session/composer/uploaded-file-refs.d.ts +51 -0
  1978. package/dist/session/composer/uploaded-file-refs.js +90 -0
  1979. package/dist/session/composer/use-instant-session-send.d.ts +82 -0
  1980. package/dist/session/composer/use-instant-session-send.js +383 -0
  1981. package/dist/session/header/compact-modal.d.ts +10 -0
  1982. package/dist/session/header/compact-modal.js +24 -0
  1983. package/dist/session/header/export-transcript-modal.d.ts +31 -0
  1984. package/dist/session/header/export-transcript-modal.js +158 -0
  1985. package/dist/session/header/reminder-parts.d.ts +285 -0
  1986. package/dist/session/header/reminder-parts.js +115 -0
  1987. package/dist/session/header/session-changes-indicator.d.ts +3 -0
  1988. package/dist/session/header/session-changes-indicator.js +82 -0
  1989. package/dist/session/header/session-config-indicator.d.ts +34 -0
  1990. package/dist/session/header/session-config-indicator.js +127 -0
  1991. package/dist/session/header/session-pending-approvals-indicator.d.ts +3 -0
  1992. package/dist/session/header/session-pending-approvals-indicator.js +43 -0
  1993. package/dist/session/header/session-reload-progress-view.d.ts +4 -0
  1994. package/dist/session/header/session-reload-progress-view.js +12 -0
  1995. package/dist/session/header/session-reminders-indicator.d.ts +16 -0
  1996. package/dist/session/header/session-reminders-indicator.js +185 -0
  1997. package/dist/session/header/session-site-header.d.ts +12 -0
  1998. package/dist/session/header/session-site-header.js +287 -0
  1999. package/dist/session/header/session-title-input.d.ts +20 -0
  2000. package/dist/session/header/session-title-input.js +56 -0
  2001. package/dist/session/header/subagent-hover-card.d.ts +23 -0
  2002. package/dist/session/header/subagent-hover-card.js +35 -0
  2003. package/dist/session/index.d.ts +65 -0
  2004. package/dist/session/index.js +63 -0
  2005. package/dist/session/media/image-output-path.d.ts +9 -0
  2006. package/dist/session/media/image-output-path.js +43 -0
  2007. package/dist/session/media/image-preview.d.ts +11 -0
  2008. package/dist/session/media/image-preview.js +13 -0
  2009. package/dist/session/media/sandbox-image.d.ts +24 -0
  2010. package/dist/session/media/sandbox-image.js +144 -0
  2011. package/dist/session/media/sandbox-url-detector.d.ts +29 -0
  2012. package/dist/session/media/sandbox-url-detector.js +180 -0
  2013. package/dist/session/models/ask-owner-for-credits-button.d.ts +7 -0
  2014. package/dist/session/models/ask-owner-for-credits-button.js +33 -0
  2015. package/dist/session/models/chatgpt-connection-action.d.ts +22 -0
  2016. package/dist/session/models/chatgpt-connection-action.js +33 -0
  2017. package/dist/session/models/model-availability.d.ts +71 -0
  2018. package/dist/session/models/model-availability.js +60 -0
  2019. package/dist/session/models/model-connection-gate.d.ts +38 -0
  2020. package/dist/session/models/model-connection-gate.js +76 -0
  2021. package/dist/session/models/model-grouping.d.ts +85 -0
  2022. package/dist/session/models/model-grouping.js +122 -0
  2023. package/dist/session/models/model-search-empty.d.ts +6 -0
  2024. package/dist/session/models/model-search-empty.js +10 -0
  2025. package/dist/session/models/model-selector.d.ts +86 -0
  2026. package/dist/session/models/model-selector.js +337 -0
  2027. package/dist/session/models/model-tags.d.ts +27 -0
  2028. package/dist/session/models/model-tags.js +35 -0
  2029. package/dist/session/models/provider-failure-recovery.d.ts +11 -0
  2030. package/dist/session/models/provider-failure-recovery.js +12 -0
  2031. package/dist/session/models/use-model-connection-gate.d.ts +57 -0
  2032. package/dist/session/models/use-model-connection-gate.js +165 -0
  2033. package/dist/session/outcomes/anchor-outcomes.d.ts +18 -0
  2034. package/dist/session/outcomes/anchor-outcomes.js +48 -0
  2035. package/dist/session/outcomes/change-request-outcomes.d.ts +28 -0
  2036. package/dist/session/outcomes/change-request-outcomes.js +80 -0
  2037. package/dist/session/outcomes/session-outcomes-provider.d.ts +16 -0
  2038. package/dist/session/outcomes/session-outcomes-provider.js +107 -0
  2039. package/dist/session/outcomes/turn-outcomes.d.ts +10 -0
  2040. package/dist/session/outcomes/turn-outcomes.js +38 -0
  2041. package/dist/session/overrides/provider-pool-draft-context.d.ts +17 -0
  2042. package/dist/session/overrides/provider-pool-draft-context.js +26 -0
  2043. package/dist/session/overrides/provider-pool-draft.d.ts +48 -0
  2044. package/dist/session/overrides/provider-pool-draft.js +62 -0
  2045. package/dist/session/overrides/provider-secret-pool-editor.d.ts +13 -0
  2046. package/dist/session/overrides/provider-secret-pool-editor.js +110 -0
  2047. package/dist/session/overrides/session-overrides-composer.d.ts +44 -0
  2048. package/dist/session/overrides/session-overrides-composer.js +41 -0
  2049. package/dist/session/overrides/session-overrides-control.d.ts +71 -0
  2050. package/dist/session/overrides/session-overrides-control.js +71 -0
  2051. package/dist/session/overrides/session-overrides-toolbar.d.ts +56 -0
  2052. package/dist/session/overrides/session-overrides-toolbar.js +323 -0
  2053. package/dist/session/panel/action-panel.d.ts +1 -0
  2054. package/dist/session/panel/action-panel.js +28 -0
  2055. package/dist/session/panel/advanced/advanced-panel.d.ts +15 -0
  2056. package/dist/session/panel/advanced/advanced-panel.js +67 -0
  2057. package/dist/session/panel/audit/audit-credential-label.d.ts +20 -0
  2058. package/dist/session/panel/audit/audit-credential-label.js +22 -0
  2059. package/dist/session/panel/diff-dialog.d.ts +7 -0
  2060. package/dist/session/panel/diff-dialog.js +24 -0
  2061. package/dist/session/panel/easy/app-preview.d.ts +19 -0
  2062. package/dist/session/panel/easy/app-preview.js +270 -0
  2063. package/dist/session/panel/easy/apps-card.d.ts +5 -0
  2064. package/dist/session/panel/easy/apps-card.js +67 -0
  2065. package/dist/session/panel/easy/context-card.d.ts +18 -0
  2066. package/dist/session/panel/easy/context-card.js +150 -0
  2067. package/dist/session/panel/easy/detail-view.d.ts +193 -0
  2068. package/dist/session/panel/easy/detail-view.js +385 -0
  2069. package/dist/session/panel/easy/easy-panel-logic.d.ts +187 -0
  2070. package/dist/session/panel/easy/easy-panel-logic.js +241 -0
  2071. package/dist/session/panel/easy/easy-panel.d.ts +1 -0
  2072. package/dist/session/panel/easy/easy-panel.js +66 -0
  2073. package/dist/session/panel/easy/file-preview.d.ts +58 -0
  2074. package/dist/session/panel/easy/file-preview.js +250 -0
  2075. package/dist/session/panel/easy/outputs-card.d.ts +22 -0
  2076. package/dist/session/panel/easy/outputs-card.js +209 -0
  2077. package/dist/session/panel/easy/panel-card.d.ts +58 -0
  2078. package/dist/session/panel/easy/panel-card.js +44 -0
  2079. package/dist/session/panel/easy/plan-card.d.ts +20 -0
  2080. package/dist/session/panel/easy/plan-card.js +108 -0
  2081. package/dist/session/panel/easy/preview-load.d.ts +193 -0
  2082. package/dist/session/panel/easy/preview-load.js +165 -0
  2083. package/dist/session/panel/easy/step-detail-body.d.ts +24 -0
  2084. package/dist/session/panel/easy/step-detail-body.js +33 -0
  2085. package/dist/session/panel/easy/step-icon.d.ts +6 -0
  2086. package/dist/session/panel/easy/step-icon.js +44 -0
  2087. package/dist/session/panel/index.d.ts +17 -0
  2088. package/dist/session/panel/index.js +17 -0
  2089. package/dist/session/panel/mobile-tool-drawer.d.ts +5 -0
  2090. package/dist/session/panel/mobile-tool-drawer.js +44 -0
  2091. package/dist/session/panel/open-session-quick-view.d.ts +6 -0
  2092. package/dist/session/panel/open-session-quick-view.js +77 -0
  2093. package/dist/session/panel/panel-fallback.d.ts +8 -0
  2094. package/dist/session/panel/panel-fallback.js +66 -0
  2095. package/dist/session/panel/session-action-panel-column.d.ts +11 -0
  2096. package/dist/session/panel/session-action-panel-column.js +180 -0
  2097. package/dist/session/panel/session-audit-panel.d.ts +4 -0
  2098. package/dist/session/panel/session-audit-panel.js +100 -0
  2099. package/dist/session/panel/session-audit-shared.d.ts +102 -0
  2100. package/dist/session/panel/session-audit-shared.js +188 -0
  2101. package/dist/session/panel/session-changes-shared.d.ts +57 -0
  2102. package/dist/session/panel/session-changes-shared.js +92 -0
  2103. package/dist/session/panel/session-detail-panel.d.ts +1 -0
  2104. package/dist/session/panel/session-detail-panel.js +50 -0
  2105. package/dist/session/panel/session-diff-viewer.d.ts +12 -0
  2106. package/dist/session/panel/session-diff-viewer.js +60 -0
  2107. package/dist/session/panel/session-files-explorer-logic.d.ts +47 -0
  2108. package/dist/session/panel/session-files-explorer-logic.js +48 -0
  2109. package/dist/session/panel/session-files-explorer.d.ts +38 -0
  2110. package/dist/session/panel/session-files-explorer.js +114 -0
  2111. package/dist/session/panel/session-files-panel.d.ts +22 -0
  2112. package/dist/session/panel/session-files-panel.js +98 -0
  2113. package/dist/session/panel/session-files-store-registry.d.ts +3 -0
  2114. package/dist/session/panel/session-files-store-registry.js +23 -0
  2115. package/dist/session/panel/session-panel-header.d.ts +15 -0
  2116. package/dist/session/panel/session-panel-header.js +23 -0
  2117. package/dist/session/panel/session-panel-provider.d.ts +60 -0
  2118. package/dist/session/panel/session-panel-provider.js +581 -0
  2119. package/dist/session/panel/session-panel-sizing.d.ts +82 -0
  2120. package/dist/session/panel/session-panel-sizing.js +109 -0
  2121. package/dist/session/panel/session-reminders-panel.d.ts +4 -0
  2122. package/dist/session/panel/session-reminders-panel.js +109 -0
  2123. package/dist/session/panel/session-wallpaper-layer.d.ts +13 -0
  2124. package/dist/session/panel/session-wallpaper-layer.js +17 -0
  2125. package/dist/session/panel/shared/action-navigator-logic.d.ts +44 -0
  2126. package/dist/session/panel/shared/action-navigator-logic.js +69 -0
  2127. package/dist/session/panel/shared/action-navigator.d.ts +11 -0
  2128. package/dist/session/panel/shared/action-navigator.js +65 -0
  2129. package/dist/session/panel/shared/collect-tool-parts.d.ts +38 -0
  2130. package/dist/session/panel/shared/collect-tool-parts.js +56 -0
  2131. package/dist/session/panel/shared/deliverable-readiness.d.ts +22 -0
  2132. package/dist/session/panel/shared/deliverable-readiness.js +34 -0
  2133. package/dist/session/panel/shared/derive-panels.d.ts +81 -0
  2134. package/dist/session/panel/shared/derive-panels.js +475 -0
  2135. package/dist/session/panel/shared/latest-run.d.ts +9 -0
  2136. package/dist/session/panel/shared/latest-run.js +22 -0
  2137. package/dist/session/panel/shared/output-priority.d.ts +40 -0
  2138. package/dist/session/panel/shared/output-priority.js +119 -0
  2139. package/dist/session/panel/shared/run-outcome.d.ts +13 -0
  2140. package/dist/session/panel/shared/run-outcome.js +34 -0
  2141. package/dist/session/panel/shared/use-deliverable-readiness.d.ts +9 -0
  2142. package/dist/session/panel/shared/use-deliverable-readiness.js +90 -0
  2143. package/dist/session/panel/shared/use-panel-derivations.d.ts +23 -0
  2144. package/dist/session/panel/shared/use-panel-derivations.js +64 -0
  2145. package/dist/session/panel/shared/use-panel-handoffs.d.ts +13 -0
  2146. package/dist/session/panel/shared/use-panel-handoffs.js +174 -0
  2147. package/dist/session/panel/use-session-panel-layout.d.ts +22 -0
  2148. package/dist/session/panel/use-session-panel-layout.js +222 -0
  2149. package/dist/session/panel/use-session-panel-state.d.ts +19 -0
  2150. package/dist/session/panel/use-session-panel-state.js +116 -0
  2151. package/dist/session/participants/session-participants.d.ts +29 -0
  2152. package/dist/session/participants/session-participants.js +58 -0
  2153. package/dist/session/print/load-entire-history.d.ts +66 -0
  2154. package/dist/session/print/load-entire-history.js +61 -0
  2155. package/dist/session/print/print-chain.d.ts +64 -0
  2156. package/dist/session/print/print-chain.js +69 -0
  2157. package/dist/session/print/session-print-header.d.ts +16 -0
  2158. package/dist/session/print/session-print-header.js +47 -0
  2159. package/dist/session/print/use-session-print.d.ts +45 -0
  2160. package/dist/session/print/use-session-print.js +108 -0
  2161. package/dist/session/prompts/approval-request.d.ts +195 -0
  2162. package/dist/session/prompts/approval-request.js +514 -0
  2163. package/dist/session/prompts/question-prompt.d.ts +26 -0
  2164. package/dist/session/prompts/question-prompt.js +224 -0
  2165. package/dist/session/prompts/session-approval-prompt.d.ts +68 -0
  2166. package/dist/session/prompts/session-approval-prompt.js +169 -0
  2167. package/dist/session/prompts/session-approval-review.d.ts +85 -0
  2168. package/dist/session/prompts/session-approval-review.js +176 -0
  2169. package/dist/session/prompts/session-permission-prompt.d.ts +19 -0
  2170. package/dist/session/prompts/session-permission-prompt.js +223 -0
  2171. package/dist/session/scope/create-scoped-session.d.ts +12 -0
  2172. package/dist/session/scope/create-scoped-session.js +28 -0
  2173. package/dist/session/scope/session-scope-control.d.ts +31 -0
  2174. package/dist/session/scope/session-scope-control.js +83 -0
  2175. package/dist/session/scope/session-scope-model.d.ts +113 -0
  2176. package/dist/session/scope/session-scope-model.js +249 -0
  2177. package/dist/session/scope/session-scope-toolbar.d.ts +22 -0
  2178. package/dist/session/scope/session-scope-toolbar.js +76 -0
  2179. package/dist/session/scope/use-session-scope.d.ts +61 -0
  2180. package/dist/session/scope/use-session-scope.js +206 -0
  2181. package/dist/session/status/agent-git-reconciliation.d.ts +2 -0
  2182. package/dist/session/status/agent-git-reconciliation.js +32 -0
  2183. package/dist/session/status/previous-repository-session.d.ts +17 -0
  2184. package/dist/session/status/previous-repository-session.js +130 -0
  2185. package/dist/session/status/provisioning-failure.d.ts +22 -0
  2186. package/dist/session/status/provisioning-failure.js +97 -0
  2187. package/dist/session/status/reload-forensics.d.ts +77 -0
  2188. package/dist/session/status/reload-forensics.js +200 -0
  2189. package/dist/session/status/sandbox-loading-boundary.d.ts +3 -0
  2190. package/dist/session/status/sandbox-loading-boundary.js +43 -0
  2191. package/dist/session/status/session-busy-indicator.d.ts +19 -0
  2192. package/dist/session/status/session-busy-indicator.js +55 -0
  2193. package/dist/session/status/session-chat-busy.d.ts +17 -0
  2194. package/dist/session/status/session-chat-busy.js +15 -0
  2195. package/dist/session/status/session-error-banner.d.ts +82 -0
  2196. package/dist/session/status/session-error-banner.js +327 -0
  2197. package/dist/session/status/session-load-state.d.ts +98 -0
  2198. package/dist/session/status/session-load-state.js +86 -0
  2199. package/dist/session/status/session-notice-banner.d.ts +27 -0
  2200. package/dist/session/status/session-notice-banner.js +27 -0
  2201. package/dist/session/status/session-resume.d.ts +126 -0
  2202. package/dist/session/status/session-resume.js +142 -0
  2203. package/dist/session/status/session-route-prefetch.d.ts +40 -0
  2204. package/dist/session/status/session-route-prefetch.js +18 -0
  2205. package/dist/session/status/session-start-gate.d.ts +27 -0
  2206. package/dist/session/status/session-start-gate.js +25 -0
  2207. package/dist/session/status/session-starting-loader.d.ts +83 -0
  2208. package/dist/session/status/session-starting-loader.js +190 -0
  2209. package/dist/session/status/session-surface.d.ts +175 -0
  2210. package/dist/session/status/session-surface.js +129 -0
  2211. package/dist/session/status/session-tab-title-sync.d.ts +20 -0
  2212. package/dist/session/status/session-tab-title-sync.js +44 -0
  2213. package/dist/session/status/session-tab-title.d.ts +33 -0
  2214. package/dist/session/status/session-tab-title.js +60 -0
  2215. package/dist/session/status/session-terminal-state.d.ts +70 -0
  2216. package/dist/session/status/session-terminal-state.js +62 -0
  2217. package/dist/session/status/stop-refusal.d.ts +14 -0
  2218. package/dist/session/status/stop-refusal.js +21 -0
  2219. package/dist/session/status/use-readiness-settling.d.ts +18 -0
  2220. package/dist/session/status/use-readiness-settling.js +43 -0
  2221. package/dist/session/thread/chat-minimap-items.d.ts +94 -0
  2222. package/dist/session/thread/chat-minimap-items.js +234 -0
  2223. package/dist/session/thread/chat-minimap.d.ts +8 -0
  2224. package/dist/session/thread/chat-minimap.js +138 -0
  2225. package/dist/session/thread/detect-command.d.ts +13 -0
  2226. package/dist/session/thread/detect-command.js +117 -0
  2227. package/dist/session/thread/first-prompt-handover.d.ts +54 -0
  2228. package/dist/session/thread/first-prompt-handover.js +78 -0
  2229. package/dist/session/thread/mention-chip.d.ts +51 -0
  2230. package/dist/session/thread/mention-chip.js +86 -0
  2231. package/dist/session/thread/mention-segments.d.ts +47 -0
  2232. package/dist/session/thread/mention-segments.js +117 -0
  2233. package/dist/session/thread/message-parsing.d.ts +80 -0
  2234. package/dist/session/thread/message-parsing.js +244 -0
  2235. package/dist/session/thread/optimistic-turn.d.ts +93 -0
  2236. package/dist/session/thread/optimistic-turn.js +209 -0
  2237. package/dist/session/thread/persisted-turn-failure.d.ts +25 -0
  2238. package/dist/session/thread/persisted-turn-failure.js +36 -0
  2239. package/dist/session/thread/pinned-root-session.d.ts +16 -0
  2240. package/dist/session/thread/pinned-root-session.js +18 -0
  2241. package/dist/session/thread/plan-surface.d.ts +9 -0
  2242. package/dist/session/thread/plan-surface.js +29 -0
  2243. package/dist/session/thread/reply-context.d.ts +38 -0
  2244. package/dist/session/thread/reply-context.js +179 -0
  2245. package/dist/session/thread/session-body.d.ts +28 -0
  2246. package/dist/session/thread/session-body.js +50 -0
  2247. package/dist/session/thread/session-chat.d.ts +67 -0
  2248. package/dist/session/thread/session-chat.js +3676 -0
  2249. package/dist/session/thread/session-context-message-explorer.d.ts +44 -0
  2250. package/dist/session/thread/session-context-message-explorer.js +118 -0
  2251. package/dist/session/thread/session-context-metrics.d.ts +24 -0
  2252. package/dist/session/thread/session-context-metrics.js +44 -0
  2253. package/dist/session/thread/session-context-modal.d.ts +34 -0
  2254. package/dist/session/thread/session-context-modal.js +228 -0
  2255. package/dist/session/thread/session-context-sub-sessions.d.ts +16 -0
  2256. package/dist/session/thread/session-context-sub-sessions.js +142 -0
  2257. package/dist/session/thread/session-history-scroll.d.ts +55 -0
  2258. package/dist/session/thread/session-history-scroll.js +88 -0
  2259. package/dist/session/thread/session-history.d.ts +22 -0
  2260. package/dist/session/thread/session-history.js +90 -0
  2261. package/dist/session/thread/session-older-autoload.d.ts +82 -0
  2262. package/dist/session/thread/session-older-autoload.js +55 -0
  2263. package/dist/session/thread/session-older-loading.d.ts +41 -0
  2264. package/dist/session/thread/session-older-loading.js +57 -0
  2265. package/dist/session/thread/session-thread.d.ts +35 -0
  2266. package/dist/session/thread/session-thread.js +13 -0
  2267. package/dist/session/thread/session-transcript-class.d.ts +19 -0
  2268. package/dist/session/thread/session-transcript-class.js +19 -0
  2269. package/dist/session/thread/session-turn-meta-rows.d.ts +44 -0
  2270. package/dist/session/thread/session-turn-meta-rows.js +82 -0
  2271. package/dist/session/thread/session-turn-meta.d.ts +9 -0
  2272. package/dist/session/thread/session-turn-meta.js +54 -0
  2273. package/dist/session/thread/session-welcome.d.ts +1 -0
  2274. package/dist/session/thread/session-welcome.js +7 -0
  2275. package/dist/session/thread/sub-session-modal-content.d.ts +8 -0
  2276. package/dist/session/thread/sub-session-modal-content.js +23 -0
  2277. package/dist/session/thread/sub-session-modal.d.ts +2 -0
  2278. package/dist/session/thread/sub-session-modal.js +14 -0
  2279. package/dist/session/thread/transcript.d.ts +351 -0
  2280. package/dist/session/thread/transcript.js +1213 -0
  2281. package/dist/session/tool/foreign-tool-calls.d.ts +11 -0
  2282. package/dist/session/tool/foreign-tool-calls.js +60 -0
  2283. package/dist/session/tool/generic-tool.d.ts +16 -0
  2284. package/dist/session/tool/generic-tool.js +74 -0
  2285. package/dist/session/tool/inline-permission-reply.d.ts +8 -0
  2286. package/dist/session/tool/inline-permission-reply.js +18 -0
  2287. package/dist/session/tool/shared/error-and-connector.d.ts +19 -0
  2288. package/dist/session/tool/shared/error-and-connector.js +106 -0
  2289. package/dist/session/tool/shared/file-list.d.ts +35 -0
  2290. package/dist/session/tool/shared/file-list.js +91 -0
  2291. package/dist/session/tool/shared/infrastructure-contexts.d.ts +65 -0
  2292. package/dist/session/tool/shared/infrastructure-contexts.js +101 -0
  2293. package/dist/session/tool/shared/infrastructure-files.d.ts +60 -0
  2294. package/dist/session/tool/shared/infrastructure-files.js +129 -0
  2295. package/dist/session/tool/shared/infrastructure-output.d.ts +32 -0
  2296. package/dist/session/tool/shared/infrastructure-output.js +93 -0
  2297. package/dist/session/tool/shared/infrastructure-parts.d.ts +18 -0
  2298. package/dist/session/tool/shared/infrastructure-parts.js +201 -0
  2299. package/dist/session/tool/shared/infrastructure-preview.d.ts +60 -0
  2300. package/dist/session/tool/shared/infrastructure-preview.js +245 -0
  2301. package/dist/session/tool/shared/infrastructure-row-header.d.ts +53 -0
  2302. package/dist/session/tool/shared/infrastructure-row-header.js +133 -0
  2303. package/dist/session/tool/shared/infrastructure-rows.d.ts +2 -0
  2304. package/dist/session/tool/shared/infrastructure-rows.js +153 -0
  2305. package/dist/session/tool/shared/infrastructure.d.ts +9 -0
  2306. package/dist/session/tool/shared/infrastructure.js +10 -0
  2307. package/dist/session/tool/shared/output-block.d.ts +66 -0
  2308. package/dist/session/tool/shared/output-block.js +71 -0
  2309. package/dist/session/tool/shared/patch-helpers.d.ts +26 -0
  2310. package/dist/session/tool/shared/patch-helpers.js +52 -0
  2311. package/dist/session/tool/shared/registry.d.ts +17 -0
  2312. package/dist/session/tool/shared/registry.js +55 -0
  2313. package/dist/session/tool/shared/result-card.d.ts +28 -0
  2314. package/dist/session/tool/shared/result-card.js +54 -0
  2315. package/dist/session/tool/shared/session-helpers.d.ts +17 -0
  2316. package/dist/session/tool/shared/session-helpers.js +116 -0
  2317. package/dist/session/tool/shared/show-helpers.d.ts +96 -0
  2318. package/dist/session/tool/shared/show-helpers.js +359 -0
  2319. package/dist/session/tool/shared/structured-output.d.ts +4 -0
  2320. package/dist/session/tool/shared/structured-output.js +51 -0
  2321. package/dist/session/tool/shared/sub-agent.d.ts +57 -0
  2322. package/dist/session/tool/shared/sub-agent.js +103 -0
  2323. package/dist/session/tool/shared/surface.d.ts +80 -0
  2324. package/dist/session/tool/shared/surface.js +84 -0
  2325. package/dist/session/tool/shared/todo-helpers.d.ts +24 -0
  2326. package/dist/session/tool/shared/todo-helpers.js +95 -0
  2327. package/dist/session/tool/shared/tool-action-bar.d.ts +21 -0
  2328. package/dist/session/tool/shared/tool-action-bar.js +14 -0
  2329. package/dist/session/tool/shared/types.d.ts +42 -0
  2330. package/dist/session/tool/shared/types.js +1 -0
  2331. package/dist/session/tool/shared/web-source-row.d.ts +4 -0
  2332. package/dist/session/tool/shared/web-source-row.js +26 -0
  2333. package/dist/session/tool/show-group-renderer.d.ts +19 -0
  2334. package/dist/session/tool/show-group-renderer.js +22 -0
  2335. package/dist/session/tool/tool-error.d.ts +4 -0
  2336. package/dist/session/tool/tool-error.js +30 -0
  2337. package/dist/session/tool/tool-meta.d.ts +15 -0
  2338. package/dist/session/tool/tool-meta.js +27 -0
  2339. package/dist/session/tool/tool-part-renderer.d.ts +39 -0
  2340. package/dist/session/tool/tool-part-renderer.js +150 -0
  2341. package/dist/session/tool/tool-renderers.d.ts +8 -0
  2342. package/dist/session/tool/tool-renderers.js +8 -0
  2343. package/dist/session/tool/tools/agent-message-tool.d.ts +2 -0
  2344. package/dist/session/tool/tools/agent-message-tool.js +29 -0
  2345. package/dist/session/tool/tools/agent-spawn-tool.d.ts +2 -0
  2346. package/dist/session/tool/tools/agent-spawn-tool.js +69 -0
  2347. package/dist/session/tool/tools/agent-status-tool.d.ts +2 -0
  2348. package/dist/session/tool/tools/agent-status-tool.js +47 -0
  2349. package/dist/session/tool/tools/agent-stop-tool.d.ts +2 -0
  2350. package/dist/session/tool/tools/agent-stop-tool.js +17 -0
  2351. package/dist/session/tool/tools/agent-task-update-tool.d.ts +2 -0
  2352. package/dist/session/tool/tools/agent-task-update-tool.js +43 -0
  2353. package/dist/session/tool/tools/apply-patch-tool.d.ts +2 -0
  2354. package/dist/session/tool/tools/apply-patch-tool.js +122 -0
  2355. package/dist/session/tool/tools/bash-tool.d.ts +54 -0
  2356. package/dist/session/tool/tools/bash-tool.js +279 -0
  2357. package/dist/session/tool/tools/channel-send-card.d.ts +18 -0
  2358. package/dist/session/tool/tools/channel-send-card.js +42 -0
  2359. package/dist/session/tool/tools/channel-send.d.ts +38 -0
  2360. package/dist/session/tool/tools/channel-send.js +191 -0
  2361. package/dist/session/tool/tools/codemode-tool.d.ts +21 -0
  2362. package/dist/session/tool/tools/codemode-tool.js +106 -0
  2363. package/dist/session/tool/tools/connector-get-tool.d.ts +2 -0
  2364. package/dist/session/tool/tools/connector-get-tool.js +22 -0
  2365. package/dist/session/tool/tools/connector-list-tool.d.ts +2 -0
  2366. package/dist/session/tool/tools/connector-list-tool.js +27 -0
  2367. package/dist/session/tool/tools/connector-setup-tool.d.ts +2 -0
  2368. package/dist/session/tool/tools/connector-setup-tool.js +39 -0
  2369. package/dist/session/tool/tools/connector-tools.d.ts +5 -0
  2370. package/dist/session/tool/tools/connector-tools.js +129 -0
  2371. package/dist/session/tool/tools/edit-tool.d.ts +2 -0
  2372. package/dist/session/tool/tools/edit-tool.js +123 -0
  2373. package/dist/session/tool/tools/get-mem-tool.d.ts +2 -0
  2374. package/dist/session/tool/tools/get-mem-tool.js +57 -0
  2375. package/dist/session/tool/tools/glob-tool.d.ts +2 -0
  2376. package/dist/session/tool/tools/glob-tool.js +70 -0
  2377. package/dist/session/tool/tools/grep-tool.d.ts +2 -0
  2378. package/dist/session/tool/tools/grep-tool.js +48 -0
  2379. package/dist/session/tool/tools/image-gen-tool.d.ts +2 -0
  2380. package/dist/session/tool/tools/image-gen-tool.js +61 -0
  2381. package/dist/session/tool/tools/image-search-tool.d.ts +2 -0
  2382. package/dist/session/tool/tools/image-search-tool.js +90 -0
  2383. package/dist/session/tool/tools/list-tool.d.ts +2 -0
  2384. package/dist/session/tool/tools/list-tool.js +57 -0
  2385. package/dist/session/tool/tools/memory-search-tool.d.ts +11 -0
  2386. package/dist/session/tool/tools/memory-search-tool.js +65 -0
  2387. package/dist/session/tool/tools/memory-tool.d.ts +51 -0
  2388. package/dist/session/tool/tools/memory-tool.js +175 -0
  2389. package/dist/session/tool/tools/presentation-gen-tool.d.ts +2 -0
  2390. package/dist/session/tool/tools/presentation-gen-tool.js +83 -0
  2391. package/dist/session/tool/tools/project-create-tool.d.ts +2 -0
  2392. package/dist/session/tool/tools/project-create-tool.js +39 -0
  2393. package/dist/session/tool/tools/project-delete-tool.d.ts +2 -0
  2394. package/dist/session/tool/tools/project-delete-tool.js +55 -0
  2395. package/dist/session/tool/tools/project-get-tool.d.ts +2 -0
  2396. package/dist/session/tool/tools/project-get-tool.js +24 -0
  2397. package/dist/session/tool/tools/project-list-tool.d.ts +2 -0
  2398. package/dist/session/tool/tools/project-list-tool.js +22 -0
  2399. package/dist/session/tool/tools/project-select-tool.d.ts +2 -0
  2400. package/dist/session/tool/tools/project-select-tool.js +36 -0
  2401. package/dist/session/tool/tools/pty-kill-tool.d.ts +2 -0
  2402. package/dist/session/tool/tools/pty-kill-tool.js +26 -0
  2403. package/dist/session/tool/tools/pty-read-tool.d.ts +21 -0
  2404. package/dist/session/tool/tools/pty-read-tool.js +100 -0
  2405. package/dist/session/tool/tools/pty-spawn-tool.d.ts +2 -0
  2406. package/dist/session/tool/tools/pty-spawn-tool.js +54 -0
  2407. package/dist/session/tool/tools/pty-write-tool.d.ts +2 -0
  2408. package/dist/session/tool/tools/pty-write-tool.js +20 -0
  2409. package/dist/session/tool/tools/question-tool.d.ts +2 -0
  2410. package/dist/session/tool/tools/question-tool.js +79 -0
  2411. package/dist/session/tool/tools/read-tool.d.ts +2 -0
  2412. package/dist/session/tool/tools/read-tool.js +72 -0
  2413. package/dist/session/tool/tools/register.d.ts +55 -0
  2414. package/dist/session/tool/tools/register.js +55 -0
  2415. package/dist/session/tool/tools/removed-connector-tool.d.ts +2 -0
  2416. package/dist/session/tool/tools/removed-connector-tool.js +21 -0
  2417. package/dist/session/tool/tools/scrape-webpage-tool.d.ts +2 -0
  2418. package/dist/session/tool/tools/scrape-webpage-tool.js +81 -0
  2419. package/dist/session/tool/tools/session-get-tool.d.ts +3 -0
  2420. package/dist/session/tool/tools/session-get-tool.js +45 -0
  2421. package/dist/session/tool/tools/session-lineage-tool.d.ts +2 -0
  2422. package/dist/session/tool/tools/session-lineage-tool.js +28 -0
  2423. package/dist/session/tool/tools/session-list-background-tool.d.ts +2 -0
  2424. package/dist/session/tool/tools/session-list-background-tool.js +31 -0
  2425. package/dist/session/tool/tools/session-message-tool.d.ts +2 -0
  2426. package/dist/session/tool/tools/session-message-tool.js +23 -0
  2427. package/dist/session/tool/tools/session-read-tool.d.ts +2 -0
  2428. package/dist/session/tool/tools/session-read-tool.js +79 -0
  2429. package/dist/session/tool/tools/session-search-tool.d.ts +2 -0
  2430. package/dist/session/tool/tools/session-search-tool.js +31 -0
  2431. package/dist/session/tool/tools/session-spawn-tool.d.ts +2 -0
  2432. package/dist/session/tool/tools/session-spawn-tool.js +58 -0
  2433. package/dist/session/tool/tools/session-spawn-urls.d.ts +16 -0
  2434. package/dist/session/tool/tools/session-spawn-urls.js +26 -0
  2435. package/dist/session/tool/tools/session-stats-tool.d.ts +2 -0
  2436. package/dist/session/tool/tools/session-stats-tool.js +17 -0
  2437. package/dist/session/tool/tools/show-tool.d.ts +13 -0
  2438. package/dist/session/tool/tools/show-tool.js +197 -0
  2439. package/dist/session/tool/tools/skill-tool.d.ts +10 -0
  2440. package/dist/session/tool/tools/skill-tool.js +47 -0
  2441. package/dist/session/tool/tools/task-delete-tool.d.ts +2 -0
  2442. package/dist/session/tool/tools/task-delete-tool.js +21 -0
  2443. package/dist/session/tool/tools/task-done-tool.d.ts +2 -0
  2444. package/dist/session/tool/tools/task-done-tool.js +19 -0
  2445. package/dist/session/tool/tools/task-list-tool.d.ts +2 -0
  2446. package/dist/session/tool/tools/task-list-tool.js +21 -0
  2447. package/dist/session/tool/tools/task-tool.d.ts +24 -0
  2448. package/dist/session/tool/tools/task-tool.js +140 -0
  2449. package/dist/session/tool/tools/todo-write-tool.d.ts +2 -0
  2450. package/dist/session/tool/tools/todo-write-tool.js +53 -0
  2451. package/dist/session/tool/tools/triggers-tool.d.ts +2 -0
  2452. package/dist/session/tool/tools/triggers-tool.js +132 -0
  2453. package/dist/session/tool/tools/video-gen-tool.d.ts +2 -0
  2454. package/dist/session/tool/tools/video-gen-tool.js +21 -0
  2455. package/dist/session/tool/tools/web-fetch-tool.d.ts +2 -0
  2456. package/dist/session/tool/tools/web-fetch-tool.js +53 -0
  2457. package/dist/session/tool/tools/web-search-tool.d.ts +2 -0
  2458. package/dist/session/tool/tools/web-search-tool.js +64 -0
  2459. package/dist/session/tool/tools/write-tool.d.ts +23 -0
  2460. package/dist/session/tool/tools/write-tool.js +92 -0
  2461. package/dist/session/turn/activity-burst.d.ts +65 -0
  2462. package/dist/session/turn/activity-burst.js +117 -0
  2463. package/dist/session/turn/activity-file-chips.d.ts +44 -0
  2464. package/dist/session/turn/activity-file-chips.js +238 -0
  2465. package/dist/session/turn/activity-group-step.d.ts +101 -0
  2466. package/dist/session/turn/activity-group-step.js +62 -0
  2467. package/dist/session/turn/activity-step.d.ts +34 -0
  2468. package/dist/session/turn/activity-step.js +116 -0
  2469. package/dist/session/turn/answered-question-step.d.ts +15 -0
  2470. package/dist/session/turn/answered-question-step.js +58 -0
  2471. package/dist/session/turn/attachment-preview.d.ts +7 -0
  2472. package/dist/session/turn/attachment-preview.js +46 -0
  2473. package/dist/session/turn/burst-step-body.d.ts +20 -0
  2474. package/dist/session/turn/burst-step-body.js +68 -0
  2475. package/dist/session/turn/burst-summary-trigger.d.ts +7 -0
  2476. package/dist/session/turn/burst-summary-trigger.js +17 -0
  2477. package/dist/session/turn/chain-step-trigger.d.ts +7 -0
  2478. package/dist/session/turn/chain-step-trigger.js +7 -0
  2479. package/dist/session/turn/channel-brand.d.ts +22 -0
  2480. package/dist/session/turn/channel-brand.js +34 -0
  2481. package/dist/session/turn/channel-message.d.ts +27 -0
  2482. package/dist/session/turn/channel-message.js +33 -0
  2483. package/dist/session/turn/checkpoint.d.ts +8 -0
  2484. package/dist/session/turn/checkpoint.js +11 -0
  2485. package/dist/session/turn/compaction-card.d.ts +41 -0
  2486. package/dist/session/turn/compaction-card.js +82 -0
  2487. package/dist/session/turn/expandable-output.d.ts +87 -0
  2488. package/dist/session/turn/expandable-output.js +147 -0
  2489. package/dist/session/turn/fallback-row.d.ts +10 -0
  2490. package/dist/session/turn/fallback-row.js +31 -0
  2491. package/dist/session/turn/message-author-label.d.ts +5 -0
  2492. package/dist/session/turn/message-author-label.js +63 -0
  2493. package/dist/session/turn/message-author.d.ts +47 -0
  2494. package/dist/session/turn/message-author.js +75 -0
  2495. package/dist/session/turn/message-time-label.d.ts +14 -0
  2496. package/dist/session/turn/message-time-label.js +103 -0
  2497. package/dist/session/turn/plan-anchor.d.ts +92 -0
  2498. package/dist/session/turn/plan-anchor.js +59 -0
  2499. package/dist/session/turn/plan-card.d.ts +113 -0
  2500. package/dist/session/turn/plan-card.js +316 -0
  2501. package/dist/session/turn/queued-prompt-bubbles.d.ts +23 -0
  2502. package/dist/session/turn/queued-prompt-bubbles.js +27 -0
  2503. package/dist/session/turn/same-parts.d.ts +21 -0
  2504. package/dist/session/turn/same-parts.js +31 -0
  2505. package/dist/session/turn/served-model.d.ts +63 -0
  2506. package/dist/session/turn/served-model.js +92 -0
  2507. package/dist/session/turn/source-pill.d.ts +26 -0
  2508. package/dist/session/turn/source-pill.js +20 -0
  2509. package/dist/session/turn/status-elapsed.d.ts +12 -0
  2510. package/dist/session/turn/status-elapsed.js +14 -0
  2511. package/dist/session/turn/streaming-cadence.d.ts +69 -0
  2512. package/dist/session/turn/streaming-cadence.js +304 -0
  2513. package/dist/session/turn/thought-chain-step.d.ts +58 -0
  2514. package/dist/session/turn/thought-chain-step.js +161 -0
  2515. package/dist/session/turn/throttled-markdown.d.ts +38 -0
  2516. package/dist/session/turn/throttled-markdown.js +123 -0
  2517. package/dist/session/turn/turn-viewport.d.ts +146 -0
  2518. package/dist/session/turn/turn-viewport.js +165 -0
  2519. package/dist/session/turn/turn-work-accordion.d.ts +12 -0
  2520. package/dist/session/turn/turn-work-accordion.js +25 -0
  2521. package/dist/session/turn/user-message.d.ts +353 -0
  2522. package/dist/session/turn/user-message.js +1089 -0
  2523. package/dist/styles/components.css +187 -0
  2524. package/dist/styles/print.css +461 -0
  2525. package/dist/styles/theme.css +82 -41
  2526. package/dist/styles/tokens.css +8 -8
  2527. package/dist/styles.css +1 -1
  2528. package/dist/terminal/index.d.ts +7 -0
  2529. package/dist/terminal/index.js +7 -0
  2530. package/dist/terminal/pty-attach-status.d.ts +15 -0
  2531. package/dist/terminal/pty-attach-status.js +42 -0
  2532. package/dist/terminal/pty-connection.d.ts +83 -0
  2533. package/dist/terminal/pty-connection.js +86 -0
  2534. package/dist/terminal/pty-terminal-sanitize.d.ts +2 -0
  2535. package/dist/terminal/pty-terminal-sanitize.js +26 -0
  2536. package/dist/terminal/pty-terminal.d.ts +19 -0
  2537. package/dist/terminal/pty-terminal.js +162 -0
  2538. package/dist/terminal/session-terminal-connect-bar.d.ts +15 -0
  2539. package/dist/terminal/session-terminal-connect-bar.js +67 -0
  2540. package/dist/terminal/session-terminal-panel.d.ts +17 -0
  2541. package/dist/terminal/session-terminal-panel.js +242 -0
  2542. package/dist/terminal/terminal-card-gate.d.ts +51 -0
  2543. package/dist/terminal/terminal-card-gate.js +54 -0
  2544. package/dist/terminal/use-pty-connection.d.ts +59 -0
  2545. package/dist/terminal/use-pty-connection.js +380 -0
  2546. package/dist/theme/index.d.ts +3 -0
  2547. package/dist/theme/index.js +5 -0
  2548. package/dist/theme/theme-scope.d.ts +24 -0
  2549. package/dist/theme/theme-scope.js +39 -0
  2550. package/dist/theme/theme.d.ts +123 -0
  2551. package/dist/theme/theme.js +224 -0
  2552. package/dist/theme/wallpapers.d.ts +26 -0
  2553. package/dist/theme/wallpapers.js +54 -0
  2554. package/dist/workspace/home/access-requests-bell.d.ts +34 -0
  2555. package/dist/workspace/home/access-requests-bell.js +48 -0
  2556. package/dist/workspace/home/first-chat-name.d.ts +7 -0
  2557. package/dist/workspace/home/first-chat-name.js +12 -0
  2558. package/dist/workspace/home/first-chat.d.ts +39 -0
  2559. package/dist/workspace/home/first-chat.js +101 -0
  2560. package/dist/workspace/home/home-greeting.d.ts +34 -0
  2561. package/dist/workspace/home/home-greeting.js +27 -0
  2562. package/dist/workspace/home/mobile-app-promo.d.ts +7 -0
  2563. package/dist/workspace/home/mobile-app-promo.js +55 -0
  2564. package/dist/workspace/home/sandbox-picker.d.ts +13 -0
  2565. package/dist/workspace/home/sandbox-picker.js +24 -0
  2566. package/dist/workspace/home/welcome-body.d.ts +54 -0
  2567. package/dist/workspace/home/welcome-body.js +67 -0
  2568. package/dist/workspace/index.d.ts +25 -0
  2569. package/dist/workspace/index.js +25 -0
  2570. package/dist/workspace/instant-session-shell.d.ts +48 -0
  2571. package/dist/workspace/instant-session-shell.js +216 -0
  2572. package/dist/workspace/layout/new-session-create.d.ts +26 -0
  2573. package/dist/workspace/layout/new-session-create.js +41 -0
  2574. package/dist/workspace/layout/project-files-skeleton.d.ts +15 -0
  2575. package/dist/workspace/layout/project-files-skeleton.js +19 -0
  2576. package/dist/workspace/layout/project-files-view.d.ts +3 -0
  2577. package/dist/workspace/layout/project-files-view.js +54 -0
  2578. package/dist/workspace/layout/project-home.d.ts +39 -0
  2579. package/dist/workspace/layout/project-home.js +195 -0
  2580. package/dist/workspace/layout/resolve-files-ref.d.ts +29 -0
  2581. package/dist/workspace/layout/resolve-files-ref.js +18 -0
  2582. package/dist/workspace/layout/sidebar-cookie.d.ts +12 -0
  2583. package/dist/workspace/layout/sidebar-cookie.js +17 -0
  2584. package/dist/workspace/layout/use-project-home-send.d.ts +20 -0
  2585. package/dist/workspace/layout/use-project-home-send.js +136 -0
  2586. package/dist/workspace/new/account-param.d.ts +3 -0
  2587. package/dist/workspace/new/account-param.js +34 -0
  2588. package/dist/workspace/new/account-picker.d.ts +71 -0
  2589. package/dist/workspace/new/account-picker.js +92 -0
  2590. package/dist/workspace/new/advanced-fields.d.ts +30 -0
  2591. package/dist/workspace/new/advanced-fields.js +261 -0
  2592. package/dist/workspace/new/clone-param.d.ts +11 -0
  2593. package/dist/workspace/new/clone-param.js +15 -0
  2594. package/dist/workspace/new/create-workspace-key.d.ts +10 -0
  2595. package/dist/workspace/new/create-workspace-key.js +106 -0
  2596. package/dist/workspace/new/github-source.d.ts +136 -0
  2597. package/dist/workspace/new/github-source.js +205 -0
  2598. package/dist/workspace/new/github-user-authorization.d.ts +28 -0
  2599. package/dist/workspace/new/github-user-authorization.js +37 -0
  2600. package/dist/workspace/new/new-workspace-form.d.ts +179 -0
  2601. package/dist/workspace/new/new-workspace-form.js +247 -0
  2602. package/dist/workspace/new/repository-options.d.ts +89 -0
  2603. package/dist/workspace/new/repository-options.js +126 -0
  2604. package/dist/workspace/new/source-param.d.ts +19 -0
  2605. package/dist/workspace/new/source-param.js +20 -0
  2606. package/dist/workspace/new/use-creatable-accounts.d.ts +8 -0
  2607. package/dist/workspace/new/use-creatable-accounts.js +24 -0
  2608. package/dist/workspace/new/use-create-workspace.d.ts +520 -0
  2609. package/dist/workspace/new/use-create-workspace.js +751 -0
  2610. package/dist/workspace/new/use-project-quota.d.ts +24 -0
  2611. package/dist/workspace/new/use-project-quota.js +30 -0
  2612. package/dist/workspace/new/workspace-handoff.d.ts +52 -0
  2613. package/dist/workspace/new/workspace-handoff.js +76 -0
  2614. package/dist/workspace/new/workspace-name.d.ts +27 -0
  2615. package/dist/workspace/new/workspace-name.js +71 -0
  2616. package/dist/workspace/project-selector/project-selector-model.d.ts +99 -0
  2617. package/dist/workspace/project-selector/project-selector-model.js +151 -0
  2618. package/dist/workspace/projects/modal/github-import-pickers.d.ts +16 -0
  2619. package/dist/workspace/projects/modal/github-import-pickers.js +78 -0
  2620. package/dist/workspace/projects/modal/project-icon-field.d.ts +74 -0
  2621. package/dist/workspace/projects/modal/project-icon-field.js +225 -0
  2622. package/dist/workspace/projects/onboarding/app-logo.d.ts +5 -0
  2623. package/dist/workspace/projects/onboarding/app-logo.js +18 -0
  2624. package/dist/workspace/projects/onboarding/connect-app.d.ts +37 -0
  2625. package/dist/workspace/projects/onboarding/connect-app.js +48 -0
  2626. package/dist/workspace/projects/policies-panel.d.ts +58 -0
  2627. package/dist/workspace/projects/policies-panel.js +270 -0
  2628. package/dist/workspace/projects/session-shared-icon.d.ts +8 -0
  2629. package/dist/workspace/projects/session-shared-icon.js +12 -0
  2630. package/dist/workspace/projects/session-starter.d.ts +19 -0
  2631. package/dist/workspace/projects/session-starter.js +17 -0
  2632. package/dist/workspace/repository-disconnected.d.ts +12 -0
  2633. package/dist/workspace/repository-disconnected.js +28 -0
  2634. package/dist/workspace/review/approval-modal.d.ts +43 -0
  2635. package/dist/workspace/review/approval-modal.js +91 -0
  2636. package/dist/workspace/review/change-files.d.ts +3 -0
  2637. package/dist/workspace/review/change-files.js +58 -0
  2638. package/dist/workspace/review/hooks/use-review-items.d.ts +64 -0
  2639. package/dist/workspace/review/hooks/use-review-items.js +109 -0
  2640. package/dist/workspace/review/map.d.ts +24 -0
  2641. package/dist/workspace/review/map.js +47 -0
  2642. package/dist/workspace/review/mock-data.d.ts +10 -0
  2643. package/dist/workspace/review/mock-data.js +408 -0
  2644. package/dist/workspace/review/review-actions.d.ts +98 -0
  2645. package/dist/workspace/review/review-actions.js +177 -0
  2646. package/dist/workspace/review/review-center.d.ts +46 -0
  2647. package/dist/workspace/review/review-center.js +798 -0
  2648. package/dist/workspace/review/review-detail.d.ts +30 -0
  2649. package/dist/workspace/review/review-detail.js +210 -0
  2650. package/dist/workspace/review/review-meta.d.ts +59 -0
  2651. package/dist/workspace/review/review-meta.js +100 -0
  2652. package/dist/workspace/review/review-reducer.d.ts +51 -0
  2653. package/dist/workspace/review/review-reducer.js +120 -0
  2654. package/dist/workspace/review/types.d.ts +42 -0
  2655. package/dist/workspace/review/types.js +16 -0
  2656. package/dist/workspace/saved-session-skeleton-rows.d.ts +18 -0
  2657. package/dist/workspace/saved-session-skeleton-rows.js +20 -0
  2658. package/dist/workspace/saved-session-skeleton-shape.d.ts +65 -0
  2659. package/dist/workspace/saved-session-skeleton-shape.js +75 -0
  2660. package/dist/workspace/saved-session-skeleton.d.ts +7 -0
  2661. package/dist/workspace/saved-session-skeleton.js +43 -0
  2662. package/dist/workspace/session-workspace.d.ts +35 -0
  2663. package/dist/workspace/session-workspace.js +234 -0
  2664. package/dist/workspace/sessions/deleted-session-row.d.ts +11 -0
  2665. package/dist/workspace/sessions/deleted-session-row.js +25 -0
  2666. package/dist/workspace/sessions/project-sessions-helpers.d.ts +88 -0
  2667. package/dist/workspace/sessions/project-sessions-helpers.js +208 -0
  2668. package/dist/workspace/sessions/project-sessions-view.d.ts +3 -0
  2669. package/dist/workspace/sessions/project-sessions-view.js +571 -0
  2670. package/dist/workspace/sessions/session-detail.d.ts +10 -0
  2671. package/dist/workspace/sessions/session-detail.js +20 -0
  2672. package/dist/workspace/sessions/session-label-badges.d.ts +7 -0
  2673. package/dist/workspace/sessions/session-label-badges.js +13 -0
  2674. package/dist/workspace/sessions/session-owner-filters.d.ts +61 -0
  2675. package/dist/workspace/sessions/session-owner-filters.js +106 -0
  2676. package/dist/workspace/sessions/session-row.d.ts +57 -0
  2677. package/dist/workspace/sessions/session-row.js +156 -0
  2678. package/dist/workspace/sessions/session-starter-mark.d.ts +15 -0
  2679. package/dist/workspace/sessions/session-starter-mark.js +53 -0
  2680. package/dist/workspace/sessions/sessions-bulk-delete-dialog.d.ts +8 -0
  2681. package/dist/workspace/sessions/sessions-bulk-delete-dialog.js +15 -0
  2682. package/dist/workspace/sessions/sessions-empty-state.d.ts +16 -0
  2683. package/dist/workspace/sessions/sessions-empty-state.js +25 -0
  2684. package/dist/workspace/sessions/sessions-selection-bar.d.ts +15 -0
  2685. package/dist/workspace/sessions/sessions-selection-bar.js +14 -0
  2686. package/dist/workspace/sessions/sessions-toolbar.d.ts +18 -0
  2687. package/dist/workspace/sessions/sessions-toolbar.js +40 -0
  2688. package/dist/workspace/sidebar/customize-sidebar-modal.d.ts +9 -0
  2689. package/dist/workspace/sidebar/customize-sidebar-modal.js +198 -0
  2690. package/dist/workspace/sidebar/footer/project-apps-nav.d.ts +10 -0
  2691. package/dist/workspace/sidebar/footer/project-apps-nav.js +34 -0
  2692. package/dist/workspace/sidebar/footer/project-balance-warning.d.ts +10 -0
  2693. package/dist/workspace/sidebar/footer/project-balance-warning.js +47 -0
  2694. package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -0
  2695. package/dist/workspace/sidebar/footer/project-computer-nav.js +71 -0
  2696. package/dist/workspace/sidebar/footer/project-files-nav.d.ts +29 -0
  2697. package/dist/workspace/sidebar/footer/project-files-nav.js +80 -0
  2698. package/dist/workspace/sidebar/footer/project-manifest-upgrade-alert.d.ts +13 -0
  2699. package/dist/workspace/sidebar/footer/project-manifest-upgrade-alert.js +48 -0
  2700. package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +10 -0
  2701. package/dist/workspace/sidebar/footer/project-mcp-nav.js +46 -0
  2702. package/dist/workspace/sidebar/footer/project-rooms-nav.d.ts +9 -0
  2703. package/dist/workspace/sidebar/footer/project-rooms-nav.js +32 -0
  2704. package/dist/workspace/sidebar/footer/project-sandbox-alert.d.ts +3 -0
  2705. package/dist/workspace/sidebar/footer/project-sandbox-alert.js +125 -0
  2706. package/dist/workspace/sidebar/footer/project-upgrade-button.d.ts +6 -0
  2707. package/dist/workspace/sidebar/footer/project-upgrade-button.js +46 -0
  2708. package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +10 -0
  2709. package/dist/workspace/sidebar/footer/promo-nav-row.js +7 -0
  2710. package/dist/workspace/sidebar/footer/sandbox-alert-state.d.ts +31 -0
  2711. package/dist/workspace/sidebar/footer/sandbox-alert-state.js +47 -0
  2712. package/dist/workspace/sidebar/footer/sandbox-health.d.ts +22 -0
  2713. package/dist/workspace/sidebar/footer/sandbox-health.js +107 -0
  2714. package/dist/workspace/sidebar/footer/sidebar-alert.d.ts +54 -0
  2715. package/dist/workspace/sidebar/footer/sidebar-alert.js +86 -0
  2716. package/dist/workspace/sidebar/invitations-menu-group.d.ts +6 -0
  2717. package/dist/workspace/sidebar/invitations-menu-group.js +56 -0
  2718. package/dist/workspace/sidebar/modal/rename-session-modal.d.ts +10 -0
  2719. package/dist/workspace/sidebar/modal/rename-session-modal.js +41 -0
  2720. package/dist/workspace/sidebar/modal/session-labels-modal.d.ts +13 -0
  2721. package/dist/workspace/sidebar/modal/session-labels-modal.js +91 -0
  2722. package/dist/workspace/sidebar/modal/session-labels.d.ts +10 -0
  2723. package/dist/workspace/sidebar/modal/session-labels.js +17 -0
  2724. package/dist/workspace/sidebar/modal/session-public-link-section.d.ts +13 -0
  2725. package/dist/workspace/sidebar/modal/session-public-link-section.js +66 -0
  2726. package/dist/workspace/sidebar/modal/share-session-access.d.ts +33 -0
  2727. package/dist/workspace/sidebar/modal/share-session-access.js +44 -0
  2728. package/dist/workspace/sidebar/modal/share-session-cache.d.ts +15 -0
  2729. package/dist/workspace/sidebar/modal/share-session-cache.js +16 -0
  2730. package/dist/workspace/sidebar/modal/share-session-modal.d.ts +8 -0
  2731. package/dist/workspace/sidebar/modal/share-session-modal.js +109 -0
  2732. package/dist/workspace/sidebar/nav-row-meta.d.ts +14 -0
  2733. package/dist/workspace/sidebar/nav-row-meta.js +70 -0
  2734. package/dist/workspace/sidebar/project-nav-items.d.ts +12 -0
  2735. package/dist/workspace/sidebar/project-nav-items.js +99 -0
  2736. package/dist/workspace/sidebar/project-session-list.d.ts +5 -0
  2737. package/dist/workspace/sidebar/project-session-list.js +608 -0
  2738. package/dist/workspace/sidebar/project-sidebar.d.ts +15 -0
  2739. package/dist/workspace/sidebar/project-sidebar.js +101 -0
  2740. package/dist/workspace/sidebar/session-brief-hover-card.d.ts +68 -0
  2741. package/dist/workspace/sidebar/session-brief-hover-card.js +230 -0
  2742. package/dist/workspace/sidebar/session-filter-menu.d.ts +79 -0
  2743. package/dist/workspace/sidebar/session-filter-menu.js +253 -0
  2744. package/dist/workspace/sidebar/session-grouping.d.ts +142 -0
  2745. package/dist/workspace/sidebar/session-grouping.js +199 -0
  2746. package/dist/workspace/sidebar/session-label-facet.d.ts +14 -0
  2747. package/dist/workspace/sidebar/session-label-facet.js +19 -0
  2748. package/dist/workspace/sidebar/session-open-intent.d.ts +30 -0
  2749. package/dist/workspace/sidebar/session-open-intent.js +58 -0
  2750. package/dist/workspace/sidebar/session-section-labels.d.ts +3 -0
  2751. package/dist/workspace/sidebar/session-section-labels.js +4 -0
  2752. package/dist/workspace/sidebar/session-source-icons.d.ts +19 -0
  2753. package/dist/workspace/sidebar/session-source-icons.js +31 -0
  2754. package/dist/workspace/sidebar/session-status-mark.d.ts +19 -0
  2755. package/dist/workspace/sidebar/session-status-mark.js +70 -0
  2756. package/dist/workspace/sidebar/session-title.d.ts +24 -0
  2757. package/dist/workspace/sidebar/session-title.js +26 -0
  2758. package/dist/workspace/sidebar/workspace-grouping.d.ts +83 -0
  2759. package/dist/workspace/sidebar/workspace-grouping.js +135 -0
  2760. package/dist/workspace/sidebar/workspace-menu-model.d.ts +12 -0
  2761. package/dist/workspace/sidebar/workspace-menu-model.js +108 -0
  2762. package/dist/workspace/sidebar/workspace-menu-section.d.ts +1 -0
  2763. package/dist/workspace/sidebar/workspace-menu-section.js +124 -0
  2764. package/package.json +1819 -417
  2765. package/skills/kortix-ui/SKILL.md +76 -76
  2766. package/skills/kortix-ui/references/custom-dashboard.md +471 -0
  2767. package/skills/kortix-ui/references/modules.md +417 -0
  2768. package/skills/kortix-ui/references/theming.md +107 -0
  2769. package/dist/chat/agent-picker.d.ts +0 -8
  2770. package/dist/chat/agent-picker.js +0 -18
  2771. package/dist/chat/composer.d.ts +0 -31
  2772. package/dist/chat/composer.js +0 -114
  2773. package/dist/chat/index.d.ts +0 -22
  2774. package/dist/chat/index.js +0 -22
  2775. package/dist/chat/markdown.d.ts +0 -10
  2776. package/dist/chat/markdown.js +0 -36
  2777. package/dist/chat/message-list.d.ts +0 -25
  2778. package/dist/chat/message-list.js +0 -73
  2779. package/dist/chat/message-view.d.ts +0 -17
  2780. package/dist/chat/message-view.js +0 -86
  2781. package/dist/chat/model-picker.d.ts +0 -10
  2782. package/dist/chat/model-picker.js +0 -68
  2783. package/dist/chat/permission-prompt.d.ts +0 -10
  2784. package/dist/chat/permission-prompt.js +0 -40
  2785. package/dist/chat/question-prompt.d.ts +0 -8
  2786. package/dist/chat/question-prompt.js +0 -60
  2787. package/dist/chat/send-failure.d.ts +0 -9
  2788. package/dist/chat/send-failure.js +0 -21
  2789. package/dist/chat/session-thread.d.ts +0 -28
  2790. package/dist/chat/session-thread.js +0 -47
  2791. package/dist/chat/streaming-markdown.d.ts +0 -21
  2792. package/dist/chat/streaming-markdown.js +0 -59
  2793. package/dist/chat/tool-call.d.ts +0 -4
  2794. package/dist/chat/tool-call.js +0 -150
  2795. package/dist/chat/user-message-parts.d.ts +0 -6
  2796. package/dist/chat/user-message-parts.js +0 -11
  2797. package/dist/components/ui/accordion.js +0 -18
  2798. package/dist/components/ui/alert-dialog.js +0 -48
  2799. package/dist/components/ui/alert.d.ts +0 -13
  2800. package/dist/components/ui/alert.js +0 -67
  2801. package/dist/components/ui/avatar.js +0 -23
  2802. package/dist/components/ui/back-pill.js +0 -18
  2803. package/dist/components/ui/badge.d.ts +0 -10
  2804. package/dist/components/ui/badge.js +0 -42
  2805. package/dist/components/ui/breadcrumb.js +0 -28
  2806. package/dist/components/ui/bubble.d.ts +0 -20
  2807. package/dist/components/ui/bubble.js +0 -38
  2808. package/dist/components/ui/button-group.js +0 -32
  2809. package/dist/components/ui/button.d.ts +0 -13
  2810. package/dist/components/ui/button.js +0 -67
  2811. package/dist/components/ui/calendar.js +0 -39
  2812. package/dist/components/ui/card.d.ts +0 -96
  2813. package/dist/components/ui/card.js +0 -291
  2814. package/dist/components/ui/chain-of-thought.js +0 -66
  2815. package/dist/components/ui/chart.js +0 -118
  2816. package/dist/components/ui/checkbox-group.js +0 -41
  2817. package/dist/components/ui/checkbox.js +0 -27
  2818. package/dist/components/ui/collapsible.js +0 -14
  2819. package/dist/components/ui/command.js +0 -135
  2820. package/dist/components/ui/confirm-dialog.js +0 -30
  2821. package/dist/components/ui/context-menu.d.ts +0 -45
  2822. package/dist/components/ui/context-menu.js +0 -93
  2823. package/dist/components/ui/count-badge.d.ts +0 -26
  2824. package/dist/components/ui/count-badge.js +0 -26
  2825. package/dist/components/ui/data-grid.js +0 -107
  2826. package/dist/components/ui/date-range-picker.js +0 -190
  2827. package/dist/components/ui/definition-list.js +0 -26
  2828. package/dist/components/ui/dialog.d.ts +0 -29
  2829. package/dist/components/ui/dialog.js +0 -52
  2830. package/dist/components/ui/disclosure.js +0 -138
  2831. package/dist/components/ui/dot-matrix/dotm-3x3-10.d.ts +0 -4
  2832. package/dist/components/ui/dot-matrix/dotm-3x3-10.js +0 -29
  2833. package/dist/components/ui/dot-matrix/dotm-3x3-12.d.ts +0 -4
  2834. package/dist/components/ui/dot-matrix/dotm-3x3-12.js +0 -19
  2835. package/dist/components/ui/dot-matrix/dotm-3x3-13.d.ts +0 -4
  2836. package/dist/components/ui/dot-matrix/dotm-3x3-13.js +0 -19
  2837. package/dist/components/ui/dot-matrix/dotm-3x3-15.d.ts +0 -4
  2838. package/dist/components/ui/dot-matrix/dotm-3x3-15.js +0 -22
  2839. package/dist/components/ui/dot-matrix/dotm-3x3-16.d.ts +0 -4
  2840. package/dist/components/ui/dot-matrix/dotm-3x3-16.js +0 -5
  2841. package/dist/components/ui/dot-matrix/dotm-3x3-18.d.ts +0 -4
  2842. package/dist/components/ui/dot-matrix/dotm-3x3-18.js +0 -5
  2843. package/dist/components/ui/dot-matrix/dotm-3x3-19.d.ts +0 -4
  2844. package/dist/components/ui/dot-matrix/dotm-3x3-19.js +0 -5
  2845. package/dist/components/ui/dot-matrix/dotm-3x3-2.d.ts +0 -4
  2846. package/dist/components/ui/dot-matrix/dotm-3x3-2.js +0 -3
  2847. package/dist/components/ui/dot-matrix/dotm-3x3-20.d.ts +0 -4
  2848. package/dist/components/ui/dot-matrix/dotm-3x3-20.js +0 -5
  2849. package/dist/components/ui/dot-matrix/dotm-3x3-21.d.ts +0 -4
  2850. package/dist/components/ui/dot-matrix/dotm-3x3-21.js +0 -5
  2851. package/dist/components/ui/dot-matrix/dotm-3x3-3.d.ts +0 -4
  2852. package/dist/components/ui/dot-matrix/dotm-3x3-3.js +0 -3
  2853. package/dist/components/ui/dot-matrix/dotm-3x3-4.d.ts +0 -4
  2854. package/dist/components/ui/dot-matrix/dotm-3x3-4.js +0 -3
  2855. package/dist/components/ui/dot-matrix/dotm-3x3-5.d.ts +0 -4
  2856. package/dist/components/ui/dot-matrix/dotm-3x3-5.js +0 -3
  2857. package/dist/components/ui/dot-matrix/dotm-3x3-6.d.ts +0 -4
  2858. package/dist/components/ui/dot-matrix/dotm-3x3-6.js +0 -19
  2859. package/dist/components/ui/dot-matrix/dotm-3x3-7.d.ts +0 -4
  2860. package/dist/components/ui/dot-matrix/dotm-3x3-7.js +0 -19
  2861. package/dist/components/ui/dot-matrix/dotm-3x3-8.d.ts +0 -4
  2862. package/dist/components/ui/dot-matrix/dotm-3x3-8.js +0 -19
  2863. package/dist/components/ui/dot-matrix/dotm-3x3-9.d.ts +0 -4
  2864. package/dist/components/ui/dot-matrix/dotm-3x3-9.js +0 -23
  2865. package/dist/components/ui/dot-matrix/dotm-circular-1.d.ts +0 -4
  2866. package/dist/components/ui/dot-matrix/dotm-circular-1.js +0 -28
  2867. package/dist/components/ui/dot-matrix/dotm-circular-10.d.ts +0 -4
  2868. package/dist/components/ui/dot-matrix/dotm-circular-10.js +0 -40
  2869. package/dist/components/ui/dot-matrix/dotm-circular-11.d.ts +0 -4
  2870. package/dist/components/ui/dot-matrix/dotm-circular-11.js +0 -37
  2871. package/dist/components/ui/dot-matrix/dotm-circular-12.d.ts +0 -4
  2872. package/dist/components/ui/dot-matrix/dotm-circular-12.js +0 -42
  2873. package/dist/components/ui/dot-matrix/dotm-circular-14.d.ts +0 -4
  2874. package/dist/components/ui/dot-matrix/dotm-circular-14.js +0 -37
  2875. package/dist/components/ui/dot-matrix/dotm-circular-15.d.ts +0 -4
  2876. package/dist/components/ui/dot-matrix/dotm-circular-15.js +0 -49
  2877. package/dist/components/ui/dot-matrix/dotm-circular-17.d.ts +0 -4
  2878. package/dist/components/ui/dot-matrix/dotm-circular-17.js +0 -31
  2879. package/dist/components/ui/dot-matrix/dotm-circular-2.d.ts +0 -4
  2880. package/dist/components/ui/dot-matrix/dotm-circular-2.js +0 -37
  2881. package/dist/components/ui/dot-matrix/dotm-circular-3.d.ts +0 -4
  2882. package/dist/components/ui/dot-matrix/dotm-circular-3.js +0 -54
  2883. package/dist/components/ui/dot-matrix/dotm-circular-4.d.ts +0 -4
  2884. package/dist/components/ui/dot-matrix/dotm-circular-4.js +0 -35
  2885. package/dist/components/ui/dot-matrix/dotm-circular-5.d.ts +0 -4
  2886. package/dist/components/ui/dot-matrix/dotm-circular-5.js +0 -30
  2887. package/dist/components/ui/dot-matrix/dotm-circular-6.d.ts +0 -4
  2888. package/dist/components/ui/dot-matrix/dotm-circular-6.js +0 -37
  2889. package/dist/components/ui/dot-matrix/dotm-circular-7.d.ts +0 -4
  2890. package/dist/components/ui/dot-matrix/dotm-circular-7.js +0 -25
  2891. package/dist/components/ui/dot-matrix/dotm-circular-8.d.ts +0 -4
  2892. package/dist/components/ui/dot-matrix/dotm-circular-8.js +0 -26
  2893. package/dist/components/ui/dot-matrix/dotm-circular-9.d.ts +0 -4
  2894. package/dist/components/ui/dot-matrix/dotm-circular-9.js +0 -41
  2895. package/dist/components/ui/dot-matrix/dotm-square-1.d.ts +0 -4
  2896. package/dist/components/ui/dot-matrix/dotm-square-1.js +0 -27
  2897. package/dist/components/ui/dot-matrix/dotm-square-10.d.ts +0 -4
  2898. package/dist/components/ui/dot-matrix/dotm-square-10.js +0 -27
  2899. package/dist/components/ui/dot-matrix/dotm-square-11.d.ts +0 -4
  2900. package/dist/components/ui/dot-matrix/dotm-square-11.js +0 -25
  2901. package/dist/components/ui/dot-matrix/dotm-square-12.d.ts +0 -4
  2902. package/dist/components/ui/dot-matrix/dotm-square-12.js +0 -28
  2903. package/dist/components/ui/dot-matrix/dotm-square-13.d.ts +0 -4
  2904. package/dist/components/ui/dot-matrix/dotm-square-13.js +0 -45
  2905. package/dist/components/ui/dot-matrix/dotm-square-14.d.ts +0 -4
  2906. package/dist/components/ui/dot-matrix/dotm-square-14.js +0 -38
  2907. package/dist/components/ui/dot-matrix/dotm-square-15.d.ts +0 -4
  2908. package/dist/components/ui/dot-matrix/dotm-square-15.js +0 -31
  2909. package/dist/components/ui/dot-matrix/dotm-square-16.d.ts +0 -4
  2910. package/dist/components/ui/dot-matrix/dotm-square-16.js +0 -33
  2911. package/dist/components/ui/dot-matrix/dotm-square-17.d.ts +0 -4
  2912. package/dist/components/ui/dot-matrix/dotm-square-17.js +0 -27
  2913. package/dist/components/ui/dot-matrix/dotm-square-18.d.ts +0 -4
  2914. package/dist/components/ui/dot-matrix/dotm-square-18.js +0 -29
  2915. package/dist/components/ui/dot-matrix/dotm-square-19.d.ts +0 -4
  2916. package/dist/components/ui/dot-matrix/dotm-square-19.js +0 -74
  2917. package/dist/components/ui/dot-matrix/dotm-square-2.d.ts +0 -4
  2918. package/dist/components/ui/dot-matrix/dotm-square-2.js +0 -72
  2919. package/dist/components/ui/dot-matrix/dotm-square-20.d.ts +0 -4
  2920. package/dist/components/ui/dot-matrix/dotm-square-20.js +0 -79
  2921. package/dist/components/ui/dot-matrix/dotm-square-3.d.ts +0 -4
  2922. package/dist/components/ui/dot-matrix/dotm-square-3.js +0 -23
  2923. package/dist/components/ui/dot-matrix/dotm-square-4.d.ts +0 -4
  2924. package/dist/components/ui/dot-matrix/dotm-square-4.js +0 -41
  2925. package/dist/components/ui/dot-matrix/dotm-square-5.d.ts +0 -4
  2926. package/dist/components/ui/dot-matrix/dotm-square-5.js +0 -23
  2927. package/dist/components/ui/dot-matrix/dotm-square-6.d.ts +0 -4
  2928. package/dist/components/ui/dot-matrix/dotm-square-6.js +0 -20
  2929. package/dist/components/ui/dot-matrix/dotm-square-7.d.ts +0 -4
  2930. package/dist/components/ui/dot-matrix/dotm-square-7.js +0 -43
  2931. package/dist/components/ui/dot-matrix/dotm-square-8.d.ts +0 -4
  2932. package/dist/components/ui/dot-matrix/dotm-square-8.js +0 -57
  2933. package/dist/components/ui/dot-matrix/dotm-square-9.d.ts +0 -4
  2934. package/dist/components/ui/dot-matrix/dotm-square-9.js +0 -89
  2935. package/dist/components/ui/dot-matrix/session-dot-matrix.d.ts +0 -46
  2936. package/dist/components/ui/drawer.js +0 -35
  2937. package/dist/components/ui/dropdown-menu.d.ts +0 -49
  2938. package/dist/components/ui/dropdown-menu.js +0 -113
  2939. package/dist/components/ui/emoji-picker.js +0 -137
  2940. package/dist/components/ui/empty.js +0 -33
  2941. package/dist/components/ui/entity-avatar.js +0 -106
  2942. package/dist/components/ui/faded-scroll-area.js +0 -80
  2943. package/dist/components/ui/favicon-avatar.js +0 -18
  2944. package/dist/components/ui/field.d.ts +0 -15
  2945. package/dist/components/ui/field.js +0 -48
  2946. package/dist/components/ui/file-tree.js +0 -30
  2947. package/dist/components/ui/glyph-face.js +0 -37
  2948. package/dist/components/ui/glyph-paths-source.js +0 -40
  2949. package/dist/components/ui/glyph-paths.generated.js +0 -207
  2950. package/dist/components/ui/glyph-picker.js +0 -118
  2951. package/dist/components/ui/glyph-tint.js +0 -93
  2952. package/dist/components/ui/histogram-bars.js +0 -93
  2953. package/dist/components/ui/hover-card.d.ts +0 -28
  2954. package/dist/components/ui/hover-card.js +0 -35
  2955. package/dist/components/ui/icon-provider.js +0 -30
  2956. package/dist/components/ui/info-banner.js +0 -72
  2957. package/dist/components/ui/inline-meta.js +0 -8
  2958. package/dist/components/ui/input-group.js +0 -73
  2959. package/dist/components/ui/input.js +0 -23
  2960. package/dist/components/ui/item.d.ts +0 -23
  2961. package/dist/components/ui/item.js +0 -67
  2962. package/dist/components/ui/kbd.js +0 -20
  2963. package/dist/components/ui/kortix-asterisk.js +0 -17
  2964. package/dist/components/ui/kortix-loader.js +0 -74
  2965. package/dist/components/ui/kortix-logo.js +0 -47
  2966. package/dist/components/ui/label.js +0 -9
  2967. package/dist/components/ui/list.js +0 -25
  2968. package/dist/components/ui/loading.js +0 -31
  2969. package/dist/components/ui/map.js +0 -257
  2970. package/dist/components/ui/marker.d.ts +0 -14
  2971. package/dist/components/ui/marker.js +0 -28
  2972. package/dist/components/ui/menu-recipe.js +0 -129
  2973. package/dist/components/ui/mermaid-render.d.ts +0 -51
  2974. package/dist/components/ui/mermaid-render.js +0 -65
  2975. package/dist/components/ui/mermaid-renderer.js +0 -340
  2976. package/dist/components/ui/message.js +0 -26
  2977. package/dist/components/ui/modal.d.ts +0 -104
  2978. package/dist/components/ui/modal.js +0 -180
  2979. package/dist/components/ui/navigation-menu.js +0 -35
  2980. package/dist/components/ui/page-search-bar.js +0 -13
  2981. package/dist/components/ui/phone-input.js +0 -59
  2982. package/dist/components/ui/pixel-kortix-mark.js +0 -40
  2983. package/dist/components/ui/popover.js +0 -38
  2984. package/dist/components/ui/portal.js +0 -15
  2985. package/dist/components/ui/preview-image.d.ts +0 -14
  2986. package/dist/components/ui/preview-image.js +0 -58
  2987. package/dist/components/ui/progress-ring.js +0 -9
  2988. package/dist/components/ui/progress.js +0 -8
  2989. package/dist/components/ui/radio-group.js +0 -20
  2990. package/dist/components/ui/resizable.d.ts +0 -24
  2991. package/dist/components/ui/resizable.js +0 -16
  2992. package/dist/components/ui/scroll-area.js +0 -11
  2993. package/dist/components/ui/section-card.js +0 -14
  2994. package/dist/components/ui/section.js +0 -22
  2995. package/dist/components/ui/select.js +0 -59
  2996. package/dist/components/ui/separator.js +0 -8
  2997. package/dist/components/ui/sheet.d.ts +0 -32
  2998. package/dist/components/ui/sheet.js +0 -55
  2999. package/dist/components/ui/sidebar-menu-primitives.d.ts +0 -38
  3000. package/dist/components/ui/sidebar-menu-primitives.js +0 -97
  3001. package/dist/components/ui/sidebar-panel.js +0 -265
  3002. package/dist/components/ui/sidebar.js +0 -194
  3003. package/dist/components/ui/skeleton.js +0 -6
  3004. package/dist/components/ui/slider-native.js +0 -16
  3005. package/dist/components/ui/slider.js +0 -48
  3006. package/dist/components/ui/sliding-tab-indicator.js +0 -128
  3007. package/dist/components/ui/split-sheet.js +0 -239
  3008. package/dist/components/ui/spotlight-card.js +0 -43
  3009. package/dist/components/ui/status.js +0 -76
  3010. package/dist/components/ui/stepper.js +0 -73
  3011. package/dist/components/ui/switch.js +0 -131
  3012. package/dist/components/ui/system-message.js +0 -51
  3013. package/dist/components/ui/table.js +0 -28
  3014. package/dist/components/ui/tabs.js +0 -207
  3015. package/dist/components/ui/tag.d.ts +0 -7
  3016. package/dist/components/ui/tag.js +0 -22
  3017. package/dist/components/ui/text-shimmer.js +0 -91
  3018. package/dist/components/ui/textarea.js +0 -87
  3019. package/dist/components/ui/toast.js +0 -233
  3020. package/dist/components/ui/toggle.d.ts +0 -12
  3021. package/dist/components/ui/toggle.js +0 -26
  3022. package/dist/components/ui/tooltip.js +0 -16
  3023. package/dist/components/ui/trigger-variants.js +0 -67
  3024. package/dist/components/ui/type-to-confirm-dialog.js +0 -101
  3025. package/dist/components/ui/typed-title.js +0 -66
  3026. package/dist/components/ui/typing-animation.js +0 -141
  3027. package/dist/components/ui/user-avatar.js +0 -46
  3028. /package/dist/{components/ui → primitives}/accordion.d.ts +0 -0
  3029. /package/dist/{components/ui → primitives}/alert-dialog.d.ts +0 -0
  3030. /package/dist/{components/ui → primitives}/avatar.d.ts +0 -0
  3031. /package/dist/{components/ui → primitives}/back-pill.d.ts +0 -0
  3032. /package/dist/{components/ui → primitives}/breadcrumb.d.ts +0 -0
  3033. /package/dist/{components/ui → primitives}/button-group.d.ts +0 -0
  3034. /package/dist/{components/ui → primitives}/calendar.d.ts +0 -0
  3035. /package/dist/{components/ui → primitives}/chain-of-thought.d.ts +0 -0
  3036. /package/dist/{components/ui → primitives}/chart.d.ts +0 -0
  3037. /package/dist/{components/ui → primitives}/checkbox-group.d.ts +0 -0
  3038. /package/dist/{components/ui → primitives}/checkbox.d.ts +0 -0
  3039. /package/dist/{components/ui → primitives}/collapsible.d.ts +0 -0
  3040. /package/dist/{components/ui → primitives}/command.d.ts +0 -0
  3041. /package/dist/{components/ui → primitives}/confirm-dialog.d.ts +0 -0
  3042. /package/dist/{components/ui → primitives}/data-grid.d.ts +0 -0
  3043. /package/dist/{components/ui → primitives}/date-range-picker.d.ts +0 -0
  3044. /package/dist/{components/ui → primitives}/definition-list.d.ts +0 -0
  3045. /package/dist/{components/ui → primitives}/disclosure.d.ts +0 -0
  3046. /package/dist/{components/ui → primitives}/dot-matrix/session-dot-matrix.js +0 -0
  3047. /package/dist/{components/ui → primitives}/drawer.d.ts +0 -0
  3048. /package/dist/{components/ui → primitives}/emoji-picker.d.ts +0 -0
  3049. /package/dist/{components/ui → primitives}/emoji-tint.d.ts +0 -0
  3050. /package/dist/{components/ui → primitives}/emoji-tint.js +0 -0
  3051. /package/dist/{components/ui → primitives}/empty.d.ts +0 -0
  3052. /package/dist/{components/ui → primitives}/entity-avatar.d.ts +0 -0
  3053. /package/dist/{components/ui → primitives}/faded-scroll-area.d.ts +0 -0
  3054. /package/dist/{components/ui → primitives}/favicon-avatar.d.ts +0 -0
  3055. /package/dist/{components/ui → primitives}/file-tree.d.ts +0 -0
  3056. /package/dist/{components/ui → primitives}/glyph-face.d.ts +0 -0
  3057. /package/dist/{components/ui → primitives}/glyph-paths-source.d.ts +0 -0
  3058. /package/dist/{components/ui → primitives}/glyph-paths.generated.d.ts +0 -0
  3059. /package/dist/{components/ui → primitives}/glyph-picker.d.ts +0 -0
  3060. /package/dist/{components/ui → primitives}/glyph-registry.d.ts +0 -0
  3061. /package/dist/{components/ui → primitives}/glyph-registry.js +0 -0
  3062. /package/dist/{components/ui → primitives}/glyph-tint.d.ts +0 -0
  3063. /package/dist/{components/ui → primitives}/hint.d.ts +0 -0
  3064. /package/dist/{components/ui → primitives}/hint.js +0 -0
  3065. /package/dist/{components/ui → primitives}/histogram-bars.d.ts +0 -0
  3066. /package/dist/{components/ui → primitives}/icon-provider.d.ts +0 -0
  3067. /package/dist/{components/ui → primitives}/info-banner.d.ts +0 -0
  3068. /package/dist/{components/ui → primitives}/inline-meta.d.ts +0 -0
  3069. /package/dist/{components/ui → primitives}/input-group.d.ts +0 -0
  3070. /package/dist/{components/ui → primitives}/input.d.ts +0 -0
  3071. /package/dist/{components/ui → primitives}/kbd.d.ts +0 -0
  3072. /package/dist/{components/ui → primitives}/kortix-asterisk.d.ts +0 -0
  3073. /package/dist/{components/ui → primitives}/kortix-icons.d.ts +0 -0
  3074. /package/dist/{components/ui → primitives}/kortix-icons.js +0 -0
  3075. /package/dist/{components/ui → primitives}/kortix-loader.d.ts +0 -0
  3076. /package/dist/{components/ui → primitives}/kortix-logo.d.ts +0 -0
  3077. /package/dist/{components/ui → primitives}/label.d.ts +0 -0
  3078. /package/dist/{components/ui → primitives}/list.d.ts +0 -0
  3079. /package/dist/{components/ui → primitives}/loading.d.ts +0 -0
  3080. /package/dist/{components/ui → primitives}/local-time.d.ts +0 -0
  3081. /package/dist/{components/ui → primitives}/local-time.js +0 -0
  3082. /package/dist/{components/ui → primitives}/map.d.ts +0 -0
  3083. /package/dist/{components/ui → primitives}/menu-recipe.d.ts +0 -0
  3084. /package/dist/{components/ui → primitives}/mermaid-renderer.d.ts +0 -0
  3085. /package/dist/{components/ui → primitives}/message.d.ts +0 -0
  3086. /package/dist/{components/ui → primitives}/navigation-menu.d.ts +0 -0
  3087. /package/dist/{components/ui → primitives}/page-search-bar.d.ts +0 -0
  3088. /package/dist/{components/ui → primitives}/phone-input.d.ts +0 -0
  3089. /package/dist/{components/ui → primitives}/pixel-kortix-mark.d.ts +0 -0
  3090. /package/dist/{components/ui → primitives}/popover.d.ts +0 -0
  3091. /package/dist/{components/ui → primitives}/portal.d.ts +0 -0
  3092. /package/dist/{components/ui → primitives}/progress-ring.d.ts +0 -0
  3093. /package/dist/{components/ui → primitives}/progress.d.ts +0 -0
  3094. /package/dist/{components/ui → primitives}/radio-group.d.ts +0 -0
  3095. /package/dist/{components/ui → primitives}/scroll-area.d.ts +0 -0
  3096. /package/dist/{components/ui → primitives}/section-card.d.ts +0 -0
  3097. /package/dist/{components/ui → primitives}/section.d.ts +0 -0
  3098. /package/dist/{components/ui → primitives}/select.d.ts +0 -0
  3099. /package/dist/{components/ui → primitives}/separator.d.ts +0 -0
  3100. /package/dist/{components/ui → primitives}/shader-safe.d.ts +0 -0
  3101. /package/dist/{components/ui → primitives}/shader-safe.js +0 -0
  3102. /package/dist/{components/ui → primitives}/sidebar-context.d.ts +0 -0
  3103. /package/dist/{components/ui → primitives}/sidebar-context.js +0 -0
  3104. /package/dist/{components/ui → primitives}/sidebar-panel.d.ts +0 -0
  3105. /package/dist/{components/ui → primitives}/sidebar-peek.d.ts +0 -0
  3106. /package/dist/{components/ui → primitives}/sidebar-peek.js +0 -0
  3107. /package/dist/{components/ui → primitives}/sidebar-width.d.ts +0 -0
  3108. /package/dist/{components/ui → primitives}/sidebar-width.js +0 -0
  3109. /package/dist/{components/ui → primitives}/sidebar.d.ts +0 -0
  3110. /package/dist/{components/ui → primitives}/skeleton.d.ts +0 -0
  3111. /package/dist/{components/ui → primitives}/slider-native.d.ts +0 -0
  3112. /package/dist/{components/ui → primitives}/slider.d.ts +0 -0
  3113. /package/dist/{components/ui → primitives}/sliding-tab-indicator.d.ts +0 -0
  3114. /package/dist/{components/ui → primitives}/split-sheet.d.ts +0 -0
  3115. /package/dist/{components/ui → primitives}/spotlight-card.d.ts +0 -0
  3116. /package/dist/{components/ui → primitives}/status-ring.d.ts +0 -0
  3117. /package/dist/{components/ui → primitives}/status-ring.js +0 -0
  3118. /package/dist/{components/ui → primitives}/status.d.ts +0 -0
  3119. /package/dist/{components/ui → primitives}/stepper.d.ts +0 -0
  3120. /package/dist/{components/ui → primitives}/switch.d.ts +0 -0
  3121. /package/dist/{components/ui → primitives}/system-message.d.ts +0 -0
  3122. /package/dist/{components/ui → primitives}/table.d.ts +0 -0
  3123. /package/dist/{components/ui → primitives}/tabs.d.ts +0 -0
  3124. /package/dist/{components/ui → primitives}/text-shimmer.d.ts +0 -0
  3125. /package/dist/{components/ui → primitives}/textarea.d.ts +0 -0
  3126. /package/dist/{components/ui → primitives}/toast.d.ts +0 -0
  3127. /package/dist/{components/ui → primitives}/tooltip.d.ts +0 -0
  3128. /package/dist/{components/ui → primitives}/trigger-variants.d.ts +0 -0
  3129. /package/dist/{components/ui → primitives}/type-to-confirm-dialog.d.ts +0 -0
  3130. /package/dist/{components/ui → primitives}/typed-title-logic.d.ts +0 -0
  3131. /package/dist/{components/ui → primitives}/typed-title-logic.js +0 -0
  3132. /package/dist/{components/ui → primitives}/typed-title.d.ts +0 -0
  3133. /package/dist/{components/ui → primitives}/typing-animation.d.ts +0 -0
  3134. /package/dist/{components/ui → primitives}/user-avatar.d.ts +0 -0
@@ -0,0 +1,751 @@
1
+ 'use client';
2
+ import { uiRoutes } from '../../lib/routes.js';
3
+ import { useQueryClient } from '@tanstack/react-query';
4
+ import { useUiRouter, useUiViewerId } from '../../providers/ui-provider.js';
5
+ import { useCallback, useState } from 'react';
6
+ import { attemptKeyFor, clearAttemptKey } from './create-workspace-key.js';
7
+ import { buildCreateRepoPayload, buildLinkRepositoryPayload, buildManagedImportPayload, isManagedImport, } from './github-source.js';
8
+ import { buildProvisionPayload, isForeignAccountList, resolveDefaultCreatableAccountId, } from './new-workspace-form.js';
9
+ import { createRepoWithGitHubAuthorization } from './github-user-authorization.js';
10
+ import { useCreatableAccounts } from './use-creatable-accounts.js';
11
+ import { useAccountsList } from '../../internal/hooks/account/use-accounts-list.js';
12
+ import { isManagedGitUnavailableError, isProjectLimitError, } from '../../internal/lib/onboarding/provision-errors.js';
13
+ import { requestGitHubUserProof } from '../../internal/lib/github-user-proof.js';
14
+ import { writeLastProjectId } from '../../internal/lib/onboarding/last-project-cookie.js';
15
+ import { createProjectRepo, storeGitHubUserToken, linkRepository, PROVISION_IN_FLIGHT_CODE, PROVISION_STREAM_UNTERMINATED_CODE, provisionProject, provisionProjectStream, setProjectOnboardingComplete, } from '@kortix/sdk';
16
+ import { qk } from '@kortix/sdk/react';
17
+ /**
18
+ * Backoff for a 409 `provision_in_flight` retry, ms — one entry per retry.
19
+ * Identical to `/projects/start`'s `RETRY_DELAY_MS`
20
+ * (`app/(app)/projects/start/page.tsx:36`, `const RETRY_DELAY_MS = [400,
21
+ * 1200]`): both doors run the SAME logical create against the same persisted
22
+ * `idempotency_key`, so their backoffs must not diverge.
23
+ */
24
+ export const RETRY_DELAY_MS = [400, 1_200];
25
+ /**
26
+ * What makes one create *distinct* from another, for `attemptKeyFor`.
27
+ *
28
+ * Deliberately NOT the full form state. `icon` and `defaultBranch` are
29
+ * refinements a user can still be adjusting between a failed submit and a
30
+ * retry — a retry must reuse the SAME key, not mint a new one just because
31
+ * the icon changed. `name`, `accountId`, `templateId` and `source` are what
32
+ * actually identifies a genuinely different workspace: keying on those means
33
+ * creating "suna-web" then, moments later, "kortix-api" in the same account
34
+ * mints two independent keys instead of the second create silently returning
35
+ * the first project (the exact failure mode `projects.ts`'s `idempotency_key` doc
36
+ * comment warns about).
37
+ */
38
+ export function fingerprintOf(state) {
39
+ return [
40
+ state.accountId ?? 'default',
41
+ state.name.trim(),
42
+ state.templateId ?? '',
43
+ state.source,
44
+ ].join(':');
45
+ }
46
+ /**
47
+ * The account a create actually targets.
48
+ *
49
+ * `account_id` is ALWAYS resolved here — never left for the server to
50
+ * default from an omitted key. `resolveAccountId`
51
+ * (`apps/api/src/shared/resolve-account.ts:117-129`) picks the caller's
52
+ * EARLIEST-JOINED account membership with NO role check when `account_id` is
53
+ * absent:
54
+ *
55
+ * ```ts
56
+ * .where(eq(accountMembers.userId, userId))
57
+ * .orderBy(accountMembers.joinedAt)
58
+ * .limit(1)
59
+ * ```
60
+ *
61
+ * A user who joined account A as a plain member in January and later created
62
+ * account B as owner in March has exactly ONE creatable account (B) —
63
+ * `AccountPicker` hides itself below two accounts
64
+ * (`account-picker.tsx`), `state.accountId` stays legitimately `null`, and
65
+ * `creatableAccounts.length === 1` no longer implies "the user has only one
66
+ * account total". Omitting `account_id` in that case would resolve to A on
67
+ * the server and 403 "Owner or admin role required" — precisely the failure
68
+ * the picker's owner/admin filter (Task 12) exists to prevent, reopened
69
+ * through the server's default path. So the fallback is
70
+ * `resolveDefaultCreatableAccountId` (identity match → primary owner → first
71
+ * creatable) against the SAME filtered list the picker itself renders from —
72
+ * never the raw, unfiltered account list.
73
+ *
74
+ * Two independent fail-closed checks (Task 2 item 3, G2), both of which
75
+ * throw rather than let a create proceed:
76
+ *
77
+ * 1. `creatableAccounts` itself must not be FOREIGN
78
+ * (`isForeignAccountList` — two or more accounts, none of them
79
+ * `userId`'s own). Checked BEFORE looking at `state.accountId` at all: a
80
+ * poisoned list taints every id it could produce, including one an
81
+ * explicit (but stale) pick already carried, not only the default tier.
82
+ * `new-workspace-page.tsx` already disables submit and hides the account
83
+ * name for this case (item 2) — this is the second, independent layer
84
+ * for any caller that resolves a target id without going through that
85
+ * page-level gate, e.g. a future host of `useCreateWorkspace`.
86
+ * 2. The resolved id — from an explicit `state.accountId` or from the
87
+ * default below — must actually be one of `creatableAccounts`.
88
+ * `state.accountId` is normally only ever set from an `AccountPicker`
89
+ * selection, itself built from this exact list, so this should never fire
90
+ * in ordinary use; it is the last line of defense against a resolved id
91
+ * that is stale, or a caller that skipped the page's own gating, ever
92
+ * reaching the network with the signed-in user's JWT.
93
+ *
94
+ * Extracted out of `buildCreatePayload` (below) as its own function so the
95
+ * account a create actually targets is resolved in exactly one place.
96
+ *
97
+ * `userId` is required, not optional (G4): an omitted argument used to
98
+ * compile clean and silently degrade to `undefined`, which made
99
+ * `isForeignAccountList` treat ANY 2+-account list as foreign and throw —
100
+ * a functional break for real multi-account users that every single-
101
+ * account test passed straight through. The type is `string | null`, not
102
+ * `| undefined`: a caller that genuinely cannot establish identity yet must
103
+ * say so explicitly with `null`, which already fails closed correctly (see
104
+ * `isForeignAccountList`'s doc comment) rather than by accidental omission.
105
+ */
106
+ export function resolveTargetAccountId(state, creatableAccounts, userId) {
107
+ if (isForeignAccountList(creatableAccounts, userId)) {
108
+ throw new Error('Could not verify the target account for this workspace. Refresh and try again.');
109
+ }
110
+ const resolved = state.accountId ?? resolveDefaultCreatableAccountId(creatableAccounts, userId) ?? undefined;
111
+ if (resolved === undefined)
112
+ return undefined;
113
+ const isCreatable = creatableAccounts.some((account) => account.account_id === resolved);
114
+ if (!isCreatable) {
115
+ throw new Error('Could not verify the target account for this workspace. Refresh and try again.');
116
+ }
117
+ return resolved;
118
+ }
119
+ /** The exact `POST /projects/provision` request body for one create attempt. */
120
+ export function buildCreatePayload(state, creatableAccounts, idempotencyKey, userId) {
121
+ return {
122
+ ...buildProvisionPayload(state),
123
+ account_id: resolveTargetAccountId(state, creatableAccounts, userId),
124
+ idempotency_key: idempotencyKey,
125
+ };
126
+ }
127
+ /**
128
+ * The `POST /projects/create-repo` body, with the create's target account
129
+ * resolved through the SAME `resolveTargetAccountId` the provision path uses.
130
+ *
131
+ * Resolved here rather than left to the server for the reason that function's
132
+ * own doc comment gives at length: an omitted `account_id` resolves to the
133
+ * caller's earliest-joined membership with NO role check, which for a user who
134
+ * joined someone else's account first is an account they cannot create in.
135
+ * That reasoning is about the SERVER's default, not about which route is being
136
+ * called, so it holds identically for all three sources.
137
+ */
138
+ export function buildGitHubCreatePayload(state, creatableAccounts, userId) {
139
+ return buildCreateRepoPayload(state, resolveTargetAccountId(state, creatableAccounts, userId));
140
+ }
141
+ /** The `POST /projects/link-repository` body. Same account resolution. */
142
+ export function buildGitHubImportPayload(state, creatableAccounts, userId) {
143
+ return buildLinkRepositoryPayload(state, resolveTargetAccountId(state, creatableAccounts, userId));
144
+ }
145
+ /**
146
+ * The `POST /projects/link-repository` body for an existing MANAGED repository
147
+ * — the operator-only import path. Same account resolution; the installation
148
+ * is the managed-git backend rather than an account's GitHub App installation.
149
+ */
150
+ export function buildManagedImportRequest(state, creatableAccounts, userId) {
151
+ return buildManagedImportPayload(state, resolveTargetAccountId(state, creatableAccounts, userId));
152
+ }
153
+ /**
154
+ * Matches the two placeholder sentences the SDK writes onto a failed create
155
+ * when the error response carried NO JSON body — the one case where the
156
+ * server's reason is genuinely lost and the generic retry line is the only
157
+ * honest wording:
158
+ *
159
+ * - `Provision failed: HTTP <status>` — `provisionProjectStream`'s
160
+ * pre-stream branch (a non-2xx response with an unparseable body, e.g. a
161
+ * proxy's HTML error page);
162
+ * - `HTTP <status>: <statusText>` — the plain path's `readErrorBody`
163
+ * fallback (same shape, same cause).
164
+ *
165
+ * Both literals are SDK-owned (`packages/sdk/src/core/rest/projects-client/
166
+ * projects.ts`, `packages/sdk/src/core/http/api/client.ts`), so this sniff
167
+ * is pinned by tests in both directions: a placeholder gets the generic
168
+ * line, and a real server sentence — which never begins with `HTTP <n>` —
169
+ * passes through. The match is anchored at the string start and only
170
+ * affects WORDING in `messageFor`, never control flow, so the worst case of
171
+ * a false negative is today's generic wording, not a wrong outcome.
172
+ */
173
+ const LOST_PROVISION_REASON_RE = /^(?:Provision failed: )?HTTP \d{3}(?::|$)/;
174
+ /**
175
+ * A user-facing message for a failed create.
176
+ *
177
+ * `ApiError` field names verified at
178
+ * `packages/sdk/src/core/http/api/errors.ts:46-55`: `status?: number`,
179
+ * `code?: string` — branches below read those, not invented names. Both
180
+ * transports (`provisionProject` and, since final-review FIX 1,
181
+ * `provisionProjectStream`) throw an `ApiError` carrying the same fields, so
182
+ * every branch below reads identically regardless of which one ran.
183
+ *
184
+ * Managed git being unconfigured is NOT an upstream failure and must not share
185
+ * its message. `isManagedGitUnavailableError`
186
+ * (`packages/ui/src/internal/lib/onboarding/provision-errors.ts`) names it by its message: on the wire
187
+ * it is a 503, but so is every 502, which the API's edge middleware rewrites to
188
+ * 503 (`apps/api/src/index.ts`, EDGE_REWRITTEN_STATUSES). Managed git
189
+ * unconfigured is a server-config state no client-side retry can fix. Telling the
190
+ * user to "try again" there is false: nothing they do changes the outcome
191
+ * until an operator configures it.
192
+ *
193
+ * Any OTHER 502 or 503 shows the server's own reason when one arrived
194
+ * (KRTX-1754), not a bare retry hint: both transports preserve it — the API's
195
+ * edge middleware rewrites 502→503 but keeps the JSON body, and the stream
196
+ * route carries the reason in-band — so the sentence the backend reported
197
+ * ("GitHub /user/repos failed (403): …", "You have exceeded a secondary rate
198
+ * limit…", the seed failure's detail) reaches this function intact. The
199
+ * dogfood evidence that filed the issue is a user told to "try again" with no
200
+ * signal of what actually failed. The generic retry line is kept ONLY for the
201
+ * reason-less shapes: the two placeholder sentences the SDK writes when the
202
+ * response had no JSON body at all (a proxy's HTML error page — the reason is
203
+ * genuinely lost, `LOST_PROVISION_REASON_RE` below) and an empty message.
204
+ * This deliberately diverges from the other call sites that reuse
205
+ * `isManagedGitUnavailableError` (`project-create-modal.tsx:352`,
206
+ * `add-to-project-modal.tsx:188`) for their 502/503s: they toast a title with
207
+ * no body, where a raw upstream sentence has nowhere readable to go; the
208
+ * inline alert on `/new` is the one surface built to carry a full sentence.
209
+ *
210
+ * `project_limit_reached` (final-review FIX 2) is checked BEFORE the generic
211
+ * 403 branch, and deliberately, not folded into it: `enforceProjectQuota`
212
+ * (`apps/api/src/projects/lib/access.ts`) returns 403 too, and
213
+ * `FREE_TIER_PROJECT_LIMIT = 1` (`apps/api/src/shared/account-limits.ts`)
214
+ * means every free-tier user who already has one project and clicks
215
+ * "Create a workspace…" hits this — not an edge case. The generic 403 message ("You need owner or admin
216
+ * access…") is actively false for them: they have the role, they are simply
217
+ * out of quota. The server's own message is reused verbatim rather than
218
+ * inventing new copy — it already states the exact limit and the upgrade
219
+ * path, matching what the deleted create modal's `isProjectLimitError`
220
+ * handling reused for the same code (`provision-errors.ts`).
221
+ *
222
+ * `provision_in_flight` (409, final-review FIX 1) also gets its own branch,
223
+ * never the raw server text: `PROVISION_IN_FLIGHT_CODE`'s own doc comment
224
+ * (`packages/sdk/src/core/http/api-client.ts`) names the literal string
225
+ * "idempotency_key" as something that must never reach the user, and the
226
+ * server's message for this case names it verbatim. By the time this branch
227
+ * is reached, `runProvisionAttempt`'s own in-band retry (see its doc
228
+ * comment) has already exhausted its backoff — this is the terminal case,
229
+ * not the common one.
230
+ */
231
+ export function messageFor(error) {
232
+ const status = error?.status;
233
+ const message = error instanceof Error ? error.message : undefined;
234
+ if (isProjectLimitError(error)) {
235
+ return (message || "This account has reached its plan's workspace limit. Upgrade to create another.");
236
+ }
237
+ if (status === 403) {
238
+ return 'You need owner or admin access in this account to create a workspace.';
239
+ }
240
+ if (status === 400)
241
+ return message || 'Check the workspace name and try again.';
242
+ if (isManagedGitUnavailableError(error)) {
243
+ return "Managed git isn't set up on this server. A platform admin connects GitHub in the admin console before workspaces can be created.";
244
+ }
245
+ if (status === 409) {
246
+ // Two different 409s reach here now, and they must not share a message.
247
+ // `provision_in_flight` carries a typed `code`
248
+ // (`PROVISION_IN_FLIGHT_CODE`); the GitHub sources' 409s do not — they are
249
+ // "install the Kortix GitHub App first" (`create-repo` and
250
+ // `link-repository`, `apps/api/src/projects/routes/project-from-repository.ts`) and "no
251
+ // available repository name near X". Both of those already say exactly
252
+ // what to do, so the server's own message is reused verbatim rather than
253
+ // being overwritten with a wait-and-retry line that is simply false for
254
+ // them.
255
+ const code = error?.code;
256
+ if (code === PROVISION_IN_FLIGHT_CODE) {
257
+ return 'Another attempt to create this workspace is already in progress. Please wait a moment and try again.';
258
+ }
259
+ return message || 'Could not create the workspace. Try again.';
260
+ }
261
+ // A 503 that is not managed git is an edge-rewritten 502 (`apps/api/src/index.ts`,
262
+ // EDGE_REWRITTEN_STATUSES): an upstream failure. See the doc comment above:
263
+ // the server's reason is shown when it arrived; the generic line is for the
264
+ // shapes where it did not.
265
+ if (status === 502 || status === 503) {
266
+ return message && !LOST_PROVISION_REASON_RE.test(message)
267
+ ? message
268
+ : 'Could not create the workspace. Try again.';
269
+ }
270
+ return message || 'Could not create the workspace. Try again.';
271
+ }
272
+ /**
273
+ * `POST /projects/create-repo`'s 409 for a personal GitHub account: GitHub does
274
+ * not accept the App installation token on `POST /user/repos`, so `createRepo`
275
+ * refuses before the request (`apps/api/src/projects/github.ts`'s
276
+ * `GitHubPersonalAccountCreateUnsupportedError`). The owner does not change
277
+ * between attempts, so a retry fails the same way. `POST /projects/provision`
278
+ * answers the same code when the INSTANCE backend sits on a personal account.
279
+ */
280
+ const GITHUB_PERSONAL_ACCOUNT_CREATE_UNSUPPORTED = 'github_personal_account_create_unsupported';
281
+ /**
282
+ * Whether a failed create should offer a retry.
283
+ *
284
+ * Classified by whether ANYTHING could plausibly be different on the next
285
+ * attempt — NOT by "everything except 503". `retry` (below) resends
286
+ * `lastState` completely unedited, through the SAME `runCreate` path with
287
+ * the SAME persisted `idempotency_key`, so a failure whose cause cannot
288
+ * change between now and a later click must not offer one; doing so would
289
+ * spend the user's next click on a request guaranteed to fail identically.
290
+ * Fix round 1 finding: the first version of this function offered a retry
291
+ * for a 400 too, which fails this exact test — see the `status === 400`
292
+ * branch below.
293
+ *
294
+ * - `400` (bad name / invalid payload) — NOT retryable. `retry` resends the
295
+ * exact payload that just failed validation; a deterministic validation
296
+ * failure on an unchanged payload fails identically every time. Only
297
+ * editing the name, through the primary submit button, can help.
298
+ * - `403` (wrong account / insufficient role) — retryable. Role and account
299
+ * membership are external state that CAN genuinely change between the
300
+ * failure and a later click, and `retry` re-closes over `creatableAccounts`
301
+ * (`useCreateWorkspace`'s own `useAccountsList()` query), which is refetched —
302
+ * so a role grant made in the meantime can turn this into a success.
303
+ * - `502` (bad gateway) — retryable. A transient upstream/gateway fault; a
304
+ * later attempt can land differently with no change on the client at all.
305
+ * - `503` that `isManagedGitUnavailableError`
306
+ * (`packages/ui/src/internal/lib/onboarding/provision-errors.ts`) matches — NOT retryable. A server
307
+ * configuration state; see `messageFor` above. Any other `503` is an
308
+ * edge-rewritten `502` and falls through to the retryable default. Reuses that detector rather than
309
+ * re-deriving the 503 check, so this and `messageFor` can never disagree
310
+ * about which failure is which.
311
+ * - `409` (`provision_in_flight`, final-review FIX 1) — retryable. Named
312
+ * explicitly rather than left to the default bucket: whether ANOTHER
313
+ * attempt with this key is still running is external state by
314
+ * definition, and it usually resolves within `runProvisionAttempt`'s own
315
+ * in-band backoff before ever reaching here (see that function's doc
316
+ * comment) — this branch only fires once that backoff is exhausted, and
317
+ * the underlying condition can still clear before the user's next click.
318
+ * - `409` (`github_personal_account_create_unsupported`) — NOT retryable.
319
+ * The chosen owner is a personal GitHub account; the same owner fails the
320
+ * same way on every attempt.
321
+ * - Anything else (a plain network `Error`, an unrecognized status) —
322
+ * retryable. There is no signal here that rules out transience, so the
323
+ * safer default is to offer the retry rather than silently block a case
324
+ * that might actually succeed.
325
+ *
326
+ * Adding a new status code this route can return? Decide which bucket above
327
+ * it belongs to — "the payload/state is deterministic and unchanged" (block
328
+ * it) vs. "something could genuinely be different next time" (allow it) —
329
+ * and add its own named branch rather than folding it into the default.
330
+ */
331
+ export function isRetryableError(error) {
332
+ const status = error?.status;
333
+ const code = error?.code;
334
+ if (status === 400)
335
+ return false;
336
+ // The plan cap is a 403 too, but nothing about a retry changes it — only a
337
+ // plan change does, and the page offers that instead (`limitReached`).
338
+ // Before the generic 403 fallthrough, which IS retryable (wrong account,
339
+ // role granted meanwhile).
340
+ if (isProjectLimitError(error))
341
+ return false;
342
+ if (isManagedGitUnavailableError(error))
343
+ return false;
344
+ if (code === GITHUB_PERSONAL_ACCOUNT_CREATE_UNSUPPORTED)
345
+ return false;
346
+ if (status === 409)
347
+ return true;
348
+ return true;
349
+ }
350
+ const defaultClient = {
351
+ provisionProject,
352
+ provisionProjectStream,
353
+ wait: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),
354
+ };
355
+ /**
356
+ * Whether a provisioning failure is TRANSPORT-shaped — the stream itself
357
+ * never reached the server to do real work, as opposed to a real failure the
358
+ * server reported through a stream that worked. `runProvisionAttempt` (below)
359
+ * uses this, ALWAYS in combination with "zero events received", as the only
360
+ * signal that its fallback to the plain `provisionProject` is safe: retrying
361
+ * a genuine provisioning failure as a second `POST /projects/provision` risks
362
+ * a second upstream managed repo, so this classifier stays conservative and
363
+ * recognizes only the three shapes `provisionProjectStream`'s own doc comment
364
+ * (`packages/sdk/src/core/rest/projects-client/projects.ts`) names as
365
+ * "stream unavailable" failures:
366
+ *
367
+ * - **A raw network failure** — the `fetch()` call itself never got a
368
+ * response. Every fetch implementation (browsers, undici/Node, Bun) throws
369
+ * a `TypeError` for this, and ONLY for this; a server-returned failure
370
+ * (however bad) is always a plain `Error` or `ApiError`, never a
371
+ * `TypeError`. Checking the error's real TYPE, not a message string, is
372
+ * what keeps this from being the fragile message-sniffing the brief for
373
+ * this task explicitly warns against.
374
+ * - **No `response.body`** — the React Native case. `provisionProjectStream`
375
+ * throws the literal message `'...(no response body)'`.
376
+ * - **The `/projects/provision-stream` route itself 404s** — an older server
377
+ * build without it. `provisionProjectStream` throws
378
+ * `` `Provision failed: HTTP ${status}` `` when the response is non-2xx and
379
+ * carries no JSON `error` field; a REAL API rejection (400/403/503) always
380
+ * carries one, and lands in the pre-stream-denial branch below instead.
381
+ *
382
+ * Everything else — an in-stream `error` event, a pre-stream non-2xx WITH a
383
+ * server message (e.g. "Owner or admin role required"), a malformed-frame
384
+ * parse failure — is a REAL failure and must rethrow, never fall back.
385
+ */
386
+ export function isTransportFailure(error) {
387
+ if (error instanceof TypeError)
388
+ return true;
389
+ if (!(error instanceof Error))
390
+ return false;
391
+ return error.message.includes('no response body') || /\bHTTP 404\b/.test(error.message);
392
+ }
393
+ /**
394
+ * Runs one logical create to completion.
395
+ *
396
+ * POSTs once. On a `409` `provision_in_flight` — another call carrying this
397
+ * SAME `idempotency_key` is still mid-provision, per
398
+ * `apps/api/src/projects/routes/projects.ts` — retries up to `RETRY_DELAY_MS.length`
399
+ * more times with the IDENTICAL payload. Never a re-minted key: the key
400
+ * identifies the ATTEMPT, and the whole point of retrying is to land on that
401
+ * same attempt's result. Any other error, or exhausting the retry budget,
402
+ * rejects with the triggering error unchanged so the caller can classify it
403
+ * (`messageFor`).
404
+ */
405
+ export async function runCreateAttempt(payload, client = defaultClient) {
406
+ for (let attempt = 0; attempt <= RETRY_DELAY_MS.length; attempt += 1) {
407
+ try {
408
+ return await client.provisionProject(payload);
409
+ }
410
+ catch (caught) {
411
+ const code = caught?.code;
412
+ const canRetry = code === PROVISION_IN_FLIGHT_CODE && attempt < RETRY_DELAY_MS.length;
413
+ if (!canRetry)
414
+ throw caught;
415
+ await client.wait(RETRY_DELAY_MS[attempt]);
416
+ }
417
+ }
418
+ // Unreachable: every iteration above either returns or throws.
419
+ throw new Error('runCreateAttempt: retry loop exited without resolving');
420
+ }
421
+ /**
422
+ * One provisioning attempt, preferring the live-progress
423
+ * `provisionProjectStream` and falling back to the plain `runCreateAttempt`
424
+ * (the 409-retrying `provisionProject` above) in exactly the cases where the
425
+ * fallback is provably safe.
426
+ *
427
+ * THREE failure shapes reach the catch, and they get three different
428
+ * treatments:
429
+ *
430
+ * 1. **A real provisioning failure** — an in-stream `error` frame, a
431
+ * pre-stream denial that carried the API's body, a malformed frame — is
432
+ * rethrown unchanged for `messageFor` to name. The gate is **whether
433
+ * `onEvent` fired at all**, not the shape of the error: if the stream
434
+ * delivered even ONE event it reached the server and did real work, so
435
+ * any failure after that is genuine. Retrying it as a fresh
436
+ * `runCreateAttempt` call would be a SECOND create for the same user
437
+ * intent — the exact "two upstream repos" failure this function exists
438
+ * to prevent. Only when NOTHING was ever received AND the failure is
439
+ * transport-shaped (`isTransportFailure`) is it safe to conclude the
440
+ * stream never reached the server, and the fallback runs.
441
+ *
442
+ * 2. **A 409 `provision_in_flight`** (final-review FIX 1, consequence 3) —
443
+ * reaches the fallback regardless of `eventsReceived`.
444
+ * `emit('validating')` is the first statement of `runProvision`
445
+ * (`apps/api/src/projects/provision-core.ts`), so by the time this
446
+ * failure can arrive at all, `eventsReceived > 0` is already guaranteed
447
+ * — under the plain "any event blocks fallback" rule, that made
448
+ * `runCreateAttempt`'s own 409 backoff loop unreachable from the
449
+ * streaming path. It is deliberately narrower than the
450
+ * transport-failure gate, not a loosening of it: by construction another
451
+ * call carrying this SAME `idempotency_key` is already mid-provision, so
452
+ * handing it to `runCreateAttempt` (identical key, unchanged payload) is
453
+ * exactly correct — either the server returns the SAME project once the
454
+ * in-flight attempt commits, or it 409s again and the loop keeps waiting
455
+ * — never a second upstream repo, and never a second create for this
456
+ * user intent.
457
+ *
458
+ * 3. **An unterminated stream** (KRTX-1754 — the code
459
+ * `PROVISION_STREAM_UNTERMINATED_CODE`, thrown when the socket closes
460
+ * before the route's promised terminal `done`/`error` frame) — also
461
+ * reaches the fallback, regardless of `eventsReceived`. The close is NOT
462
+ * a provisioning failure; it is an UNKNOWN result. The route's handler
463
+ * outlives a lost reader (`write()` swallows the disconnect on purpose,
464
+ * so it cannot cancel live work), so by the time the client sees the
465
+ * close the create may already have committed upstream. The recovery is
466
+ * the SAME key replayed through `runCreateAttempt`: the server's
467
+ * idempotency machinery (the partial unique index, the 120s in-flight
468
+ * window, the replay response) answers with the true outcome — `201`
469
+ * with the same project once the first attempt commits, `409
470
+ * provision_in_flight` while it is still running (the loop above keeps
471
+ * waiting), or the first attempt's real failure after its rollback. This
472
+ * is what makes the second symptom impossible: a submit whose stream
473
+ * died mid-provision resolves to the real outcome instead of a jargon
474
+ * error or, worse, silence. Like the 409 case, this can never mint a
475
+ * second upstream repo — the key dedupes it server-side.
476
+ *
477
+ * The fallback reuses `payload` UNCHANGED — same `idempotency_key` the
478
+ * streaming attempt just sent. It is the SAME logical attempt continuing on
479
+ * a different transport, not a new one; a re-minted key here would be
480
+ * exactly the bug this function exists to prevent, just moved one layer up.
481
+ * Routing the fallback through `runCreateAttempt` (rather than a bare
482
+ * `client.provisionProject` call) also means it inherits that function's own
483
+ * 409 `provision_in_flight` retry, so the plain-POST path keeps its full
484
+ * existing resilience even when reached through the stream.
485
+ *
486
+ * `onPhase(null)` fires once, right before the fallback runs — there is no
487
+ * real phase information once the plain POST takes over, and freezing the UI
488
+ * on the last streamed phase would show progress that stopped being true.
489
+ */
490
+ export async function runProvisionAttempt(payload, onPhase, client = defaultClient) {
491
+ let eventsReceived = 0;
492
+ try {
493
+ return await client.provisionProjectStream(payload, (event) => {
494
+ eventsReceived += 1;
495
+ if (event.type === 'phase')
496
+ onPhase(event.phase);
497
+ });
498
+ }
499
+ catch (streamFailure) {
500
+ const code = streamFailure?.code;
501
+ const isProvisionInFlight = code === PROVISION_IN_FLIGHT_CODE;
502
+ const isStreamUnterminated = code === PROVISION_STREAM_UNTERMINATED_CODE;
503
+ if (!isProvisionInFlight &&
504
+ !isStreamUnterminated &&
505
+ (eventsReceived > 0 || !isTransportFailure(streamFailure))) {
506
+ throw streamFailure;
507
+ }
508
+ onPhase(null);
509
+ return runCreateAttempt(payload, client);
510
+ }
511
+ }
512
+ /**
513
+ * The one network call this create makes, chosen by `state.source`.
514
+ *
515
+ * Every source ends at the same `KortixProject`, which is what lets the
516
+ * success path in `runCreate` stay single — prime the cache, invalidate, write
517
+ * the cookie, enter onboarding — instead of growing a copy per source. The
518
+ * three routes differ only in what they send and which upstream repository
519
+ * they end up pointing at.
520
+ *
521
+ * `idempotencyKey` is non-null only for `managed`; `runCreate` owns that rule
522
+ * and this function asserts it rather than re-deriving it, so the two can
523
+ * never disagree about whether a key was minted.
524
+ */
525
+ async function runSourceAttempt(state, creatableAccounts, idempotencyKey,
526
+ // `string | null`, not `| undefined`: normalized once at the `runCreate`
527
+ // call site below so every `build*Payload` this function calls receives
528
+ // the same required, non-omittable identity argument they now require.
529
+ userId, client) {
530
+ if (state.source === 'github-create') {
531
+ return client.createGitHubRepoProject(buildGitHubCreatePayload(state, creatableAccounts, userId));
532
+ }
533
+ if (state.source === 'github-import') {
534
+ return client.importGitHubRepoProject(buildGitHubImportPayload(state, creatableAccounts, userId));
535
+ }
536
+ // `managed` + a chosen repository is an IMPORT of a repository the managed
537
+ // owner already holds, not a provision of a new one. `/projects/provision`
538
+ // cannot adopt an existing repository, so it would create a second, empty
539
+ // one and ignore the choice.
540
+ if (isManagedImport(state)) {
541
+ return client.importGitHubRepoProject(buildManagedImportRequest(state, creatableAccounts, userId));
542
+ }
543
+ if (!idempotencyKey) {
544
+ throw new Error('runCreate: the managed source requires an idempotency key');
545
+ }
546
+ return client.runCreateAttempt(buildCreatePayload(state, creatableAccounts, idempotencyKey, userId),
547
+ // Only the managed provision streams phases; the GitHub branches above
548
+ // never touch the sink, so their creates render the base handoff screen.
549
+ client.onPhase);
550
+ }
551
+ /**
552
+ * The full sequence one submit runs:
553
+ *
554
+ * ```
555
+ * mint/reuse key -> provision (with retry) ->
556
+ * [on success only] clear key -> read the account's prior projects ->
557
+ * prime cache -> invalidate -> write cookie
558
+ * -> [later projects only] stamp onboarded -> hand off to /projects/:id
559
+ * ```
560
+ *
561
+ * **No onboarding wizard in the create flow — for accounts that already have
562
+ * a project.** The redirect used to go to `/new?onboarding=<id>`, which
563
+ * mounted the full-screen three-step wizard over the page; the app never
564
+ * landed on the project by itself (KRTX-1419). The stamp is what keeps the
565
+ * shell's copy of that wizard from mounting over the landing page instead.
566
+ *
567
+ * **A fresh account's first project is the exception (KRTX-2092).** Its
568
+ * create skips the stamp so the shell's wizard opens on the landing and the
569
+ * new user gets the work / apps / models steps the signup journey expects;
570
+ * the wizard's own Skip control closes it in place and opens the first chat.
571
+ * An unstamped project is only a trap when the wizard has no exit — the
572
+ * shell passes `onSkip`, so it has one.
573
+ *
574
+ * The stamp is best-effort and precedes the handoff: a failed PATCH must not
575
+ * keep the user off the project that already exists (the same policy as the
576
+ * wizard's own exits, `completeThenNotify`), but it must be attempted BEFORE
577
+ * the navigation so the shell's project-detail read cannot race it and mount
578
+ * the wizard over the landing.
579
+ *
580
+ * The key is cleared FIRST among the success-path steps, before any of the
581
+ * others. The API's own contract (`projects.ts`) is that the key identifies the
582
+ * ATTEMPT, not the payload — once the server has confirmed this attempt
583
+ * succeeded, the key must never be replayed, or a LATER, genuinely different
584
+ * create with the same name would silently return THIS project instead of
585
+ * making a new one. Clearing it first, rather than last, also means that if
586
+ * cache priming or the handoff ever throws, the key is already gone
587
+ * and cannot be resurrected by a subsequent retry.
588
+ *
589
+ * On any failure — including exhausting `runCreateAttempt`'s retry budget —
590
+ * the key is deliberately left untouched, so a user-initiated retry (the
591
+ * SAME `state`, submitted again) reuses it instead of minting a new one and
592
+ * risking a second upstream repo.
593
+ */
594
+ export async function runCreate(state, creatableAccounts, userId, client) {
595
+ const fingerprint = fingerprintOf(state);
596
+ // The key belongs to `POST /projects/provision` and nothing else — it is the
597
+ // only one of the three routes that accepts an `idempotency_key`. Minting one
598
+ // for a GitHub source would persist a key that is never sent and never
599
+ // cleared, so `usesIdempotencyKey` gates BOTH the mint and the clear rather
600
+ // than only the field in the payload.
601
+ const usesIdempotencyKey = state.source === 'managed' && !isManagedImport(state);
602
+ const idempotencyKey = usesIdempotencyKey
603
+ ? client.attemptKeyFor(fingerprint, client.now())
604
+ : null;
605
+ try {
606
+ const project = await runSourceAttempt(state, creatableAccounts, idempotencyKey, userId ?? null, client);
607
+ if (usesIdempotencyKey)
608
+ client.clearAttemptKey(fingerprint);
609
+ // Read BEFORE priming: `primeProjectCache` prepends the new project, so a
610
+ // read after it can never see the account's pre-create state.
611
+ const hadProjects = (client.projectsCachedForAccount(project.account_id)?.length ?? 0) > 0;
612
+ client.primeProjectCache(project.account_id, project);
613
+ client.invalidateProjects();
614
+ client.writeLastProjectId(userId, project.project_id);
615
+ if (hadProjects) {
616
+ // Best-effort: a failed stamp must not keep the user off the project
617
+ // that already exists. The accepted failure mode is the wizard running
618
+ // the next time they open the workspace — the same one
619
+ // `completeThenNotify` accepts for the wizard's own exits.
620
+ await client.completeOnboarding(project.project_id).catch(() => { });
621
+ }
622
+ client.enterProject(project.project_id);
623
+ return { ok: true, project };
624
+ }
625
+ catch (error) {
626
+ return { ok: false, error };
627
+ }
628
+ }
629
+ /**
630
+ * Drives the `/new` submit button: mints/reuses the idempotency key, POSTs
631
+ * the create (with retry-on-in-flight via `runCreateAttempt`), primes the
632
+ * workspace caches, stamps the project onboarded, and lands the user on the
633
+ * new project's page on success. All of that sequencing lives in `runCreate`,
634
+ * above — this hook only wires it to the live `queryClient`/`router`/`user`
635
+ * and to component state.
636
+ *
637
+ * Reads the account list itself — the same user-scoped cache entry
638
+ * `new-workspace-page.tsx`,
639
+ * `WorkspaceSwitcher` and `AccountSwitcher` already read — rather than taking
640
+ * `creatableAccounts` as a parameter, so this hook can resolve the create's
641
+ * target account (`resolveTargetAccountId`) without a second, page-specific
642
+ * query.
643
+ */
644
+ export function useCreateWorkspace() {
645
+ const router = useUiRouter();
646
+ const queryClient = useQueryClient();
647
+ const viewerId = useUiViewerId();
648
+ const [status, setStatus] = useState('idle');
649
+ const [error, setError] = useState(null);
650
+ // The raw thrown value, not just its formatted message — `canRetry` below
651
+ // needs to classify it with `isRetryableError`, which reads `.status`, not
652
+ // the already-rendered string.
653
+ const [lastError, setLastError] = useState(null);
654
+ const [lastState, setLastState] = useState(null);
655
+ // The latest streamed provisioning phase (`runProvision`'s emits, plus
656
+ // `null` for "the plain POST took over"). `WorkspaceHandoff` renders it as
657
+ // the step list; `null` renders the base screen, which is also what the
658
+ // GitHub sources — whose routes stream nothing — show for the whole wait.
659
+ const [phase, setPhase] = useState(null);
660
+ const accountsQuery = useAccountsList();
661
+ const creatableAccounts = useCreatableAccounts(accountsQuery.data ?? []);
662
+ const create = useCallback(async (state) => {
663
+ setLastState(state);
664
+ setStatus('creating');
665
+ setError(null);
666
+ // Reset with the attempt: a retry must not start on the previous
667
+ // attempt's last phase, and every source starts on the base screen.
668
+ setPhase(null);
669
+ const result = await runCreate(state, creatableAccounts, viewerId, {
670
+ attemptKeyFor,
671
+ clearAttemptKey,
672
+ // The phase sink is this hook's own state setter: every streamed
673
+ // phase lands in `phase`, and `runProvisionAttempt`'s fallback fires
674
+ // `onPhase(null)` through the same sink, clearing it — the handoff
675
+ // never shows progress that stopped being true.
676
+ onPhase: setPhase,
677
+ runCreateAttempt: (payload, onPhase) => runProvisionAttempt(payload, onPhase),
678
+ // No stream and no idempotency retry on either GitHub route: neither
679
+ // emits provisioning phases and neither accepts an `idempotency_key`,
680
+ // so there is nothing for `runProvisionAttempt`'s machinery to do. A
681
+ // failed attempt surfaces through `messageFor` and the user presses
682
+ // Try again, which is the whole retry story for these two.
683
+ // A personal GitHub owner needs the user's own authorization before
684
+ // GitHub will create the repository (`github-user-authorization.ts`).
685
+ // One popup, one retry; an organization never reaches it.
686
+ createGitHubRepoProject: (payload) => createRepoWithGitHubAuthorization(payload, {
687
+ create: createProjectRepo,
688
+ requestProof: requestGitHubUserProof,
689
+ storeToken: storeGitHubUserToken,
690
+ }),
691
+ // `linkRepository` answers `{ project, git_connection }`; the
692
+ // orchestration only ever needs the project, and unwrapping HERE (not
693
+ // inside `runCreate`) keeps every source's success path identical.
694
+ importGitHubRepoProject: (payload) => linkRepository(payload).then((response) => response.project),
695
+ // The optimistic write goes ONLY into the account this workspace
696
+ // actually belongs to — the one entry a merge here can never get
697
+ // wrong. `qk.projects.list()` (no account) is a DIFFERENT, sibling
698
+ // cache entry backing callers that let the API resolve the account,
699
+ // so hand-merging into it could inject this workspace into the wrong
700
+ // account's cached list. The invalidate below reaches that slot too,
701
+ // correctly, via a real fetch instead of a guess.
702
+ primeProjectCache: (accountId, project) => {
703
+ queryClient.setQueryData(qk.projects.list(accountId), (existing) => [
704
+ project,
705
+ ...(existing ?? []),
706
+ ]);
707
+ },
708
+ // `qk.projects.scope()`, NOT `qk.projects.list()`. Under the old flat
709
+ // keys `['projects']` was a genuine PREFIX of `['projects', accountId]`,
710
+ // so invalidating it reached every account's list. Under `qk` those two
711
+ // are SIBLINGS (`'all'` vs `'<id>'`), so `list()` alone would match only
712
+ // the accountless slot and silently stop refreshing the list this
713
+ // create just added to. `scope()` is the shared prefix over every form.
714
+ invalidateProjects: () => void queryClient.invalidateQueries({ queryKey: qk.projects.scope() }),
715
+ // The pre-create cached list — the SAME entry `primeProjectCache`
716
+ // writes and the door/selector read, so on the signup journey (door →
717
+ // selector → /new) it is always warm. `runCreate` reads it before the
718
+ // prime to decide whether the created project is the account's FIRST:
719
+ // an unstamped first project is what makes the shell's onboarding
720
+ // wizard open for a new user (KRTX-2092).
721
+ projectsCachedForAccount: (accountId) => queryClient.getQueryData(qk.projects.list(accountId)),
722
+ writeLastProjectId,
723
+ // The same PATCH the wizard's own exits run — for a LATER project the
724
+ // create landing directly on the project page is an implicit skip.
725
+ // A fresh account's FIRST project is left unstamped instead (the
726
+ // decision reads `projectsCachedForAccount`), so its onboarding wizard
727
+ // opens on the landing (KRTX-2092).
728
+ completeOnboarding: (projectId) => setProjectOnboardingComplete(projectId, true),
729
+ enterProject: (projectId) => router.replace(uiRoutes().project(encodeURIComponent(projectId))),
730
+ now: Date.now,
731
+ });
732
+ if (!result.ok) {
733
+ setStatus('error');
734
+ setError(messageFor(result.error));
735
+ setLastError(result.error);
736
+ }
737
+ }, [creatableAccounts, queryClient, router, viewerId]);
738
+ const retry = useCallback(() => {
739
+ if (lastState)
740
+ void create(lastState);
741
+ }, [create, lastState]);
742
+ // Gated on `status === 'error'` as well as `isRetryableError`, not just the
743
+ // latter: `lastError` deliberately outlives one failed attempt (it is
744
+ // never cleared on success or on the next `create()` call other than by a
745
+ // fresh failure overwriting it), so without the status check `canRetry`
746
+ // could still read `true`/`false` from a PREVIOUS failure while a new
747
+ // create is `'creating'` or has already succeeded.
748
+ const canRetry = status === 'error' && isRetryableError(lastError);
749
+ const limitReached = status === 'error' && isProjectLimitError(lastError);
750
+ return { create, status, error, retry, canRetry, limitReached, phase };
751
+ }