@kortix/ui 0.15.11 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/dist/_vendor/kortix-shared.js +478 -179
  2. package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
  3. package/dist/_vendor/shared/session/attachment-tile.d.ts +8 -0
  4. package/dist/_vendor/shared/workspace-settings.d.ts +3 -0
  5. package/dist/access/access/copy-row.d.ts +7 -1
  6. package/dist/access/access/copy-row.js +2 -2
  7. package/dist/animated-copy-icon.js +2 -1
  8. package/dist/browser/sandbox-browser-chrome.d.ts +2 -1
  9. package/dist/browser/sandbox-browser-chrome.js +1 -1
  10. package/dist/customize/agents/agent-cover-card.d.ts +1 -1
  11. package/dist/customize/agents/agent-cover-card.js +10 -2
  12. package/dist/customize/agents/agent-filter.js +3 -1
  13. package/dist/customize/agents/agent-overview.d.ts +10 -0
  14. package/dist/customize/agents/agent-overview.js +5 -4
  15. package/dist/customize/agents/agent-page-chrome.d.ts +5 -6
  16. package/dist/customize/agents/agent-page-chrome.js +16 -13
  17. package/dist/customize/agents/agent-page.js +6 -28
  18. package/dist/customize/agents/agent-tabs.d.ts +1 -0
  19. package/dist/customize/agents/agent-tabs.js +1 -0
  20. package/dist/customize/agents/agents-page.js +3 -3
  21. package/dist/customize/agents/create-agent-modal.d.ts +9 -0
  22. package/dist/customize/agents/create-agent-modal.js +21 -3
  23. package/dist/customize/agents/use-default-agent.js +2 -2
  24. package/dist/customize/connectors/connector-identity.d.ts +11 -2
  25. package/dist/customize/connectors/connector-identity.js +16 -4
  26. package/dist/customize/connectors/connectors-page.js +10 -6
  27. package/dist/customize/connectors/detail/app-page.js +2 -2
  28. package/dist/customize/connectors/install/install-dialog.d.ts +2 -0
  29. package/dist/customize/connectors/install/install-dialog.js +6 -1
  30. package/dist/customize/connectors/use-agent-access.d.ts +1 -0
  31. package/dist/customize/evals/eval-compare-view.d.ts +10 -0
  32. package/dist/customize/evals/eval-compare-view.js +68 -0
  33. package/dist/customize/evals/eval-dataset-view.d.ts +20 -0
  34. package/dist/customize/evals/eval-dataset-view.js +81 -0
  35. package/dist/customize/evals/eval-datasets-page.d.ts +25 -0
  36. package/dist/customize/evals/eval-datasets-page.js +91 -0
  37. package/dist/customize/evals/eval-job-view.d.ts +12 -0
  38. package/dist/customize/evals/eval-job-view.js +360 -0
  39. package/dist/customize/evals/eval-jobs-page.d.ts +4 -0
  40. package/dist/customize/evals/eval-jobs-page.js +69 -0
  41. package/dist/customize/evals/eval-meta.d.ts +97 -0
  42. package/dist/customize/evals/eval-meta.js +228 -0
  43. package/dist/customize/evals/eval-task-view.d.ts +13 -0
  44. package/dist/customize/evals/eval-task-view.js +123 -0
  45. package/dist/customize/evals/eval-tasks-page.d.ts +8 -0
  46. package/dist/customize/evals/eval-tasks-page.js +56 -0
  47. package/dist/customize/evals/eval-ui.d.ts +97 -0
  48. package/dist/customize/evals/eval-ui.js +153 -0
  49. package/dist/customize/evals/evals-page.d.ts +10 -0
  50. package/dist/customize/evals/evals-page.js +56 -0
  51. package/dist/customize/evals/run-eval-modal.d.ts +28 -0
  52. package/dist/customize/evals/run-eval-modal.js +167 -0
  53. package/dist/customize/project-settings/project-admin-sections.d.ts +3 -2
  54. package/dist/customize/project-settings/project-admin-sections.js +6 -1
  55. package/dist/customize/providers/provider-connect.d.ts +13 -0
  56. package/dist/customize/providers/provider-connect.js +29 -5
  57. package/dist/customize/providers/provider-sheet.js +5 -4
  58. package/dist/customize/sections/view/gateway/gateway-overview.d.ts +5 -0
  59. package/dist/customize/sections/view/gateway/gateway-overview.js +32 -6
  60. package/dist/customize/sections/view/gateway/routing-parts.d.ts +6 -0
  61. package/dist/customize/sections/view/gateway/routing-parts.js +21 -13
  62. package/dist/customize/sections/view/git-view.d.ts +19 -1
  63. package/dist/customize/sections/view/git-view.js +7 -3
  64. package/dist/customize/sections/view/manifest-issue-list.d.ts +16 -0
  65. package/dist/customize/sections/view/manifest-issue-list.js +41 -0
  66. package/dist/customize/sections/view/manifest-issues-row.d.ts +24 -0
  67. package/dist/customize/sections/view/manifest-issues-row.js +39 -0
  68. package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +7 -1
  69. package/dist/customize/sections/view/sandbox-provider-coverage.js +7 -5
  70. package/dist/customize/sections/view/secrets-view.d.ts +13 -0
  71. package/dist/customize/sections/view/secrets-view.js +10 -6
  72. package/dist/customize/sections/view/subscription-usage.d.ts +2 -7
  73. package/dist/customize/sections/view/subscription-usage.js +4 -8
  74. package/dist/customize/settings/settings-tab-header.js +12 -3
  75. package/dist/customize/settings/tabs/experimental-tab.d.ts +16 -5
  76. package/dist/customize/settings/tabs/experimental-tab.js +36 -11
  77. package/dist/customize/settings/tabs/general-tab.js +1 -1
  78. package/dist/customize/settings/tabs/sandbox-tab.d.ts +10 -0
  79. package/dist/customize/settings/tabs/sandbox-tab.js +27 -4
  80. package/dist/customize/settings/tabs/snapshots-tab.d.ts +31 -0
  81. package/dist/customize/settings/tabs/snapshots-tab.js +61 -5
  82. package/dist/customize/settings/tabs/workspace-keys.js +6 -3
  83. package/dist/customize/shared/capability-page-shell.js +9 -1
  84. package/dist/customize/shared/catalog/catalog-card.d.ts +1 -1
  85. package/dist/customize/shared/catalog/catalog-card.js +15 -5
  86. package/dist/customize/shared/customize-tab-bar.js +1 -1
  87. package/dist/customize/shared/new-entity-menu.d.ts +1 -1
  88. package/dist/customize/shared/new-entity-menu.js +38 -1
  89. package/dist/customize/triggers/runtime-triggers.d.ts +4 -0
  90. package/dist/customize/triggers/runtime-triggers.js +21 -2
  91. package/dist/customize/triggers/schedule/post-to-field.js +2 -2
  92. package/dist/customize/triggers/schedule-view.js +2 -1
  93. package/dist/files/project/components/drive-explorer.js +33 -70
  94. package/dist/files/project/components/drive-grid-view.d.ts +2 -31
  95. package/dist/files/project/components/drive-grid-view.js +12 -22
  96. package/dist/files/project/components/drive-list-view.d.ts +3 -30
  97. package/dist/files/project/components/drive-list-view.js +8 -18
  98. package/dist/files/project/components/drive-selection-bar.d.ts +4 -5
  99. package/dist/files/project/components/drive-selection-bar.js +13 -20
  100. package/dist/files/project/components/explorer-listing.d.ts +48 -0
  101. package/dist/files/project/components/explorer-listing.js +64 -0
  102. package/dist/files/project/components/file-explorer-page.js +7 -204
  103. package/dist/files/project/components/file-thumbnail.js +3 -1
  104. package/dist/files/project/components/manifest-issue-mark.d.ts +9 -0
  105. package/dist/files/project/components/manifest-issue-mark.js +26 -0
  106. package/dist/files/project/hooks/use-change-requests.d.ts +10 -0
  107. package/dist/files/project/hooks/use-change-requests.js +17 -0
  108. package/dist/files/project/manifest-annotations.d.ts +16 -0
  109. package/dist/files/project/manifest-annotations.js +19 -0
  110. package/dist/files/project/store/version-store.d.ts +1 -1
  111. package/dist/files/project/upload-batch.d.ts +20 -0
  112. package/dist/files/project/upload-batch.js +20 -0
  113. package/dist/files/runtime/hooks/use-binary-blob.js +3 -2
  114. package/dist/files/runtime/hooks/use-file-content.js +3 -2
  115. package/dist/files/runtime/hooks/use-file-list.js +1 -2
  116. package/dist/files/runtime/hooks/use-file-mutations.js +69 -6
  117. package/dist/files/runtime/hooks/use-file-refresh.d.ts +4 -0
  118. package/dist/files/runtime/hooks/use-file-refresh.js +6 -0
  119. package/dist/files/tree/components/file-tree-item.js +1 -4
  120. package/dist/files/viewer/file-annotations.d.ts +18 -0
  121. package/dist/files/viewer/file-annotations.js +21 -0
  122. package/dist/files/viewer/file-content-renderer.js +1 -1
  123. package/dist/files/viewer/file-viewer.js +2 -1
  124. package/dist/files/viewer/index.d.ts +1 -0
  125. package/dist/files/viewer/index.js +1 -0
  126. package/dist/files/viewer/use-file-content-state.js +8 -1
  127. package/dist/i18n/en.d.ts +495 -46
  128. package/dist/i18n/en.js +536 -87
  129. package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -4
  130. package/dist/icons/caret-right-solid.d.ts +11 -0
  131. package/dist/icons/caret-right-solid.js +15 -0
  132. package/dist/internal/auth/auth-art.d.ts +12 -0
  133. package/dist/internal/auth/auth-art.js +118 -0
  134. package/dist/internal/auth/auth-card-shell.d.ts +14 -10
  135. package/dist/internal/auth/auth-card-shell.js +20 -31
  136. package/dist/internal/auth/auth-consent.d.ts +3 -1
  137. package/dist/internal/auth/auth-consent.js +2 -2
  138. package/dist/internal/auth/auth-primitives.d.ts +26 -1
  139. package/dist/internal/auth/auth-primitives.js +37 -8
  140. package/dist/internal/connector-logo/connector-logo.d.ts +2 -1
  141. package/dist/internal/connector-logo/connector-logo.js +11 -2
  142. package/dist/internal/files/file-read-retry.d.ts +18 -2
  143. package/dist/internal/files/file-read-retry.js +42 -4
  144. package/dist/internal/hooks/projects/use-new-project-session.js +5 -10
  145. package/dist/internal/hooks/use-auto-scroll-physics.d.ts +1 -1
  146. package/dist/internal/hooks/use-auto-scroll-physics.js +2 -10
  147. package/dist/internal/hooks/use-reduced-motion.d.ts +4 -0
  148. package/dist/internal/hooks/use-reduced-motion.js +12 -0
  149. package/dist/internal/hooks/use-save-shortcut.d.ts +8 -0
  150. package/dist/internal/hooks/use-save-shortcut.js +28 -0
  151. package/dist/internal/layout/connect-mcp-modal.d.ts +1 -1
  152. package/dist/internal/layout/connect-mcp-modal.js +9 -4
  153. package/dist/internal/layout/panel-chrome.d.ts +28 -0
  154. package/dist/internal/layout/panel-chrome.js +27 -0
  155. package/dist/internal/layout/project-page-header.js +5 -1
  156. package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
  157. package/dist/internal/lib/manifest-health.d.ts +25 -1
  158. package/dist/internal/lib/manifest-health.js +56 -0
  159. package/dist/internal/lib/project-preamble.js +1 -1
  160. package/dist/internal/lib/web-notifications.d.ts +1 -1
  161. package/dist/internal/lib/web-notifications.js +3 -0
  162. package/dist/internal/notifications/notification-inbox.js +2 -1
  163. package/dist/internal/notifications/notification-rows.d.ts +1 -1
  164. package/dist/internal/notifications/notification-rows.js +15 -1
  165. package/dist/internal/selection/selection-bar.d.ts +2 -8
  166. package/dist/internal/selection/selection-bar.js +15 -38
  167. package/dist/internal/stores/active-space-store.d.ts +1 -1
  168. package/dist/internal/stores/browser-recents-store.d.ts +1 -1
  169. package/dist/internal/stores/current-account-store.d.ts +1 -1
  170. package/dist/internal/stores/first-chat-store.d.ts +1 -1
  171. package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
  172. package/dist/internal/stores/session-browser-store.d.ts +1 -1
  173. package/dist/internal/stores/session-expanded-store.d.ts +1 -1
  174. package/dist/internal/stores/session-filter-store.d.ts +1 -1
  175. package/dist/internal/stores/session-history-view-store.d.ts +1 -1
  176. package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
  177. package/dist/internal/stores/sound-store.d.ts +1 -1
  178. package/dist/internal/stores/tab-store.d.ts +1 -1
  179. package/dist/internal/stores/user-preferences-store.d.ts +9 -1
  180. package/dist/internal/stores/user-preferences-store.js +2 -0
  181. package/dist/internal/stores/web-notification-store.d.ts +1 -1
  182. package/dist/lib/base-ui-compat.js +28 -1
  183. package/dist/lib/dotmatrix-hooks.d.ts +1 -0
  184. package/dist/lib/dotmatrix-hooks.js +3 -13
  185. package/dist/lib/reduced-motion.d.ts +10 -0
  186. package/dist/lib/reduced-motion.js +104 -0
  187. package/dist/lib/routes.d.ts +9 -0
  188. package/dist/lib/routes.js +7 -4
  189. package/dist/markdown/artifact-link.d.ts +11 -0
  190. package/dist/markdown/artifact-link.js +62 -0
  191. package/dist/markdown/code/index.d.ts +1 -1
  192. package/dist/markdown/code/index.js +1 -1
  193. package/dist/markdown/code/inline-code.d.ts +1 -1
  194. package/dist/markdown/code/inline-code.js +1 -1
  195. package/dist/markdown/genui/components/map-canvas.js +2 -1
  196. package/dist/markdown/index.d.ts +3 -1
  197. package/dist/markdown/index.js +2 -1
  198. package/dist/markdown/{code/inline-chip.js → inline-chip.js} +2 -2
  199. package/dist/markdown/inline-code-text.d.ts +34 -0
  200. package/dist/markdown/inline-code-text.js +68 -0
  201. package/dist/markdown/setup-links/approval-decision.js +3 -3
  202. package/dist/markdown/soft-breaks.d.ts +21 -0
  203. package/dist/markdown/soft-breaks.js +33 -0
  204. package/dist/markdown/unified-markdown.d.ts +9 -1
  205. package/dist/markdown/unified-markdown.js +31 -9
  206. package/dist/primitives/action-bar.d.ts +50 -0
  207. package/dist/primitives/action-bar.js +87 -0
  208. package/dist/primitives/calendar.js +4 -2
  209. package/dist/primitives/inline-meta.js +2 -2
  210. package/dist/primitives/kortix-loader.js +2 -1
  211. package/dist/primitives/modal.d.ts +1 -1
  212. package/dist/primitives/paper-wallpaper-shaders.d.ts +1 -0
  213. package/dist/primitives/paper-wallpaper-shaders.js +6 -0
  214. package/dist/primitives/resizable.d.ts +1 -1
  215. package/dist/primitives/resize-seam.d.ts +3 -2
  216. package/dist/primitives/resize-seam.js +4 -3
  217. package/dist/primitives/settings-section-header.d.ts +30 -1
  218. package/dist/primitives/settings-section-header.js +37 -0
  219. package/dist/primitives/sliding-tab-indicator.js +2 -1
  220. package/dist/primitives/switch.js +15 -8
  221. package/dist/primitives/text-shimmer.js +6 -0
  222. package/dist/primitives/toast-clearance.d.ts +52 -0
  223. package/dist/primitives/toast-clearance.js +116 -0
  224. package/dist/primitives/toast.d.ts +3 -1
  225. package/dist/primitives/toast.js +2 -0
  226. package/dist/primitives/typed-title.js +1 -1
  227. package/dist/primitives/wallpaper-shaders.js +1 -1
  228. package/dist/session/actions/project-session-list-helpers.d.ts +16 -0
  229. package/dist/session/actions/project-session-list-helpers.js +18 -0
  230. package/dist/session/agents/agent-model.d.ts +1 -0
  231. package/dist/session/agents/agent-model.js +2 -1
  232. package/dist/session/agents/agent-strip.js +10 -4
  233. package/dist/session/agents/workflow-run-controls.d.ts +27 -4
  234. package/dist/session/agents/workflow-run-controls.js +63 -10
  235. package/dist/session/composer/ComposerCard.js +3 -0
  236. package/dist/session/composer/agent-selector.js +6 -4
  237. package/dist/session/composer/animated-placeholder.js +2 -1
  238. package/dist/session/composer/attachment-tile.d.ts +2 -2
  239. package/dist/session/composer/attachment-tile.js +25 -3
  240. package/dist/session/composer/composer-agent-access.d.ts +10 -1
  241. package/dist/session/composer/composer-agent-access.js +18 -4
  242. package/dist/session/composer/composer-chat-input.js +7 -2
  243. package/dist/session/composer/composer.d.ts +2 -2
  244. package/dist/session/composer/composer.js +7 -6
  245. package/dist/session/composer/hooks/use-file-search.d.ts +12 -2
  246. package/dist/session/composer/hooks/use-file-search.js +71 -7
  247. package/dist/session/composer/menus/menu-items.js +6 -2
  248. package/dist/session/composer/menus/menu-shell.d.ts +3 -1
  249. package/dist/session/composer/menus/menu-shell.js +2 -2
  250. package/dist/session/composer/menus/slash-menu.d.ts +7 -0
  251. package/dist/session/composer/menus/slash-menu.js +48 -1
  252. package/dist/session/composer/use-instant-session-send.js +7 -1
  253. package/dist/session/header/session-reminders-indicator.js +3 -2
  254. package/dist/session/header/session-site-header.js +24 -6
  255. package/dist/session/media/sandbox-url-detector.js +1 -1
  256. package/dist/session/models/model-connection-gate.js +2 -1
  257. package/dist/session/models/model-selector.js +1 -1
  258. package/dist/session/models/subscription-switcher.d.ts +7 -0
  259. package/dist/session/models/subscription-switcher.js +52 -10
  260. package/dist/session/models/subscription-windows.d.ts +2 -0
  261. package/dist/session/models/subscription-windows.js +2 -0
  262. package/dist/session/outcomes/session-outcomes-provider.js +14 -7
  263. package/dist/session/panel/action-panel.js +8 -19
  264. package/dist/session/panel/easy/app-preview.d.ts +4 -1
  265. package/dist/session/panel/easy/app-preview.js +95 -33
  266. package/dist/session/panel/easy/apps-card.js +6 -11
  267. package/dist/session/panel/easy/change-requests-card.js +1 -1
  268. package/dist/session/panel/easy/changes-card.d.ts +14 -0
  269. package/dist/session/panel/easy/changes-card.js +60 -0
  270. package/dist/session/panel/easy/context-card.d.ts +5 -1
  271. package/dist/session/panel/easy/context-card.js +13 -28
  272. package/dist/session/panel/easy/context-meter.d.ts +18 -0
  273. package/dist/session/panel/easy/context-meter.js +73 -0
  274. package/dist/session/panel/easy/detail-view.d.ts +1 -1
  275. package/dist/session/panel/easy/detail-view.js +24 -21
  276. package/dist/session/panel/easy/easy-panel.js +7 -5
  277. package/dist/session/panel/easy/file-preview.js +3 -1
  278. package/dist/session/panel/easy/frame-history.d.ts +91 -0
  279. package/dist/session/panel/easy/frame-history.js +198 -0
  280. package/dist/session/panel/easy/outputs-card.d.ts +10 -0
  281. package/dist/session/panel/easy/outputs-card.js +28 -31
  282. package/dist/session/panel/easy/panel-card.d.ts +1 -3
  283. package/dist/session/panel/easy/panel-card.js +24 -8
  284. package/dist/session/panel/easy/plan-card.js +2 -2
  285. package/dist/session/panel/easy/step-icon.d.ts +4 -1
  286. package/dist/session/panel/easy/step-icon.js +2 -2
  287. package/dist/session/panel/session-action-panel-column.d.ts +5 -0
  288. package/dist/session/panel/session-action-panel-column.js +198 -101
  289. package/dist/session/panel/session-desktop.js +5 -1
  290. package/dist/session/panel/session-diff-viewer.d.ts +3 -1
  291. package/dist/session/panel/session-diff-viewer.js +7 -4
  292. package/dist/session/panel/session-panel-provider.js +29 -5
  293. package/dist/session/panel/shared/derive-panels.js +64 -4
  294. package/dist/session/status/session-busy-indicator.js +2 -1
  295. package/dist/session/status/session-error-banner.js +1 -1
  296. package/dist/session/thread/chat-minimap.js +2 -1
  297. package/dist/session/thread/session-body.js +4 -1
  298. package/dist/session/thread/session-chat.js +18 -3
  299. package/dist/session/thread/session-turn-meta-rows.d.ts +13 -5
  300. package/dist/session/thread/session-turn-meta-rows.js +33 -5
  301. package/dist/session/thread/transcript.d.ts +1 -2
  302. package/dist/session/thread/transcript.js +26 -24
  303. package/dist/session/thread/typing-indicator.d.ts +2 -2
  304. package/dist/session/thread/typing-indicator.js +10 -3
  305. package/dist/session/tool/tools/session-spawn-tool.js +3 -3
  306. package/dist/session/tool/tools/workflow-run-card.d.ts +11 -1
  307. package/dist/session/tool/tools/workflow-run-card.js +31 -7
  308. package/dist/session/tool/tools/workflow-run-cost.d.ts +29 -0
  309. package/dist/session/tool/tools/workflow-run-cost.js +75 -0
  310. package/dist/session/tool/tools/workflow-tool.d.ts +1 -1
  311. package/dist/session/tool/tools/workflow-tool.js +40 -15
  312. package/dist/session/turn/peer-message-row.js +1 -1
  313. package/dist/session/turn/queued-prompt-bubbles.d.ts +3 -2
  314. package/dist/session/turn/queued-prompt-bubbles.js +1 -1
  315. package/dist/session/turn/throttled-markdown.js +1 -1
  316. package/dist/styles/theme.css +68 -0
  317. package/dist/styles.css +1 -1
  318. package/dist/terminal/pty-terminal.js +1 -1
  319. package/dist/terminal/session-terminal-connect-bar.js +2 -1
  320. package/dist/test-utils/intl.d.ts +495 -46
  321. package/dist/workspace/admin/project-admin-dashboard.js +21 -7
  322. package/dist/workspace/admin/settings-search-landing.js +2 -1
  323. package/dist/workspace/calendar/calendar-dates.d.ts +31 -0
  324. package/dist/workspace/calendar/calendar-dates.js +64 -0
  325. package/dist/workspace/calendar/calendar-new-item.d.ts +11 -0
  326. package/dist/workspace/calendar/calendar-new-item.js +47 -0
  327. package/dist/workspace/calendar/calendar-page.d.ts +3 -0
  328. package/dist/workspace/calendar/calendar-page.js +177 -0
  329. package/dist/workspace/calendar/calendar-panel.d.ts +13 -0
  330. package/dist/workspace/calendar/calendar-panel.js +103 -0
  331. package/dist/workspace/calendar/calendar-people.d.ts +52 -0
  332. package/dist/workspace/calendar/calendar-people.js +117 -0
  333. package/dist/workspace/calendar/calendar-scheduled.d.ts +29 -0
  334. package/dist/workspace/calendar/calendar-scheduled.js +118 -0
  335. package/dist/workspace/calendar/calendar-views.d.ts +32 -0
  336. package/dist/workspace/calendar/calendar-views.js +124 -0
  337. package/dist/workspace/calendar/calendar-when.d.ts +14 -0
  338. package/dist/workspace/calendar/calendar-when.js +81 -0
  339. package/dist/workspace/calendar/mention-textarea.d.ts +19 -0
  340. package/dist/workspace/calendar/mention-textarea.js +84 -0
  341. package/dist/workspace/home/access-requests-bell.js +2 -1
  342. package/dist/workspace/inbox/workspace-inbox.d.ts +1 -1
  343. package/dist/workspace/inbox/workspace-inbox.js +1 -1
  344. package/dist/workspace/layout/project-files-view.js +2 -1
  345. package/dist/workspace/memory/memory-page-list.js +1 -1
  346. package/dist/workspace/new/workspace-handoff.js +2 -1
  347. package/dist/workspace/projects/modal/project-icon-field.js +2 -1
  348. package/dist/workspace/session-workspace.js +13 -12
  349. package/dist/workspace/setup/setup-steps.d.ts +43 -0
  350. package/dist/workspace/setup/setup-steps.js +38 -0
  351. package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
  352. package/dist/workspace/setup/workspace-setup-page.js +124 -0
  353. package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
  354. package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
  355. package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
  356. package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
  357. package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
  358. package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
  359. package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
  360. package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
  361. package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
  362. package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
  363. package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
  364. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
  365. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
  366. package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
  367. package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
  368. package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
  369. package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
  370. package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
  371. package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
  372. package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
  373. package/dist/workspace/sidebar/footer/promo-card.js +47 -0
  374. package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
  375. package/dist/workspace/sidebar/project-nav-items.js +12 -4
  376. package/dist/workspace/sidebar/project-session-list.js +58 -26
  377. package/dist/workspace/sidebar/project-sidebar.js +2 -5
  378. package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
  379. package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
  380. package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
  381. package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
  382. package/dist/workspace/sidebar/session-group-sections.js +121 -41
  383. package/dist/workspace/sidebar/sidebar-drill.js +6 -0
  384. package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
  385. package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
  386. package/dist/workspace/sidebar/use-workspace-list.js +11 -1
  387. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
  388. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
  389. package/dist/workspace/space/space-tab-panels.js +1 -1
  390. package/dist/workspace/spaces/space-timeline.js +2 -2
  391. package/package.json +67 -10
  392. package/skills/kortix-ui/SKILL.md +2 -2
  393. package/skills/kortix-ui/references/modules.md +5 -3
  394. package/dist/session/thread/turn-share.d.ts +0 -16
  395. package/dist/session/thread/turn-share.js +0 -161
  396. package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
  397. package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
  398. /package/dist/markdown/{code/inline-chip.d.ts → inline-chip.d.ts} +0 -0
