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
package/dist/session/index.js
CHANGED
|
@@ -2,30 +2,43 @@ import { ArtifactRowChips, BADGE_ICONS, DiffFacts, badgeColorStyle, badgeToneCla
|
|
|
2
2
|
import { ArtifactsPanel } from "./ArtifactsPanel.js";
|
|
3
3
|
import { DiffFileTree } from "./DiffFileTree.js";
|
|
4
4
|
import { renderSessionModalShell, renderWideSessionModalShell } from "./modal-shell.js";
|
|
5
|
+
import { NewProjectDialog, useNewProject } from "./NewProjectDialog.js";
|
|
6
|
+
import { OpenProjectsButton, OpenProjectsDialog, useOpenProjects } from "./OpenProjectsDialog.js";
|
|
5
7
|
import { OpenSessionsButton, OpenSessionsDialog, useOpenSessions } from "./OpenSessionsDialog.js";
|
|
6
8
|
import { InboxAttention, QueueAttention, SecretsAttention } from "./PanelAttention.js";
|
|
7
9
|
import { PlanTracker, RecentPlans, planStateTone, useInboxPlans } from "./PlanTracker.js";
|
|
10
|
+
import { ProjectFilesProvider, useProjectFileOpener } from "./project-files.js";
|
|
8
11
|
import { ProjectHome } from "./ProjectHome.js";
|
|
12
|
+
import { ProjectBadge, ProjectName, projectIconOf, useFolderIcons, useSessionProject } from "./ProjectName.js";
|
|
13
|
+
import { ProjectPublishDialog, useProjectPublish } from "./ProjectPublishDialog.js";
|
|
14
|
+
import { ProjectSettingsDialog, useProjectSettings } from "./ProjectSettingsDialog.js";
|
|
15
|
+
import { ProjectShareDialog, useProjectShare } from "./ProjectShareDialog.js";
|
|
16
|
+
import { BudgetBar, ProjectSpendChip, ProjectUsageDialog, useProjectUsage } from "./ProjectUsage.js";
|
|
9
17
|
import { ProviderUsageProvider, useProviderUsage } from "./ProviderUsageProvider.js";
|
|
10
18
|
import { QueueTab } from "./QueueTab.js";
|
|
11
19
|
import { RemindersPanel } from "./RemindersPanel.js";
|
|
12
20
|
import { RunningWorkDialog } from "./RunningWorkDialog.js";
|
|
13
21
|
import { SecretsPanel } from "./SecretsPanel.js";
|
|
22
|
+
import { SessionAccessNotice, useSessionAccess } from "./SessionAccessNotice.js";
|
|
14
23
|
import { SessionCacheFacts, useSessionCacheReport } from "./SessionCacheFacts.js";
|
|
15
24
|
import { SessionDetailsDialog } from "./SessionDetailsDialog.js";
|
|
16
25
|
import { SessionHeader } from "./SessionHeader.js";
|
|
17
26
|
import { SessionPeopleStack } from "./SessionPeopleStack.js";
|
|
18
27
|
import { SessionPlaceMenu } from "./SessionPlaceMenu.js";
|
|
19
|
-
import { SessionProvider, useAllSchedules, useSchedulesStatus, useSessionArtifacts, useSessionHost, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets } from "./SessionProvider.js";
|
|
28
|
+
import { SessionProvider, useAllSchedules, useProjectList, useSchedulesStatus, useSessionArtifacts, useSessionHost, useSessionPlans, useSessionProjects, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets } from "./SessionProvider.js";
|
|
20
29
|
import { SessionShell } from "./SessionShell.js";
|
|
21
30
|
import { ShareSessionDialog, useShareSession } from "./ShareSessionDialog.js";
|
|
22
31
|
import { SideChat } from "./SideChat.js";
|
|
23
32
|
import { TODO_ROW_CLASS, TodoListView, TodoTally, isDoneTodo, todoGlyphTone } from "./TodoList.js";
|
|
24
33
|
import { TurnDetailsDialog } from "./TurnDetailsDialog.js";
|
|
25
34
|
import { TypingLine } from "./TypingLine.js";
|
|
26
|
-
import {
|
|
35
|
+
import { UsageSection } from "./UsageSection.js";
|
|
36
|
+
import { useFolderMissing } from "./use-folder-missing.js";
|
|
37
|
+
import { useFolderProject } from "./use-folder-project.js";
|
|
38
|
+
import { useHomeProjects } from "./use-home-projects.js";
|
|
39
|
+
import { useProjectHomeOn } from "./use-project-home-on.js";
|
|
27
40
|
import { useSessionActionError } from "./useSessionActionError.js";
|
|
28
41
|
import { useSessionLabels } from "./useSessionLabels.js";
|
|
29
42
|
import { useUsageSummary } from "./useUsageSummary.js";
|
|
30
43
|
import { WelcomeScreen } from "./WelcomeScreen.js";
|
|
31
|
-
export { ArtifactRowChips, ArtifactsPanel, BADGE_ICONS, DiffFacts, DiffFileTree, InboxAttention, OpenSessionsButton, OpenSessionsDialog, PlanTracker, ProjectHome, ProviderUsageProvider, QueueAttention, QueueTab, RecentPlans, RemindersPanel, RunningWorkDialog, SecretsAttention, SecretsPanel, SessionCacheFacts, SessionDetailsDialog, SessionHeader, SessionPeopleStack, SessionPlaceMenu, SessionProvider, SessionShell, ShareSessionDialog, SideChat, TODO_ROW_CLASS, TodoListView, TodoTally, TurnDetailsDialog, TypingLine,
|
|
44
|
+
export { ArtifactRowChips, ArtifactsPanel, BADGE_ICONS, BudgetBar, DiffFacts, DiffFileTree, InboxAttention, NewProjectDialog, OpenProjectsButton, OpenProjectsDialog, OpenSessionsButton, OpenSessionsDialog, PlanTracker, ProjectBadge, ProjectFilesProvider, ProjectHome, ProjectName, ProjectPublishDialog, ProjectSettingsDialog, ProjectShareDialog, ProjectSpendChip, ProjectUsageDialog, ProviderUsageProvider, QueueAttention, QueueTab, RecentPlans, RemindersPanel, RunningWorkDialog, SecretsAttention, SecretsPanel, SessionAccessNotice, SessionCacheFacts, SessionDetailsDialog, SessionHeader, SessionPeopleStack, SessionPlaceMenu, SessionProvider, SessionShell, ShareSessionDialog, SideChat, TODO_ROW_CLASS, TodoListView, TodoTally, TurnDetailsDialog, TypingLine, UsageSection, WelcomeScreen, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, projectIconOf, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useFolderIcons, useFolderMissing, useFolderProject, useHomeProjects, useInboxPlans, useNewProject, useOpenProjects, useOpenSessions, useProjectFileOpener, useProjectHomeOn, useProjectList, useProjectPublish, useProjectSettings, useProjectShare, useProjectUsage, useProviderUsage, useSchedulesStatus, useSessionAccess, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionProject, useSessionProjects, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useShareSession, useUsageSummary };
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
import { RenderSessionShell } from "./SessionShell.js";
|
|
7
7
|
/** A session dialog in the app's `ModalShell`, medium width. */
|
|
8
8
|
export declare const renderSessionModalShell: RenderSessionShell;
|
|
9
|
-
/** For the session details: a facts grid and the cache table need the room. */
|
|
9
|
+
/** For the session details: a facts grid and the cache table need the room. The project settings use the same width. */
|
|
10
10
|
export declare const renderWideSessionModalShell: RenderSessionShell;
|
|
@@ -14,6 +14,6 @@ function shellOfSize(size) {
|
|
|
14
14
|
}
|
|
15
15
|
/** A session dialog in the app's `ModalShell`, medium width. */
|
|
16
16
|
const renderSessionModalShell = shellOfSize("medium");
|
|
17
|
-
/** For the session details: a facts grid and the cache table need the room. */
|
|
17
|
+
/** For the session details: a facts grid and the cache table need the room. The project settings use the same width. */
|
|
18
18
|
const renderWideSessionModalShell = shellOfSize("large");
|
|
19
19
|
export { renderSessionModalShell, renderWideSessionModalShell };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { SessionProjectArtifacts } from "./headless/host.js";
|
|
2
|
+
import { ProjectArtifactView } from "zidane/chat/pure";
|
|
3
|
+
/**
|
|
4
|
+
* The glyph class of an artifact: the icon its kind draws it with (`icon`, from the host), else the kit's for a
|
|
5
|
+
* built-in kind, else a cube.
|
|
6
|
+
*
|
|
7
|
+
* @param kind - The kind.
|
|
8
|
+
* @param icon - The host's icon class for the row.
|
|
9
|
+
*/
|
|
10
|
+
export declare function artifactKindGlyph(kind: string, icon?: string): string;
|
|
11
|
+
/** A project's rows as a surface reads them: the rows (`null` until read), a failed read's words, and Retry. */
|
|
12
|
+
export interface ArtifactsRead {
|
|
13
|
+
rows: readonly ProjectArtifactView[] | null;
|
|
14
|
+
/** The failed read's words, while nothing was read. */
|
|
15
|
+
failed: string | null;
|
|
16
|
+
retry: () => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reads a project's artifacts: `fresh` reads them again on mount (a dialog that opens), else once if never read.
|
|
20
|
+
*
|
|
21
|
+
* @param artifacts - The host's artifacts.
|
|
22
|
+
* @param projectId - The project.
|
|
23
|
+
* @param fresh - Read again on mount.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useArtifactsRead(artifacts: SessionProjectArtifacts, projectId: string, fresh: boolean): ArtifactsRead;
|
|
26
|
+
/**
|
|
27
|
+
* A row's search text: its label, its drawn title (a pull request's own), its locator and its kind.
|
|
28
|
+
*
|
|
29
|
+
* @param row - The row.
|
|
30
|
+
*/
|
|
31
|
+
export declare function projectArtifactSearchText(row: ProjectArtifactView): string[];
|
|
32
|
+
/**
|
|
33
|
+
* Whether a row draws chips (a pull request's diff and checks, a ticket's id) on its second line.
|
|
34
|
+
*
|
|
35
|
+
* @param row - The row.
|
|
36
|
+
*/
|
|
37
|
+
export declare function projectArtifactHasChips(row: ProjectArtifactView): boolean;
|
|
38
|
+
/** A row's glyph, on its title's line (a row of two lines keeps it at the top): its state icon, else its kind's. */
|
|
39
|
+
export declare function ArtifactGlyph({ row }: {
|
|
40
|
+
row: ProjectArtifactView;
|
|
41
|
+
}): import("react").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* A row's title line: its title (the one its kind draws, a pull request's own; else its label, a short locator when
|
|
44
|
+
* the label is the locator), a link when it opens a web page, a button that opens a local file in the Files tab, then
|
|
45
|
+
* its state word. With no locator line under it, the full locator is its tooltip.
|
|
46
|
+
*/
|
|
47
|
+
export declare function ArtifactTitle({ row }: {
|
|
48
|
+
row: ProjectArtifactView;
|
|
49
|
+
}): import("react").JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* A row's facts: its chips as the session's Artifacts panel draws them (`cwd`: the project's folder, for a fact's
|
|
52
|
+
* reference), then one quiet line of who made it (how many sessions, or by hand; `made` off leaves it out under
|
|
53
|
+
* chips) and, for a row with no chips, its locator cut short.
|
|
54
|
+
*/
|
|
55
|
+
export declare function ArtifactFacts({ row, cwd, made: showMade }: {
|
|
56
|
+
row: ProjectArtifactView;
|
|
57
|
+
cwd: string | undefined;
|
|
58
|
+
made?: boolean;
|
|
59
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { useReadable } from "../chat/headless/store.js";
|
|
2
|
+
import { errorMessage } from "../components/report-error.js";
|
|
3
|
+
import { Tooltip, useTooltip } from "../components/Tooltip.js";
|
|
4
|
+
import { RoutedLink } from "../extensions/links.js";
|
|
5
|
+
import { useDisplayPath } from "../hooks/useDisplayPath.js";
|
|
6
|
+
import { ArtifactStateIcon, ArtifactStatus, ArtifactViewChips, hasArtifactViewChips } from "./artifact-row-parts.js";
|
|
7
|
+
import { artifactFilePath, projectArtifactDisplay, projectArtifactLead } from "./headless/project-artifacts.js";
|
|
8
|
+
import { useProjectFileOpener } from "./project-files.js";
|
|
9
|
+
import { useSessionLabels } from "./useSessionLabels.js";
|
|
10
|
+
import { useEffect, useMemo, useState } from "react";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
// src/session/project-artifact-parts.tsx
|
|
13
|
+
/** A kind's glyph when the host names none; a kind the kit does not know gets a cube. */
|
|
14
|
+
const KIND_GLYPH = {
|
|
15
|
+
pull_request: "i-ph-git-pull-request",
|
|
16
|
+
branch: "i-ph-git-branch",
|
|
17
|
+
commit: "i-ph-git-commit",
|
|
18
|
+
file: "i-ph-file",
|
|
19
|
+
view: "i-ph-eye",
|
|
20
|
+
url: "i-ph-link",
|
|
21
|
+
link: "i-ph-link",
|
|
22
|
+
image: "i-ph-image",
|
|
23
|
+
screenshot: "i-ph-image",
|
|
24
|
+
document: "i-ph-file-text",
|
|
25
|
+
report: "i-ph-file-text",
|
|
26
|
+
deployment: "i-ph-rocket-launch"
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The glyph class of an artifact: the icon its kind draws it with (`icon`, from the host), else the kit's for a
|
|
30
|
+
* built-in kind, else a cube.
|
|
31
|
+
*
|
|
32
|
+
* @param kind - The kind.
|
|
33
|
+
* @param icon - The host's icon class for the row.
|
|
34
|
+
*/
|
|
35
|
+
function artifactKindGlyph(kind, icon) {
|
|
36
|
+
return icon || (KIND_GLYPH[kind] ?? "i-ph-cube");
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Reads a project's artifacts: `fresh` reads them again on mount (a dialog that opens), else once if never read.
|
|
40
|
+
*
|
|
41
|
+
* @param artifacts - The host's artifacts.
|
|
42
|
+
* @param projectId - The project.
|
|
43
|
+
* @param fresh - Read again on mount.
|
|
44
|
+
*/
|
|
45
|
+
function useArtifactsRead(artifacts, projectId, fresh) {
|
|
46
|
+
const rows = useReadable(useMemo(() => artifacts.view(projectId), [artifacts, projectId]));
|
|
47
|
+
const [failed, setFailed] = useState(null);
|
|
48
|
+
const [attempt, setAttempt] = useState(0);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
if (!fresh && attempt === 0) {
|
|
51
|
+
artifacts.ensure(projectId);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
let live = true;
|
|
55
|
+
artifacts.refresh(projectId).then(() => live && setFailed(null), (err) => live && setFailed(errorMessage(err)));
|
|
56
|
+
return () => {
|
|
57
|
+
live = false;
|
|
58
|
+
};
|
|
59
|
+
}, [
|
|
60
|
+
artifacts,
|
|
61
|
+
projectId,
|
|
62
|
+
fresh,
|
|
63
|
+
attempt
|
|
64
|
+
]);
|
|
65
|
+
return {
|
|
66
|
+
rows,
|
|
67
|
+
failed: rows === null ? failed : null,
|
|
68
|
+
retry: () => {
|
|
69
|
+
setFailed(null);
|
|
70
|
+
setAttempt((n) => n + 1);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const WEB = /^https?:\/\//;
|
|
75
|
+
/** A title that opens something: a web page, a local file. */
|
|
76
|
+
const TITLE_LINK = "min-w-0 truncate text-sm text-[var(--zg-text)] no-underline hover:underline hover:decoration-[var(--zg-text-subtle)]";
|
|
77
|
+
/** The row its kind drew on the host (absent from an older host), its lead never repeating the title. */
|
|
78
|
+
function drawnOf(row) {
|
|
79
|
+
const drawn = row.row;
|
|
80
|
+
if (!drawn) return void 0;
|
|
81
|
+
const title = drawn.title && drawn.title !== row.label ? drawn.title : projectArtifactDisplay(row).title;
|
|
82
|
+
const text = projectArtifactLead(drawn.lead?.text, title, drawn.href ?? row.uri);
|
|
83
|
+
if (text === drawn.lead?.text) return drawn;
|
|
84
|
+
const { lead: _lead, ...rest } = drawn;
|
|
85
|
+
return text ? {
|
|
86
|
+
...rest,
|
|
87
|
+
lead: {
|
|
88
|
+
...drawn.lead,
|
|
89
|
+
text
|
|
90
|
+
}
|
|
91
|
+
} : rest;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* A row's search text: its label, its drawn title (a pull request's own), its locator and its kind.
|
|
95
|
+
*
|
|
96
|
+
* @param row - The row.
|
|
97
|
+
*/
|
|
98
|
+
function projectArtifactSearchText(row) {
|
|
99
|
+
return [
|
|
100
|
+
row.label,
|
|
101
|
+
row.row?.title ?? "",
|
|
102
|
+
row.uri,
|
|
103
|
+
row.kind,
|
|
104
|
+
row.kindLabel ?? ""
|
|
105
|
+
];
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Whether a row draws chips (a pull request's diff and checks, a ticket's id) on its second line.
|
|
109
|
+
*
|
|
110
|
+
* @param row - The row.
|
|
111
|
+
*/
|
|
112
|
+
function projectArtifactHasChips(row) {
|
|
113
|
+
const drawn = drawnOf(row);
|
|
114
|
+
return drawn !== void 0 && hasArtifactViewChips(drawn);
|
|
115
|
+
}
|
|
116
|
+
/** A row's glyph, on its title's line (a row of two lines keeps it at the top): its state icon, else its kind's. */
|
|
117
|
+
function ArtifactGlyph({ row }) {
|
|
118
|
+
const drawn = drawnOf(row);
|
|
119
|
+
return /* @__PURE__ */ jsx("span", {
|
|
120
|
+
"aria-hidden": true,
|
|
121
|
+
className: "shrink-0 flex items-center h-5",
|
|
122
|
+
children: drawn?.icon?.gui ? /* @__PURE__ */ jsx(ArtifactStateIcon, {
|
|
123
|
+
view: drawn,
|
|
124
|
+
className: "text-zg-label"
|
|
125
|
+
}) : /* @__PURE__ */ jsx("span", { className: `${artifactKindGlyph(row.kind, row.icon)} text-zg-label text-[var(--zg-text-muted)]` })
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/** The local file a row names: its locator's path, else the path its kind draws it with. */
|
|
129
|
+
function filePathOf(row) {
|
|
130
|
+
const href = drawnOf(row)?.href;
|
|
131
|
+
return artifactFilePath(row.uri) ?? (href && !WEB.test(href) ? artifactFilePath(href) : null);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* A row's title line: its title (the one its kind draws, a pull request's own; else its label, a short locator when
|
|
135
|
+
* the label is the locator), a link when it opens a web page, a button that opens a local file in the Files tab, then
|
|
136
|
+
* its state word. With no locator line under it, the full locator is its tooltip.
|
|
137
|
+
*/
|
|
138
|
+
function ArtifactTitle({ row }) {
|
|
139
|
+
const labels = useSessionLabels();
|
|
140
|
+
const openFile = useProjectFileOpener();
|
|
141
|
+
const display = useDisplayPath();
|
|
142
|
+
const drawn = drawnOf(row);
|
|
143
|
+
const shown = projectArtifactDisplay(row);
|
|
144
|
+
const title = (drawn?.title && drawn.title !== row.label ? drawn.title : null) ?? shown.title;
|
|
145
|
+
const tip = !(shown.locator !== null && !projectArtifactHasChips(row)) && title !== row.uri ? row.uri : "";
|
|
146
|
+
const href = drawn?.href && WEB.test(drawn.href) ? drawn.href : WEB.test(row.uri) ? row.uri : void 0;
|
|
147
|
+
const file = href ? null : filePathOf(row);
|
|
148
|
+
const text = /* @__PURE__ */ jsx("bdi", { children: title });
|
|
149
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
150
|
+
className: "flex items-baseline gap-2 min-w-0",
|
|
151
|
+
children: [href ? /* @__PURE__ */ jsx(Tooltip, {
|
|
152
|
+
label: tip,
|
|
153
|
+
portal: true,
|
|
154
|
+
maxWidth: 480,
|
|
155
|
+
className: "min-w-0 max-w-full",
|
|
156
|
+
children: /* @__PURE__ */ jsx(RoutedLink, {
|
|
157
|
+
href,
|
|
158
|
+
source: "panel",
|
|
159
|
+
className: TITLE_LINK,
|
|
160
|
+
children: text
|
|
161
|
+
})
|
|
162
|
+
}) : file && openFile ? /* @__PURE__ */ jsx(Tooltip, {
|
|
163
|
+
label: labels.projectArtifactOpenFile(display.path(file)),
|
|
164
|
+
portal: true,
|
|
165
|
+
maxWidth: 480,
|
|
166
|
+
className: "min-w-0 max-w-full",
|
|
167
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
168
|
+
type: "button",
|
|
169
|
+
className: `${TITLE_LINK} text-left bg-transparent border-0 p-0 cursor-pointer max-w-full`,
|
|
170
|
+
onClick: (event) => openFile(file, event),
|
|
171
|
+
children: text
|
|
172
|
+
})
|
|
173
|
+
}) : /* @__PURE__ */ jsx(PlainTitle, {
|
|
174
|
+
tip,
|
|
175
|
+
children: text
|
|
176
|
+
}), drawn && /* @__PURE__ */ jsx(ArtifactStatus, {
|
|
177
|
+
view: drawn,
|
|
178
|
+
className: "ml-auto"
|
|
179
|
+
})]
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function PlainTitle({ tip, children }) {
|
|
183
|
+
const { anchorProps, tip: bubble } = useTooltip(tip, { maxWidth: 480 });
|
|
184
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
185
|
+
...anchorProps,
|
|
186
|
+
className: "min-w-0 truncate text-sm text-[var(--zg-text)]",
|
|
187
|
+
children
|
|
188
|
+
}), bubble] });
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* A row's facts: its chips as the session's Artifacts panel draws them (`cwd`: the project's folder, for a fact's
|
|
192
|
+
* reference), then one quiet line of who made it (how many sessions, or by hand; `made` off leaves it out under
|
|
193
|
+
* chips) and, for a row with no chips, its locator cut short.
|
|
194
|
+
*/
|
|
195
|
+
function ArtifactFacts({ row, cwd, made: showMade = true }) {
|
|
196
|
+
const labels = useSessionLabels();
|
|
197
|
+
const drawn = drawnOf(row);
|
|
198
|
+
const chips = drawn !== void 0 && hasArtifactViewChips(drawn);
|
|
199
|
+
const made = chips && !showMade ? null : row.sessions.length > 0 ? labels.projectArtifactSessions(row.sessions.length) : row.added ? labels.projectArtifactAddedByHand : null;
|
|
200
|
+
const locator = chips ? null : projectArtifactDisplay(row).locator;
|
|
201
|
+
const { anchorProps, tip } = useTooltip(locator ? row.uri : "", { maxWidth: 480 });
|
|
202
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [chips && /* @__PURE__ */ jsx(ArtifactViewChips, {
|
|
203
|
+
view: drawn,
|
|
204
|
+
cwd,
|
|
205
|
+
className: "!mt-0"
|
|
206
|
+
}), (made || locator) && /* @__PURE__ */ jsxs("span", {
|
|
207
|
+
className: "flex min-w-0 items-center gap-2 text-xs text-[var(--zg-text-muted)]",
|
|
208
|
+
children: [
|
|
209
|
+
made && /* @__PURE__ */ jsx("span", {
|
|
210
|
+
className: "shrink-0",
|
|
211
|
+
children: made
|
|
212
|
+
}),
|
|
213
|
+
locator && /* @__PURE__ */ jsx("span", {
|
|
214
|
+
...anchorProps,
|
|
215
|
+
className: "zg-meta min-w-0 truncate",
|
|
216
|
+
children: /* @__PURE__ */ jsx("bdi", { children: locator })
|
|
217
|
+
}),
|
|
218
|
+
tip
|
|
219
|
+
]
|
|
220
|
+
})] });
|
|
221
|
+
}
|
|
222
|
+
export { ArtifactFacts, ArtifactGlyph, ArtifactTitle, artifactKindGlyph, projectArtifactHasChips, projectArtifactSearchText, useArtifactsRead };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pieces a project's content sections share (docs/PROJECTS.md § Project content): one read of the project's
|
|
3
|
+
* content for every section, where an item comes from (Repo, Project, Inherited, Replaced, Off), the per-kind rule of
|
|
4
|
+
* `Settings.inherit`, a record's row with Edit, History, Save to repo and Remove, its history with Restore, a list's
|
|
5
|
+
* search strip, and the JSON editor of a tool (the text of instructions and skills opens in `project-record-document`).
|
|
6
|
+
* Every write goes through the dialog's queue (`run`), so its refusal shows in its section.
|
|
7
|
+
*/
|
|
8
|
+
import { SessionProjectContent } from "./headless/host.js";
|
|
9
|
+
import { SectionId, SectionProps } from "./project-settings-parts.js";
|
|
10
|
+
import { ReactNode } from "react";
|
|
11
|
+
import { ProjectContentInput, ProjectContentItem, ProjectContentKind, ProjectContentSource, ProjectContentView, ProjectInherit } from "zidane/chat/pure";
|
|
12
|
+
/** The project's content as the sections show it: the view (`null` until read), a failed read's words, and Retry. */
|
|
13
|
+
export interface ContentRead {
|
|
14
|
+
view: ProjectContentView | null;
|
|
15
|
+
failed: string | null;
|
|
16
|
+
retry: () => void;
|
|
17
|
+
}
|
|
18
|
+
/** What a content section gets besides the dialog's section props. */
|
|
19
|
+
export interface ContentSectionProps extends SectionProps {
|
|
20
|
+
content: SessionProjectContent;
|
|
21
|
+
read: ContentRead;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Reads a project's content once the dialog opens, and keeps the view live (the project's change signal reads it
|
|
25
|
+
* again while it shows).
|
|
26
|
+
*
|
|
27
|
+
* @param content - The host's project content.
|
|
28
|
+
* @param projectId - The project.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useContentRead(content: SessionProjectContent, projectId: string): ContentRead;
|
|
31
|
+
/** Rows at a record's size while the content is read. */
|
|
32
|
+
export declare function ContentLoading(): import("react").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Where an item comes from: Repository or Inherited (its file, home folder as `~`, in the tooltip: never on the row),
|
|
35
|
+
* Replaced when a record has its name, Off while the project takes none.
|
|
36
|
+
*/
|
|
37
|
+
export declare function SourceBadges({ source }: {
|
|
38
|
+
source: ProjectContentSource;
|
|
39
|
+
}): import("react").JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* One item of a section, as a settings row: its mark, then its name and its badges on the first line, what it does
|
|
42
|
+
* (two lines at most) and its facts (a path, a version) under it, its actions on the right, centred on the row, and
|
|
43
|
+
* what opens under it.
|
|
44
|
+
*/
|
|
45
|
+
export declare function ItemRow({ mark, name, badges, description, meta, actions, children, dim, mono }: {
|
|
46
|
+
mark?: ReactNode;
|
|
47
|
+
name: ReactNode;
|
|
48
|
+
badges?: ReactNode;
|
|
49
|
+
/** What it does, muted, cut at two lines. */
|
|
50
|
+
description?: ReactNode;
|
|
51
|
+
/** Its facts on one quiet line: a machine value (a version) brings its meta voice. */
|
|
52
|
+
meta?: ReactNode;
|
|
53
|
+
actions?: ReactNode;
|
|
54
|
+
children?: ReactNode;
|
|
55
|
+
/** The item is off: its name reads muted. */
|
|
56
|
+
dim?: boolean;
|
|
57
|
+
/** Its name is a machine name (a tool's), in the code voice, as Settings › MCP servers lists tools. */
|
|
58
|
+
mono?: boolean;
|
|
59
|
+
}): import("react").JSX.Element;
|
|
60
|
+
/** A list shows its search once it holds more than this many items. */
|
|
61
|
+
export declare const SEARCH_FROM = 6;
|
|
62
|
+
/** A list's search: its query, whether the list is long enough for one, and the items it keeps. */
|
|
63
|
+
export interface ListSearchState<T> {
|
|
64
|
+
query: string;
|
|
65
|
+
setQuery: (query: string) => void;
|
|
66
|
+
searchable: boolean;
|
|
67
|
+
found: readonly T[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The search over a list longer than {@link SEARCH_FROM}: the items whose words hold the query.
|
|
71
|
+
*
|
|
72
|
+
* @param list - The items.
|
|
73
|
+
* @param words - An item's words (its name, what it does, its path).
|
|
74
|
+
*/
|
|
75
|
+
export declare function useListSearch<T>(list: readonly T[], words: (item: T) => readonly (string | undefined)[]): ListSearchState<T>;
|
|
76
|
+
/** A long list's search, the strip that heads its rows in the card, and its words when nothing matches. */
|
|
77
|
+
export declare function ListSearch<T>({ search, label }: {
|
|
78
|
+
search: ListSearchState<T>;
|
|
79
|
+
label: string;
|
|
80
|
+
}): import("react").JSX.Element | null;
|
|
81
|
+
/** The sources of a kind, in the view's order. */
|
|
82
|
+
export declare function sourcesOf(view: ProjectContentView | null, kind: ProjectContentSource['kind']): ProjectContentSource[];
|
|
83
|
+
/** The records of a kind, in the view's order. */
|
|
84
|
+
export declare function recordsOf<K extends ProjectContentKind>(view: ProjectContentView | null, kind: K): Extract<ProjectContentItem, {
|
|
85
|
+
kind: K;
|
|
86
|
+
}>[];
|
|
87
|
+
/**
|
|
88
|
+
* Whether the project's sessions take a kind from the layers above it, or from the project only (`Settings.inherit`,
|
|
89
|
+
* the project's layer), on one line: each choice says what it does in its tooltip. An owner or a maintainer changes it.
|
|
90
|
+
*/
|
|
91
|
+
export declare function InheritRow({ kind, section, project, projects, run, grants }: Pick<SectionProps, 'project' | 'projects' | 'run' | 'grants'> & {
|
|
92
|
+
kind: keyof ProjectInherit;
|
|
93
|
+
section: SectionId;
|
|
94
|
+
}): import("react").JSX.Element;
|
|
95
|
+
/** The inherit key of a kind, when the kind has one. */
|
|
96
|
+
export declare function inheritKeyOf(kind: ProjectContentKind): keyof ProjectInherit | undefined;
|
|
97
|
+
/** What a record's row can open under it. */
|
|
98
|
+
export type RecordPanel = 'edit' | 'history' | null;
|
|
99
|
+
/**
|
|
100
|
+
* A record's actions for an owner or a maintainer: Edit, History, Save to repo (a project with a home, a kind with a
|
|
101
|
+
* file) and Remove (asked once).
|
|
102
|
+
*/
|
|
103
|
+
export declare function RecordActions({ item, section, panel, onPanel, project, content, run, grants }: Pick<ContentSectionProps, 'project' | 'content' | 'run' | 'grants'> & {
|
|
104
|
+
item: ProjectContentItem;
|
|
105
|
+
section: SectionId;
|
|
106
|
+
panel: RecordPanel;
|
|
107
|
+
onPanel: (panel: RecordPanel) => void;
|
|
108
|
+
}): import("react").JSX.Element | null;
|
|
109
|
+
/** A record's versions, newest first: who saved each and when, and Restore for an earlier one. */
|
|
110
|
+
export declare function RecordHistory({ item, section, project, content, run, grants }: Pick<ContentSectionProps, 'project' | 'content' | 'run' | 'grants'> & {
|
|
111
|
+
item: ProjectContentItem;
|
|
112
|
+
section: SectionId;
|
|
113
|
+
}): import("react").JSX.Element;
|
|
114
|
+
/**
|
|
115
|
+
* An editor's frame: its fields, then Cancel and Save. Enter in a field never submits a multi-line body. Save waits for
|
|
116
|
+
* `ready` (a name typed).
|
|
117
|
+
*/
|
|
118
|
+
export declare function EditorForm({ title, onSave, onCancel, children, error, ready }: {
|
|
119
|
+
title: string;
|
|
120
|
+
onSave: () => void;
|
|
121
|
+
onCancel: () => void;
|
|
122
|
+
children: ReactNode;
|
|
123
|
+
error?: string | null;
|
|
124
|
+
ready?: boolean;
|
|
125
|
+
}): import("react").JSX.Element;
|
|
126
|
+
/** A labelled field of an editor. */
|
|
127
|
+
export declare function EditorField({ label, children, hint }: {
|
|
128
|
+
label: string;
|
|
129
|
+
hint?: string;
|
|
130
|
+
children: (id: string) => ReactNode;
|
|
131
|
+
}): import("react").JSX.Element;
|
|
132
|
+
/** What an editor saves: a record's input, run in the section's queue; it closes once the host has it. */
|
|
133
|
+
export type SaveRecord = (input: ProjectContentInput) => void;
|
|
134
|
+
/** The editor of a tool: its MCP server's config as JSON. Its name is the server's. */
|
|
135
|
+
export declare function ToolRecordEditor({ item, onSave, onCancel }: {
|
|
136
|
+
item?: Extract<ProjectContentItem, {
|
|
137
|
+
kind: 'tool';
|
|
138
|
+
}>;
|
|
139
|
+
onSave: SaveRecord;
|
|
140
|
+
onCancel: () => void;
|
|
141
|
+
}): import("react").JSX.Element;
|
|
142
|
+
/** A section's Add button, for an owner or a maintainer on a host that saves records. */
|
|
143
|
+
export declare function AddRecordButton({ kind, open, onOpen }: {
|
|
144
|
+
kind: ProjectContentKind;
|
|
145
|
+
open: boolean;
|
|
146
|
+
onOpen: () => void;
|
|
147
|
+
}): import("react").JSX.Element | null;
|
|
148
|
+
/** A record's save through the section's queue: the editor closes once the host has it. */
|
|
149
|
+
export declare function useSaveRecord({ project, content, run }: Pick<ContentSectionProps, 'project' | 'content' | 'run'>, section: SectionId, close: () => void): SaveRecord | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* The save of a record's text from its open document, through the section's queue: it resolves once the host has it
|
|
152
|
+
* and rejects when it refused (the section says why, the draft stays). `undefined` when it can't be saved here.
|
|
153
|
+
*/
|
|
154
|
+
export declare function useSaveText({ project, content, run, grants }: Pick<ContentSectionProps, 'project' | 'content' | 'run' | 'grants'>, section: SectionId, input: (text: string) => ProjectContentInput): ((text: string) => Promise<void>) | undefined;
|
|
155
|
+
/** The rows of a read: loading, a failure with Retry, else nothing. */
|
|
156
|
+
export declare function ReadState({ read }: {
|
|
157
|
+
read: ContentRead;
|
|
158
|
+
}): import("react").JSX.Element | null;
|
|
159
|
+
/**
|
|
160
|
+
* A record of the project: its name, Project and its version, its actions, and under it its editor or its history.
|
|
161
|
+
* `editor` draws the kind's editor over the record.
|
|
162
|
+
*/
|
|
163
|
+
export declare function RecordRow({ item, section, mark, trailing, editor, ...props }: Omit<ContentSectionProps, 'read'> & {
|
|
164
|
+
item: ProjectContentItem;
|
|
165
|
+
section: SectionId;
|
|
166
|
+
mark?: ReactNode;
|
|
167
|
+
/** After its actions (a switch). */
|
|
168
|
+
trailing?: ReactNode;
|
|
169
|
+
editor: (save: SaveRecord, close: () => void) => ReactNode;
|
|
170
|
+
}): import("react").JSX.Element;
|
|
171
|
+
/** A source's name. An inherited instructions file is named by its whole path: it shows its folder and its file only (`.agents/AGENTS.md`). */
|
|
172
|
+
export declare function sourceNameOf(source: ProjectContentSource): string;
|
|
173
|
+
/** A section's words for a kind with nothing in it. */
|
|
174
|
+
export declare function NoneRow({ kind }: {
|
|
175
|
+
kind: ProjectContentKind;
|
|
176
|
+
}): import("react").JSX.Element;
|