@kortix/ui 0.15.9 → 0.15.11
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 +467 -2
- 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/index.d.ts +1 -0
- 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 +32 -0
- package/dist/_vendor/shared/session/stop-refusal.d.ts +15 -0
- package/dist/_vendor/shared/session/tool-row-text.d.ts +58 -0
- package/dist/_vendor/shared/session-delivery.d.ts +2 -0
- 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-page.js +19 -6
- package/dist/customize/agents/agent-tabs.d.ts +2 -0
- package/dist/customize/agents/agent-tabs.js +2 -0
- package/dist/customize/connectors/connectors-page.js +1 -1
- package/dist/customize/connectors/detail/connector-page.js +9 -4
- package/dist/customize/connectors/detail/connector-triggers.js +1 -1
- package/dist/customize/connectors/install/use-install.js +1 -1
- package/dist/customize/connectors/use-agent-access.d.ts +1 -0
- package/dist/customize/providers/provider-accordion.js +5 -5
- package/dist/customize/providers/provider-connect.d.ts +3 -3
- package/dist/customize/providers/provider-connect.js +8 -16
- package/dist/customize/providers/provider-sheet.js +4 -4
- package/dist/customize/sections/component/teams-byo-wizard.js +4 -1
- package/dist/customize/sections/connector-connection-form.d.ts +0 -1
- package/dist/customize/sections/connector-connection-form.js +0 -9
- package/dist/customize/sections/view/review-center-connected.js +7 -3
- package/dist/customize/settings/tabs/workspace-keys.js +53 -11
- package/dist/customize/shared/feature-gate-screen.js +1 -1
- package/dist/customize/triggers/runtime-triggers.js +13 -2
- package/dist/customize/triggers/schedule/event-account-picker.js +1 -1
- package/dist/customize/triggers/schedule/event-trigger-copy.js +1 -1
- 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/use-event-app-connect.js +2 -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 +4 -2
- package/dist/i18n/en.d.ts +56 -7
- package/dist/i18n/en.js +65 -16
- package/dist/internal/billing/compute-pricing.d.ts +7 -1
- package/dist/internal/billing/compute-pricing.js +7 -1
- package/dist/internal/hooks/connectors/invalidate-connections.d.ts +10 -0
- package/dist/internal/hooks/connectors/invalidate-connections.js +18 -0
- package/dist/internal/hooks/connectors/use-finish-sign-in.js +1 -1
- package/dist/internal/hooks/connectors/use-pipedream-connect-member.js +1 -1
- package/dist/internal/hooks/connectors/use-pipedream-connect-project.js +1 -1
- package/dist/internal/hooks/projects/use-new-project-session.d.ts +2 -0
- package/dist/internal/hooks/projects/use-new-project-session.js +4 -1
- package/dist/internal/hooks/use-review-session-summary.d.ts +1 -1
- package/dist/internal/hooks/use-review-session-summary.js +1 -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/injected-scripts.js +2 -2
- package/dist/internal/lib/capability-tab-routes.d.ts +8 -0
- package/dist/internal/lib/capability-tab-routes.js +11 -0
- package/dist/internal/notifications/notification-inbox.d.ts +4 -10
- package/dist/internal/notifications/notification-inbox.js +8 -9
- 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/connector-gate-store.d.ts +3 -1
- package/dist/internal/stores/connector-gate-store.js +13 -3
- package/dist/internal/stores/upgrade-dialog-store.d.ts +4 -0
- package/dist/internal/stores/upgrade-dialog-store.js +2 -0
- package/dist/lib/routes.d.ts +4 -11
- package/dist/lib/routes.js +3 -5
- package/dist/markdown/unified-markdown-utils.d.ts +7 -0
- package/dist/markdown/unified-markdown-utils.js +19 -0
- package/dist/markdown/unified-markdown.js +16 -3
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/dialog.js +3 -1
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/modal.js +1 -1
- package/dist/primitives/preview-image.js +1 -1
- package/dist/primitives/sheet.js +1 -1
- package/dist/session/actions/session-label.js +2 -2
- package/dist/session/agents/agent-strip.d.ts +10 -5
- package/dist/session/agents/agent-strip.js +40 -12
- package/dist/session/agents/held-messages.d.ts +6 -2
- package/dist/session/agents/held-messages.js +6 -3
- package/dist/session/composer/ComposerCard.js +8 -3
- package/dist/session/composer/agent-selector.d.ts +2 -0
- package/dist/session/composer/agent-selector.js +5 -0
- package/dist/session/composer/attachment-tile.d.ts +2 -26
- package/dist/session/composer/attachment-tile.js +3 -47
- package/dist/session/composer/composer-chat-input.d.ts +3 -1
- package/dist/session/composer/composer-chat-input.js +2 -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 -0
- package/dist/session/composer/composer.js +22 -11
- package/dist/session/composer/draft/home-composer-focus-handoff.d.ts +7 -0
- package/dist/session/composer/draft/home-composer-focus-handoff.js +94 -0
- package/dist/session/composer/draft/use-composer-draft.d.ts +3 -1
- package/dist/session/composer/draft/use-composer-draft.js +22 -2
- package/dist/session/composer/editor/composer-editor.d.ts +4 -2
- package/dist/session/composer/editor/composer-editor.js +13 -7
- package/dist/session/composer/hooks/use-composer-focus.js +4 -2
- package/dist/session/header/session-site-header.d.ts +3 -1
- package/dist/session/header/session-site-header.js +3 -2
- package/dist/session/index.d.ts +1 -0
- package/dist/session/index.js +1 -0
- package/dist/session/models/chatgpt-connection-button.js +5 -9
- 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.d.ts +2 -1
- package/dist/session/models/model-connection-gate.js +6 -3
- package/dist/session/models/model-connection-layout.d.ts +2 -0
- package/dist/session/models/model-connection-layout.js +4 -0
- package/dist/session/models/model-selector.d.ts +1 -1
- package/dist/session/models/model-selector.js +9 -6
- package/dist/session/models/subscription-offer.d.ts +4 -0
- package/dist/session/models/subscription-offer.js +11 -3
- 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/overrides/session-overrides-toolbar.js +2 -4
- package/dist/session/prompts/ask-deck.d.ts +5 -1
- package/dist/session/prompts/ask-deck.js +15 -3
- package/dist/session/prompts/question-labels.d.ts +16 -0
- package/dist/session/prompts/question-labels.js +34 -0
- package/dist/session/prompts/question-prompt.js +6 -6
- 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/provisioning-failure.d.ts +23 -2
- package/dist/session/status/provisioning-failure.js +53 -3
- package/dist/session/status/stop-refusal.d.ts +6 -12
- package/dist/session/status/stop-refusal.js +6 -19
- package/dist/session/thread/agent-run-props.d.ts +19 -0
- package/dist/session/thread/agent-run-props.js +54 -0
- package/dist/session/thread/session-chat.js +317 -298
- package/dist/session/thread/transcript.d.ts +19 -2
- package/dist/session/thread/transcript.js +93 -25
- package/dist/session/tool/tool-part-renderer.js +7 -2
- package/dist/session/tool/tools/bash-tool.d.ts +3 -52
- package/dist/session/tool/tools/bash-tool.js +3 -86
- package/dist/session/tool/tools/kortix-action-tool.js +10 -2
- package/dist/session/turn/answer-streaming.d.ts +21 -0
- package/dist/session/turn/answer-streaming.js +34 -0
- package/dist/session/turn/queued-prompt-bubbles.d.ts +5 -0
- package/dist/session/turn/queued-prompt-bubbles.js +12 -0
- package/dist/session/turn/turn-viewport.d.ts +66 -10
- package/dist/session/turn/turn-viewport.js +92 -12
- package/dist/session/turn/turn-work-accordion.d.ts +3 -1
- package/dist/session/turn/turn-work-accordion.js +2 -2
- package/dist/session/turn/user-message.js +7 -5
- package/dist/styles.css +1 -1
- package/dist/test-utils/intl.d.ts +56 -7
- package/dist/workspace/admin/project-admin-dashboard.js +2 -4
- 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/first-chat.d.ts +7 -1
- package/dist/workspace/home/first-chat.js +12 -5
- 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 +6 -16
- package/dist/workspace/inbox/workspace-inbox.js +9 -51
- package/dist/workspace/layout/project-home.js +17 -16
- package/dist/workspace/layout/use-project-home-send.d.ts +2 -0
- package/dist/workspace/layout/use-project-home-send.js +29 -15
- package/dist/workspace/new/advanced-fields.d.ts +4 -1
- package/dist/workspace/new/advanced-fields.js +2 -2
- package/dist/workspace/new/workspace-name.d.ts +9 -0
- package/dist/workspace/new/workspace-name.js +20 -0
- package/dist/workspace/projects/session-starter.d.ts +6 -4
- package/dist/workspace/projects/session-starter.js +8 -14
- package/dist/workspace/review/review-center.d.ts +6 -2
- package/dist/workspace/review/review-center.js +45 -25
- package/dist/workspace/sidebar/session-grouping.d.ts +1 -1
- package/dist/workspace/sidebar/session-grouping.js +1 -1
- package/dist/workspace/sidebar/workspace-menu-model.d.ts +3 -5
- package/dist/workspace/sidebar/workspace-menu-model.js +1 -1
- package/dist/workspace/spaces/space-details-panel.js +2 -2
- package/dist/workspace/spaces/space-triggers.js +2 -2
- package/dist/workspace/spaces/space-view.js +11 -5
- package/package.json +15 -7
- package/skills/kortix-ui/references/modules.md +1 -1
- package/dist/customize/connectors/invalidate-connections.d.ts +0 -2
- package/dist/customize/connectors/invalidate-connections.js +0 -4
- package/dist/internal/notifications/use-inbox-summary.d.ts +0 -17
- package/dist/internal/notifications/use-inbox-summary.js +0 -28
- package/dist/session/prompts/session-connect-prompt.d.ts +0 -40
|
@@ -297,6 +297,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
297
297
|
repositoryLabel: string;
|
|
298
298
|
loadingOptions: string;
|
|
299
299
|
managedUnavailable: string;
|
|
300
|
+
githubAfterCreate: string;
|
|
300
301
|
installationUnreachable: string;
|
|
301
302
|
reconnect: string;
|
|
302
303
|
managedImportLabel: string;
|
|
@@ -804,10 +805,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
804
805
|
name: string;
|
|
805
806
|
description: string;
|
|
806
807
|
};
|
|
807
|
-
pooled_provider_secrets: {
|
|
808
|
-
name: string;
|
|
809
|
-
description: string;
|
|
810
|
-
};
|
|
811
808
|
reminders: {
|
|
812
809
|
name: string;
|
|
813
810
|
description: string;
|
|
@@ -868,6 +865,10 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
868
865
|
name: string;
|
|
869
866
|
description: string;
|
|
870
867
|
};
|
|
868
|
+
program_agents: {
|
|
869
|
+
name: string;
|
|
870
|
+
description: string;
|
|
871
|
+
};
|
|
871
872
|
};
|
|
872
873
|
channelsSwitch: {
|
|
873
874
|
onTitle: string;
|
|
@@ -1512,6 +1513,12 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
1512
1513
|
noModelKeyReason: string;
|
|
1513
1514
|
noModelUpgradePlan: string;
|
|
1514
1515
|
noModelAddProviderKey: string;
|
|
1516
|
+
stepTitle: string;
|
|
1517
|
+
stepBody: string;
|
|
1518
|
+
stepBodyUpgrade: string;
|
|
1519
|
+
stepBodyMember: string;
|
|
1520
|
+
stepThisWorkspace: string;
|
|
1521
|
+
stepBack: string;
|
|
1515
1522
|
};
|
|
1516
1523
|
providerRecovery: {
|
|
1517
1524
|
savedPrompt: string;
|
|
@@ -1569,6 +1576,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
1569
1576
|
agentWorkingOnFor: string;
|
|
1570
1577
|
somethingWrong: string;
|
|
1571
1578
|
notSent: string;
|
|
1579
|
+
computerDisconnected: string;
|
|
1572
1580
|
retry: string;
|
|
1573
1581
|
resume: string;
|
|
1574
1582
|
agentIsWorking: string;
|
|
@@ -2189,9 +2197,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
2189
2197
|
};
|
|
2190
2198
|
inbox: {
|
|
2191
2199
|
title: string;
|
|
2192
|
-
viewReview: string;
|
|
2193
|
-
viewNotifications: string;
|
|
2194
|
-
viewLabel: string;
|
|
2195
2200
|
description: string;
|
|
2196
2201
|
unreadLabel: string;
|
|
2197
2202
|
unreadCount: string;
|
|
@@ -6223,6 +6228,15 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
6223
6228
|
texta68ee4167406: string;
|
|
6224
6229
|
texta69c4dece144: string;
|
|
6225
6230
|
textab3aff8f7642: string;
|
|
6231
|
+
text30b9ce09f406: string;
|
|
6232
|
+
text28d33d2ad989: string;
|
|
6233
|
+
textd777d7805cfa: string;
|
|
6234
|
+
text8043e69a8dd6: string;
|
|
6235
|
+
textd6fa1626e3af: string;
|
|
6236
|
+
textccf59f978ef6: string;
|
|
6237
|
+
text82cbc4a4def0: string;
|
|
6238
|
+
text458ceb31019b: string;
|
|
6239
|
+
text27ca9df9dbaa: string;
|
|
6226
6240
|
};
|
|
6227
6241
|
publicShareConfirm: {
|
|
6228
6242
|
title: string;
|
|
@@ -6613,6 +6627,8 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
6613
6627
|
llmEstimateLabel: string;
|
|
6614
6628
|
};
|
|
6615
6629
|
triggerComposer: {
|
|
6630
|
+
programInputPlaceholder: string;
|
|
6631
|
+
programInputHelp: string;
|
|
6616
6632
|
every: string;
|
|
6617
6633
|
dayOfMonth: string;
|
|
6618
6634
|
details: string;
|
|
@@ -6651,6 +6667,15 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
6651
6667
|
eventsOff: string;
|
|
6652
6668
|
noApps: string;
|
|
6653
6669
|
openApps: string;
|
|
6670
|
+
thenLabel: string;
|
|
6671
|
+
thenAgent: string;
|
|
6672
|
+
thenApp: string;
|
|
6673
|
+
targetPath: string;
|
|
6674
|
+
targetMethod: string;
|
|
6675
|
+
targetHelp: string;
|
|
6676
|
+
intervalLabel: string;
|
|
6677
|
+
intervalHelp: string;
|
|
6678
|
+
useCalendar: string;
|
|
6654
6679
|
};
|
|
6655
6680
|
gatewayAccess: {
|
|
6656
6681
|
heroTitle: string;
|
|
@@ -8281,6 +8306,11 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
8281
8306
|
};
|
|
8282
8307
|
};
|
|
8283
8308
|
modelView: {
|
|
8309
|
+
programTimeout: string;
|
|
8310
|
+
programTimeoutHelp: string;
|
|
8311
|
+
programTitle: string;
|
|
8312
|
+
programCommand: string;
|
|
8313
|
+
programHelp: string;
|
|
8284
8314
|
title: string;
|
|
8285
8315
|
help: string;
|
|
8286
8316
|
projectDefault: string;
|
|
@@ -10030,6 +10060,10 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
10030
10060
|
actsAsAgent: string;
|
|
10031
10061
|
actsAsBot: string;
|
|
10032
10062
|
actsAsMeHint: string;
|
|
10063
|
+
worksIn: string;
|
|
10064
|
+
worksInAll: string;
|
|
10065
|
+
worksInAllHint: string;
|
|
10066
|
+
worksInWorkspace: string;
|
|
10033
10067
|
actsAsAgentHint: string;
|
|
10034
10068
|
actsAsBotHint: string;
|
|
10035
10069
|
needsPermission: string;
|
|
@@ -10048,6 +10082,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
10048
10082
|
rowBot: string;
|
|
10049
10083
|
createdBy: string;
|
|
10050
10084
|
createdDescription: string;
|
|
10085
|
+
createdPersonalDescription: string;
|
|
10051
10086
|
accessFullHint: string;
|
|
10052
10087
|
accessCustomHint: string;
|
|
10053
10088
|
};
|
|
@@ -10139,6 +10174,20 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
10139
10174
|
cardFailed: string;
|
|
10140
10175
|
blockedTitle: string;
|
|
10141
10176
|
blockedDescription: string;
|
|
10177
|
+
doneTitle: string;
|
|
10178
|
+
doneTitleNoApp: string;
|
|
10179
|
+
doneDescription: string;
|
|
10180
|
+
doneClose: string;
|
|
10181
|
+
doneDeniedTitle: string;
|
|
10182
|
+
doneDeniedDescription: string;
|
|
10183
|
+
doneExpiredTitle: string;
|
|
10184
|
+
doneExpiredDescription: string;
|
|
10185
|
+
doneFailedTitle: string;
|
|
10186
|
+
doneFailedTitleNoApp: string;
|
|
10187
|
+
doneFailedDescription: string;
|
|
10188
|
+
doneErrorCode: string;
|
|
10189
|
+
doneOpenKortix: string;
|
|
10190
|
+
doneFallbackApp: string;
|
|
10142
10191
|
};
|
|
10143
10192
|
}, "hardcodedUi.i18nComplete">;
|
|
10144
10193
|
export declare function IntlTestProvider({ children, locale, timeZone, messages, fallback, ...rest }: Partial<IntlConfig> & {
|
|
@@ -53,7 +53,7 @@ import { useAccountHubAccess } from '../../internal/account-hub/use-account-hub-
|
|
|
53
53
|
import { useAccountsList } from '../../internal/hooks/account/use-accounts-list.js';
|
|
54
54
|
import { useIsMobile } from '../../internal/hooks/index.js';
|
|
55
55
|
import { RAIL_HORIZONTAL_ROW_CLASS, RAIL_ROW_CLASS, RailGroup, SETTINGS_SIDEBAR_WIDTH_PX, } from '../../internal/components/nav-rail.js';
|
|
56
|
-
import { capabilityAccess } from '../../internal/layout/project-settings-nav.js';
|
|
56
|
+
import { adminResourceRowOpen, capabilityAccess } from '../../internal/layout/project-settings-nav.js';
|
|
57
57
|
import { SettingsNavProvider } from '../../internal/layout/settings-nav-context.js';
|
|
58
58
|
import { withStaleChunkRecovery } from '../../internal/lib/chunk-reload.js';
|
|
59
59
|
import { CUSTOMIZE_SECTION_GATE_ACTIONS, isCustomizeSectionVisible, PROJECT_ACTIONS, } from '../../internal/lib/project-actions.js';
|
|
@@ -219,12 +219,10 @@ export function ProjectAdminDashboard({ projectId, section, content, hostSection
|
|
|
219
219
|
}
|
|
220
220
|
if (isProjectAdminResource(key)) {
|
|
221
221
|
const resource = PROJECT_ADMIN_RESOURCES.find((r) => r.key === key);
|
|
222
|
-
if (!resource || (
|
|
222
|
+
if (!resource || !adminResourceRowOpen(resource, projectRowsOpen, allowed))
|
|
223
223
|
return null;
|
|
224
224
|
if (resource.host && !hostSections[resource.key])
|
|
225
225
|
return null;
|
|
226
|
-
if (resource.capability && !allowed.has(resource.capability))
|
|
227
|
-
return null;
|
|
228
226
|
if (resource.flag === 'drives' && !drivesOn)
|
|
229
227
|
return null;
|
|
230
228
|
return {
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
* The prompt a person copies into their own coding agent (Claude Code, Codex,
|
|
3
3
|
* Cursor) to set up a repository they linked to Kortix that has no agents.
|
|
4
4
|
*
|
|
5
|
-
* Kortix never writes to a linked repository. The person's agent
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the push lands where the project reads.
|
|
9
|
-
*
|
|
10
|
-
* English on purpose: an agent reads it, not the person. The same steps are
|
|
11
|
-
* in the docs (`developers.mdx`, "Set up an existing repository"); keep them in
|
|
12
|
-
* step.
|
|
5
|
+
* Kortix never writes to a linked repository. The person's agent follows the
|
|
6
|
+
* served setup guide (`@kortix/shared/setup-guide`, https://kortix.com/setup.md)
|
|
7
|
+
* and pushes `kortix.yaml` to the branch the workspace reads.
|
|
13
8
|
*/
|
|
14
9
|
export declare const EXISTING_REPO_DOCS_URL = "https://kortix.com/docs/developers#set-up-an-existing-repository";
|
|
15
10
|
export declare function existingRepoSetupPrompt(input: {
|
|
@@ -17,6 +12,8 @@ export declare function existingRepoSetupPrompt(input: {
|
|
|
17
12
|
repository: string | null | undefined;
|
|
18
13
|
/** The branch the project reads `kortix.yaml` from. */
|
|
19
14
|
branch: string | null | undefined;
|
|
15
|
+
/** The project's page in the web app (`dashboard_url`): its origin serves the guide this prompt names. */
|
|
16
|
+
dashboardUrl?: string | null;
|
|
20
17
|
}): string;
|
|
21
18
|
/** `owner/name` from a GitHub clone URL, else the URL without `.git`. */
|
|
22
19
|
export declare function repositoryLabel(repoUrl: string | null | undefined): string | null;
|
|
@@ -1,52 +1,26 @@
|
|
|
1
|
+
import { setupPrompt, setupTarget } from '../../_vendor/kortix-shared.js';
|
|
1
2
|
/**
|
|
2
3
|
* The prompt a person copies into their own coding agent (Claude Code, Codex,
|
|
3
4
|
* Cursor) to set up a repository they linked to Kortix that has no agents.
|
|
4
5
|
*
|
|
5
|
-
* Kortix never writes to a linked repository. The person's agent
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the push lands where the project reads.
|
|
9
|
-
*
|
|
10
|
-
* English on purpose: an agent reads it, not the person. The same steps are
|
|
11
|
-
* in the docs (`developers.mdx`, "Set up an existing repository"); keep them in
|
|
12
|
-
* step.
|
|
6
|
+
* Kortix never writes to a linked repository. The person's agent follows the
|
|
7
|
+
* served setup guide (`@kortix/shared/setup-guide`, https://kortix.com/setup.md)
|
|
8
|
+
* and pushes `kortix.yaml` to the branch the workspace reads.
|
|
13
9
|
*/
|
|
14
10
|
export const EXISTING_REPO_DOCS_URL = 'https://kortix.com/docs/developers#set-up-an-existing-repository';
|
|
15
11
|
export function existingRepoSetupPrompt(input) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
my_kortix: true
|
|
29
|
-
default_agent: mykortix
|
|
30
|
-
skills: {}
|
|
31
|
-
agents:
|
|
32
|
-
worker:
|
|
33
|
-
description: "General-purpose worker: coding, research, writing, ops and data work."
|
|
34
|
-
mode: primary
|
|
35
|
-
permission: allow
|
|
36
|
-
prompt: "Your session starts with an empty /workspace. Run \`kortix workspaces clone\` to get this repository, then read AGENTS.md or CLAUDE.md when it exists."
|
|
37
|
-
tools: "*"
|
|
38
|
-
skills: "*"
|
|
39
|
-
connectors: "*"
|
|
40
|
-
secrets: "*"
|
|
41
|
-
kortix_permissions: "*"
|
|
42
|
-
\`\`\`
|
|
43
|
-
|
|
44
|
-
3. Keep the agent setup this repository already has. Do not move, copy or edit those files.
|
|
45
|
-
- For each \`.claude/agents/<name>.md\`, add an agent \`<name>\` with \`prompt_file: .claude/agents/<name>.md\`, the \`description\` from its frontmatter, \`mode: primary\`, \`tools: "*"\` and \`kortix_permissions: [workspace.gitops.read]\`, so it can clone the repository.
|
|
46
|
-
- For each folder that holds a \`SKILL.md\` (\`.agents/skills/<name>\`, \`.claude/skills/<name>\`, \`skills/<name>\`), add \`<name>: <folder>\` under \`skills:\`. Skip a name that starts with \`kortix-\`.
|
|
47
|
-
4. Run \`kortix validate\`. Fix every error it prints and run it again until it exits 0.
|
|
48
|
-
5. Commit only \`kortix.yaml\` with the message "chore: add kortix.yaml" and push it to \`${branch}\`.
|
|
49
|
-
6. Reply with the agents and skills you declared.`;
|
|
12
|
+
return setupPrompt({ repository: input.repository, branch: input.branch }, setupTarget(webOrigin(input.dashboardUrl)));
|
|
13
|
+
}
|
|
14
|
+
/** The origin of a web-app URL; undefined when absent or not a URL (the prompt then names production). */
|
|
15
|
+
function webOrigin(url) {
|
|
16
|
+
if (!url)
|
|
17
|
+
return undefined;
|
|
18
|
+
try {
|
|
19
|
+
return new URL(url).origin;
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
50
24
|
}
|
|
51
25
|
/** `owner/name` from a GitHub clone URL, else the URL without `.git`. */
|
|
52
26
|
export function repositoryLabel(repoUrl) {
|
|
@@ -18,9 +18,15 @@ import { type ReactNode } from 'react';
|
|
|
18
18
|
* (`project-home.tsx`); the agent's guided setup does the connecting and
|
|
19
19
|
* inviting the items describe.
|
|
20
20
|
*
|
|
21
|
+
* The "Connect ChatGPT" and "Connect Claude" tiles sit directly above the
|
|
22
|
+
* composer (`ModelConnectionLayoutContext`): with no model they are the
|
|
23
|
+
* composer's own `ModelConnectionBar`, with a model they are the dismissible
|
|
24
|
+
* `SubscriptionOffer`. Every other composer keeps them below.
|
|
25
|
+
*
|
|
21
26
|
* The welcome fades in once, over 300ms. It is opacity only, so reduced motion
|
|
22
27
|
* needs no other variant.
|
|
23
28
|
*/
|
|
24
|
-
export declare function FirstChat({ composer }: {
|
|
29
|
+
export declare function FirstChat({ projectId, composer }: {
|
|
30
|
+
projectId: string;
|
|
25
31
|
composer: ReactNode;
|
|
26
32
|
}): import("react").JSX.Element;
|
|
@@ -3,6 +3,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { AppWindowIcon, BriefcaseIcon, ChatsCircleIcon, ClockIcon, GrainsIcon, PlugsConnectedIcon, } from '@phosphor-icons/react';
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { useUiViewer } from '../../providers/ui-provider.js';
|
|
6
|
+
import { ModelConnectionLayoutContext } from '../../session/models/model-connection-layout.js';
|
|
7
|
+
import { SubscriptionOffer } from '../../session/models/subscription-offer.js';
|
|
6
8
|
import { SESSION_TRANSCRIPT_CLASS } from '../../session/thread/session-transcript-class.js';
|
|
7
9
|
import { useTranslations } from '../../i18n/index.js';
|
|
8
10
|
import { cn } from '../../internal/lib/utils.js';
|
|
@@ -35,17 +37,22 @@ const CAPABILITIES = [
|
|
|
35
37
|
* (`project-home.tsx`); the agent's guided setup does the connecting and
|
|
36
38
|
* inviting the items describe.
|
|
37
39
|
*
|
|
40
|
+
* The "Connect ChatGPT" and "Connect Claude" tiles sit directly above the
|
|
41
|
+
* composer (`ModelConnectionLayoutContext`): with no model they are the
|
|
42
|
+
* composer's own `ModelConnectionBar`, with a model they are the dismissible
|
|
43
|
+
* `SubscriptionOffer`. Every other composer keeps them below.
|
|
44
|
+
*
|
|
38
45
|
* The welcome fades in once, over 300ms. It is opacity only, so reduced motion
|
|
39
46
|
* needs no other variant.
|
|
40
47
|
*/
|
|
41
|
-
export function FirstChat({ composer }) {
|
|
48
|
+
export function FirstChat({ projectId, composer }) {
|
|
42
49
|
const t = useTranslations('firstChat');
|
|
43
50
|
const user = useUiViewer();
|
|
44
51
|
const name = firstNameOf(user?.metadata);
|
|
45
52
|
const headingId = useId();
|
|
46
53
|
const canId = useId();
|
|
47
|
-
return (_jsxs("div", { className: "relative z-10 flex min-h-0 flex-1 flex-col", children: [_jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: _jsxs("section", { "aria-labelledby": headingId, className: cn(SESSION_TRANSCRIPT_CLASS,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
return (_jsx(ModelConnectionLayoutContext.Provider, { value: "above", children: _jsxs("div", { className: "relative z-10 flex min-h-0 flex-1 flex-col", children: [_jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: _jsxs("section", { "aria-labelledby": headingId, className: cn(SESSION_TRANSCRIPT_CLASS,
|
|
55
|
+
// Below the floating sidebar toggle, and a little lower on wide
|
|
56
|
+
// screens where the column has room to breathe.
|
|
57
|
+
'flex flex-col gap-10 pt-16 pb-8 lg:pt-24', 'transition-opacity duration-(--duration-slow) ease-out starting:opacity-0'), children: [_jsxs("div", { className: "flex flex-col gap-3", children: [_jsx("h1", { id: headingId, className: "text-foreground text-2xl font-medium tracking-tight text-balance", children: name ? t('greeting', { name }) : t('greetingNoName') }), _jsx("p", { className: "text-muted-foreground max-w-prose text-base leading-7 text-pretty", children: t('intro') })] }), _jsxs("div", { className: "flex flex-col gap-4", children: [_jsx("h2", { id: canId, className: "text-foreground text-base font-medium", children: t('canTitle') }), _jsx("ul", { "aria-labelledby": canId, className: "grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3", children: CAPABILITIES.map(({ key, icon: Glyph }) => (_jsxs("li", { className: "border-border bg-popover flex flex-col gap-3 rounded-md border p-4", children: [_jsx("span", { className: "bg-muted text-foreground flex size-8 items-center justify-center rounded-sm", children: _jsx(Glyph, { className: "size-4", "aria-hidden": true }) }), _jsxs("span", { className: "flex flex-col gap-1", children: [_jsx("span", { className: "text-foreground text-sm leading-5 font-medium", children: t(`can.${key}.title`) }), _jsx("span", { className: "text-muted-foreground text-sm leading-5 text-pretty", children: t(`can.${key}.body`) })] })] }, key))) }), _jsx("p", { className: "text-muted-foreground text-sm leading-5 text-pretty", children: t('startHint') })] })] }) }), _jsx("div", { className: "relative z-10 mx-auto w-full max-w-210 shrink-0 pb-2 empty:hidden", children: _jsx(SubscriptionOffer, { projectId: projectId }) }), composer] }) }));
|
|
51
58
|
}
|
|
@@ -18,8 +18,10 @@ export type NoAgentReason = 'setup' | 'noAccess' | 'empty';
|
|
|
18
18
|
* `noAccess` and `empty` carry no button: the viewer cannot act here, and
|
|
19
19
|
* "New agent" already sits in the sidebar.
|
|
20
20
|
*/
|
|
21
|
-
export declare function NoAgentHome({ reason, repoUrl, branch, }: {
|
|
21
|
+
export declare function NoAgentHome({ reason, repoUrl, branch, dashboardUrl, }: {
|
|
22
22
|
reason: NoAgentReason;
|
|
23
23
|
repoUrl: string | null | undefined;
|
|
24
24
|
branch: string | null | undefined;
|
|
25
|
+
/** The project's web page (`dashboard_url`): the copied prompt names this deployment's guide. */
|
|
26
|
+
dashboardUrl?: string | null;
|
|
25
27
|
}): import("react").JSX.Element;
|
|
@@ -23,7 +23,7 @@ import { EXISTING_REPO_DOCS_URL, existingRepoSetupPrompt, repositoryLabel } from
|
|
|
23
23
|
* `noAccess` and `empty` carry no button: the viewer cannot act here, and
|
|
24
24
|
* "New agent" already sits in the sidebar.
|
|
25
25
|
*/
|
|
26
|
-
export function NoAgentHome({ reason, repoUrl, branch, }) {
|
|
26
|
+
export function NoAgentHome({ reason, repoUrl, branch, dashboardUrl, }) {
|
|
27
27
|
const t = useTranslations('noAgentHome');
|
|
28
28
|
const [copied, setCopied] = useState(false);
|
|
29
29
|
useEffect(() => {
|
|
@@ -33,7 +33,7 @@ export function NoAgentHome({ reason, repoUrl, branch, }) {
|
|
|
33
33
|
return () => clearTimeout(timer);
|
|
34
34
|
}, [copied]);
|
|
35
35
|
const copyPrompt = async () => {
|
|
36
|
-
const prompt = existingRepoSetupPrompt({ repository: repositoryLabel(repoUrl), branch });
|
|
36
|
+
const prompt = existingRepoSetupPrompt({ repository: repositoryLabel(repoUrl), branch, dashboardUrl });
|
|
37
37
|
if (await copyToClipboard(prompt))
|
|
38
38
|
setCopied(true);
|
|
39
39
|
else
|
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
export type WorkspaceInboxView = 'review' | 'notifications';
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* (2026-11-08: "REVIEW & INBOX should be merged in 1"). Two tabs under one
|
|
10
|
-
* header:
|
|
11
|
-
*
|
|
12
|
-
* - **Review** — this workspace's Review Center: approvals, questions and
|
|
13
|
-
* change requests to act on. `?id=` opens one item, as `/review?id=` did.
|
|
14
|
-
* - **Notifications** — the person's notifications from every workspace.
|
|
15
|
-
*
|
|
16
|
-
* `/workspaces/<id>/review` redirects to `?view=review`. The workspace menu's
|
|
17
|
-
* Inbox row counts both tabs (`useInboxSummary`).
|
|
2
|
+
* /workspaces/[id]/inbox — this workspace's Review queue (KRTX-4799):
|
|
3
|
+
* approvals, questions and change requests to act on. `?id=` opens one item.
|
|
4
|
+
* The person's notifications are not here: they span every workspace, so a
|
|
5
|
+
* workspace page cannot scope them — they live on the person-level Inbox page
|
|
6
|
+
* (`/inbox`, KRTX-1742), which `AccountTopBar` and the workspace menu's Inbox
|
|
7
|
+
* row open. The sidebar's Review row (`uiRoutes().review`) opens this page.
|
|
18
8
|
*/
|
|
19
9
|
export declare function WorkspaceInbox({ projectId }: {
|
|
20
10
|
projectId: string;
|
|
@@ -1,61 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
3
|
-
import { useNotificationInbox } from '@kortix/sdk/react';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { ReviewView } from '../../customize/sections/view/review-view.js';
|
|
5
4
|
import { useTranslations } from '../../i18n/index.js';
|
|
6
|
-
import { useReviewNeedsYouCount } from '../../internal/hooks/use-review-session-summary.js';
|
|
7
5
|
import { ProjectPageHeader } from '../../internal/layout/project-page-header.js';
|
|
8
|
-
import { NotificationInbox } from '../../internal/notifications/notification-inbox.js';
|
|
9
|
-
import { CountBadge } from '../../primitives/count-badge.js';
|
|
10
|
-
import { Tabs, TabsList, TabsTrigger } from '../../primitives/tabs.js';
|
|
11
|
-
import { useUiPathname, useUiRouter, useUiSearchParams, useUiViewerId } from '../../providers/ui-provider.js';
|
|
12
|
-
/** One underline tab: hugs its label and count, full title-bar height. */
|
|
13
|
-
const INBOX_TAB_CLASS = 'h-full w-fit flex-none gap-1.5 px-1';
|
|
14
6
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return itemId || reviewNeedsYou > 0 ? 'review' : 'notifications';
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* /workspaces/[id]/inbox — the one place for what waits on the person
|
|
25
|
-
* (2026-11-08: "REVIEW & INBOX should be merged in 1"). Two tabs under one
|
|
26
|
-
* header:
|
|
27
|
-
*
|
|
28
|
-
* - **Review** — this workspace's Review Center: approvals, questions and
|
|
29
|
-
* change requests to act on. `?id=` opens one item, as `/review?id=` did.
|
|
30
|
-
* - **Notifications** — the person's notifications from every workspace.
|
|
31
|
-
*
|
|
32
|
-
* `/workspaces/<id>/review` redirects to `?view=review`. The workspace menu's
|
|
33
|
-
* Inbox row counts both tabs (`useInboxSummary`).
|
|
7
|
+
* /workspaces/[id]/inbox — this workspace's Review queue (KRTX-4799):
|
|
8
|
+
* approvals, questions and change requests to act on. `?id=` opens one item.
|
|
9
|
+
* The person's notifications are not here: they span every workspace, so a
|
|
10
|
+
* workspace page cannot scope them — they live on the person-level Inbox page
|
|
11
|
+
* (`/inbox`, KRTX-1742), which `AccountTopBar` and the workspace menu's Inbox
|
|
12
|
+
* row open. The sidebar's Review row (`uiRoutes().review`) opens this page.
|
|
34
13
|
*/
|
|
35
14
|
export function WorkspaceInbox({ projectId }) {
|
|
36
|
-
const t = useTranslations('
|
|
37
|
-
const router = useUiRouter();
|
|
38
|
-
const pathname = useUiPathname();
|
|
39
|
-
const searchParams = useUiSearchParams();
|
|
40
|
-
const reviewNeedsYou = useReviewNeedsYouCount(projectId);
|
|
41
|
-
const unread = useNotificationInbox({ userId: useUiViewerId() }).unreadCount;
|
|
42
|
-
const view = workspaceInboxView(searchParams?.get('view') ?? null, searchParams?.get('id') ?? null, reviewNeedsYou);
|
|
43
|
-
const select = (next) => {
|
|
44
|
-
const query = new URLSearchParams(searchParams?.toString() ?? '');
|
|
45
|
-
query.set('view', next);
|
|
46
|
-
// An open Review item belongs to the Review tab.
|
|
47
|
-
if (next !== 'review')
|
|
48
|
-
query.delete('id');
|
|
49
|
-
router.replace(`${pathname ?? ''}?${query.toString()}`);
|
|
50
|
-
};
|
|
15
|
+
const t = useTranslations('sidebar');
|
|
51
16
|
return (
|
|
52
17
|
// `h-svh`: nothing above this box has a definite height (as the Apps page).
|
|
53
|
-
_jsxs("div", { className: "flex h-svh min-h-0 flex-col overflow-hidden", children: [_jsx(ProjectPageHeader, { title: t('
|
|
54
|
-
// "Inbox", a rule, then the underline tabs: the same title-bar
|
|
55
|
-
// grammar as the capability tab bar (customize-tab-bar.tsx). Never
|
|
56
|
-
// the segmented control here.
|
|
57
|
-
_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": true, className: "bg-border mx-1.5 h-4 w-px shrink-0" }), _jsx(Tabs, { value: view, onValueChange: select, className: "h-full gap-0", children: _jsxs(TabsList, { type: "underline", underlineSize: "md", className: "h-10 justify-start gap-4 border-b-0", "aria-label": t('inbox.viewLabel'), children: [_jsxs(TabsTrigger, { value: "review", className: INBOX_TAB_CLASS, "data-testid": "inbox-view-review", children: [t('inbox.viewReview'), reviewNeedsYou > 0 ? _jsx(CountBadge, { count: reviewNeedsYou, tone: "waiting" }) : null] }), _jsxs(TabsTrigger, { value: "notifications", className: INBOX_TAB_CLASS, "data-testid": "inbox-view-notifications", children: [t('inbox.viewNotifications'), unread > 0 ? _jsx(CountBadge, { count: unread }) : null] })] }) })] }) }), view === 'review' ? (
|
|
58
|
-
// Full width: the list and the open item sit side by side, so no
|
|
59
|
-
// reading-width cap here.
|
|
60
|
-
_jsx("div", { className: "flex min-h-0 w-full flex-1 flex-col", children: _jsx(ReviewView, { projectId: projectId }) })) : (_jsx(NotificationInbox, { bare: true }))] }));
|
|
18
|
+
_jsxs("div", { className: "flex h-svh min-h-0 flex-col overflow-hidden", children: [_jsx(ProjectPageHeader, { title: t('spaces.review') }), _jsx("div", { className: "flex min-h-0 w-full flex-1 flex-col", children: _jsx(ReviewView, { projectId: projectId }) })] }));
|
|
61
19
|
}
|
|
@@ -244,13 +244,19 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
|
|
|
244
244
|
useEffect(() => {
|
|
245
245
|
if (!pendingPrefill)
|
|
246
246
|
return;
|
|
247
|
-
|
|
247
|
+
// Apply what `consume` returns, never the render-time snapshot: the
|
|
248
|
+
// typing buffer may have dropped the entry since this render (another
|
|
249
|
+
// account signed in on the tab), and a dropped entry must not land.
|
|
250
|
+
const taken = consumePrefill(projectId);
|
|
251
|
+
if (!taken)
|
|
252
|
+
return;
|
|
248
253
|
setPrefill({
|
|
249
|
-
text:
|
|
254
|
+
text: taken.text,
|
|
250
255
|
id: Date.now(),
|
|
251
|
-
submit:
|
|
252
|
-
files:
|
|
253
|
-
options:
|
|
256
|
+
submit: taken.submit,
|
|
257
|
+
files: taken.files,
|
|
258
|
+
options: taken.options,
|
|
259
|
+
restoreDraft: taken.restoreDraft,
|
|
254
260
|
});
|
|
255
261
|
}, [pendingPrefill, projectId, consumePrefill]);
|
|
256
262
|
const handleCommand = useCallback((cmd, args, options) => {
|
|
@@ -276,16 +282,11 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
|
|
|
276
282
|
resetLabel: 'Reset to agent default',
|
|
277
283
|
}
|
|
278
284
|
: undefined;
|
|
279
|
-
const composer = (_jsx(ComposerChatInput, { onSend: handleSend, onCommand: handleCommand, projectId: projectId, draftScope: draftScope,
|
|
280
|
-
//
|
|
281
|
-
//
|
|
282
|
-
//
|
|
283
|
-
isSending: creating, disabled: creating,
|
|
284
|
-
// The home composer navigates to the new session on send — don't
|
|
285
|
-
// clear it first (that would drop the text on a gated send). The
|
|
286
|
-
// message rides across via `create.pending_prompt` and reappears
|
|
287
|
-
// as the instant shell's optimistic turn.
|
|
288
|
-
clearOnSend: false, autoFocus: true,
|
|
285
|
+
const composer = (_jsx(ComposerChatInput, { onSend: handleSend, onCommand: handleCommand, projectId: projectId, draftScope: draftScope, draftHandoffScope: onSend ? undefined : defaultSend.draftHandoffScope,
|
|
286
|
+
// While the create runs, the sent message stays in the composer, locked,
|
|
287
|
+
// with the spinner in the send slot. The session page then draws it as
|
|
288
|
+
// the first turn. A refused send unlocks the same text for a retry.
|
|
289
|
+
isSending: creating, disabled: creating, clearOnSend: false, autoFocus: true,
|
|
289
290
|
// Desktop: a hero composer floating mid-page has no column for a second
|
|
290
291
|
// rail to align to, so the attach/agent/context controls ride on the
|
|
291
292
|
// toolbar itself, ahead of the model selector, and the `/` menu opens
|
|
@@ -301,5 +302,5 @@ function ProjectHomeView({ projectId, onSend, busy, beforeSend, onboarding: onbo
|
|
|
301
302
|
return (
|
|
302
303
|
// A file dropped anywhere on the page attaches to the composer, as on a
|
|
303
304
|
// session page.
|
|
304
|
-
_jsxs(ComposerDropZone, { className: "bg-background relative flex min-h-0 flex-1 flex-col overflow-hidden lg:px-4.5", children: [_jsx(ProjectHomeWallpaper, {}), _jsx(SidebarToggle, { placement: "floating" }), _jsx(AccessRequestsBell, { requests: accessRequests.data?.requests ?? [], to: accessRequestsTo }), firstChatPending || !onboarded || noAgent || !HomeAnnouncement ? null : _jsx(HomeAnnouncement, {}), _jsx("div", { className: "relative z-10 mx-auto w-full max-w-2xl px-4 pt-14 empty:hidden", children: _jsx(SplitNoticeBanner, { workspaceId: projectId }) }), noAgentReason ? (_jsx(NoAgentHome, { reason: noAgentReason, repoUrl: projectRowQuery.data?.repo_url, branch: projectRowQuery.data?.default_branch })) : firstChat ? (_jsx(FirstChat, { composer: composer })) : (_jsx(ProjectHomeWelcomeBody, { projectId: projectId, onPickSuggestion: applySuggestion, composer: composer }))] }));
|
|
305
|
+
_jsxs(ComposerDropZone, { className: "bg-background relative flex min-h-0 flex-1 flex-col overflow-hidden lg:px-4.5", children: [_jsx(ProjectHomeWallpaper, {}), _jsx(SidebarToggle, { placement: "floating" }), _jsx(AccessRequestsBell, { requests: accessRequests.data?.requests ?? [], to: accessRequestsTo }), firstChatPending || !onboarded || noAgent || !HomeAnnouncement ? null : _jsx(HomeAnnouncement, {}), _jsx("div", { className: "relative z-10 mx-auto w-full max-w-2xl px-4 pt-14 empty:hidden", children: _jsx(SplitNoticeBanner, { workspaceId: projectId }) }), noAgentReason ? (_jsx(NoAgentHome, { reason: noAgentReason, repoUrl: projectRowQuery.data?.repo_url, branch: projectRowQuery.data?.default_branch, dashboardUrl: projectRowQuery.data?.dashboard_url })) : firstChat ? (_jsx(FirstChat, { projectId: projectId, composer: composer })) : (_jsx(ProjectHomeWelcomeBody, { projectId: projectId, onPickSuggestion: applySuggestion, composer: composer }))] }));
|
|
305
306
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DraftScope } from '../../session/composer/draft/composer-draft.js';
|
|
1
2
|
import { type AttachmentSubmission } from '../../session/composer/attachment-submission.js';
|
|
2
3
|
import type { AttachedFile } from '../../session/composer/session-chat-input.js';
|
|
3
4
|
import type { ProjectHomeSendOptions } from './project-home.js';
|
|
@@ -27,4 +28,5 @@ export interface UseProjectHomeSendOptions {
|
|
|
27
28
|
export declare function useProjectHomeSend(projectId: string, { beforeSend, space }?: UseProjectHomeSendOptions): {
|
|
28
29
|
send: (text: string, files: AttachedFile[] | undefined, options?: ProjectHomeSendOptions, attachments?: AttachmentSubmission) => Promise<void>;
|
|
29
30
|
sending: boolean;
|
|
31
|
+
draftHandoffScope: import("react").RefObject<DraftScope | null>;
|
|
30
32
|
};
|