@kortix/ui 0.15.11 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/dist/_vendor/kortix-shared.js +485 -187
  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 +497 -46
  128. package/dist/i18n/en.js +538 -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 +497 -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/layout/project-home.js +2 -1
  346. package/dist/workspace/memory/memory-page-list.js +1 -1
  347. package/dist/workspace/new/workspace-handoff.js +2 -1
  348. package/dist/workspace/projects/modal/project-icon-field.js +2 -1
  349. package/dist/workspace/session-workspace.js +13 -12
  350. package/dist/workspace/setup/setup-banner.d.ts +4 -0
  351. package/dist/workspace/setup/setup-banner.js +57 -0
  352. package/dist/workspace/setup/setup-steps.d.ts +57 -0
  353. package/dist/workspace/setup/setup-steps.js +53 -0
  354. package/dist/workspace/setup/use-setup-steps.d.ts +18 -0
  355. package/dist/workspace/setup/use-setup-steps.js +57 -0
  356. package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
  357. package/dist/workspace/setup/workspace-setup-page.js +91 -0
  358. package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
  359. package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
  360. package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
  361. package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
  362. package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
  363. package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
  364. package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
  365. package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
  366. package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
  367. package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
  368. package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
  369. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
  370. package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
  371. package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
  372. package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
  373. package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
  374. package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
  375. package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
  376. package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
  377. package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
  378. package/dist/workspace/sidebar/footer/promo-card.js +47 -0
  379. package/dist/workspace/sidebar/footer/sandbox-health.js +1 -1
  380. package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
  381. package/dist/workspace/sidebar/project-nav-items.js +12 -4
  382. package/dist/workspace/sidebar/project-session-list.js +58 -26
  383. package/dist/workspace/sidebar/project-sidebar.js +2 -5
  384. package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
  385. package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
  386. package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
  387. package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
  388. package/dist/workspace/sidebar/session-group-sections.js +121 -41
  389. package/dist/workspace/sidebar/sidebar-drill.js +6 -0
  390. package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
  391. package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
  392. package/dist/workspace/sidebar/use-workspace-list.js +11 -1
  393. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
  394. package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
  395. package/dist/workspace/space/space-tab-panels.js +1 -1
  396. package/dist/workspace/spaces/space-timeline.js +2 -2
  397. package/package.json +67 -10
  398. package/skills/kortix-ui/SKILL.md +2 -2
  399. package/skills/kortix-ui/references/modules.md +5 -3
  400. package/dist/session/thread/turn-share.d.ts +0 -16
  401. package/dist/session/thread/turn-share.js +0 -161
  402. package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
  403. package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
  404. /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.