@@ -1,38 +1,7 @@
1
+ import 'croner';
1
2
  import { parseDocument, isScalar, Scalar, isMap, isSeq } from 'yaml';
2
- import 'util';
3
3
 
4
- // ../../node_modules/.pnpm/croner@9.1.0/node_modules/croner/dist/croner.js
5
- function h(n, t, e, r, s, i, a, l) {
6
- return h.fromTZ(h.tp(n, t, e, r, s, i, a), l);
7
- }
8
- h.fromTZISO = (n, t, e) => h.fromTZ(k(n, t), e);
9
- h.fromTZ = function(n, t) {
10
- let e = new Date(Date.UTC(n.y, n.m - 1, n.d, n.h, n.i, n.s)), r = D(n.tz, e), s = new Date(e.getTime() - r), i = D(n.tz, s);
11
- if (i - r === 0) return s;
12
- {
13
- let a = new Date(e.getTime() - i), l = D(n.tz, a);
14
- if (l - i === 0) return a;
15
- if (!t && l - i > 0) return a;
16
- if (t) throw new Error("Invalid date passed to fromTZ()");
17
- return s;
18
- }
19
- };
20
- h.toTZ = function(n, t) {
21
- let e = n.toLocaleString("en-US", { timeZone: t }).replace(/[\u202f]/, " "), r = new Date(e);
22
- return { y: r.getFullYear(), m: r.getMonth() + 1, d: r.getDate(), h: r.getHours(), i: r.getMinutes(), s: r.getSeconds(), tz: t };
23
- };
24
- h.tp = (n, t, e, r, s, i, a) => ({ y: n, m: t, d: e, h: r, i: s, s: i, tz: a });
25
- function D(n, t = /* @__PURE__ */ new Date()) {
26
- let e = t.toLocaleString("en-US", { timeZone: n, timeZoneName: "shortOffset" }).split(" ").slice(-1)[0], r = t.toLocaleString("en-US").replace(/[\u202f]/, " ");
27
- return Date.parse(`${r} GMT`) - Date.parse(`${r} ${e}`);
28
- }
29
- function k(n, t) {
30
- let e = new Date(Date.parse(n));
31
- if (isNaN(e)) throw new Error("minitz: Invalid ISO8601 passed to parser.");
32
- let r = n.substring(9);
33
- return n.includes("Z") || r.includes("-") || r.includes("+") ? h.tp(e.getUTCFullYear(), e.getUTCMonth() + 1, e.getUTCDate(), e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), "Etc/UTC") : h.tp(e.getFullYear(), e.getMonth() + 1, e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), t);
34
- }
35
- h.minitz = h;
4
+ // ../manifest-schema/src/index.ts
36
5
 
