@kortix/ui 0.15.10 → 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.
- package/dist/_vendor/kortix-shared.js +769 -76
- package/dist/_vendor/shared/app-config.d.ts +6 -30
- package/dist/_vendor/shared/channel-descriptors.d.ts +0 -34
- package/dist/_vendor/shared/channel-header.d.ts +2 -1
- package/dist/_vendor/shared/connector-sections.d.ts +0 -25
- package/dist/_vendor/shared/file-tags.d.ts +2 -1
- package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
- package/dist/_vendor/shared/pasted-content.d.ts +0 -4
- package/dist/_vendor/shared/pixel-mark.d.ts +0 -17
- package/dist/_vendor/shared/project-glyphs.d.ts +0 -1
- package/dist/_vendor/shared/session/attachment-tile.d.ts +8 -0
- package/dist/_vendor/shared/workspace-settings.d.ts +3 -0
- package/dist/access/access/copy-row.d.ts +7 -1
- package/dist/access/access/copy-row.js +2 -2
- package/dist/animated-copy-icon.js +2 -1
- package/dist/browser/sandbox-browser-chrome.d.ts +2 -1
- package/dist/browser/sandbox-browser-chrome.js +1 -1
- package/dist/customize/agents/agent-cover-card.d.ts +1 -1
- package/dist/customize/agents/agent-cover-card.js +10 -2
- package/dist/customize/agents/agent-filter.js +3 -1
- package/dist/customize/agents/agent-model-view.d.ts +11 -1
- package/dist/customize/agents/agent-model-view.js +12 -1
- package/dist/customize/agents/agent-overview.d.ts +10 -0
- package/dist/customize/agents/agent-overview.js +5 -4
- package/dist/customize/agents/agent-page-chrome.d.ts +5 -6
- package/dist/customize/agents/agent-page-chrome.js +16 -13
- package/dist/customize/agents/agent-page.js +25 -34
- package/dist/customize/agents/agent-tabs.d.ts +3 -0
- package/dist/customize/agents/agent-tabs.js +3 -0
- package/dist/customize/agents/agents-page.js +3 -3
- package/dist/customize/agents/create-agent-modal.d.ts +9 -0
- package/dist/customize/agents/create-agent-modal.js +21 -3
- package/dist/customize/agents/use-default-agent.js +2 -2
- package/dist/customize/connectors/connector-identity.d.ts +11 -2
- package/dist/customize/connectors/connector-identity.js +16 -4
- package/dist/customize/connectors/connectors-page.js +10 -6
- package/dist/customize/connectors/detail/app-page.js +2 -2
- package/dist/customize/connectors/detail/connector-triggers.js +1 -1
- package/dist/customize/connectors/install/install-dialog.d.ts +2 -0
- package/dist/customize/connectors/install/install-dialog.js +6 -1
- package/dist/customize/connectors/use-agent-access.d.ts +2 -0
- package/dist/customize/evals/eval-compare-view.d.ts +10 -0
- package/dist/customize/evals/eval-compare-view.js +68 -0
- package/dist/customize/evals/eval-dataset-view.d.ts +20 -0
- package/dist/customize/evals/eval-dataset-view.js +81 -0
- package/dist/customize/evals/eval-datasets-page.d.ts +25 -0
- package/dist/customize/evals/eval-datasets-page.js +91 -0
- package/dist/customize/evals/eval-job-view.d.ts +12 -0
- package/dist/customize/evals/eval-job-view.js +360 -0
- package/dist/customize/evals/eval-jobs-page.d.ts +4 -0
- package/dist/customize/evals/eval-jobs-page.js +69 -0
- package/dist/customize/evals/eval-meta.d.ts +97 -0
- package/dist/customize/evals/eval-meta.js +228 -0
- package/dist/customize/evals/eval-task-view.d.ts +13 -0
- package/dist/customize/evals/eval-task-view.js +123 -0
- package/dist/customize/evals/eval-tasks-page.d.ts +8 -0
- package/dist/customize/evals/eval-tasks-page.js +56 -0
- package/dist/customize/evals/eval-ui.d.ts +97 -0
- package/dist/customize/evals/eval-ui.js +153 -0
- package/dist/customize/evals/evals-page.d.ts +10 -0
- package/dist/customize/evals/evals-page.js +56 -0
- package/dist/customize/evals/run-eval-modal.d.ts +28 -0
- package/dist/customize/evals/run-eval-modal.js +167 -0
- package/dist/customize/project-settings/project-admin-sections.d.ts +3 -2
- package/dist/customize/project-settings/project-admin-sections.js +6 -1
- package/dist/customize/providers/provider-connect.d.ts +13 -0
- package/dist/customize/providers/provider-connect.js +29 -5
- package/dist/customize/providers/provider-sheet.js +5 -4
- package/dist/customize/sections/component/teams-byo-wizard.js +4 -1
- package/dist/customize/sections/view/gateway/gateway-overview.d.ts +5 -0
- package/dist/customize/sections/view/gateway/gateway-overview.js +32 -6
- package/dist/customize/sections/view/gateway/routing-parts.d.ts +6 -0
- package/dist/customize/sections/view/gateway/routing-parts.js +21 -13
- package/dist/customize/sections/view/git-view.d.ts +19 -1
- package/dist/customize/sections/view/git-view.js +7 -3
- package/dist/customize/sections/view/manifest-issue-list.d.ts +16 -0
- package/dist/customize/sections/view/manifest-issue-list.js +41 -0
- package/dist/customize/sections/view/manifest-issues-row.d.ts +24 -0
- package/dist/customize/sections/view/manifest-issues-row.js +39 -0
- package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +7 -1
- package/dist/customize/sections/view/sandbox-provider-coverage.js +7 -5
- package/dist/customize/sections/view/secrets-view.d.ts +13 -0
- package/dist/customize/sections/view/secrets-view.js +10 -6
- package/dist/customize/sections/view/subscription-usage.d.ts +2 -7
- package/dist/customize/sections/view/subscription-usage.js +4 -8
- package/dist/customize/settings/settings-tab-header.js +12 -3
- package/dist/customize/settings/tabs/experimental-tab.d.ts +16 -5
- package/dist/customize/settings/tabs/experimental-tab.js +36 -11
- package/dist/customize/settings/tabs/general-tab.js +1 -1
- package/dist/customize/settings/tabs/sandbox-tab.d.ts +10 -0
- package/dist/customize/settings/tabs/sandbox-tab.js +27 -4
- package/dist/customize/settings/tabs/snapshots-tab.d.ts +31 -0
- package/dist/customize/settings/tabs/snapshots-tab.js +61 -5
- package/dist/customize/settings/tabs/workspace-keys.js +6 -3
- package/dist/customize/shared/capability-page-shell.js +9 -1
- package/dist/customize/shared/catalog/catalog-card.d.ts +1 -1
- package/dist/customize/shared/catalog/catalog-card.js +15 -5
- package/dist/customize/shared/customize-tab-bar.js +1 -1
- package/dist/customize/shared/new-entity-menu.d.ts +1 -1
- package/dist/customize/shared/new-entity-menu.js +38 -1
- package/dist/customize/triggers/runtime-triggers.d.ts +4 -0
- package/dist/customize/triggers/runtime-triggers.js +33 -3
- package/dist/customize/triggers/schedule/event-trigger-copy.js +1 -1
- package/dist/customize/triggers/schedule/post-to-field.js +2 -2
- package/dist/customize/triggers/schedule/schedule-detail-sheet.js +5 -4
- package/dist/customize/triggers/schedule/then-fields.d.ts +5 -1
- package/dist/customize/triggers/schedule/then-fields.js +23 -3
- package/dist/customize/triggers/schedule/trigger-callouts.js +1 -1
- package/dist/customize/triggers/schedule/trigger-composer-logic.d.ts +27 -0
- package/dist/customize/triggers/schedule/trigger-composer-logic.js +51 -5
- package/dist/customize/triggers/schedule/trigger-composer.js +19 -13
- package/dist/customize/triggers/schedule/trigger-edit-logic.js +25 -5
- package/dist/customize/triggers/schedule/trigger-filter.d.ts +10 -3
- package/dist/customize/triggers/schedule/trigger-filter.js +7 -6
- package/dist/customize/triggers/schedule/trigger-readonly.js +1 -1
- package/dist/customize/triggers/schedule/trigger-runs-panel.js +1 -1
- package/dist/customize/triggers/schedule/when-event.js +1 -1
- package/dist/customize/triggers/schedule/when-schedule.d.ts +5 -1
- package/dist/customize/triggers/schedule/when-schedule.js +16 -1
- package/dist/customize/triggers/schedule-view.js +6 -3
- package/dist/files/project/components/drive-explorer.js +33 -70
- package/dist/files/project/components/drive-grid-view.d.ts +2 -31
- package/dist/files/project/components/drive-grid-view.js +12 -22
- package/dist/files/project/components/drive-list-view.d.ts +3 -30
- package/dist/files/project/components/drive-list-view.js +8 -18
- package/dist/files/project/components/drive-selection-bar.d.ts +4 -5
- package/dist/files/project/components/drive-selection-bar.js +13 -20
- package/dist/files/project/components/explorer-listing.d.ts +48 -0
- package/dist/files/project/components/explorer-listing.js +64 -0
- package/dist/files/project/components/file-explorer-page.js +7 -204
- package/dist/files/project/components/file-thumbnail.js +3 -1
- package/dist/files/project/components/manifest-issue-mark.d.ts +9 -0
- package/dist/files/project/components/manifest-issue-mark.js +26 -0
- package/dist/files/project/hooks/use-change-requests.d.ts +10 -0
- package/dist/files/project/hooks/use-change-requests.js +17 -0
- package/dist/files/project/manifest-annotations.d.ts +16 -0
- package/dist/files/project/manifest-annotations.js +19 -0
- package/dist/files/project/store/version-store.d.ts +1 -1
- package/dist/files/project/upload-batch.d.ts +20 -0
- package/dist/files/project/upload-batch.js +20 -0
- package/dist/files/runtime/hooks/use-binary-blob.js +3 -2
- package/dist/files/runtime/hooks/use-file-content.js +3 -2
- package/dist/files/runtime/hooks/use-file-list.js +1 -2
- package/dist/files/runtime/hooks/use-file-mutations.js +69 -6
- package/dist/files/runtime/hooks/use-file-refresh.d.ts +4 -0
- package/dist/files/runtime/hooks/use-file-refresh.js +6 -0
- package/dist/files/tree/components/file-tree-item.js +1 -4
- package/dist/files/viewer/file-annotations.d.ts +18 -0
- package/dist/files/viewer/file-annotations.js +21 -0
- package/dist/files/viewer/file-content-renderer.js +1 -1
- package/dist/files/viewer/file-viewer.js +2 -1
- package/dist/files/viewer/index.d.ts +1 -0
- package/dist/files/viewer/index.js +1 -0
- package/dist/files/viewer/use-file-content-state.js +8 -1
- package/dist/i18n/en.d.ts +544 -46
- package/dist/i18n/en.js +593 -95
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -4
- package/dist/icons/caret-right-solid.d.ts +11 -0
- package/dist/icons/caret-right-solid.js +15 -0
- package/dist/internal/auth/auth-art.d.ts +12 -0
- package/dist/internal/auth/auth-art.js +118 -0
- package/dist/internal/auth/auth-card-shell.d.ts +14 -10
- package/dist/internal/auth/auth-card-shell.js +20 -31
- package/dist/internal/auth/auth-consent.d.ts +3 -1
- package/dist/internal/auth/auth-consent.js +2 -2
- package/dist/internal/auth/auth-primitives.d.ts +26 -1
- package/dist/internal/auth/auth-primitives.js +37 -8
- package/dist/internal/connector-logo/connector-logo.d.ts +2 -1
- package/dist/internal/connector-logo/connector-logo.js +11 -2
- package/dist/internal/files/file-read-retry.d.ts +18 -2
- package/dist/internal/files/file-read-retry.js +42 -4
- package/dist/internal/hooks/projects/use-new-project-session.js +5 -10
- package/dist/internal/hooks/use-auto-scroll-physics.d.ts +1 -1
- package/dist/internal/hooks/use-auto-scroll-physics.js +2 -10
- package/dist/internal/hooks/use-reduced-motion.d.ts +4 -0
- package/dist/internal/hooks/use-reduced-motion.js +12 -0
- package/dist/internal/hooks/use-save-shortcut.d.ts +8 -0
- package/dist/internal/hooks/use-save-shortcut.js +28 -0
- package/dist/internal/layout/connect-mcp-modal.d.ts +1 -1
- package/dist/internal/layout/connect-mcp-modal.js +9 -4
- package/dist/internal/layout/panel-chrome.d.ts +28 -0
- package/dist/internal/layout/panel-chrome.js +27 -0
- package/dist/internal/layout/project-page-header.js +5 -1
- package/dist/internal/layout/project-settings-nav.d.ts +17 -0
- package/dist/internal/layout/project-settings-nav.js +24 -0
- package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
- package/dist/internal/lib/capability-tab-routes.d.ts +8 -0
- package/dist/internal/lib/capability-tab-routes.js +11 -0
- package/dist/internal/lib/manifest-health.d.ts +25 -1
- package/dist/internal/lib/manifest-health.js +56 -0
- package/dist/internal/lib/project-preamble.js +1 -1
- package/dist/internal/lib/web-notifications.d.ts +1 -1
- package/dist/internal/lib/web-notifications.js +3 -0
- package/dist/internal/notifications/notification-inbox.js +2 -1
- package/dist/internal/notifications/notification-rows.d.ts +1 -1
- package/dist/internal/notifications/notification-rows.js +15 -1
- package/dist/internal/selection/selection-bar.d.ts +2 -8
- package/dist/internal/selection/selection-bar.js +15 -38
- package/dist/internal/stores/active-space-store.d.ts +1 -1
- package/dist/internal/stores/browser-recents-store.d.ts +1 -1
- package/dist/internal/stores/composer-prefill-store.d.ts +7 -0
- package/dist/internal/stores/composer-prefill-store.js +1 -0
- package/dist/internal/stores/current-account-store.d.ts +1 -1
- package/dist/internal/stores/first-chat-store.d.ts +1 -1
- package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
- package/dist/internal/stores/session-browser-store.d.ts +1 -1
- package/dist/internal/stores/session-expanded-store.d.ts +1 -1
- package/dist/internal/stores/session-filter-store.d.ts +1 -1
- package/dist/internal/stores/session-history-view-store.d.ts +1 -1
- package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
- package/dist/internal/stores/sound-store.d.ts +1 -1
- package/dist/internal/stores/tab-store.d.ts +1 -1
- package/dist/internal/stores/user-preferences-store.d.ts +9 -1
- package/dist/internal/stores/user-preferences-store.js +2 -0
- package/dist/internal/stores/web-notification-store.d.ts +1 -1
- package/dist/lib/base-ui-compat.js +28 -1
- package/dist/lib/dotmatrix-hooks.d.ts +1 -0
- package/dist/lib/dotmatrix-hooks.js +3 -13
- package/dist/lib/reduced-motion.d.ts +10 -0
- package/dist/lib/reduced-motion.js +104 -0
- package/dist/lib/routes.d.ts +9 -0
- package/dist/lib/routes.js +7 -4
- package/dist/markdown/artifact-link.d.ts +11 -0
- package/dist/markdown/artifact-link.js +62 -0
- package/dist/markdown/code/index.d.ts +1 -1
- package/dist/markdown/code/index.js +1 -1
- package/dist/markdown/code/inline-code.d.ts +1 -1
- package/dist/markdown/code/inline-code.js +1 -1
- package/dist/markdown/genui/components/map-canvas.js +2 -1
- package/dist/markdown/index.d.ts +3 -1
- package/dist/markdown/index.js +2 -1
- package/dist/markdown/{code/inline-chip.js → inline-chip.js} +2 -2
- package/dist/markdown/inline-code-text.d.ts +34 -0
- package/dist/markdown/inline-code-text.js +68 -0
- package/dist/markdown/setup-links/approval-decision.js +3 -3
- package/dist/markdown/soft-breaks.d.ts +21 -0
- package/dist/markdown/soft-breaks.js +33 -0
- package/dist/markdown/unified-markdown.d.ts +9 -1
- package/dist/markdown/unified-markdown.js +31 -9
- package/dist/primitives/action-bar.d.ts +50 -0
- package/dist/primitives/action-bar.js +87 -0
- package/dist/primitives/calendar.js +4 -2
- package/dist/primitives/inline-meta.js +2 -2
- package/dist/primitives/kortix-loader.js +2 -1
- package/dist/primitives/modal.d.ts +1 -1
- package/dist/primitives/paper-wallpaper-shaders.d.ts +1 -0
- package/dist/primitives/paper-wallpaper-shaders.js +6 -0
- package/dist/primitives/resizable.d.ts +1 -1
- package/dist/primitives/resize-seam.d.ts +3 -2
- package/dist/primitives/resize-seam.js +4 -3
- package/dist/primitives/settings-section-header.d.ts +30 -1
- package/dist/primitives/settings-section-header.js +37 -0
- package/dist/primitives/sliding-tab-indicator.js +2 -1
- package/dist/primitives/switch.js +15 -8
- package/dist/primitives/text-shimmer.js +6 -0
- package/dist/primitives/toast-clearance.d.ts +52 -0
- package/dist/primitives/toast-clearance.js +116 -0
- package/dist/primitives/toast.d.ts +3 -1
- package/dist/primitives/toast.js +2 -0
- package/dist/primitives/typed-title.js +1 -1
- package/dist/primitives/wallpaper-shaders.js +1 -1
- package/dist/session/actions/project-session-list-helpers.d.ts +16 -0
- package/dist/session/actions/project-session-list-helpers.js +18 -0
- package/dist/session/actions/session-label.js +2 -2
- package/dist/session/agents/agent-model.d.ts +1 -0
- package/dist/session/agents/agent-model.js +2 -1
- package/dist/session/agents/agent-strip.d.ts +10 -5
- package/dist/session/agents/agent-strip.js +49 -15
- package/dist/session/agents/held-messages.d.ts +6 -2
- package/dist/session/agents/held-messages.js +6 -3
- package/dist/session/agents/workflow-run-controls.d.ts +27 -4
- package/dist/session/agents/workflow-run-controls.js +63 -10
- package/dist/session/composer/ComposerCard.js +7 -1
- package/dist/session/composer/agent-selector.d.ts +2 -0
- package/dist/session/composer/agent-selector.js +11 -4
- package/dist/session/composer/animated-placeholder.js +2 -1
- package/dist/session/composer/attachment-tile.d.ts +2 -2
- package/dist/session/composer/attachment-tile.js +25 -3
- package/dist/session/composer/composer-agent-access.d.ts +10 -1
- package/dist/session/composer/composer-agent-access.js +18 -4
- package/dist/session/composer/composer-chat-input.d.ts +1 -0
- package/dist/session/composer/composer-chat-input.js +7 -2
- package/dist/session/composer/composer-logic.d.ts +7 -0
- package/dist/session/composer/composer-logic.js +18 -0
- package/dist/session/composer/composer-reset.d.ts +8 -14
- package/dist/session/composer/composer-toolbar.d.ts +3 -1
- package/dist/session/composer/composer-toolbar.js +3 -3
- package/dist/session/composer/composer.d.ts +9 -2
- package/dist/session/composer/composer.js +24 -9
- package/dist/session/composer/editor/composer-editor.js +6 -4
- package/dist/session/composer/hooks/use-file-search.d.ts +12 -2
- package/dist/session/composer/hooks/use-file-search.js +71 -7
- package/dist/session/composer/menus/menu-items.js +6 -2
- package/dist/session/composer/menus/menu-shell.d.ts +3 -1
- package/dist/session/composer/menus/menu-shell.js +2 -2
- package/dist/session/composer/menus/slash-menu.d.ts +7 -0
- package/dist/session/composer/menus/slash-menu.js +48 -1
- package/dist/session/composer/use-instant-session-send.js +7 -1
- package/dist/session/header/session-reminders-indicator.js +3 -2
- package/dist/session/header/session-site-header.d.ts +3 -1
- package/dist/session/header/session-site-header.js +27 -8
- package/dist/session/media/sandbox-url-detector.js +1 -1
- package/dist/session/models/connect-model-step.d.ts +29 -0
- package/dist/session/models/connect-model-step.js +50 -0
- package/dist/session/models/model-connection-gate.js +2 -1
- package/dist/session/models/model-selector.js +1 -1
- package/dist/session/models/subscription-switcher.d.ts +7 -0
- package/dist/session/models/subscription-switcher.js +52 -10
- package/dist/session/models/subscription-windows.d.ts +2 -0
- package/dist/session/models/subscription-windows.js +2 -0
- package/dist/session/models/use-workspace-model-gate.d.ts +11 -0
- package/dist/session/models/use-workspace-model-gate.js +62 -0
- package/dist/session/models/workspace-model-gate.d.ts +46 -0
- package/dist/session/models/workspace-model-gate.js +66 -0
- package/dist/session/outcomes/session-outcomes-provider.js +14 -7
- package/dist/session/panel/action-panel.js +8 -19
- package/dist/session/panel/easy/app-preview.d.ts +4 -1
- package/dist/session/panel/easy/app-preview.js +95 -33
- package/dist/session/panel/easy/apps-card.js +6 -11
- package/dist/session/panel/easy/change-requests-card.js +1 -1
- package/dist/session/panel/easy/changes-card.d.ts +14 -0
- package/dist/session/panel/easy/changes-card.js +60 -0
- package/dist/session/panel/easy/context-card.d.ts +5 -1
- package/dist/session/panel/easy/context-card.js +13 -28
- package/dist/session/panel/easy/context-meter.d.ts +18 -0
- package/dist/session/panel/easy/context-meter.js +73 -0
- package/dist/session/panel/easy/detail-view.d.ts +1 -1
- package/dist/session/panel/easy/detail-view.js +24 -21
- package/dist/session/panel/easy/easy-panel.js +7 -5
- package/dist/session/panel/easy/file-preview.js +3 -1
- package/dist/session/panel/easy/frame-history.d.ts +91 -0
- package/dist/session/panel/easy/frame-history.js +198 -0
- package/dist/session/panel/easy/outputs-card.d.ts +10 -0
- package/dist/session/panel/easy/outputs-card.js +28 -31
- package/dist/session/panel/easy/panel-card.d.ts +1 -3
- package/dist/session/panel/easy/panel-card.js +24 -8
- package/dist/session/panel/easy/plan-card.js +2 -2
- package/dist/session/panel/easy/step-icon.d.ts +4 -1
- package/dist/session/panel/easy/step-icon.js +2 -2
- package/dist/session/panel/session-action-panel-column.d.ts +5 -0
- package/dist/session/panel/session-action-panel-column.js +198 -101
- package/dist/session/panel/session-desktop.js +5 -1
- package/dist/session/panel/session-diff-viewer.d.ts +3 -1
- package/dist/session/panel/session-diff-viewer.js +7 -4
- package/dist/session/panel/session-panel-provider.js +29 -5
- package/dist/session/panel/shared/derive-panels.js +64 -4
- package/dist/session/prompts/session-connect-card.d.ts +63 -0
- package/dist/session/prompts/{session-connect-prompt.js → session-connect-card.js} +53 -42
- package/dist/session/status/session-busy-indicator.js +2 -1
- package/dist/session/status/session-error-banner.js +1 -1
- package/dist/session/thread/chat-minimap.js +2 -1
- package/dist/session/thread/session-body.js +4 -1
- package/dist/session/thread/session-chat.js +311 -300
- package/dist/session/thread/session-turn-meta-rows.d.ts +13 -5
- package/dist/session/thread/session-turn-meta-rows.js +33 -5
- package/dist/session/thread/transcript.d.ts +3 -3
- package/dist/session/thread/transcript.js +33 -27
- package/dist/session/thread/typing-indicator.d.ts +2 -2
- package/dist/session/thread/typing-indicator.js +10 -3
- package/dist/session/tool/tool-part-renderer.js +7 -2
- package/dist/session/tool/tools/kortix-action-tool.js +10 -2
- package/dist/session/tool/tools/session-spawn-tool.js +3 -3
- package/dist/session/tool/tools/workflow-run-card.d.ts +11 -1
- package/dist/session/tool/tools/workflow-run-card.js +31 -7
- package/dist/session/tool/tools/workflow-run-cost.d.ts +29 -0
- package/dist/session/tool/tools/workflow-run-cost.js +75 -0
- package/dist/session/tool/tools/workflow-tool.d.ts +1 -1
- package/dist/session/tool/tools/workflow-tool.js +40 -15
- package/dist/session/turn/peer-message-row.js +1 -1
- package/dist/session/turn/queued-prompt-bubbles.d.ts +3 -2
- package/dist/session/turn/queued-prompt-bubbles.js +1 -1
- package/dist/session/turn/throttled-markdown.js +1 -1
- package/dist/session/turn/turn-viewport.d.ts +66 -10
- package/dist/session/turn/turn-viewport.js +92 -12
- package/dist/session/turn/user-message.js +7 -5
- package/dist/styles/theme.css +68 -0
- package/dist/styles.css +1 -1
- package/dist/terminal/pty-terminal.js +1 -1
- package/dist/terminal/session-terminal-connect-bar.js +2 -1
- package/dist/test-utils/intl.d.ts +544 -46
- package/dist/workspace/admin/project-admin-dashboard.js +23 -11
- package/dist/workspace/admin/settings-search-landing.js +2 -1
- package/dist/workspace/calendar/calendar-dates.d.ts +31 -0
- package/dist/workspace/calendar/calendar-dates.js +64 -0
- package/dist/workspace/calendar/calendar-new-item.d.ts +11 -0
- package/dist/workspace/calendar/calendar-new-item.js +47 -0
- package/dist/workspace/calendar/calendar-page.d.ts +3 -0
- package/dist/workspace/calendar/calendar-page.js +177 -0
- package/dist/workspace/calendar/calendar-panel.d.ts +13 -0
- package/dist/workspace/calendar/calendar-panel.js +103 -0
- package/dist/workspace/calendar/calendar-people.d.ts +52 -0
- package/dist/workspace/calendar/calendar-people.js +117 -0
- package/dist/workspace/calendar/calendar-scheduled.d.ts +29 -0
- package/dist/workspace/calendar/calendar-scheduled.js +118 -0
- package/dist/workspace/calendar/calendar-views.d.ts +32 -0
- package/dist/workspace/calendar/calendar-views.js +124 -0
- package/dist/workspace/calendar/calendar-when.d.ts +14 -0
- package/dist/workspace/calendar/calendar-when.js +81 -0
- package/dist/workspace/calendar/mention-textarea.d.ts +19 -0
- package/dist/workspace/calendar/mention-textarea.js +84 -0
- package/dist/workspace/home/access-requests-bell.js +2 -1
- package/dist/workspace/home/existing-repo-setup-prompt.d.ts +5 -8
- package/dist/workspace/home/existing-repo-setup-prompt.js +16 -42
- package/dist/workspace/home/no-agent-home.d.ts +3 -1
- package/dist/workspace/home/no-agent-home.js +2 -2
- package/dist/workspace/inbox/workspace-inbox.d.ts +1 -1
- package/dist/workspace/inbox/workspace-inbox.js +1 -1
- package/dist/workspace/layout/project-files-view.js +2 -1
- package/dist/workspace/layout/project-home.js +16 -9
- package/dist/workspace/memory/memory-page-list.js +1 -1
- package/dist/workspace/new/workspace-handoff.js +2 -1
- package/dist/workspace/projects/modal/project-icon-field.js +2 -1
- package/dist/workspace/session-workspace.js +13 -12
- package/dist/workspace/setup/setup-steps.d.ts +43 -0
- package/dist/workspace/setup/setup-steps.js +38 -0
- package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
- package/dist/workspace/setup/workspace-setup-page.js +124 -0
- package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
- package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
- package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
- package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
- package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
- package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
- package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
- package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
- package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
- package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
- package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
- package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
- package/dist/workspace/sidebar/footer/promo-card.js +47 -0
- package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
- package/dist/workspace/sidebar/project-nav-items.js +12 -4
- package/dist/workspace/sidebar/project-session-list.js +58 -26
- package/dist/workspace/sidebar/project-sidebar.js +2 -5
- package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
- package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
- package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
- package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
- package/dist/workspace/sidebar/session-group-sections.js +121 -41
- package/dist/workspace/sidebar/session-grouping.d.ts +1 -1
- package/dist/workspace/sidebar/session-grouping.js +1 -1
- package/dist/workspace/sidebar/sidebar-drill.js +6 -0
- package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
- package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
- package/dist/workspace/sidebar/use-workspace-list.js +11 -1
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
- package/dist/workspace/space/space-tab-panels.js +1 -1
- package/dist/workspace/spaces/space-details-panel.js +2 -2
- package/dist/workspace/spaces/space-timeline.js +2 -2
- package/dist/workspace/spaces/space-triggers.js +2 -2
- package/dist/workspace/spaces/space-view.js +11 -5
- package/package.json +79 -10
- package/skills/kortix-ui/SKILL.md +2 -2
- package/skills/kortix-ui/references/modules.md +5 -3
- package/dist/session/prompts/session-connect-prompt.d.ts +0 -40
- package/dist/session/thread/turn-share.d.ts +0 -16
- package/dist/session/thread/turn-share.js +0 -161
- package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
- package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
- /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
|
-
//
|
|
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 = {
|
|
@@ -210,6 +179,25 @@ function isEveryGrant(value) {
|
|
|
210
179
|
}
|
|
211
180
|
return Array.isArray(value) && value.some((item) => typeof item === "string" && item.trim() === "*");
|
|
212
181
|
}
|
|
182
|
+
var DURATION_RE = /^([1-9][0-9]*)(s|m|h|d)$/;
|
|
183
|
+
var DURATION_UNIT_SECONDS = {
|
|
184
|
+
s: 1,
|
|
185
|
+
m: 60,
|
|
186
|
+
h: 3600,
|
|
187
|
+
d: 86400
|
|
188
|
+
};
|
|
189
|
+
function parseDurationSeconds(raw) {
|
|
190
|
+
const match = DURATION_RE.exec(raw.trim());
|
|
191
|
+
if (!match) return null;
|
|
192
|
+
return Number(match[1]) * DURATION_UNIT_SECONDS[match[2]];
|
|
193
|
+
}
|
|
194
|
+
function formatDurationSeconds(seconds) {
|
|
195
|
+
if (!Number.isInteger(seconds) || seconds <= 0) return `${seconds}s`;
|
|
196
|
+
if (seconds % 86400 === 0) return `${seconds / 86400}d`;
|
|
197
|
+
if (seconds % 3600 === 0) return `${seconds / 3600}h`;
|
|
198
|
+
if (seconds % 60 === 0) return `${seconds / 60}m`;
|
|
199
|
+
return `${seconds}s`;
|
|
200
|
+
}
|
|
213
201
|
var CHANNEL_PLATFORMS = CHANNEL_PLATFORM_IDS;
|
|
214
202
|
({
|
|
215
203
|
...Object.fromEntries(CHANNEL_PLATFORMS.map((platform) => [channelConnectorSlug(platform), "channel"]))});
|
|
@@ -243,6 +231,7 @@ var LEGACY_SANDBOX_KEYS = [
|
|
|
243
231
|
"gpu"
|
|
244
232
|
];
|
|
245
233
|
var RETIRED_KORTIX_TOOLS = ["kortix-connectors_call", "kortix-connectors_describe", "memory"];
|
|
234
|
+
var AGENT_TITLE_MAX_LENGTH = 80;
|
|
246
235
|
|
|
247
236
|
// ../manifest-schema/src/deprecations.ts
|
|
248
237
|
function agentBlocks(doc) {
|
|
@@ -323,7 +312,7 @@ var DEPRECATIONS = [
|
|
|
323
312
|
since: "2026-10-27",
|
|
324
313
|
summary: 'an agent without `tools` gets every tool. Write `tools: "*"` (same meaning), or list the tools it needs.',
|
|
325
314
|
apply: (doc) => agentBlocks(doc).flatMap(([name, block]) => {
|
|
326
|
-
if (block.has("tools")) return [];
|
|
315
|
+
if (block.has("tools") || block.has("run")) return [];
|
|
327
316
|
block.set("tools", everyScalar());
|
|
328
317
|
return [`agents.${name}.tools`];
|
|
329
318
|
})
|
|
@@ -530,25 +519,25 @@ function fixManifestText(text, options = {}) {
|
|
|
530
519
|
var lineShape = (line) => line.replace(/\s+/g, " ").replace(/ ?([[\]{},:]) ?/g, "$1").trim();
|
|
531
520
|
function keepUnchangedLines(original, rendered) {
|
|
532
521
|
const a = original.split("\n");
|
|
533
|
-
const
|
|
522
|
+
const b = rendered.split("\n");
|
|
534
523
|
const as = a.map(lineShape);
|
|
535
|
-
const bs =
|
|
536
|
-
const lcs = Array.from({ length: a.length + 1 }, () => new Uint32Array(
|
|
524
|
+
const bs = b.map(lineShape);
|
|
525
|
+
const lcs = Array.from({ length: a.length + 1 }, () => new Uint32Array(b.length + 1));
|
|
537
526
|
for (let i2 = a.length - 1; i2 >= 0; i2--) {
|
|
538
|
-
for (let j2 =
|
|
527
|
+
for (let j2 = b.length - 1; j2 >= 0; j2--) {
|
|
539
528
|
lcs[i2][j2] = as[i2] === bs[j2] ? lcs[i2 + 1][j2 + 1] + 1 : Math.max(lcs[i2 + 1][j2], lcs[i2][j2 + 1]);
|
|
540
529
|
}
|
|
541
530
|
}
|
|
542
531
|
const out = [];
|
|
543
532
|
let i = 0;
|
|
544
533
|
let j = 0;
|
|
545
|
-
while (j <
|
|
534
|
+
while (j < b.length) {
|
|
546
535
|
if (i < a.length && as[i] === bs[j]) {
|
|
547
536
|
out.push(a[i]);
|
|
548
537
|
i++;
|
|
549
538
|
j++;
|
|
550
539
|
} else if (i < a.length && lcs[i + 1][j] >= lcs[i][j + 1]) i++;
|
|
551
|
-
else out.push(
|
|
540
|
+
else out.push(b[j++]);
|
|
552
541
|
}
|
|
553
542
|
const merged = out.join("\n");
|
|
554
543
|
const read = (yaml) => {
|
|
@@ -629,12 +618,53 @@ function peerHandleLabel(handle) {
|
|
|
629
618
|
function isMyKortixAgentName(name) {
|
|
630
619
|
return name === MY_KORTIX_AGENT_NAME || name === LEGACY_MY_KORTIX_AGENT_NAME;
|
|
631
620
|
}
|
|
632
|
-
function agentDisplayName(slug) {
|
|
621
|
+
function agentDisplayName(slug, title) {
|
|
633
622
|
if (isMyKortixAgentName(slug)) return MY_KORTIX_DISPLAY_NAME;
|
|
623
|
+
if (typeof title === "string" && title.trim()) return title.trim();
|
|
634
624
|
if (typeof slug !== "string") return String(slug);
|
|
635
625
|
const words = slug.replace(/[-_]+/g, " ").trim();
|
|
636
626
|
return words.charAt(0).toUpperCase() + words.slice(1);
|
|
637
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);
|
|
638
668
|
|
|
639
669
|
// ../manifest-schema/src/slug.ts
|
|
640
670
|
var SLUG_MAX_LENGTH = 128;
|
|
@@ -1097,7 +1127,7 @@ function autoLinkUrls(text) {
|
|
|
1097
1127
|
replacements.push({ index, length: url.length, replacement: `[${url}](${href})` });
|
|
1098
1128
|
}
|
|
1099
1129
|
if (replacements.length === 0) return text;
|
|
1100
|
-
replacements.sort((a,
|
|
1130
|
+
replacements.sort((a, b) => b.index - a.index);
|
|
1101
1131
|
let result = text;
|
|
1102
1132
|
for (const { index, length, replacement } of replacements) {
|
|
1103
1133
|
result = result.substring(0, index) + replacement + result.substring(index + length);
|
|
@@ -1142,10 +1172,6 @@ function truncateString(str, maxLength = 50) {
|
|
|
1142
1172
|
if (str.length <= maxLength) return str;
|
|
1143
1173
|
return str.slice(0, maxLength) + "...";
|
|
1144
1174
|
}
|
|
1145
|
-
function capitalizeWords(str) {
|
|
1146
|
-
if (!str) return str;
|
|
1147
|
-
return str.replace(/(^|[\s-])([a-z])/g, (_match, sep, ch) => sep + ch.toUpperCase());
|
|
1148
|
-
}
|
|
1149
1175
|
|
|
1150
1176
|
// ../shared/src/utils/format-relative.ts
|
|
1151
1177
|
var MINUTE_MS = 6e4;
|
|
@@ -2883,10 +2909,10 @@ function startsWithIgnoreCase(text, needle, at) {
|
|
|
2883
2909
|
if (at < 0 || at + needle.length > text.length) return false;
|
|
2884
2910
|
for (let i = 0; i < needle.length; i++) {
|
|
2885
2911
|
let a = text.charCodeAt(at + i);
|
|
2886
|
-
let
|
|
2912
|
+
let b = needle.charCodeAt(i);
|
|
2887
2913
|
if (a >= 65 && a <= 90) a += 32;
|
|
2888
|
-
if (
|
|
2889
|
-
if (a !==
|
|
2914
|
+
if (b >= 65 && b <= 90) b += 32;
|
|
2915
|
+
if (a !== b) return false;
|
|
2890
2916
|
}
|
|
2891
2917
|
return true;
|
|
2892
2918
|
}
|
|
@@ -3032,14 +3058,14 @@ function xmlBlocks(text) {
|
|
|
3032
3058
|
const key = tag.toLowerCase();
|
|
3033
3059
|
const list = closers.get(key);
|
|
3034
3060
|
const bodyStart = end + 1;
|
|
3035
|
-
let
|
|
3036
|
-
if (list) while (
|
|
3037
|
-
cursor.set(key,
|
|
3038
|
-
if (!list ||
|
|
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) {
|
|
3039
3065
|
from = index + 1;
|
|
3040
3066
|
continue;
|
|
3041
3067
|
}
|
|
3042
|
-
const closeAt = list[
|
|
3068
|
+
const closeAt = list[k];
|
|
3043
3069
|
const blockEnd = closeAt + tag.length + 3;
|
|
3044
3070
|
blocks.push({ index, end: blockEnd, tag, body: text.slice(bodyStart, closeAt) });
|
|
3045
3071
|
from = blockEnd;
|
|
@@ -3315,7 +3341,7 @@ function parseChannelMessage(rawText) {
|
|
|
3315
3341
|
if (!text) return void 0;
|
|
3316
3342
|
const legacy = readLegacyChannelHeader(text);
|
|
3317
3343
|
if (legacy) {
|
|
3318
|
-
const platform = CHANNEL_PLATFORMS2.find((
|
|
3344
|
+
const platform = CHANNEL_PLATFORMS2.find((p) => p === legacy.platform) ?? "Slack";
|
|
3319
3345
|
const rest = text.slice(legacy.length);
|
|
3320
3346
|
const end = rest.lastIndexOf(`
|
|
3321
3347
|
|
|
@@ -3423,9 +3449,9 @@ function escapeBody(text) {
|
|
|
3423
3449
|
function decodeBody(text) {
|
|
3424
3450
|
return text.replace(/<\/(pasted_content)/gi, "</$1");
|
|
3425
3451
|
}
|
|
3426
|
-
function pastedContentXml(
|
|
3427
|
-
return `<${TAG} id="${
|
|
3428
|
-
${escapeBody(
|
|
3452
|
+
function pastedContentXml(p) {
|
|
3453
|
+
return `<${TAG} id="${p.id}" chars="${p.text.length}">
|
|
3454
|
+
${escapeBody(p.text)}
|
|
3429
3455
|
</${TAG}>`;
|
|
3430
3456
|
}
|
|
3431
3457
|
function neutralizePastedTags(text) {
|
|
@@ -3455,10 +3481,10 @@ function pastedContentBlocks(text) {
|
|
|
3455
3481
|
function splitPastedContent(text) {
|
|
3456
3482
|
const blocks = pastedContentBlocks(text);
|
|
3457
3483
|
if (blocks.length === 0) return { text: restorePastedTags(text), pastes: [] };
|
|
3458
|
-
const spans = blocks.map((
|
|
3459
|
-
let end =
|
|
3484
|
+
const spans = blocks.map((b) => {
|
|
3485
|
+
let end = b.end;
|
|
3460
3486
|
for (let n = 0; n < 2 && text[end] === "\n"; n++) end++;
|
|
3461
|
-
return { index:
|
|
3487
|
+
return { index: b.index, end };
|
|
3462
3488
|
});
|
|
3463
3489
|
return {
|
|
3464
3490
|
text: restorePastedTags(removeSpans(text, spans).trim()),
|
|
@@ -3469,9 +3495,9 @@ function expandPastedContent(text) {
|
|
|
3469
3495
|
const blocks = pastedContentBlocks(text);
|
|
3470
3496
|
let out = "";
|
|
3471
3497
|
let last = 0;
|
|
3472
|
-
for (const
|
|
3473
|
-
out += restorePastedTags(text.slice(last,
|
|
3474
|
-
last =
|
|
3498
|
+
for (const b of blocks) {
|
|
3499
|
+
out += restorePastedTags(text.slice(last, b.index)) + b.text;
|
|
3500
|
+
last = b.end;
|
|
3475
3501
|
}
|
|
3476
3502
|
return out + restorePastedTags(text.slice(last));
|
|
3477
3503
|
}
|
|
@@ -3944,11 +3970,11 @@ function groupIntoSections(items, getCategories, opts = {}) {
|
|
|
3944
3970
|
else buckets.set(key, [item]);
|
|
3945
3971
|
}
|
|
3946
3972
|
}
|
|
3947
|
-
return [...buckets.entries()].map(([category, bucketItems]) => ({ category, items: bucketItems })).sort((a,
|
|
3948
|
-
const rank = sectionRank(a.category) - sectionRank(
|
|
3973
|
+
return [...buckets.entries()].map(([category, bucketItems]) => ({ category, items: bucketItems })).sort((a, b) => {
|
|
3974
|
+
const rank = sectionRank(a.category) - sectionRank(b.category);
|
|
3949
3975
|
if (rank !== 0) return rank;
|
|
3950
|
-
if (a.items.length !==
|
|
3951
|
-
return a.category.localeCompare(
|
|
3976
|
+
if (a.items.length !== b.items.length) return b.items.length - a.items.length;
|
|
3977
|
+
return a.category.localeCompare(b.category);
|
|
3952
3978
|
});
|
|
3953
3979
|
}
|
|
3954
3980
|
function humanizeCategory(raw) {
|
|
@@ -4161,12 +4187,12 @@ var MASK = [
|
|
|
4161
4187
|
];
|
|
4162
4188
|
var RESERVED_ROWS = { mykortix: PIXEL_KORTIX_ROWS, meta: PIXEL_KORTIX_ROWS };
|
|
4163
4189
|
function fnv1a(input) {
|
|
4164
|
-
let
|
|
4190
|
+
let h = 2166136261;
|
|
4165
4191
|
for (let i = 0; i < input.length; i++) {
|
|
4166
|
-
|
|
4167
|
-
|
|
4192
|
+
h ^= input.charCodeAt(i);
|
|
4193
|
+
h = Math.imul(h, 16777619);
|
|
4168
4194
|
}
|
|
4169
|
-
return
|
|
4195
|
+
return h >>> 0;
|
|
4170
4196
|
}
|
|
4171
4197
|
function mulberry32(seed) {
|
|
4172
4198
|
let a = seed;
|
|
@@ -4180,7 +4206,7 @@ function mulberry32(seed) {
|
|
|
4180
4206
|
function draw(seed) {
|
|
4181
4207
|
const rand = mulberry32(seed);
|
|
4182
4208
|
return MASK.map((row) => {
|
|
4183
|
-
const half = row.map((
|
|
4209
|
+
const half = row.map((p) => rand() < p);
|
|
4184
4210
|
return [...half, half[2], half[1], half[0]];
|
|
4185
4211
|
});
|
|
4186
4212
|
}
|
|
@@ -4221,7 +4247,7 @@ function passesPixelMarkGate(grid) {
|
|
|
4221
4247
|
const filled = grid.flat().filter(Boolean).length;
|
|
4222
4248
|
if (filled < 18 || filled > 30) return false;
|
|
4223
4249
|
const rows = grid.filter((row) => row.some(Boolean)).length;
|
|
4224
|
-
const cols = grid[0].filter((
|
|
4250
|
+
const cols = grid[0].filter((_, c) => grid.some((row) => row[c])).length;
|
|
4225
4251
|
if (rows < 5 || cols < 5) return false;
|
|
4226
4252
|
if (grid.filter((row) => row.every(Boolean)).length > 1) return false;
|
|
4227
4253
|
if (grid.filter((row) => row[HALF - 1]).length < 3) return false;
|
|
@@ -4326,6 +4352,14 @@ function splitFilenameForTile(name) {
|
|
|
4326
4352
|
if (name.length <= LONG_NAME_THRESHOLD) return null;
|
|
4327
4353
|
return { head: name.slice(0, -NAME_TAIL_CHARS), tail: name.slice(-NAME_TAIL_CHARS) };
|
|
4328
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
|
+
}
|
|
4329
4363
|
|
|
4330
4364
|
// ../shared/src/session/session-starter.ts
|
|
4331
4365
|
function classifySessionStarter(session, viewerId) {
|
|
@@ -4372,6 +4406,662 @@ function dedentCommand(raw) {
|
|
|
4372
4406
|
return lines.map((line) => line.slice(min)).join("\n");
|
|
4373
4407
|
}
|
|
4374
4408
|
|
|
4409
|
+
// ../shared/src/setup-guide.ts
|
|
4410
|
+
var PROD_TARGET = { origin: "https://kortix.com", apiBase: "https://api.kortix.com" };
|
|
4411
|
+
var trim = (url) => {
|
|
4412
|
+
let out = url.trim();
|
|
4413
|
+
while (out.endsWith("/")) out = out.slice(0, -1);
|
|
4414
|
+
return out;
|
|
4415
|
+
};
|
|
4416
|
+
function setupTarget(origin, backendUrl) {
|
|
4417
|
+
const web = origin ? trim(origin) : PROD_TARGET.origin;
|
|
4418
|
+
if (web === PROD_TARGET.origin || web === "https://www.kortix.com") return PROD_TARGET;
|
|
4419
|
+
const backend = backendUrl?.trim() ? trim(backendUrl) : "";
|
|
4420
|
+
const absolute = /^https?:\/\//.test(backend) ? backend : backend ? `${web}${backend.startsWith("/") ? "" : "/"}${backend}` : "";
|
|
4421
|
+
return { origin: web, apiBase: absolute ? absolute.replace(/\/v1$/, "") : PROD_TARGET.apiBase };
|
|
4422
|
+
}
|
|
4423
|
+
var isProd = (target) => target.origin === PROD_TARGET.origin && target.apiBase === PROD_TARGET.apiBase;
|
|
4424
|
+
function setupHostName(target) {
|
|
4425
|
+
return target.origin.replace(/^https?:\/\//, "").replace(/[^a-z0-9]+/gi, "-").replace(/^-|-$/g, "").toLowerCase();
|
|
4426
|
+
}
|
|
4427
|
+
var guideUrl = (target = PROD_TARGET) => `${target.origin}/setup.md`;
|
|
4428
|
+
guideUrl();
|
|
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");
|
|
4436
|
+
function installBlock(target) {
|
|
4437
|
+
if (isProd(target)) {
|
|
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");
|
|
4446
|
+
}
|
|
4447
|
+
const host = setupHostName(target);
|
|
4448
|
+
return [
|
|
4449
|
+
`This guide is served by the Kortix deployment at ${target.origin} (API ${target.apiBase}),`,
|
|
4450
|
+
"not production. Point the CLI at it before anything else; every later",
|
|
4451
|
+
"command then talks to this deployment.",
|
|
4452
|
+
"",
|
|
4453
|
+
"```bash",
|
|
4454
|
+
`curl -fsSL ${target.origin}/install | KORTIX_CHANNEL=dev bash # installs the CLI, or updates an older one`,
|
|
4455
|
+
"kortix --version",
|
|
4456
|
+
`kortix hosts info ${host} >/dev/null 2>&1 || kortix hosts add ${host} --url ${target.apiBase}`,
|
|
4457
|
+
`kortix hosts use ${host}`,
|
|
4458
|
+
"kortix hosts current # must print " + host,
|
|
4459
|
+
"```",
|
|
4460
|
+
"",
|
|
4461
|
+
OLD_CLI_NOTE,
|
|
4462
|
+
"",
|
|
4463
|
+
"A test deployment may have no Kortix GitHub App. When step 6 asks the person",
|
|
4464
|
+
"to install the App and the link does not work, use their own token instead,",
|
|
4465
|
+
"with their yes: `gh auth token | kortix onboard --yes --json --github-token -`."
|
|
4466
|
+
].join("\n");
|
|
4467
|
+
}
|
|
4468
|
+
function agentBlock(target) {
|
|
4469
|
+
const url = `${target.apiBase}/v1/mcp`;
|
|
4470
|
+
return [
|
|
4471
|
+
"```bash",
|
|
4472
|
+
`command -v claude >/dev/null && claude mcp add --transport http kortix ${url}`,
|
|
4473
|
+
`command -v codex >/dev/null && codex mcp add kortix --url ${url} && codex mcp login kortix`,
|
|
4474
|
+
"kortix init --force",
|
|
4475
|
+
"```"
|
|
4476
|
+
].join("\n");
|
|
4477
|
+
}
|
|
4478
|
+
function setupPromptFor(target = PROD_TARGET) {
|
|
4479
|
+
const url = guideUrl(target);
|
|
4480
|
+
return `Set up Kortix cloud agents on this repository with me.
|
|
4481
|
+
Read ${url} (curl -fsSL ${url}) and follow it step by step.
|
|
4482
|
+
Ask all your questions in one message. Never print a secret value.`;
|
|
4483
|
+
}
|
|
4484
|
+
setupPromptFor();
|
|
4485
|
+
function setupPrompt(workspace, target = PROD_TARGET) {
|
|
4486
|
+
const prompt = setupPromptFor(target);
|
|
4487
|
+
const repository = workspace?.repository?.trim();
|
|
4488
|
+
if (!repository) return prompt;
|
|
4489
|
+
const branch = workspace?.branch?.trim() || "its default branch";
|
|
4490
|
+
return `${prompt}
|
|
4491
|
+
The Kortix workspace exists already: it reads kortix.yaml from ${repository} on ${branch}. Push the setup there.`;
|
|
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
|
+
}
|
|
4497
|
+
function setupGuide(target = PROD_TARGET) {
|
|
4498
|
+
return `# Set up Kortix on this repository
|
|
4499
|
+
|
|
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.
|
|
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.
|
|
4515
|
+
|
|
4516
|
+
\`kortix\` is your only tool for the platform. Use \`--json\` for everything you
|
|
4517
|
+
parse.
|
|
4518
|
+
|
|
4519
|
+
## Rules
|
|
4520
|
+
|
|
4521
|
+
1. **One message of questions, one reply.** Investigate first (step 2), then
|
|
4522
|
+
ask every question in one message (step 3). Each question carries your
|
|
4523
|
+
recommended answer. The person's one reply approves the whole plan. After
|
|
4524
|
+
it, do not ask again, unless a step fails in a way only the person can
|
|
4525
|
+
decide. Never ask what the repository, \`gh\` or \`kortix\` can answer.
|
|
4526
|
+
2. **Secrets.** Values move only through \`kortix\` (it reads them in-process).
|
|
4527
|
+
Never print a secret, never put one in a command argument, never paste one
|
|
4528
|
+
into a file. **Never open a file that may hold one**: no \`cat\`, \`head\`,
|
|
4529
|
+
\`grep\` with context, or your own file-read tool on \`.env*\`, \`*.keys\`,
|
|
4530
|
+
\`.envrc\` or credential files. Reading a file sends its values to your model
|
|
4531
|
+
provider. Use the names-only view: \`kortix plan --json\` (\`env\`: every key,
|
|
4532
|
+
classed \`local\`, \`remote\` or \`prod\`).
|
|
4533
|
+
3. **Never point agents at a shared backend.** A name classed \`remote\` or
|
|
4534
|
+
\`prod\` is not uploaded. The agents' dev environment runs locally and
|
|
4535
|
+
throwaway in the sandbox.
|
|
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.
|
|
4540
|
+
5. **Verify, don't assume.** A step is done when \`kortix doctor --loops\` or a
|
|
4541
|
+
real run proves it.
|
|
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
|
|
4551
|
+
investigated: no map, no inventory, no list of ideas. A finding reaches the
|
|
4552
|
+
person only as one line of the step 3 message or of the final report. The
|
|
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.
|
|
4571
|
+
|
|
4572
|
+
## 0. Install
|
|
4573
|
+
|
|
4574
|
+
${installBlock(target)}
|
|
4575
|
+
|
|
4576
|
+
## 1. Sign in and see the plan
|
|
4577
|
+
|
|
4578
|
+
\`\`\`bash
|
|
4579
|
+
kortix whoami # signed in? if not:
|
|
4580
|
+
kortix login # opens the browser: "click Authorize in the browser tab it opened"
|
|
4581
|
+
kortix plan --json # the deterministic baseline, names only
|
|
4582
|
+
\`\`\`
|
|
4583
|
+
|
|
4584
|
+
\`kortix plan\` reports the repository (GitHub origin, default branch, monorepo
|
|
4585
|
+
layout, clean or dirty), the stack (runtimes, package managers, services, dev,
|
|
4586
|
+
test and end-to-end commands, CI), every env key by class, the software it
|
|
4587
|
+
found (\`integrations\`: each with a category and its evidence; about 90
|
|
4588
|
+
products are known), the credentials it could not name
|
|
4589
|
+
(\`unrecognized_services\`: a key prefix each), the MCP servers the repository's
|
|
4590
|
+
coding tools already use (\`mcp_servers\`, names only), the Kortix state
|
|
4591
|
+
(workspace, connectors, Slack, models), a dev-environment proposal and the
|
|
4592
|
+
reference repositories.
|
|
4593
|
+
|
|
4594
|
+
## 2. Investigate, without asking
|
|
4595
|
+
|
|
4596
|
+
The plan is the floor, not the ceiling. Investigate for minutes, not hours.
|
|
4597
|
+
Ask nothing and print nothing in this step: everything you find feeds the one
|
|
4598
|
+
message of step 3.
|
|
4599
|
+
|
|
4600
|
+
1. **This repository.** Read it the way a new engineer would: \`AGENTS.md\`,
|
|
4601
|
+
\`CLAUDE.md\`, \`CONTRIBUTING.md\`, the README, CI workflows, the scripts the
|
|
4602
|
+
team runs. Note every rule that conflicts with agents shipping work (for
|
|
4603
|
+
example "push to main"). For a monorepo, note which apps exist and how
|
|
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).
|
|
4609
|
+
2. **The other repositories.** \`gh repo list <owner> --limit 100 --json name,description,pushedAt,isArchived\`
|
|
4610
|
+
for the owner of this repository's origin, plus the repositories this one
|
|
4611
|
+
names (submodules, workflow \`uses:\` of the same owner, links in the docs).
|
|
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).
|
|
4616
|
+
3. **The software.** Start from the plan's \`integrations\` (each has a
|
|
4617
|
+
category and its evidence), \`unrecognized_services\` and \`mcp_servers\`.
|
|
4618
|
+
Add what you find yourself: SDK imports, webhook handlers, secret names in
|
|
4619
|
+
CI workflows, deploy configs, links in the docs. For each one note the
|
|
4620
|
+
signal it gives (a new error, a new ticket, a signup) and the action it
|
|
4621
|
+
allows (a reply, a comment, a query).
|
|
4622
|
+
4. **Where context lives.** The docs folder or site, the wiki, ADRs and
|
|
4623
|
+
runbooks, the tracker and its labels, the changelog, and what the
|
|
4624
|
+
repository links to outside itself (Notion, Google Drive, Confluence,
|
|
4625
|
+
Figma).
|
|
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\`).
|
|
4652
|
+
|
|
4653
|
+
## 3. One message of questions, one reply
|
|
4654
|
+
|
|
4655
|
+
Send the person one message in this shape. Write it as plain text, also in
|
|
4656
|
+
Claude Code: a question tool holds fewer questions and can hide the findings.
|
|
4657
|
+
|
|
4658
|
+
\`\`\`text
|
|
4659
|
+
Kortix setup for <owner>/<repo>
|
|
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
|
+
|
|
4665
|
+
Found: <the stack, and how it runs and tests>
|
|
4666
|
+
<the software the template will use>
|
|
4667
|
+
<anything that needs their eye: a production value in an env file,
|
|
4668
|
+
a rule that conflicts with the agents>
|
|
4669
|
+
|
|
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>?
|
|
4678
|
+
a) <answer> (recommended) b) <answer> c) <answer>
|
|
4679
|
+
...
|
|
4680
|
+
Defaults: <every other decision, with the answer you will use>.
|
|
4681
|
+
|
|
4682
|
+
Reply "go" to take every recommended answer, or "go" with changes:
|
|
4683
|
+
"go, 1b, 2ac, 5: Linear".
|
|
4684
|
+
\`\`\`
|
|
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
|
+
|
|
4693
|
+
The questions:
|
|
4694
|
+
|
|
4695
|
+
- **At most 8**, numbered. Each one fits in 3 lines and has a recommended
|
|
4696
|
+
answer. A free-text answer (a URL, competitor domains, an ICP, a rubric)
|
|
4697
|
+
gets your draft as its recommended answer; the person corrects it.
|
|
4698
|
+
- **Only decisions the person owns.** Pick from this list, in this order,
|
|
4699
|
+
and leave out a question the evidence settles:
|
|
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
|
|
4708
|
+
with \`kortix connectors catalog <name> --json\` and leave out an app
|
|
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
|
|
4719
|
+
key; the reviewer on the strongest model;
|
|
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.
|
|
4734
|
+
- **More than 8:** keep the 8 with the largest effect. Put every other
|
|
4735
|
+
decision, with the answer you will use, on the \`Defaults:\` line: the env
|
|
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
|
|
4743
|
+
\`unrecognized_services\` prefix or an empty category becomes one question
|
|
4744
|
+
with likely answers ("Tickets: a) GitHub Issues (recommended) b) Linear
|
|
4745
|
+
c) Jira"). Otherwise leave it out.
|
|
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.
|
|
4748
|
+
|
|
4749
|
+
After the reply:
|
|
4750
|
+
|
|
4751
|
+
- The reply approves the plan. Do not show the plan again and do not ask a
|
|
4752
|
+
second round.
|
|
4753
|
+
- A question the reply leaves open gets its recommended answer: say so in one
|
|
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.
|
|
4758
|
+
- A new thing in the reply (a custom loop in their words, another tool): add
|
|
4759
|
+
it when it fits, else put it in the final report under "later".
|
|
4760
|
+
- From here the person only acts: a sign-in, an Authorize click, a token
|
|
4761
|
+
pasted into an intake link. Give each link once. Give the links that are
|
|
4762
|
+
ready at the same time in one message.
|
|
4763
|
+
|
|
4764
|
+
## 4. Write the configuration
|
|
4765
|
+
|
|
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:
|
|
4841
|
+
|
|
4842
|
+
\`\`\`bash
|
|
4843
|
+
kortix validate
|
|
4844
|
+
\`\`\`
|
|
4845
|
+
|
|
4846
|
+
Fix every error and warning in the files you wrote. Two rules save a round:
|
|
4847
|
+
|
|
4848
|
+
- Give every agent you add a \`tools\` list (or \`"*"\`). An agent without one
|
|
4849
|
+
trips a deprecation warning.
|
|
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.
|
|
4865
|
+
|
|
4866
|
+
## 5. Connect the models
|
|
4867
|
+
|
|
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:
|
|
4871
|
+
|
|
4872
|
+
- **Claude Pro or Max:** \`kortix providers login claude --start --share workspace --json\`;
|
|
4873
|
+
give the person the \`authorize_url\`; they paste the code back;
|
|
4874
|
+
\`kortix providers login claude --flow <flow_id> --code <code> --share workspace\`.
|
|
4875
|
+
- **ChatGPT Plus or Pro:** \`kortix providers login openai\` in the background;
|
|
4876
|
+
give the person the link and the code it prints.
|
|
4877
|
+
- **An API key:** \`kortix providers set <provider>\`; the person types the key.
|
|
4878
|
+
|
|
4879
|
+
## 6. Do it
|
|
4880
|
+
|
|
4881
|
+
\`\`\`bash
|
|
4882
|
+
kortix onboard --yes --json --wait \\
|
|
4883
|
+
[--env-file <file> --only <A,B>]... \\
|
|
4884
|
+
[--channels <a,b>] [--connect <slug,...>] \\
|
|
4885
|
+
--repo <owner/repo> [--name "<workspace name>"]
|
|
4886
|
+
\`\`\`
|
|
4887
|
+
|
|
4888
|
+
The first run creates the workspace. \`--name\` is its display name (default:
|
|
4889
|
+
\`project.name\` in \`kortix.yaml\`, else the folder name): use the name from
|
|
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.
|
|
4921
|
+
|
|
4922
|
+
A repository webhook that already sends the same event to another Kortix
|
|
4923
|
+
workspace is left in place and reported in the \`webhooks\` detail. Tell the
|
|
4924
|
+
person: two workspaces would act on the same event. They pick one; delete the
|
|
4925
|
+
other hook with the command \`kortix doctor --loops\` prints.
|
|
4926
|
+
|
|
4927
|
+
A source that is off needs nothing: a disabled Slack trigger asks for no Slack
|
|
4928
|
+
connection.
|
|
4929
|
+
|
|
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.
|
|
4941
|
+
|
|
4942
|
+
## 7. Prove it, and loop until it works
|
|
4943
|
+
|
|
4944
|
+
\`\`\`bash
|
|
4945
|
+
kortix doctor --loops --json # every check of what kortix.yaml declares
|
|
4946
|
+
kortix doctor --loops --fix --json # re-runs the phase a red line names
|
|
4947
|
+
\`\`\`
|
|
4948
|
+
|
|
4949
|
+
Pass the same \`--repo <owner/repo>\` you gave \`onboard\`, if any.
|
|
4950
|
+
|
|
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
|
|
5012
|
+
output, the demo when the change is visible. Nobody merges it but them.
|
|
5013
|
+
|
|
5014
|
+
## 8. Wire this computer's coding agents
|
|
5015
|
+
|
|
5016
|
+
So the person can run, change and add loops by talking to the agent they
|
|
5017
|
+
already use. Tell them each thing you add.
|
|
5018
|
+
|
|
5019
|
+
${agentBlock(target)}
|
|
5020
|
+
|
|
5021
|
+
- The MCP server lets a coding agent start Kortix sessions, read their
|
|
5022
|
+
progress, run commands in a session's sandbox and call the workspace's
|
|
5023
|
+
connectors, as the person, with their permissions. The first call opens a
|
|
5024
|
+
consent page in the browser. A coding agent loads a new MCP server at its
|
|
5025
|
+
next start: say so.
|
|
5026
|
+
- \`kortix init --force\` runs in the repository that holds \`kortix.yaml\`. It
|
|
5027
|
+
links every skill \`kortix.yaml\` registers where each local tool reads
|
|
5028
|
+
skills (never committed). An \`AGENTS.md\` the repository already has is
|
|
5029
|
+
kept: it gets one marked Kortix section at the end. A code repository
|
|
5030
|
+
without \`kortix.yaml\` gets the MCP server and the rule below, nothing else.
|
|
5031
|
+
- Unless the person said no in step 3, add this rule to the repository's \`AGENTS.md\` (and
|
|
5032
|
+
\`CLAUDE.md\` when it exists): "This repository runs Kortix loops, defined
|
|
5033
|
+
in \`kortix.yaml\`. To reach an outside tool, use the Kortix connectors
|
|
5034
|
+
(\`kortix connectors\` or the Kortix MCP server) before any local
|
|
5035
|
+
credential. To add or change a loop, edit \`kortix.yaml\`, run \`kortix
|
|
5036
|
+
validate\`, then \`kortix ship\`."
|
|
5037
|
+
- Use the CLI for setup and scripts, the MCP server in conversation. Both
|
|
5038
|
+
reach the same workspace.
|
|
5039
|
+
|
|
5040
|
+
## 9. Hand over
|
|
5041
|
+
|
|
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.
|
|
5061
|
+
`;
|
|
5062
|
+
}
|
|
5063
|
+
setupGuide();
|
|
5064
|
+
|
|
4375
5065
|
// ../shared/src/tool-output/background-workers.ts
|
|
4376
5066
|
var COLON2 = 58;
|
|
4377
5067
|
function occurrences(text, needle, ignoreCase) {
|
|
@@ -4798,7 +5488,7 @@ function parseObservationReport(text) {
|
|
|
4798
5488
|
function parseLtmFields(body) {
|
|
4799
5489
|
const labels = ["Caption:", "Content:", "Session:", "Created:", "Tags:"];
|
|
4800
5490
|
const lower = body.toLowerCase();
|
|
4801
|
-
const positions = labels.map((label) => ({ label, index: lower.indexOf(label.toLowerCase()) })).filter((entry) => entry.index >= 0).sort((a,
|
|
5491
|
+
const positions = labels.map((label) => ({ label, index: lower.indexOf(label.toLowerCase()) })).filter((entry) => entry.index >= 0).sort((a, b) => a.index - b.index);
|
|
4802
5492
|
const fields = /* @__PURE__ */ new Map();
|
|
4803
5493
|
for (const [index, current] of positions.entries()) {
|
|
4804
5494
|
const next = positions[index + 1];
|
|
@@ -5837,6 +6527,9 @@ var WORKSPACE_SETTINGS_GROUPS = [
|
|
|
5837
6527
|
// configures the repository connection; Repository browses its files
|
|
5838
6528
|
// (with Drive on).
|
|
5839
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"] },
|
|
5840
6533
|
{ id: "people", sections: ["members", "groups", "roles", "identity", "audit"] },
|
|
5841
6534
|
{ id: "billing", sections: ["plan", "usage"] },
|
|
5842
6535
|
{ id: "advanced", sections: ["feature-flags"] },
|
|
@@ -5876,4 +6569,4 @@ function parseWorkspaceSettingsSection(raw) {
|
|
|
5876
6569
|
return Object.prototype.hasOwnProperty.call(WORKSPACE_SETTINGS_SECTION_ALIASES, value) ? WORKSPACE_SETTINGS_SECTION_ALIASES[value] : null;
|
|
5877
6570
|
}
|
|
5878
6571
|
|
|
5879
|
-
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,
|
|
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 };
|