4505
+
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.
4474
4511
 
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).
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,36 @@ 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. **The setup page is the person's.** Every sign-in (the model plan, a
4563
+ connector, Slack, the GitHub App) and every pasted token happen there, in
4564
+ the page \`onboard\` opens. Never sign in, connect or click for the person,
4565
+ in the terminal or in a browser.
4508
4566
 
4509
4567
  ## 0. Install
4510
4568
 
@@ -4514,7 +4572,7 @@ ${installBlock(target)}
4514
4572
 
4515
4573
  \`\`\`bash
4516
4574
  kortix whoami # signed in? if not:
4517
- kortix login # opens the browser: "click Authorize in the tab that just opened"
4575
+ kortix login # opens the browser: "click Authorize in the browser tab it opened"
4518
4576
  kortix plan --json # the deterministic baseline, names only
4519
4577
  \`\`\`
4520
4578
 
@@ -4538,11 +4596,23 @@ message of step 3.
4538
4596
  \`CLAUDE.md\`, \`CONTRIBUTING.md\`, the README, CI workflows, the scripts the
4539
4597
  team runs. Note every rule that conflicts with agents shipping work (for
4540
4598
  example "push to main"). For a monorepo, note which apps exist and how
4541
- each one starts and tests.
4599
+ each one starts and tests. Note the skills and agents the team has
4600
+ already: every folder with a \`SKILL.md\`
4601
+ (\`find . -name SKILL.md -not -path '*/node_modules/*'\`: \`.claude/skills/\`,
4602
+ \`.agents/skills/\`, \`skills/\`) and every \`.claude/agents/<name>.md\`. The
4603
+ setup reuses them (step 4).
4542
4604
  2. **The other repositories.** \`gh repo list <owner> --limit 100 --json name,description,pushedAt,isArchived\`
4543
4605
  for the owner of this repository's origin, plus the repositories this one
4544
4606
  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.
4607
+ Note the ones pushed in the last 90 days and what each one is. Then name
4608
+ the shape: one repository (a monorepo is one: several apps, one
4609
+ repository), or one product over several repositories (a web app, an API,
4610
+ services, each in its own). The shape decides where Kortix lives (step 3).
4611
+ Check the person's rights on each code repository:
4612
+ \`gh api repos/<owner>/<repo> --jq .permissions\`. \`onboard\` creates the
4613
+ GitHub webhooks with their \`gh\`, which needs \`admin\`. Without it, say so on
4614
+ the \`Found:\` line and name who can: an owner of the repository runs
4615
+ \`kortix doctor --loops --fix\` once, or the triggers poll instead.
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,52 @@ 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).
4740
+ - **A gap is a question only when a chosen source needs it.** An
4625
4741
  \`unrecognized_services\` prefix or an empty category becomes one question
4626
4742
  with likely answers ("Tickets: a) GitHub Issues (recommended) b) Linear
4627
4743
  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.
4744
+ - **Never** ask one item at a time or for a secret value. The software line's
4745
+ "Anything missing?" is the one open question.
4630
4746
 
4631
4747
  After the reply:
4632
4748
 
@@ -4634,6 +4750,9 @@ After the reply:
4634
4750
  second round.
4635
4751
  - A question the reply leaves open gets its recommended answer: say so in one
4636
4752
  line.
4753
+ - The reply picks another template: read its steps
4754
+ (\`kortix templates onboard <id> --steps\`) and go on. Its questions take
4755
+ your recommended answers; name them in one line. No second round.
4637
4756
  - A new thing in the reply (a custom loop in their words, another tool): add
4638
4757
  it when it fits, else put it in the final report under "later".
4639
4758
  - From here the person only acts: a sign-in, an Authorize click, a token
@@ -4642,13 +4761,81 @@ After the reply:
4642
4761
 
4643
4762
  ## 4. Write the configuration
4644
4763
 
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:
4764
+ Where you work follows the step 3 answer "where Kortix lives".
4765
+
4766
+ **In this repository** (one repository or a monorepo). The configuration goes
4767
+ next to the code, at the repository root (a monorepo's root, never one app's
4768
+ folder), and the workspace runs on this GitHub repository: every session
4769
+ starts from it. Work in this repository on its default branch. When the person
4770
+ has uncommitted work here, never commit, stash or discard it: work in
4771
+ \`git worktree add ../<repo>-kortix <default branch>\` instead. Reuse what the
4772
+ repository has, where it is, and never copy or move it:
4773
+
4774
+ - each skill folder you found in step 2, by its path:
4775
+ \`skills: { <name>: .claude/skills/<name> }\`. The folder's last segment is
4776
+ the name: lowercase words joined by \`-\`, not starting with \`kortix-\`;
4777
+ - each \`.claude/agents/<name>.md\` as an agent's prompt:
4778
+ \`agents.<name>.prompt_file: .claude/agents/<name>.md\` (its frontmatter is
4779
+ ignored, so give the agent its own \`tools\` and \`model\`);
4780
+ - the root \`AGENTS.md\` (else \`CLAUDE.md\`): every session reads it as it is.
4781
+
4782
+ A template: \`kortix templates add <id> --json\` (the repository and branch come
4783
+ from \`origin\`). It refuses a file that exists and differs: rename the
4784
+ template's file, never overwrite the team's.
4785
+
4786
+ **In a new repository** (a product over several repositories). Work in a
4787
+ folder beside this one: \`kortix workspaces clone <workspace_id>
4788
+ ../<repo>-kortix\` when the plan shows the workspace, else a new folder with
4789
+ \`git init\`. Run every later \`kortix\` command there. The code stays where it
4790
+ is; the agents reach each code repository on GitHub. Copy the skills you found
4791
+ into \`skills/<name>/\` there, so the agents have them too. A template:
4792
+ \`kortix templates add <id> --repo <owner/repo> --branch <default branch>
4793
+ --json\`, with the main code repository named.
4794
+
4795
+ Both use the layout of every workspace repository: \`kortix.yaml\` at the root,
4796
+ each agent's prompt in \`agents/<name>.md\` (or the file it already has), each
4797
+ skill in \`skills/<name>/\` (or the folder it already has). A template adds
4798
+ \`<id>.yaml\` (which \`kortix.yaml\` imports) and its settings JSON at the root.
4799
+ Never write a \`.kortix/\` folder: it holds only the CLI's local state.
4800
+
4801
+ Then follow the template's steps: write its settings
4802
+ JSON from the reply, turn on the triggers of the chosen sources and turn off
4803
+ the rest. No template: write the agents and triggers yourself, in the same
4804
+ layout. Declare every app you found under \`connectors:\` (rule 8), whether a
4805
+ loop calls it or not, with the entry the template's steps give, else the
4806
+ catalog's: \`onboard\` turns each one into a sign-in row on the setup page. An
4807
+ app reached only through a secret gets no row. Slack, when the reply says yes, is this entry in \`kortix.yaml\`, the one
4808
+ Kortix writes itself when Slack connects; \`onboard\` turns it into the "Add to
4809
+ Slack" row:
4810
+
4811
+ \`\`\`yaml
4812
+ connectors:
4813
+ - slug: kortix_slack
4814
+ name: Slack
4815
+ provider: channel
4816
+ platform: slack
4817
+ \`\`\`
4818
+
4819
+ Then write \`kortix.yaml\` with \`env.required\` and \`env.optional\` listing every
4820
+ secret the loops use and every env name the app reads to install, start and
4821
+ test (the plan's \`env\` names classed \`local\`; step 7 proves none is missing),
4822
+ the sandbox \`Dockerfile\` at the root (a Debian-family base, the code
4823
+ repository's runtimes at their pinned versions, git and gh, no \`COPY\` from
4824
+ the repository), and the template's \`cpu\`, \`memory\` and \`disk\` from step 2:
4825
+ whole numbers, memory and disk in GB (cpu 1\u201332, memory 1\u2013128, disk 1\u2013500).
4826
+ A running sandbox costs $${SANDBOX_RATES.vcpuHour} per vCPU-hour plus $${SANDBOX_RATES.memoryGbHour} per GB-hour of
4827
+ memory, billed per second; a stopped one costs only its disk ($${SANDBOX_RATES.diskGbMonth} per
4828
+ GB-month). Too small crashes the tests; too large bills every session for
4829
+ room it never uses. Step 7 measures the real need.
4830
+
4831
+ Write the \`dev-environment\` skill in \`skills/dev-environment/\` (or the folder
4832
+ the team's own has). It starts with how a session gets the code, because a
4833
+ session's \`/workspace\` starts empty: in this repository, \`kortix workspaces
4834
+ clone\` (the workspace repository is the code); in a new repository, the
4835
+ GitHub clone with the token the template names. Then the install, start and
4836
+ test commands. A loop that works on the code clones it from GitHub with the
4837
+ GitHub token its template names (\`FACTORY_GITHUB_TOKEN\` for the Software
4838
+ Factory), so that token is a required secret. Then:
4652
4839
 
4653
4840
  \`\`\`bash
4654
4841
  kortix validate
@@ -4658,46 +4845,79 @@ Fix every error and warning in the files you wrote. Two rules save a round:
4658
4845
 
4659
4846
  - Give every agent you add a \`tools\` list (or \`"*"\`). An agent without one
4660
4847
  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.
4848
+ - Every GitHub webhook trigger filters on
4849
+ \`body.repository.full_name: <owner>/<repo>\`, the code repository (the
4850
+ templates carry it). \`onboard\` and \`doctor\` then put the webhooks and
4851
+ labels there, and an event from any other repository never starts a run.
4666
4852
 
4667
- ## 5. Connect the models
4853
+ Commit the Kortix files before step 6: \`onboard\` refuses any other
4854
+ uncommitted change, and the workspace reads the default branch. In this
4855
+ repository, the step 3 answer decides how they land:
4856
+
4857
+ - **A commit:** commit only the Kortix files on the default branch. \`onboard\`
4858
+ pushes it. A protected branch refuses the push: say so in one line and
4859
+ open a pull request instead.
4860
+ - **A pull request:** \`git switch -c kortix/setup\`, commit, push,
4861
+ \`gh pr create\`. When the person has merged it, switch to the default
4862
+ branch, pull, and go on. Never point the workspace at \`kortix/setup\` to
4863
+ start before the merge: many repositories delete a merged branch
4864
+ (\`delete_branch_on_merge\`), and the workspace would then read a branch
4865
+ that no longer exists.
4668
4866
 
4669
- Connect what the person picked in step 3.
4867
+ ## 5. Connect the models
4670
4868
 
4671
- - **Claude Pro or Max:** \`kortix providers login claude --start --share workspace --json\`;
4672
- give the person the \`authorize_url\`; they paste the code back;
4673
- \`kortix providers login claude --flow <flow_id> --code <code> --share workspace\`.
4674
- - **ChatGPT Plus or Pro:** \`kortix providers login openai\` in the background;
4675
- give the person the link and the code it prints.
4676
- - **An API key:** \`kortix providers set <provider>\`; the person types the key.
4869
+ The setup page (step 6) asks for a model first when the workspace has none:
4870
+ the person picks their Claude or ChatGPT plan, or adds a key, there (rule
4871
+ 10). Connect no model from the terminal.
4677
4872
 
4678
4873
  ## 6. Do it
4679
4874
 
4680
4875
  \`\`\`bash
4681
- kortix onboard --yes --json \\
4876
+ kortix onboard --yes --json --wait \\
4682
4877
  [--env-file <file> --only <A,B>]... \\
4683
- [--channels <a,b>] [--connect <slug,...>] \\
4684
- [--name "<workspace name>"] [--repo <owner/repo>] [--github-token -]
4878
+ [--channels <a,b>] \\
4879
+ --repo <owner/repo> [--name "<workspace name>"]
4685
4880
  \`\`\`
4686
4881
 
4687
4882
  The first run creates the workspace. \`--name\` is its display name (default:
4688
4883
  \`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\`.
4884
+ step 3, for example "Acme Loops". \`--repo\` is the code repository on GitHub:
4885
+ always pass it. \`--channels\` takes the Slack channels the reply named; leave
4886
+ it out when it named none.
4887
+
4888
+ **The icon.** Once \`ship\` has linked the folder, give
4889
+ the workspace an icon that says what the product is: \`kortix workspaces set
4890
+ --glyph <Name>:<color>\`. Pick the name from \`kortix workspaces glyphs --json\`,
4891
+ the icons Kortix supports: the one closest to what the product does (\`Phone\`
4892
+ for a calling tool, \`ShoppingCart\` for a shop), never one from the \`Kortix\` or
4893
+ \`Brand\` group. The color is the product's brand color from the code
4894
+ repository as \`#rrggbb\`: \`theme_color\` in the web manifest, else the primary
4895
+ color of its CSS or Tailwind theme. No brand color found: one of the list's
4896
+ \`colors\`.
4897
+
4898
+ It runs in phases, each skipping what is done: \`validate\`, \`ship\` (create the
4899
+ workspace and push its repository; it refuses a dirty tree), \`secrets\`
4900
+ (approved names, generated webhook secrets, one intake link for the rest,
4901
+ the GitHub token included), \`webhooks\` (the GitHub repository webhooks and
4902
+ labels the triggers need, through the person's \`gh\`), \`slack\` (waits for
4903
+ Slack, then the bot joins the channels), \`connectors\`, \`sandbox\` (build every
4904
+ image and wait; a first build takes 5 to 10 minutes and prints nothing in
4905
+ \`--json\` mode), \`doctor\`.
4906
+
4907
+ **The setup page.** Every step only the person can do (a model, a connector
4908
+ sign-in, a secret such as the GitHub token, Slack) is one row on
4909
+ \`<web>/workspaces/<id>/setup\`. \`onboard\` opens it in their browser before the
4910
+ image build and prints \`setup_url\`. Before you run it, say one line: "The
4911
+ setup page opens in your browser: connect what it lists. I continue when every
4912
+ row is done." Never print those links in the terminal. \`--wait\` keeps the run
4913
+ going until the page shows every row done, then finishes the phases that
4914
+ waited.
4915
+
4916
+ Run the command as written. Never add \`--no-open\` and never drop \`--wait\`:
4917
+ the page is where the person makes every click (rule 10). Wait for
4918
+ \`onboard\` to exit before you end your turn: ending the turn can stop a
4919
+ command that runs in the background, and a question to the person never waits
4920
+ on a running \`onboard\`.
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,16 @@ 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. \`--wait\` timed out
4937
+ (\`next\` says what the page still lists): tell the person in one line, then
4938
+ run the same command again. Exit 1: read the failed phase's \`detail\`, fix
4939
+ it, run again.
4715
4940
 
4716
4941
  ## 7. Prove it, and loop until it works
4717
4942
 
@@ -4722,10 +4947,67 @@ kortix doctor --loops --fix --json # re-runs the phase a red line names
4722
4947
 
4723
4948
  Pass the same \`--repo <owner/repo>\` you gave \`onboard\`, if any.
4724
4949
 
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
4950
+ Loop until \`ready: true\`. A green doctor proves the configuration, not the
4951
+ dev environment: the image is built, but nothing has run the app in it yet.
4952
+
4953
+ **Prove the dev environment.** Start a session on the agent that works on the
4954
+ code, so it runs on that agent's \`sandbox\` (else \`sandbox.default\`): the
4955
+ image the \`Dockerfile\` built. A session without \`--agent\` runs My Kortix on
4956
+ another image and proves nothing.
4957
+
4958
+ \`\`\`bash
4959
+ kortix sessions new --agent <agent> --json --prompt "<the check>" # capture session_id
4960
+ kortix sessions wait-for <session_id> --timeout 1800 --json # until the turn ends
4961
+ kortix sessions log <session_id> --json --limit 200 # the real tool output
4962
+ \`\`\`
4963
+
4964
+ The check, as the prompt: "Load the dev-environment skill and follow it: get
4965
+ the code as it says, run its install, start and test commands, and report each
4966
+ command with its exit code. Start the app, open it with agent-browser, take a
4967
+ snapshot and say what the page shows. Change nothing in the repository.
4968
+ Measure the machine too: print \`nproc\`, \`free -m\` and \`df -m /\` first; while
4969
+ the install, build and tests run, sample used memory and used disk every 2
4970
+ seconds; report both peaks, how long the tests took, and any process killed
4971
+ for memory (exit 137, or \`oom\` in \`dmesg\`)."
4972
+
4973
+ Judge from the log's \`tool_call\` blocks (\`result.content[].text\` is the real
4974
+ output), never from the agent's summary. It passes when every command exits 0,
4975
+ the tests pass (a test that fails on the default branch too may fail: name
4976
+ it), and the snapshot shows the app, not an error page. A failure is yours to
4977
+ fix, and the person waits for none of it:
4978
+
4979
+ - a missing runtime, system package or service: the \`Dockerfile\`;
4980
+ - a wrong or missing command: the \`dev-environment\` skill;
4981
+ - a missing env name: \`env.required\`, then its value (a \`local\` value
4982
+ through \`kortix env push\`, else a row on the setup page);
4983
+ - too little memory or disk: the template's resources.
4984
+
4985
+ Then size the sandbox from the measured peaks, never from a guess:
4986
+
4987
+ - killed for memory, or peak memory above 80 % of the size: one step up
4988
+ (memory \xD7 1.5, rounded up; cpu 2 under 8 GB, 4 under 12 GB, else 8);
4989
+ - peak disk above 80 %: add half again;
4990
+ - the tests take over 10 minutes and the CPU was busy: double the cpu;
4991
+ - after a pass with peak memory under 40 % and peak disk under 50 %: one
4992
+ step down (memory \xF7 1.5, rounded up), then one more pass, since every
4993
+ session pays for the size. Never go under 2 vCPU, 4 GB and 20 GB: the
4994
+ agent and its browser share the machine with the app.
4995
+
4996
+ Resize with \`kortix sandboxes update <slug> --cpu <n> --memory <gb> --disk
4997
+ <gb>\`. A new size rebuilds the image. Write the final size and the measured
4998
+ peaks into the \`dev-environment\` skill, so the next change to the stack knows
4999
+ its headroom.
5000
+
5001
+ Commit, run \`kortix onboard --yes --json --wait\` again (it ships and rebuilds
5002
+ the image), and run the check in a new session. Loop until it passes. When your
5003
+ harness has subagents, give this loop to one: the logs are long, and your
5004
+ thread keeps the person's context.
5005
+
5006
+ Then one real run, the cheapest one the factory has:
5007
+ for the Software Factory, file the task the person approved in step 3 and
5008
+ label it. The label starts the run: follow it with \`kortix triggers runs\`,
5009
+ fire a trigger by hand only when the template's steps say so, and wait for the
5010
+ pull request. Show it to the person: the summary, the commands with their real
4729
5011
  output, the demo when the change is visible. Nobody merges it but them.
4730
5012
 
4731
5013
  ## 8. Wire this computer's coding agents
@@ -4756,12 +5038,25 @@ ${agentBlock(target)}
4756
5038
 
4757
5039
  ## 9. Hand over
4758
5040
 
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.
5041
+ Show the result first, then how to use it. At most 15 lines:
5042
+
5043
+ 1. What the real run made: the pull request, ticket or draft, its link, the
5044
+ signal that started it, and how long it took. Then what the dev-environment
5045
+ check proved: install, the tests (passed of total) and the app in the
5046
+ browser, and the sandbox size with its peaks and its cost per hour.
5047
+ 2. What runs now: one line per trigger (what starts it, what it ships, who
5048
+ approves) and where work lands.
5049
+ 3. How to start work by hand: the label to add, or
5050
+ \`kortix triggers fire <slug>\`. With Slack connected, first one task to send
5051
+ in Slack, a sentence the person can paste into a direct message to @Kortix
5052
+ or a channel it joined ("@Kortix why did the last deploy fail?").
5053
+ 4. Three things to ask this agent next, each one sentence the person can
5054
+ paste, from what you found ("add a loop that turns Sentry errors into
5055
+ tickets").
5056
+ 5. Where to watch (the workspace link) and what you wired on this computer
5057
+ (the MCP server, the skills).
5058
+ 6. The answers you took by default, the ideas kept for later, and anything
5059
+ still open.
4765
5060
  `;