37
6
  // ../shared/src/workspace-actions.ts
38
7
  var WORKSPACE_ACTION_BY_LEGACY = {
@@ -262,6 +231,7 @@ var LEGACY_SANDBOX_KEYS = [
262
231
  "gpu"
263
232
  ];
264
233
  var RETIRED_KORTIX_TOOLS = ["kortix-connectors_call", "kortix-connectors_describe", "memory"];
234
+ var AGENT_TITLE_MAX_LENGTH = 80;
265
235
 
266
236
  // ../manifest-schema/src/deprecations.ts
267
237
  function agentBlocks(doc) {
@@ -549,25 +519,25 @@ function fixManifestText(text, options = {}) {
549
519
  var lineShape = (line) => line.replace(/\s+/g, " ").replace(/ ?([[\]{},:]) ?/g, "$1").trim();
550
520
  function keepUnchangedLines(original, rendered) {
551
521
  const a = original.split("\n");
552
- const b2 = rendered.split("\n");
522
+ const b = rendered.split("\n");
553
523
  const as = a.map(lineShape);
554
- const bs = b2.map(lineShape);
555
- const lcs = Array.from({ length: a.length + 1 }, () => new Uint32Array(b2.length + 1));
524
+ const bs = b.map(lineShape);
525
+ const lcs = Array.from({ length: a.length + 1 }, () => new Uint32Array(b.length + 1));
556
526
  for (let i2 = a.length - 1; i2 >= 0; i2--) {
557
- for (let j2 = b2.length - 1; j2 >= 0; j2--) {
527
+ for (let j2 = b.length - 1; j2 >= 0; j2--) {
558
528
  lcs[i2][j2] = as[i2] === bs[j2] ? lcs[i2 + 1][j2 + 1] + 1 : Math.max(lcs[i2 + 1][j2], lcs[i2][j2 + 1]);
559
529
  }
560
530
  }
561
531
  const out = [];
562
532
  let i = 0;
563
533
  let j = 0;
564
- while (j < b2.length) {
534
+ while (j < b.length) {
565
535
  if (i < a.length && as[i] === bs[j]) {
566
536
  out.push(a[i]);
567
537
  i++;
568
538
  j++;
569
539
  } else if (i < a.length && lcs[i + 1][j] >= lcs[i][j + 1]) i++;
570
- else out.push(b2[j++]);
540
+ else out.push(b[j++]);
571
541
  }
572
542
  const merged = out.join("\n");
573
543
  const read = (yaml) => {
@@ -648,12 +618,53 @@ function peerHandleLabel(handle) {
648
618
  function isMyKortixAgentName(name) {
649
619
  return name === MY_KORTIX_AGENT_NAME || name === LEGACY_MY_KORTIX_AGENT_NAME;
650
620
  }
651
- function agentDisplayName(slug) {
621
+ function agentDisplayName(slug, title) {
652
622
  if (isMyKortixAgentName(slug)) return MY_KORTIX_DISPLAY_NAME;
623
+ if (typeof title === "string" && title.trim()) return title.trim();
653
624
  if (typeof slug !== "string") return String(slug);
654
625
  const words = slug.replace(/[-_]+/g, " ").trim();
655
626
  return words.charAt(0).toUpperCase() + words.slice(1);
656
627
  }
628
+ var BEHAVIOR_KEYS_V3 = [
629
+ "description",
630
+ "mode",
631
+ "model",
632
+ "variant",
633
+ "temperature",
634
+ "top_p",
635
+ "steps",
636
+ "options",
637
+ "color",
638
+ "hidden",
639
+ "permission"
640
+ ];
641
+ var AGENT_BLOCK_KEYS_V3 = [
642
+ "title",
643
+ ...BEHAVIOR_KEYS_V3,
644
+ "prompt",
645
+ "prompt_file",
646
+ "run",
647
+ "timeout",
648
+ "enabled",
649
+ "codemode",
650
+ "context",
651
+ "tools",
652
+ "skills",
653
+ "subagents",
654
+ "commands",
655
+ "extensions",
656
+ "connectors",
657
+ "connectors_required",
658
+ "policy_sets",
659
+ "secrets",
660
+ "apps",
661
+ "kortix_permissions",
662
+ "sandbox",
663
+ "workspace",
664
+ "space",
665
+ "network_egress"
666
+ ];
667
+ new Set(AGENT_BLOCK_KEYS_V3);
657
668
 
658
669
  // ../manifest-schema/src/slug.ts
659
670
  var SLUG_MAX_LENGTH = 128;
@@ -1116,7 +1127,7 @@ function autoLinkUrls(text) {
1116
1127
  replacements.push({ index, length: url.length, replacement: `[${url}](${href})` });
1117
1128
  }
1118
1129
  if (replacements.length === 0) return text;
1119
- replacements.sort((a, b2) => b2.index - a.index);
1130
+ replacements.sort((a, b) => b.index - a.index);
1120
1131
  let result = text;
1121
1132
  for (const { index, length, replacement } of replacements) {
1122
1133
  result = result.substring(0, index) + replacement + result.substring(index + length);
@@ -1161,10 +1172,6 @@ function truncateString(str, maxLength = 50) {
1161
1172
  if (str.length <= maxLength) return str;
1162
1173
  return str.slice(0, maxLength) + "...";
1163
1174
  }
1164
- function capitalizeWords(str) {
1165
- if (!str) return str;
1166
- return str.replace(/(^|[\s-])([a-z])/g, (_match, sep, ch) => sep + ch.toUpperCase());
1167
- }
1168
1175
 
1169
1176
  // ../shared/src/utils/format-relative.ts
1170
1177
  var MINUTE_MS = 6e4;
@@ -2902,10 +2909,10 @@ function startsWithIgnoreCase(text, needle, at) {
2902
2909
  if (at < 0 || at + needle.length > text.length) return false;
2903
2910
  for (let i = 0; i < needle.length; i++) {
2904
2911
  let a = text.charCodeAt(at + i);
2905
- let b2 = needle.charCodeAt(i);
2912
+ let b = needle.charCodeAt(i);
2906
2913
  if (a >= 65 && a <= 90) a += 32;
2907
- if (b2 >= 65 && b2 <= 90) b2 += 32;
2908
- if (a !== b2) return false;
2914
+ if (b >= 65 && b <= 90) b += 32;
2915
+ if (a !== b) return false;
2909
2916
  }
2910
2917
  return true;
2911
2918
  }
@@ -3051,14 +3058,14 @@ function xmlBlocks(text) {
3051
3058
  const key = tag.toLowerCase();
3052
3059
  const list = closers.get(key);
3053
3060
  const bodyStart = end + 1;
3054
- let k2 = cursor.get(key) ?? 0;
3055
- if (list) while (k2 < list.length && list[k2] < bodyStart) k2++;
3056
- cursor.set(key, k2);
3057
- if (!list || k2 === list.length) {
3061
+ let k = cursor.get(key) ?? 0;
3062
+ if (list) while (k < list.length && list[k] < bodyStart) k++;
3063
+ cursor.set(key, k);
3064
+ if (!list || k === list.length) {
3058
3065
  from = index + 1;
3059
3066
  continue;
3060
3067
  }
3061
- const closeAt = list[k2];
3068
+ const closeAt = list[k];
3062
3069
  const blockEnd = closeAt + tag.length + 3;
3063
3070
  blocks.push({ index, end: blockEnd, tag, body: text.slice(bodyStart, closeAt) });
3064
3071
  from = blockEnd;
@@ -3334,7 +3341,7 @@ function parseChannelMessage(rawText) {
3334
3341
  if (!text) return void 0;
3335
3342
  const legacy = readLegacyChannelHeader(text);
3336
3343
  if (legacy) {
3337
- const platform = CHANNEL_PLATFORMS2.find((p2) => p2 === legacy.platform) ?? "Slack";
3344
+ const platform = CHANNEL_PLATFORMS2.find((p) => p === legacy.platform) ?? "Slack";
3338
3345
  const rest = text.slice(legacy.length);
3339
3346
  const end = rest.lastIndexOf(`
3340
3347
 
@@ -3442,9 +3449,9 @@ function escapeBody(text) {
3442
3449
  function decodeBody(text) {
3443
3450
  return text.replace(/&lt;\/(pasted_content)/gi, "</$1");
3444
3451
  }
3445
- function pastedContentXml(p2) {
3446
- return `<${TAG} id="${p2.id}" chars="${p2.text.length}">
3447
- ${escapeBody(p2.text)}
3452
+ function pastedContentXml(p) {
3453
+ return `<${TAG} id="${p.id}" chars="${p.text.length}">
3454
+ ${escapeBody(p.text)}
3448
3455
  </${TAG}>`;
3449
3456
  }
3450
3457
  function neutralizePastedTags(text) {
@@ -3474,10 +3481,10 @@ function pastedContentBlocks(text) {
3474
3481
  function splitPastedContent(text) {
3475
3482
  const blocks = pastedContentBlocks(text);
3476
3483
  if (blocks.length === 0) return { text: restorePastedTags(text), pastes: [] };
3477
- const spans = blocks.map((b2) => {
3478
- let end = b2.end;
3484
+ const spans = blocks.map((b) => {
3485
+ let end = b.end;
3479
3486
  for (let n = 0; n < 2 && text[end] === "\n"; n++) end++;
3480
- return { index: b2.index, end };
3487
+ return { index: b.index, end };
3481
3488
  });
3482
3489
  return {
3483
3490
  text: restorePastedTags(removeSpans(text, spans).trim()),
@@ -3488,9 +3495,9 @@ function expandPastedContent(text) {
3488
3495
  const blocks = pastedContentBlocks(text);
3489
3496
  let out = "";
3490
3497
  let last = 0;
3491
- for (const b2 of blocks) {
3492
- out += restorePastedTags(text.slice(last, b2.index)) + b2.text;
3493
- last = b2.end;
3498
+ for (const b of blocks) {
3499
+ out += restorePastedTags(text.slice(last, b.index)) + b.text;
3500
+ last = b.end;
3494
3501
  }
3495
3502
  return out + restorePastedTags(text.slice(last));
3496
3503
  }
@@ -3963,11 +3970,11 @@ function groupIntoSections(items, getCategories, opts = {}) {
3963
3970
  else buckets.set(key, [item]);
3964
3971
  }
3965
3972
  }
3966
- return [...buckets.entries()].map(([category, bucketItems]) => ({ category, items: bucketItems })).sort((a, b2) => {
3967
- const rank = sectionRank(a.category) - sectionRank(b2.category);
3973
+ return [...buckets.entries()].map(([category, bucketItems]) => ({ category, items: bucketItems })).sort((a, b) => {
3974
+ const rank = sectionRank(a.category) - sectionRank(b.category);
3968
3975
  if (rank !== 0) return rank;
3969
- if (a.items.length !== b2.items.length) return b2.items.length - a.items.length;
3970
- return a.category.localeCompare(b2.category);
3976
+ if (a.items.length !== b.items.length) return b.items.length - a.items.length;
3977
+ return a.category.localeCompare(b.category);
3971
3978
  });
3972
3979
  }
3973
3980
  function humanizeCategory(raw) {
@@ -4180,12 +4187,12 @@ var MASK = [
4180
4187
  ];
4181
4188
  var RESERVED_ROWS = { mykortix: PIXEL_KORTIX_ROWS, meta: PIXEL_KORTIX_ROWS };
4182
4189
  function fnv1a(input) {
4183
- let h2 = 2166136261;
4190
+ let h = 2166136261;
4184
4191
  for (let i = 0; i < input.length; i++) {
4185
- h2 ^= input.charCodeAt(i);
4186
- h2 = Math.imul(h2, 16777619);
4192
+ h ^= input.charCodeAt(i);
4193
+ h = Math.imul(h, 16777619);
4187
4194
  }
4188
- return h2 >>> 0;
4195
+ return h >>> 0;
4189
4196
  }
4190
4197
  function mulberry32(seed) {
4191
4198
  let a = seed;
@@ -4199,7 +4206,7 @@ function mulberry32(seed) {
4199
4206
  function draw(seed) {
4200
4207
  const rand = mulberry32(seed);
4201
4208
  return MASK.map((row) => {
4202
- const half = row.map((p2) => rand() < p2);
4209
+ const half = row.map((p) => rand() < p);
4203
4210
  return [...half, half[2], half[1], half[0]];
4204
4211
  });
4205
4212
  }
@@ -4240,7 +4247,7 @@ function passesPixelMarkGate(grid) {
4240
4247
  const filled = grid.flat().filter(Boolean).length;
4241
4248
  if (filled < 18 || filled > 30) return false;
4242
4249
  const rows = grid.filter((row) => row.some(Boolean)).length;
4243
- const cols = grid[0].filter((_2, c) => grid.some((row) => row[c])).length;
4250
+ const cols = grid[0].filter((_, c) => grid.some((row) => row[c])).length;
4244
4251
  if (rows < 5 || cols < 5) return false;
4245
4252
  if (grid.filter((row) => row.every(Boolean)).length > 1) return false;
4246
4253
  if (grid.filter((row) => row[HALF - 1]).length < 3) return false;
@@ -4345,6 +4352,14 @@ function splitFilenameForTile(name) {
4345
4352
  if (name.length <= LONG_NAME_THRESHOLD) return null;
4346
4353
  return { head: name.slice(0, -NAME_TAIL_CHARS), tail: name.slice(-NAME_TAIL_CHARS) };
4347
4354
  }
4355
+ function filenameBreakSegments(name) {
4356
+ const dot = name.lastIndexOf(".");
4357
+ const hasExtension = dot > 0 && dot < name.length - 1;
4358
+ const stem = hasExtension ? name.slice(0, dot) : name;
4359
+ const segments = stem.split(/(?<=[-_ ])/).filter(Boolean);
4360
+ if (hasExtension) segments.push(name.slice(dot));
4361
+ return segments.length ? segments : [name];
4362
+ }
4348
4363
 
4349
4364
  // ../shared/src/session/session-starter.ts
4350
4365
  function classifySessionStarter(session, viewerId) {
@@ -4400,7 +4415,7 @@ var trim = (url) => {
4400
4415
  };
4401
4416
  function setupTarget(origin, backendUrl) {
4402
4417
  const web = origin ? trim(origin) : PROD_TARGET.origin;
4403
- if (web === PROD_TARGET.origin) return PROD_TARGET;
4418
+ if (web === PROD_TARGET.origin || web === "https://www.kortix.com") return PROD_TARGET;
4404
4419
  const backend = backendUrl?.trim() ? trim(backendUrl) : "";
4405
4420
  const absolute = /^https?:\/\//.test(backend) ? backend : backend ? `${web}${backend.startsWith("/") ? "" : "/"}${backend}` : "";
4406
4421
  return { origin: web, apiBase: absolute ? absolute.replace(/\/v1$/, "") : PROD_TARGET.apiBase };
@@ -4412,9 +4427,22 @@ function setupHostName(target) {
4412
4427
  var guideUrl = (target = PROD_TARGET) => `${target.origin}/setup.md`;
4413
4428
  guideUrl();
4414
4429
  `${PROD_TARGET.origin}/factory.md`;
4430
+ var OLD_CLI_NOTE = [
4431
+ "Always run the installer, also when `kortix` exists: an older CLI lacks",
4432
+ "commands this guide uses. When `kortix onboard --help` does not list `--wait`",
4433
+ "afterwards, an older copy is earlier on PATH: `which -a kortix` lists them;",
4434
+ "tell the person which one to remove, in one line."
4435
+ ].join("\n");
4415
4436
  function installBlock(target) {
4416
4437
  if (isProd(target)) {
4417
- return ["```bash", `command -v kortix || curl -fsSL ${target.origin}/install | bash`, "kortix --version", "```"].join("\n");
4438
+ return [
4439
+ "```bash",
4440
+ `curl -fsSL ${target.origin}/install | bash # installs the CLI, or updates an older one`,
4441
+ "kortix --version",
4442
+ "```",
4443
+ "",
4444
+ OLD_CLI_NOTE
4445
+ ].join("\n");
4418
4446
  }
4419
4447
  const host = setupHostName(target);
4420
4448
  return [
@@ -4423,13 +4451,15 @@ function installBlock(target) {
4423
4451
  "command then talks to this deployment.",
4424
4452
  "",
4425
4453
  "```bash",
4426
- `command -v kortix || curl -fsSL ${target.origin}/install | KORTIX_CHANNEL=dev bash`,
4454
+ `curl -fsSL ${target.origin}/install | KORTIX_CHANNEL=dev bash # installs the CLI, or updates an older one`,
4427
4455
  "kortix --version",
4428
4456
  `kortix hosts info ${host} >/dev/null 2>&1 || kortix hosts add ${host} --url ${target.apiBase}`,
4429
4457
  `kortix hosts use ${host}`,
4430
4458
  "kortix hosts current # must print " + host,
4431
4459
  "```",
4432
4460
  "",
4461
+ OLD_CLI_NOTE,
4462
+ "",
4433
4463
  "A test deployment may have no Kortix GitHub App. When step 6 asks the person",
4434
4464
  "to install the App and the link does not work, use their own token instead,",
4435
4465
  "with their yes: `gh auth token | kortix onboard --yes --json --github-token -`."
@@ -4460,21 +4490,28 @@ function setupPrompt(workspace, target = PROD_TARGET) {
4460
4490
  return `${prompt}
4461
4491
  The Kortix workspace exists already: it reads kortix.yaml from ${repository} on ${branch}. Push the setup there.`;
4462
4492
  }
4493
+ var SANDBOX_RATES = { vcpuHour: 0.0324, memoryGbHour: 0.0108, diskGbMonth: 0.0526 };
4494
+ function sandboxHourlyUsd(cpu, memoryGb) {
4495
+ return Math.round((cpu * SANDBOX_RATES.vcpuHour + memoryGb * SANDBOX_RATES.memoryGbHour) * 100) / 100;
4496
+ }
4463
4497
  function setupGuide(target = PROD_TARGET) {
4464
4498
  return `# Set up Kortix on this repository
4465
4499
 
4466
- The person pasted a prompt like "Add a Kortix software factory to this
4467
- repository with me". You are the coding agent on their computer. From here you
4468
- do everything: install the Kortix CLI, sign them in (one click in their
4469
- browser), investigate their repositories and the software they use, ask
4470
- every question in one message, write their \`kortix.yaml\` by adapting a
4471
- reference repository, loop until \`kortix doctor --loops\` is green and one
4472
- real run worked, and wire their local coding agents to Kortix. Their part is
4473
- one reply to your questions and a few clicks only a person can make.
4500
+ The person pasted the setup prompt. You are the coding agent on their
4501
+ computer. You install the Kortix CLI, sign them in, read their repositories and
4502
+ the software they use, and offer the Kortix template that fits. After their one
4503
+ reply you set it up, run it once for real, and show them what it made. Their
4504
+ part is one reply and the clicks only a person can make.
4474
4505
 
4475
- When you are done, agents run 24/7 in Kortix cloud sandboxes on a copy of their
4476
- dev environment, on their Claude or Codex plan or an API key, started by the
4477
- signals the plan named (GitHub issues, failing tests, errors, Slack, schedules).
4506
+ What they get: agents that run in Kortix cloud sandboxes on a copy of their dev
4507
+ environment, on their Claude or ChatGPT plan or an API key. A signal starts
4508
+ each run: a new issue, a failing test, a production error, a signup, a
4509
+ schedule. The agent ships the work for a person to approve: a pull request, a
4510
+ ticket, a draft.
4511
+
4512
+ There are five templates: Software Factory, Marketing Factory, Sales Factory,
4513
+ Recruiting Factory and Support Factory (\`kortix templates ls --json\`). Each
4514
+ one is an agent, its skills and its triggers, ready to fit to a repository.
4478
4515
 
4479
4516
  \`kortix\` is your only tool for the platform. Use \`--json\` for everything you
4480
4517
  parse.
@@ -4496,15 +4533,41 @@ parse.
4496
4533
  3. **Never point agents at a shared backend.** A name classed \`remote\` or
4497
4534
  \`prod\` is not uploaded. The agents' dev environment runs locally and
4498
4535
  throwaway in the sandbox.
4499
- 4. **Adapt, never copy.** A reference repository is an example. The
4500
- person's \`kortix.yaml\` fits their repository: their tracker, their
4501
- commands, their channels.
4536
+ 4. **Install, then adapt.** \`kortix templates add\` installs a template. You
4537
+ then fit it to this repository: its tracker, its commands, its channels.
4538
+ The public reference repositories in the plan are finished examples to
4539
+ read. Never copy files from them.
4502
4540
  5. **Verify, don't assume.** A step is done when \`kortix doctor --loops\` or a
4503
4541
  real run proves it.
4504
- 6. **Be brief.** One line per step while you work. Do not print what you
4542
+ 6. **Plain words.** Every message to the person leads with the result or with
4543
+ the one thing you need from them. Name the real thing: the repository, the
4544
+ file, the command, the count, the link. Short sentences, one fact each. No
4545
+ filler, praise, hype, emoji or exclamation marks. Never write "seamless",
4546
+ "robust", "leverage", "powerful", "unlock", "empower", "streamline",
4547
+ "supercharge", "effortless", "magic", "game-changer", "dive in", "let's",
4548
+ "I'd be happy to", "great", "simply", "just" or "exciting". Show what the
4549
+ agents will do in this repository, not what Kortix is.
4550
+ 7. **Be brief.** One line per step while you work. Do not print what you
4505
4551
  investigated: no map, no inventory, no list of ideas. A finding reaches the
4506
4552
  person only as one line of the step 3 message or of the final report. The
4507
4553
  step 3 message has at most 40 lines, the final report at most 15.
4554
+ 8. **A connector for every app.** Every app you found gets a Kortix connector
4555
+ when the catalog has one, whether a loop calls it or not: the agents then
4556
+ reach all of the team's software. The person signs in once on the setup
4557
+ page and copies no key. Ask for an API token only for an app no connector
4558
+ serves, or for a token the template's steps name (the GitHub token).
4559
+ 9. **Keep the reply.** Do what the person chose. When a choice cannot work as
4560
+ chosen, only the person decides the change: say why in one line, give your
4561
+ fix and wait for the answer. Never swap a choice without saying so.
4562
+ 10. **Make the clicks when you can.** When you can drive the person's browser
4563
+ (a browser tool or MCP server that uses their own browser profile), offer
4564
+ it in the step 3 message. With their yes, make their clicks yourself:
4565
+ Authorize for \`kortix login\` (a new person signs up there with the Google
4566
+ or GitHub sign-in they already have), each row of the setup page (a
4567
+ connector's sign-in and consent, Add to Slack, a model plan) and the
4568
+ GitHub App install. Never type a password, a one-time code, a card number
4569
+ or a secret value: when a page asks for one, that step is the person's.
4570
+ Say so in one line, wait, and go on.
4508
4571
 
4509
4572
  ## 0. Install
4510
4573
 
@@ -4514,7 +4577,7 @@ ${installBlock(target)}
4514
4577
 
4515
4578
  \`\`\`bash
4516
4579
  kortix whoami # signed in? if not:
4517
- kortix login # opens the browser: "click Authorize in the tab that just opened"
4580
+ kortix login # opens the browser: "click Authorize in the browser tab it opened"
4518
4581
  kortix plan --json # the deterministic baseline, names only
4519
4582
  \`\`\`
4520
4583
 
@@ -4538,11 +4601,18 @@ message of step 3.
4538
4601
  \`CLAUDE.md\`, \`CONTRIBUTING.md\`, the README, CI workflows, the scripts the
4539
4602
  team runs. Note every rule that conflicts with agents shipping work (for
4540
4603
  example "push to main"). For a monorepo, note which apps exist and how
4541
- each one starts and tests.
4604
+ each one starts and tests. Note the skills and agents the team has
4605
+ already: every folder with a \`SKILL.md\`
4606
+ (\`find . -name SKILL.md -not -path '*/node_modules/*'\`: \`.claude/skills/\`,
4607
+ \`.agents/skills/\`, \`skills/\`) and every \`.claude/agents/<name>.md\`. The
4608
+ setup reuses them (step 4).
4542
4609
  2. **The other repositories.** \`gh repo list <owner> --limit 100 --json name,description,pushedAt,isArchived\`
4543
4610
  for the owner of this repository's origin, plus the repositories this one
4544
4611
  names (submodules, workflow \`uses:\` of the same owner, links in the docs).
4545
- Note the ones pushed in the last 90 days and what each one is.
4612
+ Note the ones pushed in the last 90 days and what each one is. Then name
4613
+ the shape: one repository (a monorepo is one: several apps, one
4614
+ repository), or one product over several repositories (a web app, an API,
4615
+ services, each in its own). The shape decides where Kortix lives (step 3).
4546
4616
  3. **The software.** Start from the plan's \`integrations\` (each has a
4547
4617
  category and its evidence), \`unrecognized_services\` and \`mcp_servers\`.
4548
4618
  Add what you find yourself: SDK imports, webhook handlers, secret names in
@@ -4553,24 +4623,32 @@ message of step 3.
4553
4623
  runbooks, the tracker and its labels, the changelog, and what the
4554
4624
  repository links to outside itself (Notion, Google Drive, Confluence,
4555
4625
  Figma).
4556
- 5. **The reference repositories.** \`recommendation.references\` in the plan
4557
- lists them. Read each one's \`README.md\`, \`ADAPTING.md\`, \`kortix.yaml\` and
4558
- \`.kortix/\` now. Every loop is a part you can take on its own. The Software
4559
- Factory has intake from issues, errors, logs and feedback, a worker that
4560
- opens pull requests with proof, and a reviewer. The Marketing Factory has
4561
- the changelog from merged pull requests, blog and social drafts, search
4562
- reports and a brand skill. When the prompt names one reference, that one
4563
- is the starting point; the other is still a source of parts.
4564
- 6. **The template's questions.** \`ADAPTING.md\` and a template's own steps
4565
- (printed above this guide by \`/factory.md\` and \`kortix templates
4566
- onboard\`) mark questions with **Ask**. Collect every one now, with your
4567
- recommended answer. Each one goes into the step 3 message; never ask it
4568
- where it appears.
4569
- 7. **The loops to offer.** From what you found, pick 2 to 4 loops, most
4570
- valuable first. Each one is a signal, what the agent ships, who approves
4571
- it, and the evidence that it fits ("42 open issues labeled bug and a test
4572
- suite: bug fixes as pull requests"). Keep the other good ideas for the
4573
- final report, under "later".
4626
+ 5. **The template that fits.** \`kortix templates ls --json\` lists the
4627
+ templates and what each one does. Match them to what you found. A code
4628
+ repository with tests and a tracker fits the Software Factory. A website,
4629
+ docs or a changelog fits the Marketing Factory. Signups and a CRM fit the
4630
+ Sales Factory. An ATS fits the Recruiting Factory. A help desk fits the
4631
+ Support Factory. Recommend the one with the most evidence and offer at most
4632
+ one more. When the prompt or the steps above this guide name a template,
4633
+ that one is chosen.
4634
+ 6. **Its steps and questions.** \`kortix templates onboard <id> --steps\`
4635
+ prints the recommended template's own steps. They mark questions with
4636
+ **Ask**. Collect each one now, with your recommended answer: it goes into
4637
+ the step 3 message. Never ask it where it appears.
4638
+ 7. **What it runs here.** From the template's sources, pick the 2 to 4 that
4639
+ fit the evidence, most valuable first. Each one is a signal, what the agent
4640
+ ships, who approves it, and the evidence ("42 open issues labeled bug and a
4641
+ test suite: each bug becomes a pull request with test output"). Keep the
4642
+ other ideas for the final report, under "later". No template fits: offer 2
4643
+ to 4 loops of your own in the same form.
4644
+ 8. **What it needs to run.** The sandbox runs the dev stack and its tests,
4645
+ never production traffic: size it for the heaviest command, usually the
4646
+ build or the test suite. Start from the plan's \`dev_environment.resources\`
4647
+ (memory first: 4 GB, more for browser tests, Docker, each service and a
4648
+ monorepo; CPU follows memory). Raise it for what the plan does not see: a
4649
+ Next.js or webpack production build (6 GB or more), a JVM or Gradle build,
4650
+ a mobile build, a local model, a \`--max-old-space-size\` in the scripts,
4651
+ or the CI runner size the team already pays for (\`runs-on\`).
4574
4652
 
4575
4653
  ## 3. One message of questions, one reply
4576
4654
 
@@ -4580,23 +4658,38 @@ Claude Code: a question tool holds fewer questions and can hide the findings.
4580
4658
  \`\`\`text
4581
4659
  Kortix setup for <owner>/<repo>
4582
4660
 
4661
+ <What the agents will do here, end to end, in one or two sentences with the
4662
+ real names: "Each GitHub issue labeled kortix becomes a pull request with
4663
+ test output and a recording. Sentry errors become tickets first. You merge.">
4664
+
4583
4665
  Found: <the stack, and how it runs and tests>
4584
- <the software the loops would use>
4666
+ <the software the template will use>
4585
4667
  <anything that needs their eye: a production value in an env file,
4586
- a rule that conflicts with the loops>
4668
+ a rule that conflicts with the agents>
4587
4669
 
4588
- 1. Loops to start (pick any):
4589
- a) <name>: <signal> -> <output>, <approver> (recommended)
4590
- b) <name>: <signal> -> <output>, <approver>
4591
- 2. <question>?
4670
+ 1. Template:
4671
+ a) <name> (recommended): <signal> -> <what it ships>, <who approves>
4672
+ b) <name>: <signal> -> <what it ships>, <who approves>
4673
+ c) none: my own loops
4674
+ 2. Start with (pick any):
4675
+ a) <source>: <signal> -> <output>, <approver> (recommended)
4676
+ b) <source>: <signal> -> <output>, <approver>
4677
+ 3. <question>?
4592
4678
  a) <answer> (recommended) b) <answer> c) <answer>
4593
4679
  ...
4594
4680
  Defaults: <every other decision, with the answer you will use>.
4595
4681
 
4596
4682
  Reply "go" to take every recommended answer, or "go" with changes:
4597
- "go, 1ab, 3c, 5: Linear".
4683
+ "go, 1b, 2ac, 5: Linear".
4598
4684
  \`\`\`
4599
4685
 
4686
+ The opening sentence and \`Found:\`:
4687
+
4688
+ - The opening says what the agents will do in this repository, from signal to
4689
+ result, with the real names. It is the first thing the person reads.
4690
+ - \`Found:\` has at most 4 lines, each one a fact that changes a decision or
4691
+ needs their eye. Everything else stays out.
4692
+
4600
4693
  The questions:
4601
4694
 
4602
4695
  - **At most 8**, numbered. Each one fits in 3 lines and has a recommended
@@ -4604,29 +4697,54 @@ The questions:
4604
4697
  gets your draft as its recommended answer; the person corrects it.
4605
4698
  - **Only decisions the person owns.** Pick from this list, in this order,
4606
4699
  and leave out a question the evidence settles:
4607
- 1. the loops to start: signal, output and approver of each;
4608
- 2. where work lands: the tracker or the system of record;
4609
- 3. the software to connect as Kortix connectors (one line: connect these,
4610
- leave out those). When the plan shows a workspace, check each app first
4700
+ 1. the template (settled when the prompt named one);
4701
+ 2. what it starts with: its sources, each with its signal, output and
4702
+ approver;
4703
+ 3. where work lands: the tracker or the system of record;
4704
+ 4. the software to connect as Kortix connectors: every app you found that
4705
+ the catalog has, whether a loop calls it or not (rule 8). One line that
4706
+ names them, recommended: all, and ends with "Anything missing?" so the
4707
+ reply can add one. When the plan shows a workspace, check each app first
4611
4708
  with \`kortix connectors catalog <name> --json\` and leave out an app
4612
- with no entry;
4613
- 4. the models: the person's Claude plan, their ChatGPT plan, or an API
4709
+ with no entry. Before sign-in, an MCP server's tool list in the catalog
4710
+ is a directory's copy and can be out of date: never drop a connector for
4711
+ a tool it seems to lack. The template's steps name the connector to use;
4712
+ 5. Slack, unless the plan shows it connected. Recommend yes: the team then
4713
+ gives the agents work by mentioning @Kortix in a channel or in a direct
4714
+ message, and the reply comes back in the same thread. The answer may name
4715
+ channels for it to join (\`#eng\`); none is needed, a direct message works
4716
+ without one. One Slack workspace runs one Kortix workspace: when theirs
4717
+ already runs another, adding it here moves it. Say so in the question;
4718
+ 6. the models: the person's Claude plan, their ChatGPT plan, or an API
4614
4719
  key; the reviewer on the strongest model;
4615
- 5. where \`kortix.yaml\` lives (this repository, or its own private
4616
- repository so the code gets no file) and the workspace name;
4617
- 6. the template's questions from step 2;
4618
- 7. a repository rule that conflicts with the loops: which one wins;
4619
- 8. the task for the real run in step 7, from what you found.
4720
+ 7. where Kortix lives, from the shape you named in step 2, with the
4721
+ workspace name:
4722
+ a) this repository (recommended for one repository or a monorepo):
4723
+ \`kortix.yaml\`, \`agents/\` and \`skills/\` go next to the code, the
4724
+ workspace runs on this GitHub repository, and the team's own skills
4725
+ and agents are reused where they are. Ask how the files land: a
4726
+ commit on the default branch (recommended when the team pushes
4727
+ there) or a pull request they merge;
4728
+ b) a new repository Kortix hosts (recommended for a product over
4729
+ several repositories): the agents reach each code repository on
4730
+ GitHub;
4731
+ 8. the template's questions from step 2;
4732
+ 9. a repository rule that conflicts with the agents: which one wins;
4733
+ 10. the task for the real run in step 7, from what you found.
4620
4734
  - **More than 8:** keep the 8 with the largest effect. Put every other
4621
4735
  decision, with the answer you will use, on the \`Defaults:\` line: the env
4622
- names to upload (only \`local\`), the Slack channels, the Kortix rule in
4623
- \`AGENTS.md\` (default: add it).
4624
- - **A gap is a question only when a chosen loop needs it.** An
4736
+ names to upload (every \`local\` name the app reads; never a \`remote\` or
4737
+ \`prod\` one), the sandbox size with its cost ("4 vCPU, 8 GB, 30 GB disk:
4738
+ about $${sandboxHourlyUsd(4, 8).toFixed(2)} an hour while a session runs"), the Kortix
4739
+ rule in \`AGENTS.md\` (default: add it) and, when
4740
+ you can drive their browser, "I make the sign-in clicks in your browser"
4741
+ (rule 10).
4742
+ - **A gap is a question only when a chosen source needs it.** An
4625
4743
  \`unrecognized_services\` prefix or an empty category becomes one question
4626
4744
  with likely answers ("Tickets: a) GitHub Issues (recommended) b) Linear
4627
4745
  c) Jira"). Otherwise leave it out.
4628
- - **Never** ask one item at a time, an open "what else do you use?", or for a
4629
- secret value.
4746
+ - **Never** ask one item at a time or for a secret value. The software line's
4747
+ "Anything missing?" is the one open question.
4630
4748
 
4631
4749
  After the reply:
4632
4750
 
@@ -4634,6 +4752,9 @@ After the reply:
4634
4752
  second round.
4635
4753
  - A question the reply leaves open gets its recommended answer: say so in one
4636
4754
  line.
4755
+ - The reply picks another template: read its steps
4756
+ (\`kortix templates onboard <id> --steps\`) and go on. Its questions take
4757
+ your recommended answers; name them in one line. No second round.
4637
4758
  - A new thing in the reply (a custom loop in their words, another tool): add
4638
4759
  it when it fits, else put it in the final report under "later".
4639
4760
  - From here the person only acts: a sign-in, an Authorize click, a token
@@ -4642,13 +4763,81 @@ After the reply:
4642
4763
 
4643
4764
  ## 4. Write the configuration
4644
4765
 
4645
- Adapt the reference into this repository (or the config repository): write
4646
- \`kortix.yaml\` with \`env.required\` and \`env.optional\` listing every secret the
4647
- loops use, the \`.kortix/<factory>/\` folder, the sandbox \`Dockerfile\` (a
4648
- Debian-family base, the repository's runtimes at their pinned versions, git and
4649
- gh, no \`COPY\` from the repository), the template's \`cpu\`, \`memory\` and \`disk\`
4650
- from the plan's \`dev_environment.resources\` (a sandbox too small for the dev
4651
- stack crashes the tests), and the \`dev-environment\` skill. Then:
4766
+ Where you work follows the step 3 answer "where Kortix lives".
4767
+
4768
+ **In this repository** (one repository or a monorepo). The configuration goes
4769
+ next to the code, at the repository root (a monorepo's root, never one app's
4770
+ folder), and the workspace runs on this GitHub repository: every session
4771
+ starts from it. Work in this repository on its default branch. When the person
4772
+ has uncommitted work here, never commit, stash or discard it: work in
4773
+ \`git worktree add ../<repo>-kortix <default branch>\` instead. Reuse what the
4774
+ repository has, where it is, and never copy or move it:
4775
+
4776
+ - each skill folder you found in step 2, by its path:
4777
+ \`skills: { <name>: .claude/skills/<name> }\`. The folder's last segment is
4778
+ the name: lowercase words joined by \`-\`, not starting with \`kortix-\`;
4779
+ - each \`.claude/agents/<name>.md\` as an agent's prompt:
4780
+ \`agents.<name>.prompt_file: .claude/agents/<name>.md\` (its frontmatter is
4781
+ ignored, so give the agent its own \`tools\` and \`model\`);
4782
+ - the root \`AGENTS.md\` (else \`CLAUDE.md\`): every session reads it as it is.
4783
+
4784
+ A template: \`kortix templates add <id> --json\` (the repository and branch come
4785
+ from \`origin\`). It refuses a file that exists and differs: rename the
4786
+ template's file, never overwrite the team's.
4787
+
4788
+ **In a new repository** (a product over several repositories). Work in a
4789
+ folder beside this one: \`kortix workspaces clone <workspace_id>
4790
+ ../<repo>-kortix\` when the plan shows the workspace, else a new folder with
4791
+ \`git init\`. Run every later \`kortix\` command there. The code stays where it
4792
+ is; the agents reach each code repository on GitHub. Copy the skills you found
4793
+ into \`skills/<name>/\` there, so the agents have them too. A template:
4794
+ \`kortix templates add <id> --repo <owner/repo> --branch <default branch>
4795
+ --json\`, with the main code repository named.
4796
+
4797
+ Both use the layout of every workspace repository: \`kortix.yaml\` at the root,
4798
+ each agent's prompt in \`agents/<name>.md\` (or the file it already has), each
4799
+ skill in \`skills/<name>/\` (or the folder it already has). A template adds
4800
+ \`<id>.yaml\` (which \`kortix.yaml\` imports) and its settings JSON at the root.
4801
+ Never write a \`.kortix/\` folder: it holds only the CLI's local state.
4802
+
4803
+ Then follow the template's steps: write its settings
4804
+ JSON from the reply, turn on the triggers of the chosen sources and turn off
4805
+ the rest. No template: write the agents and triggers yourself, in the same
4806
+ layout. Declare every app you found under \`connectors:\` (rule 8), whether a
4807
+ loop calls it or not, with the entry the template's steps give, else the
4808
+ catalog's: \`onboard\` turns each one into a sign-in row on the setup page. An
4809
+ app reached only through a secret gets no row. Slack, when the reply says yes, is this entry in \`kortix.yaml\`, the one
4810
+ Kortix writes itself when Slack connects; \`onboard\` turns it into the "Add to
4811
+ Slack" row:
4812
+
4813
+ \`\`\`yaml
4814
+ connectors:
4815
+ - slug: kortix_slack
4816
+ name: Slack
4817
+ provider: channel
4818
+ platform: slack
4819
+ \`\`\`
4820
+
4821
+ Then write \`kortix.yaml\` with \`env.required\` and \`env.optional\` listing every
4822
+ secret the loops use and every env name the app reads to install, start and
4823
+ test (the plan's \`env\` names classed \`local\`; step 7 proves none is missing),
4824
+ the sandbox \`Dockerfile\` at the root (a Debian-family base, the code
4825
+ repository's runtimes at their pinned versions, git and gh, no \`COPY\` from
4826
+ the repository), and the template's \`cpu\`, \`memory\` and \`disk\` from step 2:
4827
+ whole numbers, memory and disk in GB (cpu 1\u201332, memory 1\u2013128, disk 1\u2013500).
4828
+ A running sandbox costs $${SANDBOX_RATES.vcpuHour} per vCPU-hour plus $${SANDBOX_RATES.memoryGbHour} per GB-hour of
4829
+ memory, billed per second; a stopped one costs only its disk ($${SANDBOX_RATES.diskGbMonth} per
4830
+ GB-month). Too small crashes the tests; too large bills every session for
4831
+ room it never uses. Step 7 measures the real need.
4832
+
4833
+ Write the \`dev-environment\` skill in \`skills/dev-environment/\` (or the folder
4834
+ the team's own has). It starts with how a session gets the code, because a
4835
+ session's \`/workspace\` starts empty: in this repository, \`kortix workspaces
4836
+ clone\` (the workspace repository is the code); in a new repository, the
4837
+ GitHub clone with the token the template names. Then the install, start and
4838
+ test commands. A loop that works on the code clones it from GitHub with the
4839
+ GitHub token its template names (\`FACTORY_GITHUB_TOKEN\` for the Software
4840
+ Factory), so that token is a required secret. Then:
4652
4841
 
4653
4842
  \`\`\`bash
4654
4843
  kortix validate
@@ -4658,15 +4847,27 @@ Fix every error and warning in the files you wrote. Two rules save a round:
4658
4847
 
4659
4848
  - Give every agent you add a \`tools\` list (or \`"*"\`). An agent without one
4660
4849
  trips a deprecation warning.
4661
- - When \`kortix.yaml\` lives in its own repository, add
4662
- \`body.repository.full_name: <owner>/<repo>\` to the \`filter\` of every
4663
- GitHub webhook trigger. It names the code repository in code: \`onboard\`
4664
- and \`doctor\` then put the webhooks and labels there, and an event from any
4665
- other repository never starts a run.
4850
+ - Every GitHub webhook trigger filters on
4851
+ \`body.repository.full_name: <owner>/<repo>\`, the code repository (the
4852
+ templates carry it). \`onboard\` and \`doctor\` then put the webhooks and
4853
+ labels there, and an event from any other repository never starts a run.
4854
+
4855
+ Commit the Kortix files before step 6: \`onboard\` refuses any other
4856
+ uncommitted change, and the workspace reads the default branch. In this
4857
+ repository, the step 3 answer decides how they land:
4858
+
4859
+ - **A commit:** commit only the Kortix files on the default branch. \`onboard\`
4860
+ pushes it. A protected branch refuses the push: say so in one line and
4861
+ open a pull request instead.
4862
+ - **A pull request:** \`git switch -c kortix/setup\`, commit, push,
4863
+ \`gh pr create\`. When the person has merged it, switch to the default
4864
+ branch, pull, and go on.
4666
4865
 
4667
4866
  ## 5. Connect the models
4668
4867
 
4669
- Connect what the person picked in step 3.
4868
+ The setup page (step 6) asks for a model first when the workspace has none:
4869
+ the person picks their Claude or ChatGPT plan, or adds a key, in the browser.
4870
+ Use these commands only when the person wants it done in the terminal:
4670
4871
 
4671
4872
  - **Claude Pro or Max:** \`kortix providers login claude --start --share workspace --json\`;
4672
4873
  give the person the \`authorize_url\`; they paste the code back;
@@ -4678,26 +4879,45 @@ Connect what the person picked in step 3.
4678
4879
  ## 6. Do it
4679
4880
 
4680
4881
  \`\`\`bash
4681
- kortix onboard --yes --json \\
4882
+ kortix onboard --yes --json --wait \\
4682
4883
  [--env-file <file> --only <A,B>]... \\
4683
4884
  [--channels <a,b>] [--connect <slug,...>] \\
4684
- [--name "<workspace name>"] [--repo <owner/repo>] [--github-token -]
4885
+ --repo <owner/repo> [--name "<workspace name>"]
4685
4886
  \`\`\`
4686
4887
 
4687
4888
  The first run creates the workspace. \`--name\` is its display name (default:
4688
4889
  \`project.name\` in \`kortix.yaml\`, else the folder name): use the name from
4689
- step 3, for example "Acme Loops". \`--repo\` is the code repository for the
4690
- webhooks when \`kortix.yaml\` lives elsewhere and its triggers carry no
4691
- \`body.repository.full_name\` filter.
4692
-
4693
- It runs in phases, each skipping what is done: \`validate\`, \`ship\` (link and
4694
- push; it refuses a dirty tree), \`secrets\` (approved names, generated webhook
4695
- secrets, one intake link for the rest), \`webhooks\` (the GitHub repository
4696
- webhooks and labels the triggers need, through the person's \`gh\`), \`slack\`
4697
- (connect link, the bot joins the channels), \`connectors\` (a sign-in link each),
4698
- \`sandbox\` (build every image and wait; a first build takes 5 to 10 minutes
4699
- and prints nothing in \`--json\` mode: tell the person before you start),
4700
- \`doctor\`.
4890
+ step 3, for example "Acme Loops". \`--repo\` is the code repository on GitHub:
4891
+ always pass it. \`--channels\` takes the Slack channels the reply named; leave
4892
+ it out when it named none.
4893
+
4894
+ **The icon.** Once \`ship\` has linked the folder, give
4895
+ the workspace an icon that says what the product is: \`kortix workspaces set
4896
+ --glyph <Name>:<color>\`. Pick the name from \`kortix workspaces glyphs --json\`,
4897
+ the icons Kortix supports: the one closest to what the product does (\`Phone\`
4898
+ for a calling tool, \`ShoppingCart\` for a shop), never one from the \`Kortix\` or
4899
+ \`Brand\` group. The color is the product's brand color from the code
4900
+ repository as \`#rrggbb\`: \`theme_color\` in the web manifest, else the primary
4901
+ color of its CSS or Tailwind theme. No brand color found: one of the list's
4902
+ \`colors\`.
4903
+
4904
+ It runs in phases, each skipping what is done: \`validate\`, \`ship\` (create the
4905
+ workspace and push its repository; it refuses a dirty tree), \`secrets\`
4906
+ (approved names, generated webhook secrets, one intake link for the rest,
4907
+ the GitHub token included), \`webhooks\` (the GitHub repository webhooks and
4908
+ labels the triggers need, through the person's \`gh\`), \`slack\` (waits for
4909
+ Slack, then the bot joins the channels), \`connectors\`, \`sandbox\` (build every
4910
+ image and wait; a first build takes 5 to 10 minutes and prints nothing in
4911
+ \`--json\` mode), \`doctor\`.
4912
+
4913
+ **The setup page.** Every step only the person can do (a model, a connector
4914
+ sign-in, a secret such as the GitHub token, Slack) is one row on
4915
+ \`<web>/workspaces/<id>/setup\`. \`onboard\` opens it in their browser before the
4916
+ image build and prints \`setup_url\`. Before you run it, say one line: "The
4917
+ setup page opens in your browser: connect what it lists. I continue when every
4918
+ row is done." Never print those links in the terminal. \`--wait\` keeps the run
4919
+ going until the page shows every row done, then finishes the phases that
4920
+ waited.
4701
4921
 
4702
4922
  A repository webhook that already sends the same event to another Kortix
4703
4923
  workspace is left in place and reported in the \`webhooks\` detail. Tell the
@@ -4707,11 +4927,17 @@ other hook with the command \`kortix doctor --loops\` prints.
4707
4927
  A source that is off needs nothing: a disabled Slack trigger asks for no Slack
4708
4928
  connection.
4709
4929
 
4710
- Exit 0 is done and green. Exit 4 means \`user_actions\` are left: give the person
4711
- all of them in one message, each exactly once, with its link (install the GitHub App, Allow in Slack,
4712
- sign in to a connector, paste a token, \`/invite\` the bot to a private channel).
4713
- When they say it is done, run \`kortix onboard --yes --json\` again. Exit 1: read
4714
- the failed phase's \`detail\`, fix it, run again.
4930
+ In this repository, \`ship\` links the workspace to it through the Kortix GitHub
4931
+ App. The first run asks for the App's install on this repository: a
4932
+ \`github_app_install\` action with its link.
4933
+
4934
+ Exit 0 is done and green. Exit 4: steps are left. A \`user_action\` the page
4935
+ does not show (\`/invite\` the bot to a private Slack channel, install the
4936
+ GitHub App) goes to the person once, in one message, or is your click with
4937
+ their yes (rule 10). \`--wait\` timed out
4938
+ (\`next\` says what the page still lists): tell the person in one line, then
4939
+ run the same command again. Exit 1: read the failed phase's \`detail\`, fix
4940
+ it, run again.
4715
4941
 
4716
4942
  ## 7. Prove it, and loop until it works
4717
4943
 
@@ -4722,10 +4948,67 @@ kortix doctor --loops --fix --json # re-runs the phase a red line names
4722
4948
 
4723
4949
  Pass the same \`--repo <owner/repo>\` you gave \`onboard\`, if any.
4724
4950
 
4725
- Loop until \`ready: true\`. Then one real run, the cheapest one the factory has:
4726
- for the Software Factory, file the task the person approved in step 3, label
4727
- it, \`kortix triggers fire factory-intake --wait 300s\`, and wait for the pull
4728
- request. Show it to the person: the summary, the commands with their real
4951
+ Loop until \`ready: true\`. A green doctor proves the configuration, not the
4952
+ dev environment: the image is built, but nothing has run the app in it yet.
4953
+
4954
+ **Prove the dev environment.** Start a session on the agent that works on the
4955
+ code, so it runs on that agent's \`sandbox\` (else \`sandbox.default\`): the
4956
+ image the \`Dockerfile\` built. A session without \`--agent\` runs My Kortix on
4957
+ another image and proves nothing.
4958
+
4959
+ \`\`\`bash
4960
+ kortix sessions new --agent <agent> --json --prompt "<the check>" # capture session_id
4961
+ kortix sessions wait-for <session_id> --timeout 1800 --json # until the turn ends
4962
+ kortix sessions log <session_id> --json --limit 200 # the real tool output
4963
+ \`\`\`
4964
+
4965
+ The check, as the prompt: "Load the dev-environment skill and follow it: get
4966
+ the code as it says, run its install, start and test commands, and report each
4967
+ command with its exit code. Start the app, open it with agent-browser, take a
4968
+ snapshot and say what the page shows. Change nothing in the repository.
4969
+ Measure the machine too: print \`nproc\`, \`free -m\` and \`df -m /\` first; while
4970
+ the install, build and tests run, sample used memory and used disk every 2
4971
+ seconds; report both peaks, how long the tests took, and any process killed
4972
+ for memory (exit 137, or \`oom\` in \`dmesg\`)."
4973
+
4974
+ Judge from the log's \`tool_call\` blocks (\`result.content[].text\` is the real
4975
+ output), never from the agent's summary. It passes when every command exits 0,
4976
+ the tests pass (a test that fails on the default branch too may fail: name
4977
+ it), and the snapshot shows the app, not an error page. A failure is yours to
4978
+ fix, and the person waits for none of it:
4979
+
4980
+ - a missing runtime, system package or service: the \`Dockerfile\`;
4981
+ - a wrong or missing command: the \`dev-environment\` skill;
4982
+ - a missing env name: \`env.required\`, then its value (a \`local\` value
4983
+ through \`kortix env push\`, else a row on the setup page);
4984
+ - too little memory or disk: the template's resources.
4985
+
4986
+ Then size the sandbox from the measured peaks, never from a guess:
4987
+
4988
+ - killed for memory, or peak memory above 80 % of the size: one step up
4989
+ (memory \xD7 1.5, rounded up; cpu 2 under 8 GB, 4 under 12 GB, else 8);
4990
+ - peak disk above 80 %: add half again;
4991
+ - the tests take over 10 minutes and the CPU was busy: double the cpu;
4992
+ - after a pass with peak memory under 40 % and peak disk under 50 %: one
4993
+ step down (memory \xF7 1.5, rounded up), then one more pass, since every
4994
+ session pays for the size. Never go under 2 vCPU, 4 GB and 20 GB: the
4995
+ agent and its browser share the machine with the app.
4996
+
4997
+ Resize with \`kortix sandboxes update <slug> --cpu <n> --memory <gb> --disk
4998
+ <gb>\`. A new size rebuilds the image. Write the final size and the measured
4999
+ peaks into the \`dev-environment\` skill, so the next change to the stack knows
5000
+ its headroom.
5001
+
5002
+ Commit, run \`kortix onboard --yes --json --wait\` again (it ships and rebuilds
5003
+ the image), and run the check in a new session. Loop until it passes. When your
5004
+ harness has subagents, give this loop to one: the logs are long, and your
5005
+ thread keeps the person's context.
5006
+
5007
+ Then one real run, the cheapest one the factory has:
5008
+ for the Software Factory, file the task the person approved in step 3 and
5009
+ label it. The label starts the run: follow it with \`kortix triggers runs\`,
5010
+ fire a trigger by hand only when the template's steps say so, and wait for the
5011
+ pull request. Show it to the person: the summary, the commands with their real
4729
5012
  output, the demo when the change is visible. Nobody merges it but them.
4730
5013
 
4731
5014
  ## 8. Wire this computer's coding agents
@@ -4756,12 +5039,25 @@ ${agentBlock(target)}
4756
5039
 
4757
5040
  ## 9. Hand over
4758
5041
 
4759
- A report of at most 15 lines: the loops now running and what starts each,
4760
- where tickets land, who merges, how to start work by hand (label an issue,
4761
- \`kortix triggers fire <slug>\`), how to add the next loop (ask this agent: it
4762
- edits \`kortix.yaml\` and ships it), what you wired on this computer (the MCP
4763
- server, the skills), where to watch (the workspace link), the answers you
4764
- took by default, the ideas kept for later, and anything still open.
5042
+ Show the result first, then how to use it. At most 15 lines:
5043
+
5044
+ 1. What the real run made: the pull request, ticket or draft, its link, the
5045
+ signal that started it, and how long it took. Then what the dev-environment
5046
+ check proved: install, the tests (passed of total) and the app in the
5047
+ browser, and the sandbox size with its peaks and its cost per hour.
5048
+ 2. What runs now: one line per trigger (what starts it, what it ships, who
5049
+ approves) and where work lands.
5050
+ 3. How to start work by hand: the label to add, or
5051
+ \`kortix triggers fire <slug>\`. With Slack connected, first one task to send
5052
+ in Slack, a sentence the person can paste into a direct message to @Kortix
5053
+ or a channel it joined ("@Kortix why did the last deploy fail?").
5054
+ 4. Three things to ask this agent next, each one sentence the person can
5055
+ paste, from what you found ("add a loop that turns Sentry errors into
5056
+ tickets").
5057
+ 5. Where to watch (the workspace link) and what you wired on this computer
5058
+ (the MCP server, the skills).
5059
+ 6. The answers you took by default, the ideas kept for later, and anything
5060
+ still open.
4765
5061
  `;
4766
5062
  }
4767
5063
  setupGuide();
@@ -5192,7 +5488,7 @@ function parseObservationReport(text) {
5192
5488
  function parseLtmFields(body) {
5193
5489
  const labels = ["Caption:", "Content:", "Session:", "Created:", "Tags:"];
5194
5490
  const lower = body.toLowerCase();
5195
- const positions = labels.map((label) => ({ label, index: lower.indexOf(label.toLowerCase()) })).filter((entry) => entry.index >= 0).sort((a, b2) => a.index - b2.index);
5491
+ const positions = labels.map((label) => ({ label, index: lower.indexOf(label.toLowerCase()) })).filter((entry) => entry.index >= 0).sort((a, b) => a.index - b.index);
5196
5492
  const fields = /* @__PURE__ */ new Map();
5197
5493
  for (const [index, current] of positions.entries()) {
5198
5494
  const next = positions[index + 1];
@@ -6231,6 +6527,9 @@ var WORKSPACE_SETTINGS_GROUPS = [
6231
6527
  // configures the repository connection; Repository browses its files
6232
6528
  // (with Drive on).
6233
6529
  { id: "library", sections: ["agents", "models", "connectors", "secrets", "skills", "drives", "apps", "triggers", "sandbox", "git", "repo"] },
6530
+ // Evals (flag `evals`): its own group since 2026-11-13, the Harbor Hub's
6531
+ // shape: datasets hold tasks, a job runs an agent on a dataset's tasks.
6532
+ { id: "evals", sections: ["evals", "eval-datasets", "eval-tasks", "eval-jobs"] },
6234
6533
  { id: "people", sections: ["members", "groups", "roles", "identity", "audit"] },
6235
6534
  { id: "billing", sections: ["plan", "usage"] },
6236
6535
  { id: "advanced", sections: ["feature-flags"] },
@@ -6270,4 +6569,4 @@ function parseWorkspaceSettingsSection(raw) {
6270
6569
  return Object.prototype.hasOwnProperty.call(WORKSPACE_SETTINGS_SECTION_ALIASES, value) ? WORKSPACE_SETTINGS_SECTION_ALIASES[value] : null;
6271
6570
  }
6272
6571
 
6273
- export { ARTIFACT_DOC_CSS, AVATAR_INK, CARD_TEXT_RATIO, CHANNELS, CHANNEL_PLATFORM_IDS, CHROME_LAUNCHED, COMMIT_CONFIRM_ATTEMPTS, COMMIT_CONFIRM_DELAY_MS, CREDITS_PER_DOLLAR, CURATED_SECTIONS, HUMAN_ONLY, KATEX_FENCE_LANGUAGES, LANGUAGE_ALIASES, LONG_NAME_THRESHOLD, MAX_PROMPT_ATTACHMENTS_BYTES, MAX_PROMPT_ATTACHMENT_BYTES, MAX_PROMPT_ATTACHMENT_FILES, MAX_PROMPT_UPLOAD_FILENAME_BYTES, MERMAID_DIAGRAM_STARTERS, MY_KORTIX_AGENT_NAME, MY_KORTIX_DISPLAY_NAME, MY_KORTIX_SANDBOX_SLUG, NAME_TAIL_CHARS, NOT_TURN_PROMPTER, OTHER, PASTED_INLINE_MAX_BYTES, PIXEL_KORTIX_ROWS, PIXEL_MARK_TONES, POLICY_SETS_UNSUPPORTED_PROVIDERS, POPULAR_SECTION, PREVIEW_BUILDING_STATES, PREVIEW_STATE_MESSAGE, PROJECT_GLYPH_COLORS, PROJECT_GLYPH_GROUPS, SPACE_POST_SUMMARY, STALE_RUNTIME_DELIVERY_ERROR, UNKNOWN_RATIO, UPLOAD_LIMITS, WORKSPACE_SETTINGS_GROUPS, agentDisplayName, appAdminsOnly, attachmentExtension, autoLinkUrls, avatarFill, bashRowTitle, buildWebhookSampleRequest, capitalizeWords, cardImageShape, cardListLayout, chalkColors, channelPromptTail, classifySessionStarter, confirmCommitted, countInSection, dedentCommand, dollarsToCredits, editConfigPrompt, errorCode, escapeCurrencyDollars, expandPastedContent, extractReadableHtml, fileTagBlocks, fixManifestText, formatDurationSeconds, formatFileSize, formatRelative, formatUsdAsCredits, gridApps, groupIntoSections, hasReferenceDefinitionOutsideFences, humanizeCategory, indexOfIgnoreCase, isAllowedWebPushHost, isAmbiguousCreateFailure, isChannelFileLabel, isChannelPlatform, isMermaidCode, isMyKortixAgentName, isPreviewableImage, isProjectGlyphColor, isProjectGlyphName, isProjectGlyphPaletteColor, languageLabel, looksLikeMarkdown, masonryColumns, neutralizePastedTags, newConfigPrompt, newPastedContentId, normalizeLanguage, normalizeLatexDelimiters, normalizeProjectGlyphColor, openMarkdownLinkAtEnd, parseBackgroundWorkers, parseBalanceUsd, parseChannelMessage, parseDurationSeconds, parseGrepOutput, parseManifestText, parseMemoryEntryOutput, parseMemorySearchOutput, parsePeerMessagePrompt, parseReminderPrompt, parseSessionGetOutput, parseSessionMessagesOutput, parseSessionMetadataOutput, parseSessionSearchHits, parseTriggerEvent, parseTriggerLines, parseWorkspaceSettingsSection, passesPixelMarkGate, peerHandleLabel, pixelMark, policySetNameError, prefersPreviewLink, prepareMarkdownForKatex, prepareMarkdownForMath, promptFileReferenceXml, ptyOutputBlock, ptySpawnedBody, pushTypeOf, referenceHeaders, removeSpans, replaceSpans, resolveRegisteredKey, safeHttpUrl, sandboxMediaPath, sanitizePromptUploadFilename, sectionKeyForCategory, sectionKeysForEntry, sectionTitle, selfClosingTags, serializePromptWithPastes, setupPrompt, setupTarget, shouldTilePaste, skillDocumentBody, slackPlainText, slugifySlug, spaceDriveFolders, spaceSlug, splitFilenameForTile, splitPastedContent, stopRefusalMessage, stripBashMetadata, stripChatMentionMarkup, stripMarkupForToolOutput, tagBlocks, toolRegistryCandidates, trimPastedText, truncateString, utf8Bytes, withoutEdgeQuotes, xmlBlocks };
6572
+ export { AGENT_TITLE_MAX_LENGTH, ARTIFACT_DOC_CSS, AVATAR_INK, CARD_TEXT_RATIO, CHANNELS, CHANNEL_PLATFORM_IDS, CHROME_LAUNCHED, COMMIT_CONFIRM_ATTEMPTS, COMMIT_CONFIRM_DELAY_MS, CREDITS_PER_DOLLAR, CURATED_SECTIONS, HUMAN_ONLY, KATEX_FENCE_LANGUAGES, LANGUAGE_ALIASES, LONG_NAME_THRESHOLD, MAX_PROMPT_ATTACHMENTS_BYTES, MAX_PROMPT_ATTACHMENT_BYTES, MAX_PROMPT_ATTACHMENT_FILES, MAX_PROMPT_UPLOAD_FILENAME_BYTES, MERMAID_DIAGRAM_STARTERS, MY_KORTIX_AGENT_NAME, MY_KORTIX_SANDBOX_SLUG, NAME_TAIL_CHARS, NOT_TURN_PROMPTER, OTHER, PASTED_INLINE_MAX_BYTES, PIXEL_KORTIX_ROWS, PIXEL_MARK_TONES, POLICY_SETS_UNSUPPORTED_PROVIDERS, POPULAR_SECTION, PREVIEW_BUILDING_STATES, PREVIEW_STATE_MESSAGE, PROJECT_GLYPH_COLORS, PROJECT_GLYPH_GROUPS, SPACE_POST_SUMMARY, STALE_RUNTIME_DELIVERY_ERROR, UNKNOWN_RATIO, UPLOAD_LIMITS, WORKSPACE_SETTINGS_GROUPS, agentDisplayName, appAdminsOnly, attachmentExtension, autoLinkUrls, avatarFill, bashRowTitle, buildWebhookSampleRequest, cardImageShape, cardListLayout, chalkColors, channelPromptTail, classifySessionStarter, confirmCommitted, countInSection, dedentCommand, dollarsToCredits, editConfigPrompt, errorCode, escapeCurrencyDollars, expandPastedContent, extractReadableHtml, fileTagBlocks, filenameBreakSegments, fixManifestText, formatDurationSeconds, formatFileSize, formatRelative, formatUsdAsCredits, gridApps, groupIntoSections, hasReferenceDefinitionOutsideFences, humanizeCategory, indexOfIgnoreCase, isAllowedWebPushHost, isAmbiguousCreateFailure, isChannelFileLabel, isChannelPlatform, isMermaidCode, isMyKortixAgentName, isPreviewableImage, isProjectGlyphColor, isProjectGlyphName, isProjectGlyphPaletteColor, languageLabel, looksLikeMarkdown, masonryColumns, neutralizePastedTags, newConfigPrompt, newPastedContentId, normalizeLanguage, normalizeLatexDelimiters, normalizeProjectGlyphColor, openMarkdownLinkAtEnd, parseBackgroundWorkers, parseBalanceUsd, parseChannelMessage, parseDurationSeconds, parseGrepOutput, parseManifestText, parseMemoryEntryOutput, parseMemorySearchOutput, parsePeerMessagePrompt, parseReminderPrompt, parseSessionGetOutput, parseSessionMessagesOutput, parseSessionMetadataOutput, parseSessionSearchHits, parseTriggerEvent, parseTriggerLines, parseWorkspaceSettingsSection, passesPixelMarkGate, peerHandleLabel, pixelMark, policySetNameError, prefersPreviewLink, prepareMarkdownForKatex, prepareMarkdownForMath, promptFileReferenceXml, ptyOutputBlock, ptySpawnedBody, pushTypeOf, referenceHeaders, removeSpans, replaceSpans, resolveRegisteredKey, safeHttpUrl, sandboxMediaPath, sanitizePromptUploadFilename, sectionKeyForCategory, sectionKeysForEntry, sectionTitle, selfClosingTags, serializePromptWithPastes, setupPrompt, setupTarget, shouldTilePaste, skillDocumentBody, slackPlainText, slugifySlug, spaceDriveFolders, spaceSlug, splitFilenameForTile, splitPastedContent, stopRefusalMessage, stripBashMetadata, stripChatMentionMarkup, stripMarkupForToolOutput, tagBlocks, toolRegistryCandidates, trimPastedText, truncateString, utf8Bytes, withoutEdgeQuotes, xmlBlocks };