zidane-ui 9.4.0 → 9.5.2
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/adapters/index.d.ts +2 -1
- package/dist/adapters/index.js +2 -1
- package/dist/adapters/live.d.ts +7 -2
- package/dist/adapters/live.js +5 -2
- package/dist/adapters/server-approvals-host.js +3 -1
- package/dist/adapters/server-channels-host.d.ts +32 -0
- package/dist/adapters/server-channels-host.js +49 -0
- package/dist/adapters/server-composer-host.js +13 -0
- package/dist/adapters/server-files-host.js +12 -31
- package/dist/adapters/server-host.js +27 -3
- package/dist/adapters/server-machines-host.d.ts +5 -0
- package/dist/adapters/server-machines-host.js +13 -6
- package/dist/adapters/server-oauth-flow.d.ts +2 -1
- package/dist/adapters/server-projects.d.ts +15 -0
- package/dist/adapters/server-projects.js +225 -0
- package/dist/adapters/server-session-host.d.ts +2 -0
- package/dist/adapters/server-session-host.js +20 -1
- package/dist/app/AppHostProvider.d.ts +1 -1
- package/dist/app/AppHostProvider.js +7 -2
- package/dist/app/ModalProvider.d.ts +6 -2
- package/dist/app/ModalProvider.js +38 -10
- package/dist/app/headless/app-host.d.ts +3 -0
- package/dist/approvals/ApprovalsProvider.d.ts +2 -1
- package/dist/approvals/ApprovalsProvider.js +12 -4
- package/dist/approvals/headless/host.d.ts +13 -2
- package/dist/approvals/headless/index.d.ts +3 -3
- package/dist/approvals/headless/index.js +2 -2
- package/dist/approvals/headless/labels.d.ts +12 -2
- package/dist/approvals/headless/labels.js +19 -1
- package/dist/channels/BindingEditorDialog.d.ts +18 -0
- package/dist/channels/BindingEditorDialog.js +637 -0
- package/dist/channels/ChannelAlertsList.d.ts +25 -0
- package/dist/channels/ChannelAlertsList.js +107 -0
- package/dist/channels/ChannelDefaultsSection.d.ts +20 -0
- package/dist/channels/ChannelDefaultsSection.js +133 -0
- package/dist/channels/ChannelsProvider.d.ts +31 -0
- package/dist/channels/ChannelsProvider.js +29 -0
- package/dist/channels/ChannelsSettingsSection.d.ts +40 -0
- package/dist/channels/ChannelsSettingsSection.js +456 -0
- package/dist/channels/ConnectionSetupDialog.d.ts +16 -0
- package/dist/channels/ConnectionSetupDialog.js +470 -0
- package/dist/channels/HeldRepliesList.d.ts +27 -0
- package/dist/channels/HeldRepliesList.js +173 -0
- package/dist/channels/ProjectChannelsSection.d.ts +55 -0
- package/dist/channels/ProjectChannelsSection.js +433 -0
- package/dist/channels/ReadinessChecklist.d.ts +102 -0
- package/dist/channels/ReadinessChecklist.js +273 -0
- package/dist/channels/TestSessionBanner.d.ts +24 -0
- package/dist/channels/TestSessionBanner.js +44 -0
- package/dist/channels/channels-parts.d.ts +104 -0
- package/dist/channels/channels-parts.js +203 -0
- package/dist/channels/context.d.ts +9 -0
- package/dist/channels/context.js +14 -0
- package/dist/channels/headless/access.d.ts +127 -0
- package/dist/channels/headless/access.js +187 -0
- package/dist/channels/headless/fixture-host.d.ts +83 -0
- package/dist/channels/headless/fixture-host.js +557 -0
- package/dist/channels/headless/host.d.ts +245 -0
- package/dist/channels/headless/host.js +39 -0
- package/dist/channels/headless/index.d.ts +10 -0
- package/dist/channels/headless/index.js +5 -0
- package/dist/channels/headless/labels.d.ts +217 -0
- package/dist/channels/headless/labels.js +260 -0
- package/dist/channels/headless/state.d.ts +22 -0
- package/dist/channels/headless/state.js +303 -0
- package/dist/channels/index.d.ts +21 -0
- package/dist/channels/index.js +13 -0
- package/dist/channels/testing/contract.d.ts +31 -0
- package/dist/channels/testing/contract.js +378 -0
- package/dist/channels/testing/index.d.ts +7 -0
- package/dist/channels/testing/index.js +1 -0
- package/dist/chat/HostBadge.js +1 -0
- package/dist/chat/OrchestratorBadge.d.ts +23 -0
- package/dist/chat/OrchestratorBadge.js +22 -0
- package/dist/chat/SessionGroupHeader.d.ts +11 -1
- package/dist/chat/SessionGroupHeader.js +25 -14
- package/dist/chat/SessionList.d.ts +1 -1
- package/dist/chat/SessionList.js +1 -1
- package/dist/chat/SessionRow.d.ts +141 -0
- package/dist/chat/SessionRow.js +215 -0
- package/dist/chat/StatusDot.d.ts +7 -2
- package/dist/chat/StatusDot.js +3 -2
- package/dist/chat/Transcript.js +6 -2
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/composer/ContextBreakdown.d.ts +27 -2
- package/dist/chat/composer/ContextBreakdown.js +123 -2
- package/dist/chat/composer/DraftPickers.d.ts +8 -2
- package/dist/chat/composer/DraftPickers.js +7 -3
- package/dist/chat/composer/HostContextOrb.d.ts +2 -0
- package/dist/chat/composer/HostContextOrb.js +17 -2
- package/dist/chat/composer/ProjectMenu.d.ts +16 -3
- package/dist/chat/composer/ProjectMenu.js +102 -20
- package/dist/chat/composer/ScopeToggle.d.ts +7 -2
- package/dist/chat/composer/ScopeToggle.js +4 -2
- package/dist/chat/composer/ServerScopeToggle.d.ts +7 -2
- package/dist/chat/composer/ServerScopeToggle.js +3 -1
- package/dist/chat/composer/index.d.ts +2 -2
- package/dist/chat/composer/index.js +2 -2
- package/dist/chat/composer/use-draft-target.d.ts +12 -1
- package/dist/chat/composer/use-draft-target.js +22 -10
- package/dist/chat/composer/use-send-prompt.d.ts +2 -0
- package/dist/chat/composer/use-send-prompt.js +4 -1
- package/dist/chat/headless/answered-first.d.ts +28 -0
- package/dist/chat/headless/answered-first.js +14 -0
- package/dist/chat/headless/chip-labels.d.ts +2 -0
- package/dist/chat/headless/chip-labels.js +2 -0
- package/dist/chat/headless/composer/composer-sources.d.ts +5 -2
- package/dist/chat/headless/composer/composer-sources.js +6 -0
- package/dist/chat/headless/composer/host.d.ts +13 -0
- package/dist/chat/headless/composer/index.d.ts +2 -2
- package/dist/chat/headless/composer/labels-chrome.d.ts +3 -0
- package/dist/chat/headless/composer/labels-chrome.js +4 -1
- package/dist/chat/headless/composer/labels-editor.d.ts +2 -0
- package/dist/chat/headless/composer/labels-editor.js +2 -0
- package/dist/chat/headless/draft-target.d.ts +2 -0
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.d.ts +6 -0
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.js +90 -2
- package/dist/chat/headless/folder-groups.d.ts +41 -0
- package/dist/chat/headless/folder-groups.js +76 -0
- package/dist/chat/headless/host.d.ts +16 -1
- package/dist/chat/headless/hosts.d.ts +1 -1
- package/dist/chat/headless/index.d.ts +15 -10
- package/dist/chat/headless/index.js +35 -30
- package/dist/chat/headless/labels.d.ts +43 -4
- package/dist/chat/headless/labels.js +40 -9
- package/dist/chat/headless/prompt-origin.d.ts +2 -2
- package/dist/chat/headless/prompt-origin.js +3 -3
- package/dist/chat/headless/send-flow.d.ts +2 -0
- package/dist/chat/headless/session-list.d.ts +36 -2
- package/dist/chat/headless/session-list.js +7 -0
- package/dist/chat/headless/sidebar/directory.d.ts +5 -0
- package/dist/chat/headless/sidebar/directory.js +2 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +33 -7
- package/dist/chat/headless/sidebar/inbox.js +65 -26
- package/dist/chat/headless/sidebar/index.d.ts +6 -4
- package/dist/chat/headless/sidebar/index.js +5 -3
- package/dist/chat/headless/sidebar/labels.d.ts +36 -7
- package/dist/chat/headless/sidebar/labels.js +1 -4
- package/dist/chat/headless/sidebar/project-main.d.ts +43 -0
- package/dist/chat/headless/sidebar/project-main.js +46 -0
- package/dist/chat/headless/sidebar/row-changes.d.ts +43 -0
- package/dist/chat/headless/sidebar/row-changes.js +43 -0
- package/dist/chat/headless/sidebar/rows.d.ts +64 -6
- package/dist/chat/headless/sidebar/rows.js +98 -18
- package/dist/chat/headless/sidebar/types.d.ts +12 -0
- package/dist/chat/headless/streams/live-events.d.ts +12 -0
- package/dist/chat/headless/streams/live-events.js +21 -2
- package/dist/chat/headless/streams/store.d.ts +17 -0
- package/dist/chat/headless/streams/store.js +38 -15
- package/dist/chat/headless/streams/types.d.ts +2 -1
- package/dist/chat/headless/transcript/collapse.js +3 -1
- package/dist/chat/headless/transcript/derive.d.ts +1 -0
- package/dist/chat/headless/transcript/derive.js +3 -1
- package/dist/chat/headless/transcript/fold.js +1 -0
- package/dist/chat/headless/transcript/index.d.ts +3 -2
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +8 -1
- package/dist/chat/headless/transcript/rail.js +10 -2
- package/dist/chat/headless/transcript/rows.d.ts +31 -3
- package/dist/chat/headless/transcript/select-stops.js +1 -0
- package/dist/chat/headless/transcript/session-groups.d.ts +36 -0
- package/dist/chat/headless/transcript/session-groups.js +94 -0
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/index.d.ts +8 -5
- package/dist/chat/index.js +9 -6
- package/dist/chat/interactions/HostInteractions.js +4 -2
- package/dist/chat/interactions/InboxPanel.js +6 -4
- package/dist/chat/interactions/use-answer-interaction.d.ts +11 -0
- package/dist/chat/interactions/use-answer-interaction.js +19 -0
- package/dist/chat/rich-composer/artifact-mentions.d.ts +29 -0
- package/dist/chat/rich-composer/artifact-mentions.js +40 -0
- package/dist/chat/rich-composer/composer-extensions.d.ts +3 -2
- package/dist/chat/rich-composer/composer-extensions.js +12 -9
- package/dist/chat/rich-composer/use-composer-sources.js +1 -0
- package/dist/chat/sidebar/InboxList.d.ts +26 -2
- package/dist/chat/sidebar/InboxList.js +65 -49
- package/dist/chat/sidebar/MainSessionRow.d.ts +2 -1
- package/dist/chat/sidebar/MainSessionRow.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +8 -4
- package/dist/chat/sidebar/ProjectIcon.js +15 -3
- package/dist/chat/sidebar/SessionSidebar.d.ts +51 -2
- package/dist/chat/sidebar/SessionSidebar.js +87 -17
- package/dist/chat/sidebar/SidebarFooter.d.ts +2 -23
- package/dist/chat/sidebar/SidebarFooter.js +2 -43
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +12 -3
- package/dist/chat/sidebar/SidebarGroupHeader.js +36 -15
- package/dist/chat/sidebar/SidebarLiveProvider.d.ts +22 -0
- package/dist/chat/sidebar/SidebarLiveProvider.js +20 -0
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +6 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +16 -7
- package/dist/chat/sidebar/inbox-triage.d.ts +18 -2
- package/dist/chat/sidebar/inbox-triage.js +39 -12
- package/dist/chat/sidebar/index.d.ts +5 -4
- package/dist/chat/sidebar/index.js +3 -2
- package/dist/chat/sidebar/sidebar-live.d.ts +29 -2
- package/dist/chat/sidebar/sidebar-live.js +36 -2
- package/dist/chat/sidebar/useInboxRows.d.ts +4 -1
- package/dist/chat/sidebar/useInboxRows.js +8 -6
- package/dist/chat/sidebar/useInboxTriage.d.ts +8 -2
- package/dist/chat/sidebar/useInboxTriage.js +29 -20
- package/dist/chat/testing/fixture-composer-host.d.ts +3 -1
- package/dist/chat/testing/fixture-composer-host.js +1 -0
- package/dist/chat/testing/index.d.ts +2 -2
- package/dist/chat/testing/index.js +2 -2
- package/dist/chat/transcript/BadgeMenu.d.ts +9 -2
- package/dist/chat/transcript/BadgeMenu.js +20 -2
- package/dist/chat/transcript/PromptEcho.js +15 -2
- package/dist/chat/transcript/PromptOriginLabel.d.ts +1 -1
- package/dist/chat/transcript/SubagentBlock.js +24 -7
- package/dist/chat/transcript/TranscriptRail.d.ts +3 -1
- package/dist/chat/transcript/TranscriptRail.js +15 -5
- package/dist/chat/transcript/TranscriptRow.js +9 -0
- package/dist/chat/transcript/badges.d.ts +1 -0
- package/dist/chat/transcript/badges.js +1 -0
- package/dist/chat/transcript/fold.js +2 -1
- package/dist/chat/transcript/frame.d.ts +7 -0
- package/dist/chat/transcript/frame.js +51 -5
- package/dist/chat/transcript/index.d.ts +5 -4
- package/dist/chat/transcript/index.js +4 -3
- package/dist/chat/transcript/inline-facts.d.ts +9 -0
- package/dist/chat/transcript/inline-facts.js +20 -0
- package/dist/chat/transcript/notices.d.ts +34 -12
- package/dist/chat/transcript/notices.js +213 -97
- package/dist/chat/transcript/prompt.js +8 -1
- package/dist/chat/transcript/receipt-parts.d.ts +29 -2
- package/dist/chat/transcript/receipt-parts.js +40 -7
- package/dist/chat/transcript/row-estimate.js +4 -1
- package/dist/chat/transcript/run-rows.js +2 -5
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/session-groups.d.ts +21 -0
- package/dist/chat/transcript/session-groups.js +154 -0
- package/dist/chat/transcript/session-line.d.ts +63 -0
- package/dist/chat/transcript/session-line.js +114 -0
- package/dist/chat/transcript/tasks.d.ts +1 -1
- package/dist/chat/transcript/tasks.js +1 -1
- package/dist/chat/transcript/tool-row.js +3 -2
- package/dist/code/editor/FileView.js +1 -3
- package/dist/components/Form.d.ts +28 -1
- package/dist/components/Form.js +43 -7
- package/dist/components/HelpTip.d.ts +22 -0
- package/dist/components/HelpTip.js +26 -0
- package/dist/components/Menu.js +1 -1
- package/dist/components/Notice.d.ts +6 -4
- package/dist/components/Notice.js +73 -27
- package/dist/components/Progress.js +10 -4
- package/dist/components/SearchField.d.ts +46 -0
- package/dist/components/SearchField.js +50 -0
- package/dist/components/ShowMore.d.ts +48 -0
- package/dist/components/ShowMore.js +57 -0
- package/dist/components/Tooltip.js +8 -5
- package/dist/components/charts/ScatterChart.js +13 -6
- package/dist/components/floating/FloatingSurface.js +2 -2
- package/dist/components/floating/useAnchoredPosition.d.ts +15 -1
- package/dist/components/floating/useAnchoredPosition.js +41 -7
- package/dist/components/palette/PaletteList.d.ts +5 -5
- package/dist/components/palette/PaletteList.js +2 -3
- package/dist/components/palette/PalettePanel.js +18 -12
- package/dist/components/palette/palette-layout.d.ts +5 -1
- package/dist/components/palette/palette-layout.js +13 -10
- package/dist/core.css +45 -20
- package/dist/dist/index-BmO8bRgK.d.ts +1 -0
- package/dist/dist/{index-BheVJOLc.d.ts → index-DPbpsCtl.d.ts} +248 -118
- package/dist/dist/index.d.ts +5 -5
- package/dist/dist/sandbox-Bzg_jJK2.d.ts +2 -0
- package/dist/dist/{timeout-CmTx6V9y.d.ts → timeout-NoG7ppkm.d.ts} +1 -1
- package/dist/files/FilesProvider.d.ts +2 -0
- package/dist/files/FilesProvider.js +5 -1
- package/dist/files/headless/host.d.ts +6 -2
- package/dist/files/index.d.ts +2 -2
- package/dist/files/index.js +2 -2
- package/dist/git/GitBar.js +8 -2
- package/dist/git/MoveSessionDialog.js +8 -5
- package/dist/git/MoveToDialog.d.ts +3 -1
- package/dist/git/MoveToDialog.js +43 -16
- package/dist/git/TeleportSessionDialog.d.ts +11 -4
- package/dist/git/TeleportSessionDialog.js +263 -107
- package/dist/git/WherePicker.js +4 -1
- package/dist/git/headless/labels.d.ts +8 -0
- package/dist/git/headless/labels.js +24 -16
- package/dist/git/index.d.ts +2 -2
- package/dist/git/index.js +2 -2
- package/dist/git/useEnvironmentChoices.d.ts +19 -0
- package/dist/git/useEnvironmentChoices.js +34 -10
- package/dist/hooks/useLastCount.d.ts +9 -0
- package/dist/hooks/useLastCount.js +29 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +7 -3
- package/dist/keybindings/headless/overrides.d.ts +1 -1
- package/dist/keybindings/headless/overrides.js +14 -3
- package/dist/labels.d.ts +7 -0
- package/dist/labels.js +10 -3
- package/dist/machines/AddMachineDialog.js +1 -1
- package/dist/machines/AddServerForm.d.ts +14 -2
- package/dist/machines/AddServerForm.js +167 -51
- package/dist/machines/HostCapabilities.js +8 -4
- package/dist/machines/HostSignIn.d.ts +2 -1
- package/dist/machines/HostSignIn.js +1 -0
- package/dist/machines/HostSyncPanel.d.ts +4 -1
- package/dist/machines/HostSyncPanel.js +248 -132
- package/dist/machines/HostsSection.d.ts +2 -2
- package/dist/machines/HostsSection.js +91 -52
- package/dist/machines/LinkedAccountsPanel.d.ts +29 -0
- package/dist/machines/LinkedAccountsPanel.js +268 -0
- package/dist/machines/MachinesExplainer.d.ts +4 -4
- package/dist/machines/MachinesExplainer.js +27 -17
- package/dist/machines/OrganizationPanel.d.ts +12 -5
- package/dist/machines/OrganizationPanel.js +420 -133
- package/dist/machines/ProjectsSpendPanel.d.ts +22 -0
- package/dist/machines/ProjectsSpendPanel.js +160 -0
- package/dist/machines/ServerMachinesPanel.js +19 -4
- package/dist/machines/ServerUpdatePanel.js +3 -3
- package/dist/machines/SyncAccounts.d.ts +14 -7
- package/dist/machines/SyncAccounts.js +67 -81
- package/dist/machines/TokensPanel.js +54 -30
- package/dist/machines/headless/fixture-host.d.ts +15 -10
- package/dist/machines/headless/fixture-host.js +75 -44
- package/dist/machines/headless/fixtures.d.ts +12 -0
- package/dist/machines/headless/fixtures.js +71 -1
- package/dist/machines/headless/host.d.ts +13 -9
- package/dist/machines/headless/index.d.ts +3 -3
- package/dist/machines/headless/index.js +2 -2
- package/dist/machines/headless/labels.d.ts +81 -40
- package/dist/machines/headless/labels.js +103 -60
- package/dist/machines/headless/linked-accounts.d.ts +42 -0
- package/dist/machines/headless/linked-accounts.js +31 -0
- package/dist/machines/headless/organization.d.ts +9 -3
- package/dist/machines/headless/organization.js +12 -2
- package/dist/machines/headless/sync.d.ts +2 -0
- package/dist/machines/index.d.ts +3 -2
- package/dist/machines/index.js +3 -2
- package/dist/machines/sync-rows.d.ts +8 -0
- package/dist/machines/sync-rows.js +10 -0
- package/dist/machines/testing/contract.d.ts +1 -25
- package/dist/machines/testing/contract.js +1 -97
- package/dist/machines/testing/index.d.ts +3 -3
- package/dist/machines/testing/index.js +2 -2
- package/dist/onboarding/demos/extensions.d.ts +4 -0
- package/dist/onboarding/demos/extensions.js +27 -1
- package/dist/onboarding/demos/sidebar-layout.d.ts +4 -2
- package/dist/onboarding/demos/sidebar-layout.js +5 -2
- package/dist/onboarding/headless/labels.d.ts +9 -0
- package/dist/onboarding/headless/labels.js +2 -0
- package/dist/onboarding/steps/SidebarStep.js +4 -2
- package/dist/onboarding/steps/setting-cards.d.ts +4 -2
- package/dist/onboarding/steps/setting-cards.js +3 -2
- package/dist/palette/PaletteDialog.js +4 -4
- package/dist/palette/PaletteRows.js +34 -16
- package/dist/palette/headless/app-sources.js +3 -1
- package/dist/palette/headless/labels.js +2 -2
- package/dist/palette/usePaletteController.js +4 -8
- package/dist/session/ArtifactsPanel.js +11 -23
- package/dist/session/NewProjectDialog.d.ts +33 -0
- package/dist/session/NewProjectDialog.js +216 -0
- package/dist/session/OpenProjectsDialog.d.ts +56 -0
- package/dist/session/OpenProjectsDialog.js +324 -0
- package/dist/session/OpenSessionsDialog.js +186 -61
- package/dist/session/ProjectArtifactsHome.d.ts +42 -0
- package/dist/session/ProjectArtifactsHome.js +98 -0
- package/dist/session/ProjectArtifactsSection.d.ts +13 -0
- package/dist/session/ProjectArtifactsSection.js +367 -0
- package/dist/session/ProjectBudgetsSection.d.ts +7 -0
- package/dist/session/ProjectBudgetsSection.js +377 -0
- package/dist/session/ProjectContextSection.d.ts +20 -0
- package/dist/session/ProjectContextSection.js +139 -0
- package/dist/session/ProjectHome.d.ts +32 -5
- package/dist/session/ProjectHome.js +496 -249
- package/dist/session/ProjectInstructionsSection.d.ts +7 -0
- package/dist/session/ProjectInstructionsSection.js +179 -0
- package/dist/session/ProjectMainButton.d.ts +35 -0
- package/dist/session/ProjectMainButton.js +73 -0
- package/dist/session/ProjectName.d.ts +76 -0
- package/dist/session/ProjectName.js +140 -0
- package/dist/session/ProjectOrchestratorSection.d.ts +14 -0
- package/dist/session/ProjectOrchestratorSection.js +117 -0
- package/dist/session/ProjectPublishDialog.d.ts +30 -0
- package/dist/session/ProjectPublishDialog.js +420 -0
- package/dist/session/ProjectSessionAccessSection.d.ts +13 -0
- package/dist/session/ProjectSessionAccessSection.js +109 -0
- package/dist/session/ProjectSessionsList.d.ts +53 -0
- package/dist/session/ProjectSessionsList.js +316 -0
- package/dist/session/ProjectSettingsDialog.d.ts +30 -0
- package/dist/session/ProjectSettingsDialog.js +693 -0
- package/dist/session/ProjectShareDialog.d.ts +36 -0
- package/dist/session/ProjectShareDialog.js +190 -0
- package/dist/session/ProjectSkillsSection.d.ts +7 -0
- package/dist/session/ProjectSkillsSection.js +197 -0
- package/dist/session/ProjectToolsSection.d.ts +16 -0
- package/dist/session/ProjectToolsSection.js +347 -0
- package/dist/session/ProjectUsage.d.ts +61 -0
- package/dist/session/ProjectUsage.js +344 -0
- package/dist/session/ProviderUsageProvider.d.ts +2 -3
- package/dist/session/QueueTab.js +11 -1
- package/dist/session/SessionAccessNotice.d.ts +31 -0
- package/dist/session/SessionAccessNotice.js +69 -0
- package/dist/session/SessionDetailsDialog.d.ts +3 -1
- package/dist/session/SessionDetailsDialog.js +16 -1
- package/dist/session/SessionHeader.d.ts +10 -3
- package/dist/session/SessionHeader.js +20 -8
- package/dist/session/SessionPeopleStack.d.ts +3 -2
- package/dist/session/SessionPeopleStack.js +51 -17
- package/dist/session/SessionPlaceMenu.js +2 -2
- package/dist/session/SessionProvider.d.ts +13 -1
- package/dist/session/SessionProvider.js +21 -1
- package/dist/session/ShareSessionDialog.d.ts +4 -4
- package/dist/session/ShareSessionDialog.js +182 -283
- package/dist/session/TypingLine.d.ts +9 -4
- package/dist/session/TypingLine.js +16 -5
- package/dist/session/{UsagePanel.d.ts → UsageSection.d.ts} +9 -13
- package/dist/session/{UsagePanel.js → UsageSection.js} +40 -41
- package/dist/session/artifact-row-parts.d.ts +32 -0
- package/dist/session/artifact-row-parts.js +51 -0
- package/dist/session/headless/access.d.ts +33 -0
- package/dist/session/headless/access.js +48 -0
- package/dist/session/headless/fixture-host.d.ts +48 -9
- package/dist/session/headless/fixture-host.js +139 -1
- package/dist/session/headless/fixture-project-artifacts.d.ts +77 -0
- package/dist/session/headless/fixture-project-artifacts.js +168 -0
- package/dist/session/headless/fixture-project-content.d.ts +67 -0
- package/dist/session/headless/fixture-project-content.js +176 -0
- package/dist/session/headless/fixture-projects.d.ts +175 -0
- package/dist/session/headless/fixture-projects.js +498 -0
- package/dist/session/headless/home-layout.d.ts +18 -2
- package/dist/session/headless/home-layout.js +20 -7
- package/dist/session/headless/host.d.ts +263 -7
- package/dist/session/headless/index.d.ts +10 -5
- package/dist/session/headless/index.js +8 -3
- package/dist/session/headless/labels.d.ts +381 -6
- package/dist/session/headless/labels.js +72 -24
- package/dist/session/headless/orchestration-labels.d.ts +52 -0
- package/dist/session/headless/orchestration-labels.js +59 -0
- package/dist/session/headless/project-artifact-labels.d.ts +67 -0
- package/dist/session/headless/project-artifact-labels.js +96 -0
- package/dist/session/headless/project-artifacts.d.ts +124 -0
- package/dist/session/headless/project-artifacts.js +271 -0
- package/dist/session/headless/project-content-labels.d.ts +88 -0
- package/dist/session/headless/project-content-labels.js +152 -0
- package/dist/session/headless/project-labels.d.ts +123 -0
- package/dist/session/headless/project-labels.js +128 -0
- package/dist/session/headless/project-sessions.d.ts +37 -0
- package/dist/session/headless/project-sessions.js +57 -0
- package/dist/session/headless/project-usage-labels.d.ts +74 -0
- package/dist/session/headless/project-usage-labels.js +81 -0
- package/dist/session/headless/project-usage.d.ts +65 -0
- package/dist/session/headless/project-usage.js +92 -0
- package/dist/session/headless/projects.d.ts +158 -0
- package/dist/session/headless/projects.js +301 -0
- package/dist/session/headless/pushed-once.d.ts +22 -0
- package/dist/session/headless/pushed-once.js +28 -0
- package/dist/session/headless/queue.js +2 -1
- package/dist/session/headless/typing.d.ts +20 -1
- package/dist/session/headless/typing.js +58 -3
- package/dist/session/home-block-parts.d.ts +40 -0
- package/dist/session/home-block-parts.js +46 -0
- package/dist/session/index.d.ts +17 -4
- package/dist/session/index.js +16 -3
- package/dist/session/modal-shell.d.ts +1 -1
- package/dist/session/modal-shell.js +1 -1
- package/dist/session/project-artifact-parts.d.ts +59 -0
- package/dist/session/project-artifact-parts.js +222 -0
- package/dist/session/project-content-parts.d.ts +176 -0
- package/dist/session/project-content-parts.js +546 -0
- package/dist/session/project-files.d.ts +48 -0
- package/dist/session/project-files.js +54 -0
- package/dist/session/project-folder-actions.d.ts +11 -0
- package/dist/session/project-folder-actions.js +39 -0
- package/dist/session/project-mcp-add.d.ts +23 -0
- package/dist/session/project-mcp-add.js +107 -0
- package/dist/session/project-record-document.d.ts +48 -0
- package/dist/session/project-record-document.js +225 -0
- package/dist/session/project-settings-parts.d.ts +69 -0
- package/dist/session/project-settings-parts.js +90 -0
- package/dist/session/share-people.d.ts +222 -0
- package/dist/session/share-people.js +457 -0
- package/dist/session/testing/contract.d.ts +67 -8
- package/dist/session/testing/contract.js +343 -6
- package/dist/session/testing/index.d.ts +5 -2
- package/dist/session/testing/index.js +4 -1
- package/dist/session/testing/project-artifacts.contract.js +159 -0
- package/dist/session/testing/project-content.contract.d.ts +19 -0
- package/dist/session/testing/project-content.contract.js +221 -0
- package/dist/session/testing/project-sessions.contract.js +134 -0
- package/dist/session/use-folder-missing.d.ts +6 -0
- package/dist/session/use-folder-missing.js +31 -0
- package/dist/session/use-folder-project.d.ts +14 -0
- package/dist/session/use-folder-project.js +37 -0
- package/dist/session/use-home-projects.d.ts +55 -0
- package/dist/session/use-home-projects.js +154 -0
- package/dist/session/use-project-home-layout.d.ts +33 -0
- package/dist/session/use-project-home-layout.js +134 -0
- package/dist/session/use-project-home-on.d.ts +2 -0
- package/dist/session/use-project-home-on.js +14 -0
- package/dist/settings/SettingCard.d.ts +3 -1
- package/dist/settings/SettingCard.js +2 -1
- package/dist/settings/SettingDemo.d.ts +3 -1
- package/dist/settings/SettingDemo.js +4 -3
- package/dist/settings/SettingsShell.d.ts +2 -1
- package/dist/settings/SettingsShell.js +55 -43
- package/dist/settings/headless/index.d.ts +2 -1
- package/dist/settings/headless/index.js +2 -1
- package/dist/settings/headless/mcp-requirement.d.ts +93 -0
- package/dist/settings/headless/mcp-requirement.js +117 -0
- package/dist/settings/headless/mcp.d.ts +2 -0
- package/dist/settings/headless/mcp.js +3 -2
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +13 -12
- package/dist/settings/section.d.ts +9 -0
- package/dist/settings/section.js +12 -1
- package/dist/settings/sections/editor/labels.js +1 -1
- package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +6 -2
- package/dist/settings/sections/extensions/ExtensionConfigRows.js +10 -1
- package/dist/settings/sections/extensions/ExtensionOptionsSection.js +1 -0
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +6 -3
- package/dist/settings/sections/extensions/ExtensionsSection.js +24 -3
- package/dist/settings/sections/extensions/McpRequirementRow.d.ts +45 -0
- package/dist/settings/sections/extensions/McpRequirementRow.js +298 -0
- package/dist/settings/sections/extensions/labels.d.ts +4 -0
- package/dist/settings/sections/extensions/labels.js +4 -0
- package/dist/settings/sections/extensions/options-labels.d.ts +39 -0
- package/dist/settings/sections/extensions/options-labels.js +48 -1
- package/dist/settings/sections/extensions/use-mcp-setup.d.ts +6 -0
- package/dist/settings/sections/extensions/use-mcp-setup.js +41 -0
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +3 -0
- package/dist/settings/sections/index.d.ts +4 -3
- package/dist/settings/sections/index.js +4 -3
- package/dist/settings/sections/instructions/InstructionsSection.d.ts +69 -1
- package/dist/settings/sections/instructions/InstructionsSection.js +181 -109
- package/dist/settings/sections/mcp/McpAddForm.d.ts +9 -2
- package/dist/settings/sections/mcp/McpAddForm.js +15 -7
- package/dist/settings/sections/mcp/McpSection.js +3 -5
- package/dist/settings/sections/mcp/McpServerRow.js +7 -47
- package/dist/settings/sections/mcp/McpSignIn.d.ts +38 -0
- package/dist/settings/sections/mcp/McpSignIn.js +72 -0
- package/dist/settings/sections/mcp/labels.js +1 -1
- package/dist/settings/sections/models/AgentDefaults.d.ts +12 -4
- package/dist/settings/sections/models/AgentDefaults.js +102 -70
- package/dist/settings/sections/models/ModelPickField.d.ts +10 -1
- package/dist/settings/sections/models/ModelPickField.js +87 -39
- package/dist/settings/sections/models/labels.d.ts +8 -0
- package/dist/settings/sections/models/labels.js +8 -0
- package/dist/settings/sections/performance/labels.js +2 -2
- package/dist/settings/sections/providers/ServerSignIn.d.ts +6 -1
- package/dist/settings/sections/providers/ServerSignIn.js +66 -61
- package/dist/settings/sections/skills/SkillList.d.ts +45 -0
- package/dist/settings/sections/skills/SkillList.js +58 -40
- package/dist/settings/server-app.d.ts +2 -0
- package/dist/settings/server-app.js +16 -4
- package/dist/styles.css +170 -34
- package/dist/theme/runtime-icons.js +7 -3
- package/dist/workspace/PanelContentView.js +1 -1
- package/package.json +26 -2
- package/src/styles/app.css +6 -3
- package/src/styles/palette.css +15 -19
- package/src/styles/primitives.css +3 -1
- package/src/styles/transcript.css +61 -0
- package/dist/dist/index-ttmMvjgM.d.ts +0 -1
- package/dist/dist/sandbox-CSUihARm.d.ts +0 -2
- package/dist/machines/PersonalLayerPanel.d.ts +0 -32
- package/dist/machines/PersonalLayerPanel.js +0 -360
- package/dist/machines/headless/layer.d.ts +0 -64
- package/dist/machines/headless/layer.js +0 -56
- /package/dist/dist/{execution-failure-SREfl-EZ.d.ts → execution-failure-_L2r_Qd-.d.ts} +0 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
// src/channels/headless/labels.ts
|
|
2
|
+
/** The default English strings of the channels components. */
|
|
3
|
+
const DEFAULT_CHANNELS_LABELS = {
|
|
4
|
+
channelsCancel: "Cancel",
|
|
5
|
+
channelsSave: "Save",
|
|
6
|
+
channelsDone: "Done",
|
|
7
|
+
channelsRetry: "Retry",
|
|
8
|
+
channelsRemove: "Remove",
|
|
9
|
+
channelsEdit: "Edit",
|
|
10
|
+
channelsMore: (name) => `More for ${name}`,
|
|
11
|
+
channelsSearchConnections: "Search connections",
|
|
12
|
+
channelsSearchChannels: "Search channels",
|
|
13
|
+
channelsSearchNone: "Nothing matches.",
|
|
14
|
+
/** A failure, worded by its kind. What the host said goes under Details. */
|
|
15
|
+
channelsFailed: (error) => ({
|
|
16
|
+
refused: "You don't have permission to do that.",
|
|
17
|
+
unavailable: "Channels aren't running here.",
|
|
18
|
+
failed: "That didn't work. Try again."
|
|
19
|
+
})[error.kind],
|
|
20
|
+
channelsUnavailableHint: "On this computer, channels run in the background service. Turn it on in Settings › Advanced.",
|
|
21
|
+
channelsConnections: "Connections",
|
|
22
|
+
channelsNoConnections: "Nothing connected yet",
|
|
23
|
+
channelsNoConnectionsHint: "Connect a Slack workspace once. Each project then picks the channels it answers in.",
|
|
24
|
+
channelsAdminsOnly: "Only an admin of this server can connect Slack or GitHub.",
|
|
25
|
+
channelsLoadFailed: "Couldn't read the connections.",
|
|
26
|
+
channelsAddSlack: "Connect Slack",
|
|
27
|
+
channelsAddGithub: "Connect GitHub",
|
|
28
|
+
channelsGithubNeedsHttps: "To connect GitHub, this server needs a public address that GitHub can reach (ZIDANE_SERVER_PUBLIC_URL).",
|
|
29
|
+
channelsProvider: (provider) => provider === "slack" ? "Slack" : "GitHub",
|
|
30
|
+
channelsHealth: (health) => ({
|
|
31
|
+
connected: "Connected",
|
|
32
|
+
starting: "Starting",
|
|
33
|
+
degraded: "Having trouble",
|
|
34
|
+
failed: "Failed",
|
|
35
|
+
stopped: "Stopped",
|
|
36
|
+
pending: "Setup not finished",
|
|
37
|
+
disabled: "Off"
|
|
38
|
+
})[health],
|
|
39
|
+
channelsSince: (when) => `since ${when}`,
|
|
40
|
+
channelsFor: (duration) => `for ${duration}`,
|
|
41
|
+
channelsConnectionTrouble: (provider) => `${provider === "slack" ? "Slack" : "GitHub"} reported a problem.`,
|
|
42
|
+
channelsSharedAll: "All projects",
|
|
43
|
+
channelsSharedSome: (count) => count === 1 ? "1 project" : `${count} projects`,
|
|
44
|
+
channelsContinueSetup: "Finish setup",
|
|
45
|
+
channelsShare: "Share with projects",
|
|
46
|
+
channelsDisable: "Turn off",
|
|
47
|
+
channelsEnable: "Turn on",
|
|
48
|
+
channelsShowChannels: "Show its Slack channels",
|
|
49
|
+
channelsHideChannels: "Hide its Slack channels",
|
|
50
|
+
channelsInChannels: "The app is in these channels",
|
|
51
|
+
channelsInNoChannels: "Not in any channel yet. Invite the app to a channel in Slack.",
|
|
52
|
+
channelsRemoveTitle: (name) => `Remove ${name}?`,
|
|
53
|
+
channelsRemoveMessage: "Its saved secrets are deleted, and projects stop answering through it.",
|
|
54
|
+
channelsRemoveForceTitle: "Projects still answer through it",
|
|
55
|
+
channelsRemoveForceMessage: "Remove it anyway? Their channels stop answering until someone picks another connection for them.",
|
|
56
|
+
channelsRemoveForce: "Remove anyway",
|
|
57
|
+
channelsSetupSlackTitle: "Connect Slack",
|
|
58
|
+
channelsSetupGithubTitle: "Connect GitHub",
|
|
59
|
+
channelsName: "Name",
|
|
60
|
+
channelsNameHint: "A short name for this connection. Letters, digits, - and _.",
|
|
61
|
+
channelsNeedName: "Name the connection first.",
|
|
62
|
+
channelsNamePlaceholder: "acme",
|
|
63
|
+
channelsTransport: "How Slack reaches it",
|
|
64
|
+
channelsTransportSocket: "Socket Mode",
|
|
65
|
+
channelsTransportSocketHint: "No public address needed. Works on a laptop.",
|
|
66
|
+
channelsTransportHttp: "HTTPS",
|
|
67
|
+
channelsTransportHttpHint: "Slack calls this server's public address.",
|
|
68
|
+
channelsTransportSocketOnly: "The app uses Socket Mode: no public address needed.",
|
|
69
|
+
channelsStepCreate: "Create the app",
|
|
70
|
+
channelsStepCredentials: "Paste the credentials",
|
|
71
|
+
channelsStepInstall: "Install in Slack",
|
|
72
|
+
channelsStepOf: (step, total, name) => `Step ${step} of ${total}: ${name}`,
|
|
73
|
+
channelsStepGithub: "Finish on GitHub",
|
|
74
|
+
channelsSteps: "Setup steps",
|
|
75
|
+
channelsCreateSlackApp: "Create Slack app",
|
|
76
|
+
channelsCreateSlackHint: "Slack opens in a new tab with the app's settings filled in. Pick your workspace, create the app, then come back here.",
|
|
77
|
+
channelsCredentialsHint: "Copy them from the app's Basic Information page in Slack. They are stored here and never shown again.",
|
|
78
|
+
channelsAppId: "App ID",
|
|
79
|
+
channelsClientId: "Client ID",
|
|
80
|
+
channelsClientSecret: "Client secret",
|
|
81
|
+
channelsSigningSecret: "Signing secret",
|
|
82
|
+
channelsAppToken: "App-level token",
|
|
83
|
+
channelsAppTokenHint: "Starts with xapp-. Make one on the same page, under App-Level Tokens, with the connections:write scope.",
|
|
84
|
+
channelsBotToken: "Bot token (optional)",
|
|
85
|
+
channelsBotTokenHint: "Starts with xoxb-. Only if you already installed the app from Slack's own page.",
|
|
86
|
+
channelsYourSlackId: "Your Slack member ID (optional)",
|
|
87
|
+
channelsYourSlackIdHint: "In Slack, open your profile, choose ⋯, then Copy member ID. Messages from this ID count as yours. Everyone else counts as a guest.",
|
|
88
|
+
channelsYourSlackIdInvalid: "A member ID starts with U or W, like U012AB3CD.",
|
|
89
|
+
channelsSaveCredentials: "Save credentials",
|
|
90
|
+
channelsNeedCredentials: "Fill in every field that isn't optional.",
|
|
91
|
+
channelsInstall: "Install in Slack",
|
|
92
|
+
channelsInstallHint: "Slack opens in a new tab and asks you to allow the app in your workspace. Then come back here.",
|
|
93
|
+
channelsWaitingSlack: "Waiting for Slack…",
|
|
94
|
+
channelsWaitingGithub: "Waiting for GitHub…",
|
|
95
|
+
channelsCreateGithubApp: "Create GitHub App",
|
|
96
|
+
channelsGithubHint: "GitHub opens in a new tab with the App's settings filled in. Create it, install it on your repositories, then come back here.",
|
|
97
|
+
channelsGithubOrg: "Organization (optional)",
|
|
98
|
+
channelsGithubOrgHint: "Leave empty to create the App on your own account.",
|
|
99
|
+
channelsReady: (name) => `${name} is connected.`,
|
|
100
|
+
channelsReadyTeam: (name, team) => `${name} is connected to ${team}.`,
|
|
101
|
+
channelsReadyShareHint: "Every project can use it. To choose fewer, use Share with projects on its row.",
|
|
102
|
+
channelsReadyNext: "Next, open a project's settings and add a channel there.",
|
|
103
|
+
channelsShareTitle: (name) => `Share ${name}`,
|
|
104
|
+
channelsShareAll: "All projects",
|
|
105
|
+
channelsShareChosen: "Chosen projects",
|
|
106
|
+
channelsShareNone: "No project to choose.",
|
|
107
|
+
channelsSection: "Channels",
|
|
108
|
+
channelsSectionHint: "Where this project answers: a Slack channel, direct messages, mentions, or a GitHub repository.",
|
|
109
|
+
channelsBindingsLoadFailed: "Couldn't read this project's channels.",
|
|
110
|
+
channelsNoBindings: "This project doesn't answer anywhere yet.",
|
|
111
|
+
channelsNoConnectionsShared: "No connection to Slack or GitHub yet",
|
|
112
|
+
channelsNoConnectionsSharedHint: "Ask an admin to connect one in Settings › Channels and share it with this project.",
|
|
113
|
+
channelsAddBinding: "Add a channel",
|
|
114
|
+
channelsMatch: (kind, value) => ({
|
|
115
|
+
channel: `#${value ?? ""}`,
|
|
116
|
+
dm: "Direct messages",
|
|
117
|
+
mentions: "Mentions in other channels",
|
|
118
|
+
repo: value ?? ""
|
|
119
|
+
})[kind],
|
|
120
|
+
channelsThrough: (name) => `through ${name}`,
|
|
121
|
+
channelsDraft: "Needs a connection",
|
|
122
|
+
channelsDraftHint: "Made on another computer. Pick a connection here to use it.",
|
|
123
|
+
channelsRowMembers: (access) => `Members: ${access}`,
|
|
124
|
+
channelsRowGuests: (access) => `Everyone else: ${access}`,
|
|
125
|
+
channelsPickConnection: "Pick a connection",
|
|
126
|
+
channelsBindingOn: (what) => `Answer in ${what}`,
|
|
127
|
+
channelsTestAsMember: "Test as member",
|
|
128
|
+
channelsTestAsGuest: "Test as guest",
|
|
129
|
+
channelsTestAsGuestOff: "Test as guest (guests are ignored here)",
|
|
130
|
+
channelsTestFailed: "Couldn't open the test session.",
|
|
131
|
+
channelsRemoveBindingTitle: (what) => `Stop answering in ${what}?`,
|
|
132
|
+
channelsRemoveBindingMessage: "Threads already started keep their sessions.",
|
|
133
|
+
channelsReadOnly: "Only the project's owners and maintainers can change its channels.",
|
|
134
|
+
channelsEditorNew: "Add a channel",
|
|
135
|
+
channelsEditorEdit: "Channel settings",
|
|
136
|
+
channelsConnection: "Connection",
|
|
137
|
+
channelsWhat: "Where it answers",
|
|
138
|
+
channelsWhatKind: (kind) => ({
|
|
139
|
+
channel: "Slack channel",
|
|
140
|
+
dm: "Direct messages",
|
|
141
|
+
mentions: "Mentions",
|
|
142
|
+
repo: "Repository"
|
|
143
|
+
})[kind],
|
|
144
|
+
channelsWhatHint: (kind) => ({
|
|
145
|
+
channel: "",
|
|
146
|
+
dm: "People write to the app in a direct message.",
|
|
147
|
+
mentions: "People @mention the app in a channel that has no project of its own.",
|
|
148
|
+
repo: ""
|
|
149
|
+
})[kind],
|
|
150
|
+
channelsChannel: "Channel",
|
|
151
|
+
channelsChannelPick: "Choose a channel",
|
|
152
|
+
channelsChannelBound: (name) => `#${name} (taken)`,
|
|
153
|
+
channelsChannelPrivate: (name) => `#${name} (private)`,
|
|
154
|
+
channelsChannelId: "Channel ID",
|
|
155
|
+
channelsChannelIdHint: "Invite the app to the channel in Slack, then open this again. Or paste the channel's ID: it starts with C.",
|
|
156
|
+
channelsRepo: "Repository",
|
|
157
|
+
channelsRepoPlaceholder: "owner/name",
|
|
158
|
+
channelsRuns: "How it runs",
|
|
159
|
+
channelsProfile: "Profile",
|
|
160
|
+
channelsProfileDefault: "The project's own agent",
|
|
161
|
+
channelsEnvironment: "Where sessions run",
|
|
162
|
+
channelsEnvironmentWorktree: "Own copy",
|
|
163
|
+
channelsEnvironmentLocal: "Project folder",
|
|
164
|
+
channelsEnvironmentWorktreeHint: "Each conversation works in its own copy of the project (a git worktree). The project's folder must be a git repository.",
|
|
165
|
+
channelsEnvironmentLocalHint: "Every conversation works in the project's folder itself.",
|
|
166
|
+
channelsAccess: "Who can do what",
|
|
167
|
+
channelsAccessFor: (who) => who === "member" ? "Project members" : "Everyone else",
|
|
168
|
+
channelsAccessOwners: "Owners and maintainers always get full access. They also answer the agent's requests for approval.",
|
|
169
|
+
channelsAccessChoice: (choice) => ({
|
|
170
|
+
none: "Ignored",
|
|
171
|
+
readonly: "Read only",
|
|
172
|
+
contained: "Contained",
|
|
173
|
+
full: "Full",
|
|
174
|
+
custom: "Custom (set in a file)"
|
|
175
|
+
})[choice],
|
|
176
|
+
channelsAccessExplain: (choice) => ({
|
|
177
|
+
none: "Their messages get no answer.",
|
|
178
|
+
readonly: "The agent reads the project and answers. It changes nothing.",
|
|
179
|
+
contained: "The agent works in its own copy of the project and asks a maintainer before risky steps.",
|
|
180
|
+
full: "The agent runs anything the project can, without asking.",
|
|
181
|
+
custom: "Rules from the project's channels file. Edit them there."
|
|
182
|
+
})[choice],
|
|
183
|
+
channelsRiskGuest: "Anyone in the channel counts as a guest, including people outside your organization.",
|
|
184
|
+
channelsRiskFull: "Full access runs commands and changes files without a maintainer's approval.",
|
|
185
|
+
channelsRiskApprovalsOff: "These rules turn approvals off.",
|
|
186
|
+
channelsLimits: "Limits",
|
|
187
|
+
channelsConcurrent: "Runs at once",
|
|
188
|
+
channelsConcurrentHint: "Default 2.",
|
|
189
|
+
channelsPerMember: "Runs per member per hour",
|
|
190
|
+
channelsPerMemberHint: "Default 10. Owners are never throttled.",
|
|
191
|
+
channelsLimitInvalid: "A limit is a whole number above 0.",
|
|
192
|
+
channelsIdentity: "How it looks in Slack",
|
|
193
|
+
channelsIdentityName: "Name",
|
|
194
|
+
channelsIdentityIcon: "Icon URL",
|
|
195
|
+
channelsIdentityIconHint: "An https link to a picture. Leave it empty to use the app's icon.",
|
|
196
|
+
channelsIdentityIconInvalid: "Slack shows only https pictures.",
|
|
197
|
+
channelsPreview: "How posts look in Slack",
|
|
198
|
+
channelsPreviewText: "On it. I'll reply in this thread when it's done.",
|
|
199
|
+
channelsPreviewApp: "APP",
|
|
200
|
+
channelsPreviewNow: "now",
|
|
201
|
+
channelsLock: "Project only",
|
|
202
|
+
channelsLockHint: "Sessions take only this project's instructions, skills and tools, never yours or the server's.",
|
|
203
|
+
channelsLockOff: "People in the channel can use what the project inherits from your setup and the server's.",
|
|
204
|
+
channelsBudget: "Daily budget",
|
|
205
|
+
channelsBudgetHint: "US dollars per day for this channel. Leave it empty to use only the project's budgets.",
|
|
206
|
+
channelsBudgetInvalid: "A budget is an amount above 0.",
|
|
207
|
+
channelsBudgetPlaceholder: "No limit",
|
|
208
|
+
channelsEnabled: "Answer here",
|
|
209
|
+
channelsEnabledHint: "Off keeps these settings and stops answering.",
|
|
210
|
+
channelsSaveFailed: "Couldn't save the channel.",
|
|
211
|
+
channelsMoreOptions: "More options",
|
|
212
|
+
channelsFewerOptions: "Fewer options",
|
|
213
|
+
channelsNeedChannel: "Choose where it answers first.",
|
|
214
|
+
channelsReadiness: "Readiness",
|
|
215
|
+
channelsReadinessLoadFailed: "Couldn't check the project.",
|
|
216
|
+
channelsReadinessReady: "Ready to answer.",
|
|
217
|
+
channelsReadinessCount: (severity, count) => severity === "blocker" ? `${count} to fix` : severity === "warning" ? `${count} ${count === 1 ? "warning" : "warnings"}` : `${count} ${count === 1 ? "tip" : "tips"}`,
|
|
218
|
+
channelsSeverity: (severity) => ({
|
|
219
|
+
blocker: "Must fix",
|
|
220
|
+
warning: "Warning",
|
|
221
|
+
info: "Tip"
|
|
222
|
+
})[severity],
|
|
223
|
+
channelsFixFailed: "The fix didn't work.",
|
|
224
|
+
channelsGateTitle: "Before it answers",
|
|
225
|
+
channelsGateHint: "Fix these, or go on without them.",
|
|
226
|
+
channelsGateAcknowledge: "Go on without it",
|
|
227
|
+
channelsGateEnable: "Turn on",
|
|
228
|
+
channelsGateLeft: (count) => count === 1 ? "Fix or skip 1 item first." : `Fix or skip ${count} items first.`,
|
|
229
|
+
channelsHeld: "Held replies",
|
|
230
|
+
channelsHeldHint: "These replies look like they contain a password, a key or a token, so they were not posted. Each secret shows only its first characters here.",
|
|
231
|
+
channelsHeldLoadFailed: "Couldn't read the held replies.",
|
|
232
|
+
channelsHeldFinding: (kind) => ({
|
|
233
|
+
"token": "a token",
|
|
234
|
+
"jwt": "a sign-in token",
|
|
235
|
+
"private-key": "a private key",
|
|
236
|
+
"aws-key": "an AWS key",
|
|
237
|
+
"secret-assignment": "a password or secret"
|
|
238
|
+
})[kind],
|
|
239
|
+
channelsHeldWhy: (findings) => `Looks like it contains ${findings.length < 2 ? findings.join("") : `${findings.slice(0, -1).join(", ")} and ${findings.at(-1)}`}.`,
|
|
240
|
+
channelsAgo: (duration) => `${duration} ago`,
|
|
241
|
+
channelsHeldSendRedacted: "Send with secrets hidden",
|
|
242
|
+
channelsHeldSendAsIs: "Send as written",
|
|
243
|
+
channelsHeldDiscard: "Don't send",
|
|
244
|
+
channelsHeldAsIsTitle: "Send it as written?",
|
|
245
|
+
channelsHeldAsIsMessage: "Everyone in the conversation will see the parts that look like secrets.",
|
|
246
|
+
channelsHeldDiscardTitle: "Don't send this reply?",
|
|
247
|
+
channelsHeldDiscardMessage: "It is deleted and never posted.",
|
|
248
|
+
channelsAlerts: "Alerts",
|
|
249
|
+
channelsAlertsLoadFailed: "Couldn't read your alerts.",
|
|
250
|
+
channelsAlertIcon: "Alert",
|
|
251
|
+
channelsTestBadge: "Test",
|
|
252
|
+
channelsTestAs: (as) => as === "member" ? "As a project member" : "As a guest",
|
|
253
|
+
channelsTestHint: "Only you see this session. It follows the channel's rules, and its cost doesn't count toward the channel's budget.",
|
|
254
|
+
channelsDefaults: "Your default project",
|
|
255
|
+
channelsDefaultsHint: "Where your direct messages and mentions go when the channel has no project of its own.",
|
|
256
|
+
channelsDefaultAsk: "Ask me each time",
|
|
257
|
+
channelsDefaultFor: (name) => `Default project for ${name}`,
|
|
258
|
+
channelsNoDefaults: "None of your projects answers in Slack yet."
|
|
259
|
+
};
|
|
260
|
+
export { DEFAULT_CHANNELS_LABELS };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChannelsBackend, ChannelsError, ChannelsHost } from "./host.js";
|
|
2
|
+
/** A {@link ChannelsHost} with what its adapter feeds it. */
|
|
3
|
+
export interface ChannelsHostState extends ChannelsHost {
|
|
4
|
+
/** A signal of the host: reads again what it touches. Other kinds are ignored. */
|
|
5
|
+
apply: (signal: {
|
|
6
|
+
kind: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
/** Reads again everything read so far (a new connection). */
|
|
9
|
+
wake: () => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The default wording of a failure: `failed`, with its message.
|
|
13
|
+
*
|
|
14
|
+
* @param err - What a call rejected with.
|
|
15
|
+
*/
|
|
16
|
+
export declare function channelsFailure(err: unknown): ChannelsError;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a {@link ChannelsHostState} over a backend. A member whose method the backend does not offer is left out.
|
|
19
|
+
*
|
|
20
|
+
* @param backend - The host's channels methods.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createChannelsHost(backend: ChannelsBackend): ChannelsHostState;
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { writable } from "../../chat/headless/store.js";
|
|
2
|
+
import { createKeyedState } from "../../session/headless/keyed.js";
|
|
3
|
+
import { ChannelsActionError } from "./host.js";
|
|
4
|
+
// src/channels/headless/state.ts
|
|
5
|
+
/**
|
|
6
|
+
* The default wording of a failure: `failed`, with its message.
|
|
7
|
+
*
|
|
8
|
+
* @param err - What a call rejected with.
|
|
9
|
+
*/
|
|
10
|
+
function channelsFailure(err) {
|
|
11
|
+
if (err instanceof ChannelsActionError) return err.error;
|
|
12
|
+
return {
|
|
13
|
+
kind: "failed",
|
|
14
|
+
detail: err instanceof Error ? err.message : String(err)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function keyedReads(read, classify) {
|
|
18
|
+
const values = createKeyedState(null);
|
|
19
|
+
const errors = createKeyedState(null);
|
|
20
|
+
const asked = /* @__PURE__ */ new Set();
|
|
21
|
+
const latest = /* @__PURE__ */ new Map();
|
|
22
|
+
let seq = 0;
|
|
23
|
+
const load = (key) => {
|
|
24
|
+
asked.add(key);
|
|
25
|
+
const mine = ++seq;
|
|
26
|
+
latest.set(key, mine);
|
|
27
|
+
return read(key).then((value) => {
|
|
28
|
+
if (latest.get(key) !== mine) return;
|
|
29
|
+
values.set(key, value);
|
|
30
|
+
errors.delete(key);
|
|
31
|
+
}, (err) => {
|
|
32
|
+
const error = classify(err);
|
|
33
|
+
if (latest.get(key) === mine) errors.set(key, error);
|
|
34
|
+
throw new ChannelsActionError(error);
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const quietly = (key) => void load(key).catch(() => void 0);
|
|
38
|
+
return {
|
|
39
|
+
values,
|
|
40
|
+
errors,
|
|
41
|
+
load,
|
|
42
|
+
ensure: (key) => {
|
|
43
|
+
if (!asked.has(key)) quietly(key);
|
|
44
|
+
},
|
|
45
|
+
put: (key, value) => {
|
|
46
|
+
latest.set(key, ++seq);
|
|
47
|
+
values.set(key, value);
|
|
48
|
+
errors.delete(key);
|
|
49
|
+
},
|
|
50
|
+
read: (key) => asked.has(key),
|
|
51
|
+
wake: () => {
|
|
52
|
+
for (const key of [...asked]) quietly(key);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const ONE = "";
|
|
57
|
+
const sortConnections = (list) => [...list].sort((a, b) => a.name.localeCompare(b.name));
|
|
58
|
+
function withConnection(list, connection) {
|
|
59
|
+
return sortConnections([...(list ?? []).filter((c) => c.id !== connection.id), connection]);
|
|
60
|
+
}
|
|
61
|
+
function withBinding(view, binding) {
|
|
62
|
+
const at = view.bindings.findIndex((b) => b.id === binding.id);
|
|
63
|
+
const bindings = at < 0 ? [...view.bindings, binding] : view.bindings.map((b, i) => i === at ? binding : b);
|
|
64
|
+
return {
|
|
65
|
+
...view,
|
|
66
|
+
bindings
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function connectionsPart({ backend, guard, classify }) {
|
|
70
|
+
const can = backend.can;
|
|
71
|
+
const status = writable({});
|
|
72
|
+
const reads = keyedReads(async () => {
|
|
73
|
+
const [list, states] = await Promise.all([backend.call("channels.connections.list", {}), can("channels.connections.status") ? backend.call("channels.connections.status", {}) : Promise.resolve([])]);
|
|
74
|
+
status.set((prev) => ({
|
|
75
|
+
...Object.fromEntries(states.map((s) => [s.connectionId, s])),
|
|
76
|
+
...prev
|
|
77
|
+
}));
|
|
78
|
+
return sortConnections(list);
|
|
79
|
+
}, classify);
|
|
80
|
+
const list = reads.values.readable(ONE);
|
|
81
|
+
const upsert = (connection) => {
|
|
82
|
+
reads.put(ONE, withConnection(reads.values.get(ONE) ?? null, connection));
|
|
83
|
+
return connection;
|
|
84
|
+
};
|
|
85
|
+
const connections = {
|
|
86
|
+
list,
|
|
87
|
+
error: reads.errors.readable(ONE),
|
|
88
|
+
status,
|
|
89
|
+
ensure: () => reads.ensure(ONE),
|
|
90
|
+
refresh: () => reads.load(ONE),
|
|
91
|
+
transports: backend.publicUrl ? ["socket", "http"] : ["socket"],
|
|
92
|
+
...can("channels.connections.create") ? { create: async (input) => upsert(await guard(() => backend.call("channels.connections.create", input))) } : {},
|
|
93
|
+
...can("channels.connections.update") ? { update: async (id, patch) => upsert(await guard(() => backend.call("channels.connections.update", {
|
|
94
|
+
id,
|
|
95
|
+
patch
|
|
96
|
+
}))) } : {},
|
|
97
|
+
...can("channels.connections.remove") ? { remove: async (id, force) => {
|
|
98
|
+
await guard(() => backend.call("channels.connections.remove", {
|
|
99
|
+
id,
|
|
100
|
+
...force ? { force } : {}
|
|
101
|
+
}));
|
|
102
|
+
reads.put(ONE, (reads.values.get(ONE) ?? []).filter((c) => c.id !== id));
|
|
103
|
+
} } : {},
|
|
104
|
+
...can("channels.connections.slackManifest") ? { slackManifest: (params) => guard(() => backend.call("channels.connections.slackManifest", params)) } : {},
|
|
105
|
+
...can("channels.connections.slackCredentials") ? { slackCredentials: async (params) => upsert(await guard(() => backend.call("channels.connections.slackCredentials", params))) } : {},
|
|
106
|
+
...can("channels.connections.slackInstall") ? { slackInstall: async (id) => (await guard(() => backend.call("channels.connections.slackInstall", { id }))).url } : {},
|
|
107
|
+
...can("channels.connections.githubManifest") ? { githubManifest: (id, organization) => guard(() => backend.call("channels.connections.githubManifest", {
|
|
108
|
+
id,
|
|
109
|
+
...organization ? { organization } : {}
|
|
110
|
+
})) } : {}
|
|
111
|
+
};
|
|
112
|
+
const setStatus = (signal) => {
|
|
113
|
+
const { kind: _kind, ...state } = signal;
|
|
114
|
+
status.set((prev) => ({
|
|
115
|
+
...prev,
|
|
116
|
+
[signal.connectionId]: state
|
|
117
|
+
}));
|
|
118
|
+
};
|
|
119
|
+
return {
|
|
120
|
+
connections,
|
|
121
|
+
reads,
|
|
122
|
+
setStatus
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function bindingsPart({ backend, guard, classify }) {
|
|
126
|
+
const can = backend.can;
|
|
127
|
+
const reads = keyedReads((id) => backend.call("channels.bindings.list", { id }), classify);
|
|
128
|
+
const upsert = (projectId, binding) => {
|
|
129
|
+
const view = reads.values.get(projectId);
|
|
130
|
+
if (view) reads.put(projectId, withBinding(view, binding));
|
|
131
|
+
return binding;
|
|
132
|
+
};
|
|
133
|
+
return {
|
|
134
|
+
bindings: {
|
|
135
|
+
view: (projectId) => reads.values.readable(projectId),
|
|
136
|
+
error: (projectId) => reads.errors.readable(projectId),
|
|
137
|
+
ensure: reads.ensure,
|
|
138
|
+
refresh: reads.load,
|
|
139
|
+
...can("channels.bindings.put") ? { put: async (id, binding) => upsert(id, await guard(() => backend.call("channels.bindings.put", {
|
|
140
|
+
id,
|
|
141
|
+
binding
|
|
142
|
+
}))) } : {},
|
|
143
|
+
...can("channels.bindings.remove") ? { remove: async (id, bindingId) => {
|
|
144
|
+
await guard(() => backend.call("channels.bindings.remove", {
|
|
145
|
+
id,
|
|
146
|
+
bindingId
|
|
147
|
+
}));
|
|
148
|
+
const view = reads.values.get(id);
|
|
149
|
+
if (view) reads.put(id, {
|
|
150
|
+
...view,
|
|
151
|
+
bindings: view.bindings.filter((b) => b.id !== bindingId)
|
|
152
|
+
});
|
|
153
|
+
} } : {},
|
|
154
|
+
...can("channels.bindings.enable") ? { enable: async (id, bindingId, enabled) => upsert(id, await guard(() => backend.call("channels.bindings.enable", {
|
|
155
|
+
id,
|
|
156
|
+
bindingId,
|
|
157
|
+
enabled
|
|
158
|
+
}))) } : {},
|
|
159
|
+
...can("channels.conversations") ? { conversations: (id, connectionId) => guard(() => backend.call("channels.conversations", {
|
|
160
|
+
id,
|
|
161
|
+
connectionId
|
|
162
|
+
})) } : {}
|
|
163
|
+
},
|
|
164
|
+
reads
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function readinessPart({ backend, guard, classify }) {
|
|
168
|
+
const reads = keyedReads((id) => backend.call("projects.readiness", { id }), classify);
|
|
169
|
+
const runFix = backend.runFix;
|
|
170
|
+
return {
|
|
171
|
+
readiness: {
|
|
172
|
+
items: (projectId) => reads.values.readable(projectId),
|
|
173
|
+
error: (projectId) => reads.errors.readable(projectId),
|
|
174
|
+
ensure: reads.ensure,
|
|
175
|
+
refresh: reads.load,
|
|
176
|
+
...runFix ? { runFix: async (projectId, fix) => {
|
|
177
|
+
await guard(() => runFix(fix.method, fix.params));
|
|
178
|
+
await reads.load(projectId);
|
|
179
|
+
} } : {}
|
|
180
|
+
},
|
|
181
|
+
reads
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function alertsPart({ backend, guard, classify }) {
|
|
185
|
+
const reads = keyedReads(() => backend.call("channels.alerts.list", {}), classify);
|
|
186
|
+
const runFix = backend.runFix;
|
|
187
|
+
const alerts = {
|
|
188
|
+
list: reads.values.readable(ONE),
|
|
189
|
+
error: reads.errors.readable(ONE),
|
|
190
|
+
ensure: () => reads.ensure(ONE),
|
|
191
|
+
refresh: () => reads.load(ONE),
|
|
192
|
+
...runFix ? { runFix: async (fix) => {
|
|
193
|
+
await guard(() => runFix(fix.method, fix.params));
|
|
194
|
+
await reads.load(ONE);
|
|
195
|
+
} } : {}
|
|
196
|
+
};
|
|
197
|
+
const apply = (signal) => {
|
|
198
|
+
if (!reads.read(ONE)) return;
|
|
199
|
+
const list = reads.values.get(ONE);
|
|
200
|
+
if (!list) {
|
|
201
|
+
reads.load(ONE).catch(() => void 0);
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
const rest = list.filter((a) => a.id !== signal.alert.id);
|
|
205
|
+
reads.put(ONE, signal.cleared ? rest : [...rest, signal.alert]);
|
|
206
|
+
};
|
|
207
|
+
return {
|
|
208
|
+
alerts,
|
|
209
|
+
reads,
|
|
210
|
+
apply
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Creates a {@link ChannelsHostState} over a backend. A member whose method the backend does not offer is left out.
|
|
215
|
+
*
|
|
216
|
+
* @param backend - The host's channels methods.
|
|
217
|
+
*/
|
|
218
|
+
function createChannelsHost(backend) {
|
|
219
|
+
const classify = (err) => err instanceof ChannelsActionError ? err.error : (backend.classify ?? channelsFailure)(err);
|
|
220
|
+
const guard = async (call) => {
|
|
221
|
+
try {
|
|
222
|
+
return await call();
|
|
223
|
+
} catch (err) {
|
|
224
|
+
throw new ChannelsActionError(classify(err));
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
const parts = {
|
|
228
|
+
backend,
|
|
229
|
+
guard,
|
|
230
|
+
classify
|
|
231
|
+
};
|
|
232
|
+
const can = backend.can;
|
|
233
|
+
const conn = can("channels.connections.list") ? connectionsPart(parts) : void 0;
|
|
234
|
+
const bind = can("channels.bindings.list") ? bindingsPart(parts) : void 0;
|
|
235
|
+
const ready = can("projects.readiness") ? readinessPart(parts) : void 0;
|
|
236
|
+
const warn = can("channels.alerts.list") ? alertsPart(parts) : void 0;
|
|
237
|
+
const testSessions = writable({});
|
|
238
|
+
const defaultProjects = writable({});
|
|
239
|
+
return {
|
|
240
|
+
...conn ? { connections: conn.connections } : {},
|
|
241
|
+
...bind ? { bindings: bind.bindings } : {},
|
|
242
|
+
...ready ? { readiness: ready.readiness } : {},
|
|
243
|
+
...warn ? { alerts: warn.alerts } : {},
|
|
244
|
+
...can("channels.bindings.testAs") ? { testAs: async (projectId, bindingId, as, identity) => {
|
|
245
|
+
const { sessionId } = await guard(() => backend.call("channels.bindings.testAs", {
|
|
246
|
+
bindingId,
|
|
247
|
+
as
|
|
248
|
+
}));
|
|
249
|
+
const session = {
|
|
250
|
+
sessionId,
|
|
251
|
+
projectId,
|
|
252
|
+
bindingId,
|
|
253
|
+
as,
|
|
254
|
+
identity
|
|
255
|
+
};
|
|
256
|
+
testSessions.set((prev) => ({
|
|
257
|
+
...prev,
|
|
258
|
+
[sessionId]: session
|
|
259
|
+
}));
|
|
260
|
+
return session;
|
|
261
|
+
} } : {},
|
|
262
|
+
...can("channels.held.list") && can("channels.held.release") ? { held: {
|
|
263
|
+
list: (projectId) => guard(() => backend.call("channels.held.list", { id: projectId })),
|
|
264
|
+
release: (projectId, heldId, as) => guard(() => backend.call("channels.held.release", {
|
|
265
|
+
id: projectId,
|
|
266
|
+
heldId,
|
|
267
|
+
as
|
|
268
|
+
}))
|
|
269
|
+
} } : {},
|
|
270
|
+
testSessions,
|
|
271
|
+
...can("channels.defaultProject") ? { setDefaultProject: async (connectionId, projectId) => {
|
|
272
|
+
await guard(() => backend.call("channels.defaultProject", {
|
|
273
|
+
connectionId,
|
|
274
|
+
projectId
|
|
275
|
+
}));
|
|
276
|
+
defaultProjects.set((prev) => ({
|
|
277
|
+
...prev,
|
|
278
|
+
[connectionId]: projectId
|
|
279
|
+
}));
|
|
280
|
+
} } : {},
|
|
281
|
+
defaultProjects,
|
|
282
|
+
apply(raw) {
|
|
283
|
+
const signal = raw;
|
|
284
|
+
if (signal.kind === "channels:status") conn?.setStatus(signal);
|
|
285
|
+
else if (signal.kind === "channels:alert") warn?.apply(signal);
|
|
286
|
+
else if (signal.kind === "projects:readiness") {
|
|
287
|
+
if (ready?.reads.read(signal.projectId)) ready.reads.load(signal.projectId).catch(() => void 0);
|
|
288
|
+
} else if (signal.kind === "channels:changed") {
|
|
289
|
+
if (signal.projectId === void 0) {
|
|
290
|
+
if (conn?.reads.read(ONE)) conn.reads.load(ONE).catch(() => void 0);
|
|
291
|
+
bind?.reads.wake();
|
|
292
|
+
} else if (bind?.reads.read(signal.projectId)) bind.reads.load(signal.projectId).catch(() => void 0);
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
wake() {
|
|
296
|
+
conn?.reads.wake();
|
|
297
|
+
bind?.reads.wake();
|
|
298
|
+
ready?.reads.wake();
|
|
299
|
+
warn?.reads.wake();
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
export { channelsFailure, createChannelsHost };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `zidane-ui/channels`: the channels area (docs/CHANNELS.md). Settings › Channels (`ChannelsSettingsSection`: the
|
|
3
|
+
* host's connections, live, and adding a Slack app or a GitHub App with `ConnectionSetupDialog`), Project
|
|
4
|
+
* settings › Channels (`ProjectChannelsSection`, `BindingEditorDialog`, `HeldRepliesList`), a project's readiness checklist
|
|
5
|
+
* (`ReadinessList`, `ProjectReadinessCard`, `ReadinessGate`), the test sessions' badge (`TestSessionBanner`) and
|
|
6
|
+
* each person's default project per connection (`ChannelDefaultsSection`) and their open alerts (`ChannelAlertsList`), over
|
|
7
|
+
* `ChannelsProvider`.
|
|
8
|
+
*/
|
|
9
|
+
import { BindingEditorDialog, BindingEditorDialogProps } from "./BindingEditorDialog.js";
|
|
10
|
+
import { ChannelAlertsList, ChannelAlertsListProps } from "./ChannelAlertsList.js";
|
|
11
|
+
import { ChannelDefaultsSection, ChannelDefaultsSectionProps } from "./ChannelDefaultsSection.js";
|
|
12
|
+
import { useChannelsHost } from "./context.js";
|
|
13
|
+
import { ChannelsFailure, ChannelsFailureProps, SlackMessagePreview, SlackMessagePreviewProps } from "./channels-parts.js";
|
|
14
|
+
import { ChannelsProvider, ChannelsProviderProps, useChannelsLabels } from "./ChannelsProvider.js";
|
|
15
|
+
import { ChannelsSettingsSection, ChannelsSettingsSectionProps, ShareConnectionDialog, ShareConnectionDialogProps } from "./ChannelsSettingsSection.js";
|
|
16
|
+
import { ConnectionSetupDialog, ConnectionSetupDialogProps } from "./ConnectionSetupDialog.js";
|
|
17
|
+
import { HeldRepliesList, HeldRepliesListProps } from "./HeldRepliesList.js";
|
|
18
|
+
import { ProjectChannelsSection, ProjectChannelsSectionProps, ReadinessGateDialog, ReadinessGateDialogProps } from "./ProjectChannelsSection.js";
|
|
19
|
+
import { ProjectReadinessCard, ProjectReadinessCardProps, ReadinessFixButton, ReadinessFixButtonProps, ReadinessGate, ReadinessGateProps, ReadinessList, ReadinessListProps, ReadinessRow } from "./ReadinessChecklist.js";
|
|
20
|
+
import { TestSessionBanner, TestSessionBannerProps } from "./TestSessionBanner.js";
|
|
21
|
+
export { BindingEditorDialog, BindingEditorDialogProps, ChannelAlertsList, ChannelAlertsListProps, ChannelDefaultsSection, ChannelDefaultsSectionProps, ChannelsFailure, type ChannelsFailureProps, ChannelsProvider, ChannelsProviderProps, ChannelsSettingsSection, ChannelsSettingsSectionProps, ConnectionSetupDialog, ConnectionSetupDialogProps, HeldRepliesList, HeldRepliesListProps, ProjectChannelsSection, ProjectChannelsSectionProps, ProjectReadinessCard, ProjectReadinessCardProps, ReadinessFixButton, ReadinessFixButtonProps, ReadinessGate, ReadinessGateDialog, ReadinessGateDialogProps, ReadinessGateProps, ReadinessList, ReadinessListProps, ReadinessRow, ShareConnectionDialog, ShareConnectionDialogProps, SlackMessagePreview, type SlackMessagePreviewProps, TestSessionBanner, TestSessionBannerProps, useChannelsHost, useChannelsLabels };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useChannelsHost } from "./context.js";
|
|
2
|
+
import { BindingEditorDialog } from "./BindingEditorDialog.js";
|
|
3
|
+
import { ChannelAlertsList } from "./ChannelAlertsList.js";
|
|
4
|
+
import { ChannelDefaultsSection } from "./ChannelDefaultsSection.js";
|
|
5
|
+
import { ChannelsFailure, SlackMessagePreview } from "./channels-parts.js";
|
|
6
|
+
import { ChannelsProvider, useChannelsLabels } from "./ChannelsProvider.js";
|
|
7
|
+
import { ChannelsSettingsSection, ShareConnectionDialog } from "./ChannelsSettingsSection.js";
|
|
8
|
+
import { ConnectionSetupDialog } from "./ConnectionSetupDialog.js";
|
|
9
|
+
import { HeldRepliesList } from "./HeldRepliesList.js";
|
|
10
|
+
import { ProjectChannelsSection, ReadinessGateDialog } from "./ProjectChannelsSection.js";
|
|
11
|
+
import { ProjectReadinessCard, ReadinessFixButton, ReadinessGate, ReadinessList, ReadinessRow } from "./ReadinessChecklist.js";
|
|
12
|
+
import { TestSessionBanner } from "./TestSessionBanner.js";
|
|
13
|
+
export { BindingEditorDialog, ChannelAlertsList, ChannelDefaultsSection, ChannelsFailure, ChannelsProvider, ChannelsSettingsSection, ConnectionSetupDialog, HeldRepliesList, ProjectChannelsSection, ProjectReadinessCard, ReadinessFixButton, ReadinessGate, ReadinessGateDialog, ReadinessList, ReadinessRow, ShareConnectionDialog, SlackMessagePreview, TestSessionBanner, useChannelsHost, useChannelsLabels };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `ChannelsHost` contract: one suite every implementation runs (the fixture, zidane-server's adapter, the
|
|
3
|
+
* desktop app's IPC host). Each test builds the implementation over the contract's backend, the channels methods as
|
|
4
|
+
* zidane answers them (`createFixtureChannelsMethods`), routed through the implementation's own transport: its
|
|
5
|
+
* calls go to the backend's `call`, and the backend's signals come back the way the transport carries them.
|
|
6
|
+
*
|
|
7
|
+
* describeChannelsHostContract('server adapter', methods => ({ host: overFakeClient(methods) }), ['connections', …])
|
|
8
|
+
*
|
|
9
|
+
* The members the implementation leaves out must be absent; the cases that need them are skipped.
|
|
10
|
+
*/
|
|
11
|
+
import { ChannelsHost } from "../headless/host.js";
|
|
12
|
+
import { FixtureChannelsMethods } from "../headless/fixture-host.js";
|
|
13
|
+
import "./index.js";
|
|
14
|
+
/** A member of {@link ChannelsHost} an implementation may offer. */
|
|
15
|
+
export type ChannelsHostCapability = 'connections' | 'connections.create' | 'connections.update' | 'connections.remove' | 'connections.slack' | 'connections.github' | 'bindings' | 'bindings.put' | 'bindings.remove' | 'bindings.enable' | 'bindings.conversations' | 'readiness' | 'readiness.runFix' | 'testAs' | 'defaultProject' | 'alerts' | 'alerts.runFix';
|
|
16
|
+
/** Every capability, for an implementation that offers them all. */
|
|
17
|
+
export declare const CHANNELS_HOST_CAPABILITIES: readonly ChannelsHostCapability[];
|
|
18
|
+
/** Builds the implementation over the contract's backend. */
|
|
19
|
+
export type ChannelsHarness = (methods: FixtureChannelsMethods) => {
|
|
20
|
+
host: ChannelsHost;
|
|
21
|
+
} | Promise<{
|
|
22
|
+
host: ChannelsHost;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Declares the contract's cases.
|
|
26
|
+
*
|
|
27
|
+
* @param name - The implementation's name, for the suite's title.
|
|
28
|
+
* @param harness - Builds the implementation over a backend.
|
|
29
|
+
* @param capabilities - The members it offers.
|
|
30
|
+
*/
|
|
31
|
+
export declare function describeChannelsHostContract(name: string, harness: ChannelsHarness, capabilities: readonly ChannelsHostCapability[]): void;
|