4766
5061
  }
4767
5062
  setupGuide();
@@ -5192,7 +5487,7 @@ function parseObservationReport(text) {
5192
5487
  function parseLtmFields(body) {
5193
5488
  const labels = ["Caption:", "Content:", "Session:", "Created:", "Tags:"];
5194
5489
  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);
5490
+ const positions = labels.map((label) => ({ label, index: lower.indexOf(label.toLowerCase()) })).filter((entry) => entry.index >= 0).sort((a, b) => a.index - b.index);
5196
5491
  const fields = /* @__PURE__ */ new Map();
5197
5492
  for (const [index, current] of positions.entries()) {
5198
5493
  const next = positions[index + 1];
@@ -6231,6 +6526,9 @@ var WORKSPACE_SETTINGS_GROUPS = [
6231
6526
  // configures the repository connection; Repository browses its files
6232
6527
  // (with Drive on).
6233
6528
  { id: "library", sections: ["agents", "models", "connectors", "secrets", "skills", "drives", "apps", "triggers", "sandbox", "git", "repo"] },
6529
+ // Evals (flag `evals`): its own group since 2026-11-13, the Harbor Hub's
6530
+ // shape: datasets hold tasks, a job runs an agent on a dataset's tasks.
6531
+ { id: "evals", sections: ["evals", "eval-datasets", "eval-tasks", "eval-jobs"] },
6234
6532
  { id: "people", sections: ["members", "groups", "roles", "identity", "audit"] },
6235
6533
  { id: "billing", sections: ["plan", "usage"] },
6236
6534
  { id: "advanced", sections: ["feature-flags"] },
@@ -6270,4 +6568,4 @@ function parseWorkspaceSettingsSection(raw) {
6270
6568
  return Object.prototype.hasOwnProperty.call(WORKSPACE_SETTINGS_SECTION_ALIASES, value) ? WORKSPACE_SETTINGS_SECTION_ALIASES[value] : null;
6271
6569
  }
6272
6570
 
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 };
6571
+ 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 };