zidane-ui 9.5.2 → 9.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/index.d.ts +2 -1
- package/dist/adapters/index.js +2 -1
- package/dist/adapters/server-git-host.js +67 -0
- package/dist/adapters/server-host.js +9 -0
- package/dist/adapters/server-oauth-flow.d.ts +2 -2
- package/dist/adapters/server-oauth-flow.js +1 -1
- package/dist/adapters/server-projects.d.ts +53 -2
- package/dist/adapters/server-projects.js +4 -3
- package/dist/adapters/server-session-host.js +112 -4
- package/dist/channels/BindingEditorDialog.js +1 -1
- package/dist/channels/ChannelDefaultsSection.js +1 -1
- package/dist/channels/ChannelsSettingsSection.js +1 -1
- package/dist/channels/ConnectionSetupDialog.js +1 -1
- package/dist/channels/HeldRepliesList.js +1 -1
- package/dist/channels/ProjectChannelsSection.js +1 -1
- package/dist/chat/HostTranscript.js +1 -0
- package/dist/chat/SessionGroupHeader.js +2 -2
- package/dist/chat/composer/ComposerBadges.d.ts +27 -1
- package/dist/chat/composer/ComposerBadges.js +41 -5
- package/dist/chat/composer/ConversationBadges.d.ts +6 -0
- package/dist/chat/composer/ConversationBadges.js +70 -3
- package/dist/chat/composer/DraftPickers.js +4 -0
- package/dist/chat/composer/ServerScopeToggle.d.ts +16 -1
- package/dist/chat/composer/ServerScopeToggle.js +90 -47
- package/dist/chat/composer/index.d.ts +2 -2
- package/dist/chat/composer/use-draft-target.d.ts +18 -2
- package/dist/chat/composer/use-draft-target.js +74 -7
- package/dist/chat/composer/use-new-session-defaults.d.ts +3 -1
- package/dist/chat/composer/use-new-session-defaults.js +19 -14
- package/dist/chat/composer/use-send-prompt.js +2 -2
- package/dist/chat/headless/composer/index.d.ts +2 -2
- package/dist/chat/headless/composer/index.js +2 -2
- package/dist/chat/headless/composer/labels-chrome.d.ts +7 -0
- package/dist/chat/headless/composer/labels-chrome.js +7 -0
- package/dist/chat/headless/composer/labels-editor.d.ts +4 -0
- package/dist/chat/headless/composer/labels-editor.js +4 -0
- package/dist/chat/headless/composer/models.d.ts +2 -0
- package/dist/chat/headless/composer/new-session-defaults.d.ts +12 -1
- package/dist/chat/headless/composer/new-session-defaults.js +30 -1
- package/dist/chat/headless/draft-target.d.ts +27 -6
- package/dist/chat/headless/draft-target.js +36 -3
- package/dist/chat/headless/host.d.ts +7 -0
- package/dist/chat/headless/index.d.ts +4 -4
- package/dist/chat/headless/index.js +29 -29
- package/dist/chat/headless/labels.d.ts +4 -0
- package/dist/chat/headless/send-flow.d.ts +2 -0
- package/dist/chat/headless/send-flow.js +2 -1
- package/dist/chat/headless/session-list.d.ts +4 -0
- package/dist/chat/headless/sidebar/index.d.ts +2 -2
- package/dist/chat/headless/sidebar/labels.d.ts +9 -1
- package/dist/chat/headless/sidebar/labels.js +4 -0
- package/dist/chat/headless/sidebar/rows.d.ts +48 -7
- package/dist/chat/headless/sidebar/rows.js +121 -22
- package/dist/chat/headless/sidebar/types.d.ts +5 -0
- package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
- package/dist/chat/headless/transcript/fold-actions.js +29 -1
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat/index.js +2 -2
- package/dist/chat/rich-composer/RichComposer.js +58 -11
- package/dist/chat/rich-composer/composer-controls.d.ts +5 -1
- package/dist/chat/rich-composer/composer-controls.js +4 -4
- package/dist/chat/rich-composer/composer-keys.js +2 -2
- package/dist/chat/rich-composer/draft-collab.d.ts +91 -0
- package/dist/chat/rich-composer/draft-collab.js +310 -0
- package/dist/chat/rich-composer/use-composer-editor.d.ts +2 -0
- package/dist/chat/rich-composer/use-draft-collab.d.ts +53 -0
- package/dist/chat/rich-composer/use-draft-collab.js +92 -0
- package/dist/chat/rich-composer/use-draft-mirror.d.ts +11 -0
- package/dist/chat/rich-composer/use-draft-mirror.js +38 -9
- package/dist/chat/sidebar/InboxList.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +6 -2
- package/dist/chat/sidebar/ProjectIcon.js +7 -3
- package/dist/chat/sidebar/SessionSidebar.d.ts +30 -1
- package/dist/chat/sidebar/SessionSidebar.js +79 -7
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +12 -4
- package/dist/chat/sidebar/SidebarGroupHeader.js +70 -28
- package/dist/chat/sidebar/index.d.ts +2 -2
- package/dist/chat/transcript/actions.d.ts +6 -0
- package/dist/chat/transcript/fold.d.ts +2 -1
- package/dist/chat/transcript/fold.js +26 -1
- package/dist/chat/transcript/index.js +3 -3
- package/dist/chat/transcript/notices.d.ts +5 -2
- package/dist/chat/transcript/notices.js +23 -3
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/components/Avatar.d.ts +36 -0
- package/dist/components/Avatar.js +56 -0
- package/dist/components/AvatarStack.d.ts +58 -0
- package/dist/components/AvatarStack.js +187 -0
- package/dist/components/Tabs.d.ts +6 -1
- package/dist/components/Tabs.js +43 -39
- package/dist/core.css +19 -1
- package/dist/dist/{index-DPbpsCtl.d.ts → index-ChabiHpR.d.ts} +1 -1
- package/dist/dist/index.d.ts +1 -1
- package/dist/git/headless/environment.d.ts +15 -0
- package/dist/git/headless/environment.js +18 -1
- package/dist/git/headless/github.d.ts +11 -0
- package/dist/git/headless/github.js +15 -0
- package/dist/git/headless/host.d.ts +109 -0
- package/dist/git/headless/index.d.ts +5 -4
- package/dist/git/headless/index.js +4 -3
- package/dist/git/headless/labels.d.ts +16 -1
- package/dist/git/headless/labels.js +25 -1
- package/dist/git/testing/contract.d.ts +22 -4
- package/dist/git/testing/contract.js +173 -3
- package/dist/git/testing/index.d.ts +22 -1
- package/dist/git/testing/index.js +135 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/labels.d.ts +4 -0
- package/dist/labels.js +4 -0
- package/dist/onboarding/headless/labels.d.ts +4 -0
- package/dist/session/DraftPeopleStack.d.ts +24 -0
- package/dist/session/DraftPeopleStack.js +48 -0
- package/dist/session/NewProjectDialog.d.ts +28 -8
- package/dist/session/NewProjectDialog.js +225 -40
- package/dist/session/PersonCard.d.ts +29 -0
- package/dist/session/PersonCard.js +199 -0
- package/dist/session/ProjectArtifactsSection.d.ts +4 -1
- package/dist/session/ProjectArtifactsSection.js +149 -34
- package/dist/session/ProjectHome.d.ts +1 -1
- package/dist/session/ProjectHome.js +23 -4
- package/dist/session/ProjectName.d.ts +11 -6
- package/dist/session/ProjectName.js +27 -13
- package/dist/session/ProjectPeopleStack.d.ts +26 -0
- package/dist/session/ProjectPeopleStack.js +56 -0
- package/dist/session/ProjectPublishDialog.js +9 -3
- package/dist/session/ProjectSettingsDialog.d.ts +1 -1
- package/dist/session/ProjectSettingsDialog.js +171 -66
- package/dist/session/ProjectShareDialog.d.ts +1 -1
- package/dist/session/ProjectShareDialog.js +16 -6
- package/dist/session/ProjectToolsSection.js +88 -96
- package/dist/session/ProjectUsage.d.ts +4 -1
- package/dist/session/ProjectUsage.js +13 -4
- package/dist/session/SessionDetailsDialog.d.ts +5 -1
- package/dist/session/SessionDetailsDialog.js +67 -10
- package/dist/session/SessionPeopleStack.js +19 -37
- package/dist/session/SessionProjectPicker.d.ts +54 -0
- package/dist/session/SessionProjectPicker.js +175 -0
- package/dist/session/SessionProvider.d.ts +15 -1
- package/dist/session/SessionProvider.js +28 -6
- package/dist/session/UsageSection.d.ts +2 -4
- package/dist/session/UsageSection.js +57 -55
- package/dist/session/headless/draft-collab.d.ts +55 -0
- package/dist/session/headless/draft-collab.js +127 -0
- package/dist/session/headless/draft-room.d.ts +124 -0
- package/dist/session/headless/draft-room.js +340 -0
- package/dist/session/headless/drafts.d.ts +93 -0
- package/dist/session/headless/drafts.js +79 -0
- package/dist/session/headless/fixture-drafts.d.ts +54 -0
- package/dist/session/headless/fixture-drafts.js +286 -0
- package/dist/session/headless/fixture-host.d.ts +18 -2
- package/dist/session/headless/fixture-host.js +41 -7
- package/dist/session/headless/fixture-projects.d.ts +6 -4
- package/dist/session/headless/fixture-projects.js +25 -4
- package/dist/session/headless/host.d.ts +34 -6
- package/dist/session/headless/index.d.ts +6 -3
- package/dist/session/headless/index.js +6 -3
- package/dist/session/headless/labels.d.ts +47 -2
- package/dist/session/headless/labels.js +17 -1
- package/dist/session/headless/people.d.ts +27 -3
- package/dist/session/headless/people.js +38 -20
- package/dist/session/headless/project-artifact-labels.d.ts +7 -0
- package/dist/session/headless/project-artifact-labels.js +7 -0
- package/dist/session/headless/project-artifacts.d.ts +8 -0
- package/dist/session/headless/project-artifacts.js +15 -1
- package/dist/session/headless/project-labels.d.ts +25 -0
- package/dist/session/headless/project-labels.js +25 -0
- package/dist/session/headless/shared-with.d.ts +28 -0
- package/dist/session/headless/shared-with.js +51 -0
- package/dist/session/host-context.d.ts +11 -0
- package/dist/session/host-context.js +14 -0
- package/dist/session/index.d.ts +7 -3
- package/dist/session/index.js +6 -2
- package/dist/session/new-project-parts.d.ts +67 -0
- package/dist/session/new-project-parts.js +470 -0
- package/dist/session/project-artifact-parts.d.ts +2 -1
- package/dist/session/project-artifact-parts.js +5 -2
- package/dist/session/project-people.d.ts +14 -0
- package/dist/session/project-people.js +86 -0
- package/dist/session/share-people.d.ts +12 -0
- package/dist/session/share-people.js +1 -1
- package/dist/session/testing/contract.d.ts +6 -3
- package/dist/session/testing/contract.js +24 -3
- package/dist/session/testing/drafts.contract.d.ts +30 -0
- package/dist/session/testing/drafts.contract.js +126 -0
- package/dist/session/testing/index.d.ts +2 -1
- package/dist/session/testing/index.js +2 -1
- package/dist/session/use-home-projects.d.ts +11 -2
- package/dist/session/use-home-projects.js +142 -5
- package/dist/session/useDraftCollab.d.ts +24 -0
- package/dist/session/useDraftCollab.js +78 -0
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.js +9 -9
- package/dist/settings/sections/index.js +1 -1
- package/dist/settings/sections/providers/CredentialSources.d.ts +5 -5
- package/dist/settings/sections/providers/CredentialSources.js +5 -22
- package/dist/settings/sections/providers/labels.d.ts +1 -9
- package/dist/settings/sections/providers/labels.js +1 -9
- package/dist/styles.css +20 -9
- package/package.json +4 -3
- package/src/styles/sidebar.css +2 -3
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { LIVE_SHARE_SESSION_PREFIX, SessionAccess, SessionAccessLoss, SessionAccessSignal, createSessionAccess } from "./access.js";
|
|
2
2
|
import { ArtifactsState, countArtifacts, createArtifactsState, groupArtifactRows, plainArtifactRow } from "./artifacts.js";
|
|
3
3
|
import { DiffListFile, DiffTreeDir, DiffTreeFile, DiffTreeNode, buildDiffTree, fileOrder, relativeTo, visibleRows } from "./diff-tree.js";
|
|
4
|
+
import { DraftCollab, DraftComposerState, createDraftCollab, draftCollabOf } from "./draft-collab.js";
|
|
5
|
+
import { DRAFT_PUSH_RETRY_MS, DraftBatch, DraftFinal, DraftRoomBinding, DraftRoomClient, DraftRoomClosed, DraftRoomStatus, DraftRoomTimers, DraftRoomView, createDraftRoomClient } from "./draft-room.js";
|
|
6
|
+
import { DraftPerson, DraftPushResult, DraftRoomSignal, DraftRoomState, DraftSince, DraftingPerson, DraftingSignal, SessionDrafting, SessionDraftingSources, SessionDrafts, createSessionDrafting } from "./drafts.js";
|
|
4
7
|
import { EMPTY_HOME_PREFS, HOME_ARTIFACTS_BLOCK, HOME_BLOCK_NAME_MAX, HOME_SESSIONS_BLOCK, HomeBlock, HomeBlockSource, HomePrefs, HomeRow, addHomeBlockCopy, arrangeHomeBlocks, duplicateHomeBlock, hideHomeBlock, homeBlocksOf, homeRows, isBuiltinHomeBlock, moveHomeBlock, parseHomePrefs, placeHomeBlock, removeHomeBlock, renameHomeBlock, setHomeBlockIcon, setHomeBlockView, setHomeBlockWidth, showHomeBlock } from "./home-layout.js";
|
|
5
8
|
import { ActivePlanSummary, PlanControlAction, PlanEditOp, PlanStep, PlanView, PlansSnapshot, Project, ProjectArtifactInput, ProjectArtifactPin, ProjectInput, ProjectPatch, ProjectPublishTarget, ProjectSettingLayer, ProjectSettingsView, PromptAttachment, QueueAddDelivery, QueueAddOptions, QueuePushDelivery, QueuedAttachment, QueuedMessage, RunningWorkItem, Schedule, ScheduleFire, ScheduleInput, SchedulePatch, SchedulesStatus, SessionArtifact, SessionArtifactGroup, SessionArtifactRow, SessionArtifactRowView, SessionArtifacts, SessionCacheReport, SessionDetailsActions, SessionExportFormat, SessionHost, SessionPlans, SessionProjectArtifacts, SessionProjectContent, SessionProjectPublish, SessionProjectSessions, SessionProjectSharing, SessionProjectUsage, SessionProjects, SessionQueue, SessionRunningWork, SessionSchedules, SessionSecretEntry, SessionSecretInput, SessionSecrets, SessionSharingHost, SessionSideChats, SessionTurn, SessionTurns, SessionUsage, SideChatLookup, SideChatSession, TodoItem } from "./host.js";
|
|
6
9
|
import { KeyedState, createKeyedState } from "./keyed.js";
|
|
7
10
|
import { DEFAULT_SESSION_LABELS, SessionLabels } from "./labels.js";
|
|
8
|
-
import { PresenceRow, SessionPeople, createSessionPeople } from "./people.js";
|
|
11
|
+
import { PresenceRow, ProjectPeople, ProjectPresenceRow, SessionPeople, createProjectPeople, createSessionPeople } from "./people.js";
|
|
9
12
|
import { SessionPlaceTone, environmentStateLabel, isExternalEnvironment, isReconnecting, sessionPlaceTone } from "./place.js";
|
|
10
13
|
import { InboxPlans, PlansState, TodoTallyCounts, createPlansState, displayedPlan, inboxPlans, planTally } from "./plans.js";
|
|
11
|
-
import { ProjectArtifactDisplay, ProjectArtifactGroup, ProjectArtifactsBackend, ProjectArtifactsState, artifactFilePath, artifactLocator, createProjectArtifacts, disabledContextOf, groupProjectArtifacts, homeProjectArtifacts, projectArtifactDisplay, projectArtifactLead, withContextBlock } from "./project-artifacts.js";
|
|
14
|
+
import { ProjectArtifactDisplay, ProjectArtifactGroup, ProjectArtifactsBackend, ProjectArtifactsState, artifactFilePath, artifactLocator, createProjectArtifacts, disabledContextOf, groupProjectArtifacts, homeProjectArtifacts, projectArtifactDisplay, projectArtifactImageUrl, projectArtifactLead, withContextBlock } from "./project-artifacts.js";
|
|
12
15
|
import { DEFAULT_HIDDEN_ORIGINS, ProjectSessionNode, ProjectSessionOriginKey, ProjectSessionRow, ProjectSessionsBackend, ProjectSessionsState, createProjectSessionsState, projectSessionOriginKey, projectSessionOrigins, projectSessionRowOf, projectSessionTree } from "./project-sessions.js";
|
|
13
16
|
import { BudgetLevel, BudgetScope, BudgetState, ProjectBudgets, ProjectSpendRow, ProjectUsageBackend, ProjectUsageLive, ProjectUsageRange as UsageRange, ProjectUsageState, ProjectUsageView, UsageGroup, UsageGroupBy, createProjectUsage, formatUsd, liveOfViews, parseUsdInput, tightestBudget } from "./project-usage.js";
|
|
14
17
|
import { ProjectContentBackend, ProjectPlace, ProjectRefusedError, ProjectsBackend, ProjectsState, createProjectsState, folderlessProjects, hasHomeLayout, homeLayoutLayer, homeLayoutOfPrefs, homePrefsOfLayout, isProjectLayer, managesProject, projectContentHost, settingSourceOf } from "./projects.js";
|
|
@@ -23,4 +26,4 @@ import { SideRefusal, SideRequests, createSideRequests, parseSideCommand } from
|
|
|
23
26
|
import { SessionTyping, SessionTypingSources, TYPING_EXPIRE_MS, TypingPerson, TypingSignal, createSessionTyping, typingName } from "./typing.js";
|
|
24
27
|
import { ProviderResetCredit, ProviderResetOutcome, ProviderResetTarget, ProviderUsageSnapshot, ProviderUsageSource, ProviderUsageState, ProviderUsageView, USAGE_RANGES, USAGE_SNAPSHOT_KEY, UsageHeatmapDay, UsageModelDayPoint, UsageModelRow, UsageProviderRow, UsageRange as UsageRange$1, UsageSummaries, UsageSummary, UsageSummaryState, UsageSummaryStateOptions, createProviderUsageState, createUsageSummaryState, isUsageSummary, pickUsageSummary } from "./usage.js";
|
|
25
28
|
import { formatTokens, localDayString } from "./usage-format.js";
|
|
26
|
-
export { type ActivePlanSummary, ArtifactsState, type BudgetLevel, type BudgetScope, type BudgetState, DEFAULT_HIDDEN_ORIGINS, DEFAULT_SESSION_LABELS, DiffListFile, DiffTreeDir, DiffTreeFile, DiffTreeNode, EMPTY_HOME_PREFS, HOME_ARTIFACTS_BLOCK, HOME_BLOCK_NAME_MAX, HOME_SESSIONS_BLOCK, HomeBlock, HomeBlockSource, HomePrefs, HomeRow, InboxPlans, KeyedState, LIVE_SHARE_SESSION_PREFIX, PlanControlAction, type PlanEditOp, type PlanStep, type PlanView, type PlansSnapshot, PlansState, PresenceRow, type Project, ProjectArtifactDisplay, ProjectArtifactGroup, ProjectArtifactInput, ProjectArtifactPin, ProjectArtifactsBackend, ProjectArtifactsState, type ProjectBudgets, ProjectContentBackend, type ProjectInput, type ProjectPatch, ProjectPlace, ProjectPublishTarget, ProjectRefusedError, type ProjectSessionNode, type ProjectSessionOriginKey, type ProjectSessionRow, ProjectSessionsBackend, ProjectSessionsState, type ProjectSettingLayer, type ProjectSettingsView, type ProjectSpendRow, ProjectUsageBackend, type ProjectUsageLive, type UsageRange as ProjectUsageRange, ProjectUsageState, type ProjectUsageView, ProjectsBackend, ProjectsState, type PromptAttachment, type ProviderResetCredit, type ProviderResetOutcome, ProviderResetTarget, type ProviderUsageSnapshot, ProviderUsageSource, ProviderUsageState, ProviderUsageView, QueueAddDelivery, QueueAddOptions, QueueBackend, QueuePushDelivery, QueueState, type QueuedAttachment, QueuedMessage, ReminderWhen, RemindersSummary, type RunningWorkItem, RunningWorkState, type Schedule, type ScheduleFire, type ScheduleInput, type SchedulePatch, SchedulesBackend, SchedulesState, SchedulesStatus, SecretsState, SessionAccess, SessionAccessLoss, SessionAccessSignal, SessionActionName, SessionActionTarget, SessionActions, SessionActionsDeps, type SessionArtifact, SessionArtifactGroup, SessionArtifactRow, SessionArtifactRowView, SessionArtifacts, SessionCacheReport, SessionConfirmOptions, SessionDetailsActions, SessionDiffEntry, SessionEditEvent, SessionExportFormat, SessionHost, SessionLabels, SessionPeople, SessionPlaceTone, SessionPlans, SessionProjectArtifacts, SessionProjectContent, SessionProjectPublish, SessionProjectSessions, SessionProjectSharing, SessionProjectUsage, SessionProjects, SessionQueue, SessionRunningWork, SessionSchedules, SessionSecretEntry, SessionSecretInput, SessionSecrets, SessionSharingHost, SessionSideChats, type SessionTurn, SessionTurns, SessionTyping, SessionTypingSources, SessionUsage, SideChatLookup, SideChatSession, SideRefusal, SideRequests, StagedAttachment, TYPING_EXPIRE_MS, type TodoItem, TodoTallyCounts, TypingPerson, TypingSignal, USAGE_RANGES, USAGE_SNAPSHOT_KEY, type UsageGroup, type UsageGroupBy, UsageHeatmapDay, UsageModelDayPoint, UsageModelRow, UsageProviderRow, UsageRange$1 as UsageRange, UsageSummaries, UsageSummary, UsageSummaryState, UsageSummaryStateOptions, addHomeBlockCopy, arrangeHomeBlocks, artifactFilePath, artifactLocator, attachmentsKey, buildDiffTree, canKeepSchedule, collectSessionDiffs, countArtifacts, createArtifactsState, createKeyedState, createPlansState, createProjectArtifacts, createProjectSessionsState, createProjectUsage, createProjectsState, createProviderUsageState, createQueueState, createRunningWorkState, createSchedulesState, createSecretsState, createSessionAccess, createSessionActions, createSessionPeople, createSessionTyping, createSideRequests, createUsageSummaryState, disabledContextOf, displayedPlan, duplicateHomeBlock, environmentStateLabel, fileDiffCounts, fileOrder, folderlessProjects, formatTokens, formatUsd, groupArtifactRows, groupByPath, groupProjectArtifacts, hasHomeLayout, hideHomeBlock, homeBlocksOf, homeLayoutLayer, homeLayoutOfPrefs, homePrefsOfLayout, homeProjectArtifacts, homeRows, inboxPlans, isBuiltinHomeBlock, isExternalEnvironment, isProjectLayer, isReconnecting, isScheduleFinished, isUsageSummary, liveOfViews, localDayString, managesProject, moveHomeBlock, parseHomePrefs, parseSideCommand, parseUsdInput, pickUsageSummary, placeHomeBlock, plainArtifactRow, planTally, projectArtifactDisplay, projectArtifactLead, projectContentHost, projectSessionOriginKey, projectSessionOrigins, projectSessionRowOf, projectSessionTree, readReminderWhen, relativeTo, remindersSummary, removeHomeBlock, renameHomeBlock, sameRunningWork, sessionKeyCommands, sessionPlaceTone, setHomeBlockIcon, setHomeBlockView, setHomeBlockWidth, settingSourceOf, showHomeBlock, sortSchedules, sortSecrets, stagedToWire, tightestBudget, toQueuedMessages, typingName, upcomingSchedules, visibleRows, wireToStaged, withContextBlock };
|
|
29
|
+
export { type ActivePlanSummary, ArtifactsState, type BudgetLevel, type BudgetScope, type BudgetState, DEFAULT_HIDDEN_ORIGINS, DEFAULT_SESSION_LABELS, DRAFT_PUSH_RETRY_MS, DiffListFile, DiffTreeDir, DiffTreeFile, DiffTreeNode, DraftBatch, DraftCollab, DraftComposerState, DraftFinal, type DraftPerson, type DraftPushResult, DraftRoomBinding, DraftRoomClient, DraftRoomClosed, DraftRoomSignal, type DraftRoomState, DraftRoomStatus, DraftRoomTimers, DraftRoomView, type DraftSince, type DraftingPerson, DraftingSignal, EMPTY_HOME_PREFS, HOME_ARTIFACTS_BLOCK, HOME_BLOCK_NAME_MAX, HOME_SESSIONS_BLOCK, HomeBlock, HomeBlockSource, HomePrefs, HomeRow, InboxPlans, KeyedState, LIVE_SHARE_SESSION_PREFIX, PlanControlAction, type PlanEditOp, type PlanStep, type PlanView, type PlansSnapshot, PlansState, PresenceRow, type Project, ProjectArtifactDisplay, ProjectArtifactGroup, ProjectArtifactInput, ProjectArtifactPin, ProjectArtifactsBackend, ProjectArtifactsState, type ProjectBudgets, ProjectContentBackend, type ProjectInput, type ProjectPatch, ProjectPeople, ProjectPlace, ProjectPresenceRow, ProjectPublishTarget, ProjectRefusedError, type ProjectSessionNode, type ProjectSessionOriginKey, type ProjectSessionRow, ProjectSessionsBackend, ProjectSessionsState, type ProjectSettingLayer, type ProjectSettingsView, type ProjectSpendRow, ProjectUsageBackend, type ProjectUsageLive, type UsageRange as ProjectUsageRange, ProjectUsageState, type ProjectUsageView, ProjectsBackend, ProjectsState, type PromptAttachment, type ProviderResetCredit, type ProviderResetOutcome, ProviderResetTarget, type ProviderUsageSnapshot, ProviderUsageSource, ProviderUsageState, ProviderUsageView, QueueAddDelivery, QueueAddOptions, QueueBackend, QueuePushDelivery, QueueState, type QueuedAttachment, QueuedMessage, ReminderWhen, RemindersSummary, type RunningWorkItem, RunningWorkState, type Schedule, type ScheduleFire, type ScheduleInput, type SchedulePatch, SchedulesBackend, SchedulesState, SchedulesStatus, SecretsState, SessionAccess, SessionAccessLoss, SessionAccessSignal, SessionActionName, SessionActionTarget, SessionActions, SessionActionsDeps, type SessionArtifact, SessionArtifactGroup, SessionArtifactRow, SessionArtifactRowView, SessionArtifacts, SessionCacheReport, SessionConfirmOptions, SessionDetailsActions, SessionDiffEntry, SessionDrafting, SessionDraftingSources, SessionDrafts, SessionEditEvent, SessionExportFormat, SessionHost, SessionLabels, SessionPeople, SessionPlaceTone, SessionPlans, SessionProjectArtifacts, SessionProjectContent, SessionProjectPublish, SessionProjectSessions, SessionProjectSharing, SessionProjectUsage, SessionProjects, SessionQueue, SessionRunningWork, SessionSchedules, SessionSecretEntry, SessionSecretInput, SessionSecrets, SessionSharingHost, SessionSideChats, type SessionTurn, SessionTurns, SessionTyping, SessionTypingSources, SessionUsage, SideChatLookup, SideChatSession, SideRefusal, SideRequests, StagedAttachment, TYPING_EXPIRE_MS, type TodoItem, TodoTallyCounts, TypingPerson, TypingSignal, USAGE_RANGES, USAGE_SNAPSHOT_KEY, type UsageGroup, type UsageGroupBy, UsageHeatmapDay, UsageModelDayPoint, UsageModelRow, UsageProviderRow, UsageRange$1 as UsageRange, UsageSummaries, UsageSummary, UsageSummaryState, UsageSummaryStateOptions, addHomeBlockCopy, arrangeHomeBlocks, artifactFilePath, artifactLocator, attachmentsKey, buildDiffTree, canKeepSchedule, collectSessionDiffs, countArtifacts, createArtifactsState, createDraftCollab, createDraftRoomClient, createKeyedState, createPlansState, createProjectArtifacts, createProjectPeople, createProjectSessionsState, createProjectUsage, createProjectsState, createProviderUsageState, createQueueState, createRunningWorkState, createSchedulesState, createSecretsState, createSessionAccess, createSessionActions, createSessionDrafting, createSessionPeople, createSessionTyping, createSideRequests, createUsageSummaryState, disabledContextOf, displayedPlan, draftCollabOf, duplicateHomeBlock, environmentStateLabel, fileDiffCounts, fileOrder, folderlessProjects, formatTokens, formatUsd, groupArtifactRows, groupByPath, groupProjectArtifacts, hasHomeLayout, hideHomeBlock, homeBlocksOf, homeLayoutLayer, homeLayoutOfPrefs, homePrefsOfLayout, homeProjectArtifacts, homeRows, inboxPlans, isBuiltinHomeBlock, isExternalEnvironment, isProjectLayer, isReconnecting, isScheduleFinished, isUsageSummary, liveOfViews, localDayString, managesProject, moveHomeBlock, parseHomePrefs, parseSideCommand, parseUsdInput, pickUsageSummary, placeHomeBlock, plainArtifactRow, planTally, projectArtifactDisplay, projectArtifactImageUrl, projectArtifactLead, projectContentHost, projectSessionOriginKey, projectSessionOrigins, projectSessionRowOf, projectSessionTree, readReminderWhen, relativeTo, remindersSummary, removeHomeBlock, renameHomeBlock, sameRunningWork, sessionKeyCommands, sessionPlaceTone, setHomeBlockIcon, setHomeBlockView, setHomeBlockWidth, settingSourceOf, showHomeBlock, sortSchedules, sortSecrets, stagedToWire, tightestBudget, toQueuedMessages, typingName, upcomingSchedules, visibleRows, wireToStaged, withContextBlock };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { LIVE_SHARE_SESSION_PREFIX, createSessionAccess } from "./access.js";
|
|
2
2
|
import { countArtifacts, createArtifactsState, groupArtifactRows, plainArtifactRow } from "./artifacts.js";
|
|
3
3
|
import { buildDiffTree, fileOrder, relativeTo, visibleRows } from "./diff-tree.js";
|
|
4
|
+
import { createDraftCollab, draftCollabOf } from "./draft-collab.js";
|
|
5
|
+
import { DRAFT_PUSH_RETRY_MS, createDraftRoomClient } from "./draft-room.js";
|
|
6
|
+
import { createSessionDrafting } from "./drafts.js";
|
|
4
7
|
import { EMPTY_HOME_PREFS, HOME_ARTIFACTS_BLOCK, HOME_BLOCK_NAME_MAX, HOME_SESSIONS_BLOCK, addHomeBlockCopy, arrangeHomeBlocks, duplicateHomeBlock, hideHomeBlock, homeBlocksOf, homeRows, isBuiltinHomeBlock, moveHomeBlock, parseHomePrefs, placeHomeBlock, removeHomeBlock, renameHomeBlock, setHomeBlockIcon, setHomeBlockView, setHomeBlockWidth, showHomeBlock } from "./home-layout.js";
|
|
5
8
|
import { createKeyedState } from "./keyed.js";
|
|
6
9
|
import { DEFAULT_SESSION_LABELS } from "./labels.js";
|
|
7
|
-
import { createSessionPeople } from "./people.js";
|
|
10
|
+
import { createProjectPeople, createSessionPeople } from "./people.js";
|
|
8
11
|
import { environmentStateLabel, isExternalEnvironment, isReconnecting, sessionPlaceTone } from "./place.js";
|
|
9
12
|
import { createPlansState, displayedPlan, inboxPlans, planTally } from "./plans.js";
|
|
10
|
-
import { artifactFilePath, artifactLocator, createProjectArtifacts, disabledContextOf, groupProjectArtifacts, homeProjectArtifacts, projectArtifactDisplay, projectArtifactLead, withContextBlock } from "./project-artifacts.js";
|
|
13
|
+
import { artifactFilePath, artifactLocator, createProjectArtifacts, disabledContextOf, groupProjectArtifacts, homeProjectArtifacts, projectArtifactDisplay, projectArtifactImageUrl, projectArtifactLead, withContextBlock } from "./project-artifacts.js";
|
|
11
14
|
import { DEFAULT_HIDDEN_ORIGINS, createProjectSessionsState, projectSessionOriginKey, projectSessionOrigins, projectSessionRowOf, projectSessionTree } from "./project-sessions.js";
|
|
12
15
|
import { createProjectUsage, formatUsd, liveOfViews, parseUsdInput, tightestBudget } from "./project-usage.js";
|
|
13
16
|
import { ProjectRefusedError, createProjectsState, folderlessProjects, hasHomeLayout, homeLayoutLayer, homeLayoutOfPrefs, homePrefsOfLayout, isProjectLayer, managesProject, projectContentHost, settingSourceOf } from "./projects.js";
|
|
@@ -22,4 +25,4 @@ import { createSideRequests, parseSideCommand } from "./side.js";
|
|
|
22
25
|
import { TYPING_EXPIRE_MS, createSessionTyping, typingName } from "./typing.js";
|
|
23
26
|
import { USAGE_RANGES, USAGE_SNAPSHOT_KEY, createProviderUsageState, createUsageSummaryState, isUsageSummary, pickUsageSummary } from "./usage.js";
|
|
24
27
|
import { formatTokens, localDayString } from "./usage-format.js";
|
|
25
|
-
export { DEFAULT_HIDDEN_ORIGINS, DEFAULT_SESSION_LABELS, EMPTY_HOME_PREFS, HOME_ARTIFACTS_BLOCK, HOME_BLOCK_NAME_MAX, HOME_SESSIONS_BLOCK, LIVE_SHARE_SESSION_PREFIX, ProjectRefusedError, TYPING_EXPIRE_MS, USAGE_RANGES, USAGE_SNAPSHOT_KEY, addHomeBlockCopy, arrangeHomeBlocks, artifactFilePath, artifactLocator, attachmentsKey, buildDiffTree, canKeepSchedule, collectSessionDiffs, countArtifacts, createArtifactsState, createKeyedState, createPlansState, createProjectArtifacts, createProjectSessionsState, createProjectUsage, createProjectsState, createProviderUsageState, createQueueState, createRunningWorkState, createSchedulesState, createSecretsState, createSessionAccess, createSessionActions, createSessionPeople, createSessionTyping, createSideRequests, createUsageSummaryState, disabledContextOf, displayedPlan, duplicateHomeBlock, environmentStateLabel, fileDiffCounts, fileOrder, folderlessProjects, formatTokens, formatUsd, groupArtifactRows, groupByPath, groupProjectArtifacts, hasHomeLayout, hideHomeBlock, homeBlocksOf, homeLayoutLayer, homeLayoutOfPrefs, homePrefsOfLayout, homeProjectArtifacts, homeRows, inboxPlans, isBuiltinHomeBlock, isExternalEnvironment, isProjectLayer, isReconnecting, isScheduleFinished, isUsageSummary, liveOfViews, localDayString, managesProject, moveHomeBlock, parseHomePrefs, parseSideCommand, parseUsdInput, pickUsageSummary, placeHomeBlock, plainArtifactRow, planTally, projectArtifactDisplay, projectArtifactLead, projectContentHost, projectSessionOriginKey, projectSessionOrigins, projectSessionRowOf, projectSessionTree, readReminderWhen, relativeTo, remindersSummary, removeHomeBlock, renameHomeBlock, sameRunningWork, sessionKeyCommands, sessionPlaceTone, setHomeBlockIcon, setHomeBlockView, setHomeBlockWidth, settingSourceOf, showHomeBlock, sortSchedules, sortSecrets, stagedToWire, tightestBudget, toQueuedMessages, typingName, upcomingSchedules, visibleRows, wireToStaged, withContextBlock };
|
|
28
|
+
export { DEFAULT_HIDDEN_ORIGINS, DEFAULT_SESSION_LABELS, DRAFT_PUSH_RETRY_MS, EMPTY_HOME_PREFS, HOME_ARTIFACTS_BLOCK, HOME_BLOCK_NAME_MAX, HOME_SESSIONS_BLOCK, LIVE_SHARE_SESSION_PREFIX, ProjectRefusedError, TYPING_EXPIRE_MS, USAGE_RANGES, USAGE_SNAPSHOT_KEY, addHomeBlockCopy, arrangeHomeBlocks, artifactFilePath, artifactLocator, attachmentsKey, buildDiffTree, canKeepSchedule, collectSessionDiffs, countArtifacts, createArtifactsState, createDraftCollab, createDraftRoomClient, createKeyedState, createPlansState, createProjectArtifacts, createProjectPeople, createProjectSessionsState, createProjectUsage, createProjectsState, createProviderUsageState, createQueueState, createRunningWorkState, createSchedulesState, createSecretsState, createSessionAccess, createSessionActions, createSessionDrafting, createSessionPeople, createSessionTyping, createSideRequests, createUsageSummaryState, disabledContextOf, displayedPlan, draftCollabOf, duplicateHomeBlock, environmentStateLabel, fileDiffCounts, fileOrder, folderlessProjects, formatTokens, formatUsd, groupArtifactRows, groupByPath, groupProjectArtifacts, hasHomeLayout, hideHomeBlock, homeBlocksOf, homeLayoutLayer, homeLayoutOfPrefs, homePrefsOfLayout, homeProjectArtifacts, homeRows, inboxPlans, isBuiltinHomeBlock, isExternalEnvironment, isProjectLayer, isReconnecting, isScheduleFinished, isUsageSummary, liveOfViews, localDayString, managesProject, moveHomeBlock, parseHomePrefs, parseSideCommand, parseUsdInput, pickUsageSummary, placeHomeBlock, plainArtifactRow, planTally, projectArtifactDisplay, projectArtifactImageUrl, projectArtifactLead, projectContentHost, projectSessionOriginKey, projectSessionOrigins, projectSessionRowOf, projectSessionTree, readReminderWhen, relativeTo, remindersSummary, removeHomeBlock, renameHomeBlock, sameRunningWork, sessionKeyCommands, sessionPlaceTone, setHomeBlockIcon, setHomeBlockView, setHomeBlockWidth, settingSourceOf, showHomeBlock, sortSchedules, sortSecrets, stagedToWire, tightestBudget, toQueuedMessages, typingName, upcomingSchedules, visibleRows, wireToStaged, withContextBlock };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* of `SessionProvider`. Keys you leave out keep the default English label.
|
|
5
5
|
*/
|
|
6
6
|
import { ProjectSessionOriginKey } from "./project-sessions.js";
|
|
7
|
-
import {
|
|
7
|
+
import { LW as InheritMode, UW as ProjectContentKind, YW as ProjectInherit, jy as ArtifactContextLevel } from "../../dist/index-ChabiHpR.js";
|
|
8
8
|
import { ReminderWhen } from "./schedules.js";
|
|
9
9
|
import { SecretTimeLeft } from "../../chat/headless/secrets.js";
|
|
10
10
|
import { RunningWorkItem } from "./running-work.js";
|
|
@@ -137,6 +137,11 @@ export declare const DEFAULT_SESSION_LABELS: {
|
|
|
137
137
|
projectArtifactsLoadFailed: string;
|
|
138
138
|
projectArtifactsSearch: string;
|
|
139
139
|
projectArtifactsNoMatch: string;
|
|
140
|
+
projectArtifactsKinds: string;
|
|
141
|
+
projectArtifactsAllKinds: string;
|
|
142
|
+
projectArtifactShow: (label: string) => string;
|
|
143
|
+
projectArtifactHide: (label: string) => string;
|
|
144
|
+
projectArtifactPreview: (label: string) => string;
|
|
140
145
|
projectArtifactKind: (kind: string, label?: string) => string;
|
|
141
146
|
projectArtifactKindCount: (kind: string, count: number) => string;
|
|
142
147
|
projectArtifactSessions: (count: number) => string;
|
|
@@ -268,10 +273,31 @@ export declare const DEFAULT_SESSION_LABELS: {
|
|
|
268
273
|
projectRetry: string;
|
|
269
274
|
projectNameRequired: string;
|
|
270
275
|
projectCreateFailed: string;
|
|
276
|
+
projectHome: string;
|
|
277
|
+
projectHomeNone: string;
|
|
278
|
+
projectHomeRepo: string;
|
|
279
|
+
projectRepoSearch: string;
|
|
280
|
+
projectRepoEmpty: string;
|
|
281
|
+
projectRepoRequired: string;
|
|
282
|
+
projectRepoUrl: string;
|
|
283
|
+
projectRepoCreate: string;
|
|
284
|
+
projectRepoOwner: string;
|
|
285
|
+
projectRepoName: string;
|
|
286
|
+
projectRepoPrivate: string;
|
|
287
|
+
projectRepoChecking: string;
|
|
288
|
+
projectRepoAvailable: string;
|
|
289
|
+
projectRepoCreateFailed: string;
|
|
290
|
+
projectAccess: string;
|
|
291
|
+
projectAccessPrivate: string;
|
|
292
|
+
projectAccessInvite: string;
|
|
271
293
|
projectSettings: string;
|
|
272
294
|
projectSettingsLoadFailed: string;
|
|
273
295
|
projectSaveFailed: string;
|
|
274
296
|
projectMemberReadOnly: string;
|
|
297
|
+
projectSettingsTabs: string;
|
|
298
|
+
projectTabGeneral: string;
|
|
299
|
+
projectTabAgent: string;
|
|
300
|
+
projectTabArtifacts: string;
|
|
275
301
|
projectFolders: string;
|
|
276
302
|
projectHomeFolder: string;
|
|
277
303
|
projectCopyPath: string;
|
|
@@ -301,6 +327,9 @@ export declare const DEFAULT_SESSION_LABELS: {
|
|
|
301
327
|
projectPeople: string;
|
|
302
328
|
projectShare: string;
|
|
303
329
|
projectShareHint: string;
|
|
330
|
+
projectPeopleList: string;
|
|
331
|
+
projectPeopleLoading: string;
|
|
332
|
+
projectPeopleOnlyOwner: string;
|
|
304
333
|
projectServers: string;
|
|
305
334
|
projectPublish: string;
|
|
306
335
|
projectPublishHint: string;
|
|
@@ -526,7 +555,6 @@ export declare const DEFAULT_SESSION_LABELS: {
|
|
|
526
555
|
usageRefreshing: string;
|
|
527
556
|
usageModelProviders: string;
|
|
528
557
|
usageGithub: string;
|
|
529
|
-
usageInUse: string;
|
|
530
558
|
usageCredits: string;
|
|
531
559
|
usageUnavailable: (unauthorized: boolean, error?: string | null) => string;
|
|
532
560
|
usageWindowUsed: (window: string, percent: string) => string;
|
|
@@ -739,6 +767,15 @@ export declare const DEFAULT_SESSION_LABELS: {
|
|
|
739
767
|
detailsStopToDetach: string;
|
|
740
768
|
detailsDetachHint: string;
|
|
741
769
|
detailsDetach: string;
|
|
770
|
+
detailsProject: string;
|
|
771
|
+
detailsSetProject: string;
|
|
772
|
+
detailsProjectMenu: string;
|
|
773
|
+
detailsProjectFilter: string;
|
|
774
|
+
detailsNoProjects: string;
|
|
775
|
+
detailsStopToMove: string;
|
|
776
|
+
detailsMainStays: string;
|
|
777
|
+
detailsChannelStays: string;
|
|
778
|
+
detailsProjectDetachHint: string;
|
|
742
779
|
detailsCache: string;
|
|
743
780
|
detailsCompact: string;
|
|
744
781
|
detailsCompactHint: string;
|
|
@@ -758,6 +795,14 @@ export declare const DEFAULT_SESSION_LABELS: {
|
|
|
758
795
|
peopleHereCount: (count: number) => string;
|
|
759
796
|
/** A person here whose name the server left blank. */
|
|
760
797
|
peopleUnnamed: string;
|
|
798
|
+
/** A person's card (`PersonCard`): connected now, or when they were last active (`duration`: the age reads with "ago"). */
|
|
799
|
+
personOnline: string;
|
|
800
|
+
personLastSeen: (age: string, duration: boolean) => string;
|
|
801
|
+
/** The card's sections: the projects and the sessions you share with them. */
|
|
802
|
+
personProjects: string;
|
|
803
|
+
personSessions: string;
|
|
804
|
+
/** In the composer's toolbar: who else is in the draft it edits together. */
|
|
805
|
+
draftPeople: (names: readonly string[]) => string;
|
|
761
806
|
/** Under the composer of a shared session: who else is typing. */
|
|
762
807
|
typingOne: (name: string) => string;
|
|
763
808
|
typingTwo: (first: string, second: string) => string;
|
|
@@ -144,7 +144,6 @@ const SESSION_SURFACE_LABELS = {
|
|
|
144
144
|
usageRefreshing: "Refreshing…",
|
|
145
145
|
usageModelProviders: "Model providers",
|
|
146
146
|
usageGithub: "GitHub",
|
|
147
|
-
usageInUse: "In use",
|
|
148
147
|
usageCredits: "Credits",
|
|
149
148
|
usageUnavailable: (unauthorized, error) => `${unauthorized ? "Not signed in" : "Unavailable"}${error ? `: ${error}` : ""}`,
|
|
150
149
|
usageWindowUsed: (window, percent) => `${window} ${percent}% used`,
|
|
@@ -380,6 +379,15 @@ const SESSION_SURFACE_LABELS = {
|
|
|
380
379
|
detailsStopToDetach: "Stop the run to detach the folder",
|
|
381
380
|
detailsDetachHint: "Detach the folder and keep chatting",
|
|
382
381
|
detailsDetach: "Detach",
|
|
382
|
+
detailsProject: "Project",
|
|
383
|
+
detailsSetProject: "Set project…",
|
|
384
|
+
detailsProjectMenu: "Move to a project",
|
|
385
|
+
detailsProjectFilter: "Filter projects",
|
|
386
|
+
detailsNoProjects: "No projects",
|
|
387
|
+
detailsStopToMove: "Stop the run to move the session",
|
|
388
|
+
detailsMainStays: "A Main stays in its project",
|
|
389
|
+
detailsChannelStays: "A channel thread stays in its channel's project",
|
|
390
|
+
detailsProjectDetachHint: "Move the session to Chats",
|
|
383
391
|
detailsCache: "Cache",
|
|
384
392
|
detailsCompact: "Compact context",
|
|
385
393
|
detailsCompactHint: "Summarize older turns to free up context.",
|
|
@@ -429,6 +437,14 @@ const DEFAULT_SESSION_LABELS = {
|
|
|
429
437
|
peopleHereCount: (count) => count === 1 ? "1 person here" : `${count} people here`,
|
|
430
438
|
/** A person here whose name the server left blank. */
|
|
431
439
|
peopleUnnamed: "Someone",
|
|
440
|
+
/** A person's card (`PersonCard`): connected now, or when they were last active (`duration`: the age reads with "ago"). */
|
|
441
|
+
personOnline: "Online",
|
|
442
|
+
personLastSeen: (age, duration) => duration ? `Last seen ${age} ago` : `Last seen ${age}`,
|
|
443
|
+
/** The card's sections: the projects and the sessions you share with them. */
|
|
444
|
+
personProjects: "Projects",
|
|
445
|
+
personSessions: "Sessions",
|
|
446
|
+
/** In the composer's toolbar: who else is in the draft it edits together. */
|
|
447
|
+
draftPeople: (names) => `In this draft: ${names.join(", ")}`,
|
|
432
448
|
/** Under the composer of a shared session: who else is typing. */
|
|
433
449
|
typingOne: (name) => `${name} is typing…`,
|
|
434
450
|
typingTwo: (first, second) => `${first} and ${second} are typing…`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Who else has a session open (organization mode, docs/MULTIPLAYER.md), from the host's presence rows
|
|
3
|
-
* (`SessionPresence.people`). The server leaves each connection's
|
|
4
|
-
* watches.
|
|
3
|
+
* (`SessionPresence.people`), and who else is in a project (`ProjectPresence`). The server leaves each connection's
|
|
4
|
+
* own person out. Listens only while something watches.
|
|
5
5
|
*/
|
|
6
6
|
import { PresencePerson } from "zidane/ipc";
|
|
7
7
|
/** A presence row as a host or an app gives it: the session, and who has it open. */
|
|
@@ -26,4 +26,28 @@ export interface SessionPeople {
|
|
|
26
26
|
export declare function createSessionPeople(source: {
|
|
27
27
|
list: () => Promise<readonly PresenceRow[]>;
|
|
28
28
|
onChanged: (listener: (rows: readonly PresenceRow[]) => void) => () => void;
|
|
29
|
-
}): SessionPeople;
|
|
29
|
+
}): SessionPeople;
|
|
30
|
+
/** A project presence row as a host gives it (zidane's `ProjectPresence`): the project, and who is in it. */
|
|
31
|
+
export interface ProjectPresenceRow {
|
|
32
|
+
/** The project. */
|
|
33
|
+
projectId: string;
|
|
34
|
+
/** Who is in it. */
|
|
35
|
+
people: readonly PresencePerson[];
|
|
36
|
+
}
|
|
37
|
+
/** Who else is in each project now (a window on its home, or on a session filed in it), kept current. */
|
|
38
|
+
export interface ProjectPeople {
|
|
39
|
+
/** Calls `listener` with who is in `projectId` now, then on every change. Returns the unsubscribe. */
|
|
40
|
+
watch: (projectId: string, listener: (people: readonly PresencePerson[]) => void) => () => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A {@link ProjectPeople} over a host's project presence: its first list, then each full snapshot it sends. Listens
|
|
44
|
+
* only while something watches.
|
|
45
|
+
*
|
|
46
|
+
* @param source - Reads the project rows, and subscribes to each new snapshot (returns the unsubscribe).
|
|
47
|
+
* @param source.list - The current rows.
|
|
48
|
+
* @param source.onChanged - Each new snapshot.
|
|
49
|
+
*/
|
|
50
|
+
export declare function createProjectPeople(source: {
|
|
51
|
+
list: () => Promise<readonly ProjectPresenceRow[]>;
|
|
52
|
+
onChanged: (listener: (rows: readonly ProjectPresenceRow[]) => void) => () => void;
|
|
53
|
+
}): ProjectPeople;
|
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
// src/session/headless/people.ts
|
|
2
2
|
const NOBODY = [];
|
|
3
|
-
/** The same people, in the same order: no redraw. */
|
|
3
|
+
/** The same people, in the same order, as a face and a card draw them: no redraw. */
|
|
4
4
|
function samePeople(a, b) {
|
|
5
|
-
return a.length === b.length && a.every((person, i) =>
|
|
5
|
+
return a.length === b.length && a.every((person, i) => {
|
|
6
|
+
const other = b[i];
|
|
7
|
+
return person.userId === other.userId && person.name === other.name && person.avatar === other.avatar && person.email === other.email && person.online === other.online;
|
|
8
|
+
});
|
|
6
9
|
}
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @param source - Reads the presence rows, and subscribes to each new snapshot (returns the unsubscribe).
|
|
11
|
-
* @param source.list - The current rows.
|
|
12
|
-
* @param source.onChanged - Each new snapshot.
|
|
13
|
-
*/
|
|
14
|
-
function createSessionPeople(source) {
|
|
10
|
+
/** Listens to `source` only while something watches; each snapshot replaces the last, and a listener hears only a change of its key. */
|
|
11
|
+
function createKeyedPeople(source, entry) {
|
|
15
12
|
let rows = /* @__PURE__ */ new Map();
|
|
16
13
|
const listeners = /* @__PURE__ */ new Map();
|
|
17
14
|
let stop = null;
|
|
18
15
|
let snapshots = 0;
|
|
19
16
|
const apply = (next) => {
|
|
20
17
|
const before = rows;
|
|
21
|
-
rows = new Map(next
|
|
22
|
-
for (const [
|
|
23
|
-
const now = rows.get(
|
|
24
|
-
if (samePeople(before.get(
|
|
18
|
+
rows = new Map((next ?? []).map(entry).filter((pair) => !!pair[1]?.length));
|
|
19
|
+
for (const [key, set] of listeners) {
|
|
20
|
+
const now = rows.get(key) ?? NOBODY;
|
|
21
|
+
if (samePeople(before.get(key) ?? NOBODY, now)) continue;
|
|
25
22
|
for (const listener of set) listener(now);
|
|
26
23
|
}
|
|
27
24
|
};
|
|
28
|
-
return { watch(
|
|
29
|
-
const set = listeners.get(
|
|
30
|
-
listeners.set(
|
|
25
|
+
return { watch(key, listener) {
|
|
26
|
+
const set = listeners.get(key) ?? /* @__PURE__ */ new Set();
|
|
27
|
+
listeners.set(key, set);
|
|
31
28
|
set.add(listener);
|
|
32
29
|
if (!stop) {
|
|
33
30
|
stop = source.onChanged((next) => {
|
|
@@ -39,10 +36,10 @@ function createSessionPeople(source) {
|
|
|
39
36
|
if (stop && snapshots === asked) apply(next);
|
|
40
37
|
}, () => {});
|
|
41
38
|
}
|
|
42
|
-
listener(rows.get(
|
|
39
|
+
listener(rows.get(key) ?? NOBODY);
|
|
43
40
|
return () => {
|
|
44
41
|
set.delete(listener);
|
|
45
|
-
if (set.size === 0) listeners.delete(
|
|
42
|
+
if (set.size === 0) listeners.delete(key);
|
|
46
43
|
if (listeners.size === 0 && stop) {
|
|
47
44
|
stop();
|
|
48
45
|
stop = null;
|
|
@@ -50,4 +47,25 @@ function createSessionPeople(source) {
|
|
|
50
47
|
};
|
|
51
48
|
} };
|
|
52
49
|
}
|
|
53
|
-
|
|
50
|
+
/**
|
|
51
|
+
* A {@link SessionPeople} over a host's presence: its first list, then each full snapshot it sends.
|
|
52
|
+
*
|
|
53
|
+
* @param source - Reads the presence rows, and subscribes to each new snapshot (returns the unsubscribe).
|
|
54
|
+
* @param source.list - The current rows.
|
|
55
|
+
* @param source.onChanged - Each new snapshot.
|
|
56
|
+
*/
|
|
57
|
+
function createSessionPeople(source) {
|
|
58
|
+
return createKeyedPeople(source, (row) => [row.sessionId, row.people]);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A {@link ProjectPeople} over a host's project presence: its first list, then each full snapshot it sends. Listens
|
|
62
|
+
* only while something watches.
|
|
63
|
+
*
|
|
64
|
+
* @param source - Reads the project rows, and subscribes to each new snapshot (returns the unsubscribe).
|
|
65
|
+
* @param source.list - The current rows.
|
|
66
|
+
* @param source.onChanged - Each new snapshot.
|
|
67
|
+
*/
|
|
68
|
+
function createProjectPeople(source) {
|
|
69
|
+
return createKeyedPeople(source, (row) => [row.projectId, row.people]);
|
|
70
|
+
}
|
|
71
|
+
export { createProjectPeople, createSessionPeople };
|
|
@@ -13,6 +13,13 @@ export declare const PROJECT_ARTIFACT_LABELS: {
|
|
|
13
13
|
projectArtifactsLoadFailed: string;
|
|
14
14
|
projectArtifactsSearch: string;
|
|
15
15
|
projectArtifactsNoMatch: string;
|
|
16
|
+
/** The kind filter of the Artifacts tab: every kind, then each kind with its count. */
|
|
17
|
+
projectArtifactsKinds: string;
|
|
18
|
+
projectArtifactsAllKinds: string;
|
|
19
|
+
/** A row that draws in place (a saved view, an image): show it, hide it. */
|
|
20
|
+
projectArtifactShow: (label: string) => string;
|
|
21
|
+
projectArtifactHide: (label: string) => string;
|
|
22
|
+
projectArtifactPreview: (label: string) => string;
|
|
16
23
|
/** A kind's group: the built-in kinds by name, others by the name their registration gives (`label`), else as words; plural. */
|
|
17
24
|
projectArtifactKind: (kind: string, label?: string) => string;
|
|
18
25
|
projectArtifactKindCount: (kind: string, count: number) => string;
|
|
@@ -33,6 +33,13 @@ const PROJECT_ARTIFACT_LABELS = {
|
|
|
33
33
|
projectArtifactsLoadFailed: "Couldn't load the project's artifacts.",
|
|
34
34
|
projectArtifactsSearch: "Search artifacts",
|
|
35
35
|
projectArtifactsNoMatch: "No artifact matches the search.",
|
|
36
|
+
/** The kind filter of the Artifacts tab: every kind, then each kind with its count. */
|
|
37
|
+
projectArtifactsKinds: "Kinds of artifacts",
|
|
38
|
+
projectArtifactsAllKinds: "All",
|
|
39
|
+
/** A row that draws in place (a saved view, an image): show it, hide it. */
|
|
40
|
+
projectArtifactShow: (label) => `Show ${label}`,
|
|
41
|
+
projectArtifactHide: (label) => `Hide ${label}`,
|
|
42
|
+
projectArtifactPreview: (label) => `Preview of ${label}`,
|
|
36
43
|
/** A kind's group: the built-in kinds by name, others by the name their registration gives (`label`), else as words; plural. */
|
|
37
44
|
projectArtifactKind: (kind, label) => KIND_GROUPS[kind] ?? plural(label?.trim() || words(kind)),
|
|
38
45
|
projectArtifactKindCount: (kind, count) => `${kind}, ${count}`,
|
|
@@ -94,6 +94,14 @@ export declare function artifactLocator(uri: string): string | null;
|
|
|
94
94
|
* @param uri - The row's locator.
|
|
95
95
|
*/
|
|
96
96
|
export declare function artifactFilePath(uri: string): string | null;
|
|
97
|
+
/**
|
|
98
|
+
* The address an artifact's image draws from, in place in a list: a web page or a `data:image/…` locator of an
|
|
99
|
+
* `image` or `screenshot` row, or a web locator that names an image file (`…/shot.png`). `null` for anything else,
|
|
100
|
+
* a local file included: the kit has no way to read one.
|
|
101
|
+
*
|
|
102
|
+
* @param row - The row's kind and locator.
|
|
103
|
+
*/
|
|
104
|
+
export declare function projectArtifactImageUrl(row: Pick<ProjectArtifactView, 'kind' | 'uri'>): string | null;
|
|
97
105
|
/**
|
|
98
106
|
* What a row's list shows of it: its label, and under it its short locator ({@link artifactLocator}), never the full
|
|
99
107
|
* one. A label that is the locator itself (a path recorded without one) shows short, as the title alone.
|
|
@@ -220,6 +220,20 @@ function artifactFilePath(uri) {
|
|
|
220
220
|
const path = uri.startsWith("file://") ? decoded(uri.slice(7)) : uri.startsWith("file:") ? decoded(uri.slice(5)) : uri;
|
|
221
221
|
return /^(?:\/(?!\/)|[a-z]:[\\/])/i.test(path) ? path : null;
|
|
222
222
|
}
|
|
223
|
+
const IMAGE_KINDS = /* @__PURE__ */ new Set(["image", "screenshot"]);
|
|
224
|
+
const IMAGE_FILE = /\.(?:png|jpe?g|gif|webp|avif|svg)(?:[?#]|$)/i;
|
|
225
|
+
/**
|
|
226
|
+
* The address an artifact's image draws from, in place in a list: a web page or a `data:image/…` locator of an
|
|
227
|
+
* `image` or `screenshot` row, or a web locator that names an image file (`…/shot.png`). `null` for anything else,
|
|
228
|
+
* a local file included: the kit has no way to read one.
|
|
229
|
+
*
|
|
230
|
+
* @param row - The row's kind and locator.
|
|
231
|
+
*/
|
|
232
|
+
function projectArtifactImageUrl(row) {
|
|
233
|
+
if (/^data:image\//i.test(row.uri)) return row.uri;
|
|
234
|
+
if (!/^https?:\/\//i.test(row.uri)) return null;
|
|
235
|
+
return IMAGE_KINDS.has(row.kind) || IMAGE_FILE.test(row.uri) ? row.uri : null;
|
|
236
|
+
}
|
|
223
237
|
/**
|
|
224
238
|
* What a row's list shows of it: its label, and under it its short locator ({@link artifactLocator}), never the full
|
|
225
239
|
* one. A label that is the locator itself (a path recorded without one) shows short, as the title alone.
|
|
@@ -268,4 +282,4 @@ function withContextBlock(list, id, on) {
|
|
|
268
282
|
const rest = list.filter((entry) => entry !== id);
|
|
269
283
|
return on ? rest : [...rest, id];
|
|
270
284
|
}
|
|
271
|
-
export { artifactFilePath, artifactLocator, createProjectArtifacts, disabledContextOf, groupProjectArtifacts, homeProjectArtifacts, projectArtifactDisplay, projectArtifactLead, withContextBlock };
|
|
285
|
+
export { artifactFilePath, artifactLocator, createProjectArtifacts, disabledContextOf, groupProjectArtifacts, homeProjectArtifacts, projectArtifactDisplay, projectArtifactImageUrl, projectArtifactLead, withContextBlock };
|
|
@@ -23,10 +23,31 @@ export declare const PROJECT_LABELS: {
|
|
|
23
23
|
projectRetry: string;
|
|
24
24
|
projectNameRequired: string;
|
|
25
25
|
projectCreateFailed: string;
|
|
26
|
+
projectHome: string;
|
|
27
|
+
projectHomeNone: string;
|
|
28
|
+
projectHomeRepo: string;
|
|
29
|
+
projectRepoSearch: string;
|
|
30
|
+
projectRepoEmpty: string;
|
|
31
|
+
projectRepoRequired: string;
|
|
32
|
+
projectRepoUrl: string;
|
|
33
|
+
projectRepoCreate: string;
|
|
34
|
+
projectRepoOwner: string;
|
|
35
|
+
projectRepoName: string;
|
|
36
|
+
projectRepoPrivate: string;
|
|
37
|
+
projectRepoChecking: string;
|
|
38
|
+
projectRepoAvailable: string;
|
|
39
|
+
projectRepoCreateFailed: string;
|
|
40
|
+
projectAccess: string;
|
|
41
|
+
projectAccessPrivate: string;
|
|
42
|
+
projectAccessInvite: string;
|
|
26
43
|
projectSettings: string;
|
|
27
44
|
projectSettingsLoadFailed: string;
|
|
28
45
|
projectSaveFailed: string;
|
|
29
46
|
projectMemberReadOnly: string;
|
|
47
|
+
projectSettingsTabs: string;
|
|
48
|
+
projectTabGeneral: string;
|
|
49
|
+
projectTabAgent: string;
|
|
50
|
+
projectTabArtifacts: string;
|
|
30
51
|
projectFolders: string;
|
|
31
52
|
projectHomeFolder: string;
|
|
32
53
|
projectCopyPath: string;
|
|
@@ -57,6 +78,10 @@ export declare const PROJECT_LABELS: {
|
|
|
57
78
|
projectPeople: string;
|
|
58
79
|
projectShare: string;
|
|
59
80
|
projectShareHint: string;
|
|
81
|
+
/** The people who share the project, in its settings' Sharing section. */
|
|
82
|
+
projectPeopleList: string;
|
|
83
|
+
projectPeopleLoading: string;
|
|
84
|
+
projectPeopleOnlyOwner: string;
|
|
60
85
|
projectServers: string;
|
|
61
86
|
projectPublish: string;
|
|
62
87
|
projectPublishHint: string;
|
|
@@ -24,10 +24,31 @@ const PROJECT_LABELS = {
|
|
|
24
24
|
projectRetry: "Retry",
|
|
25
25
|
projectNameRequired: "A project with no folder needs a name.",
|
|
26
26
|
projectCreateFailed: "Couldn't create the project.",
|
|
27
|
+
projectHome: "Home",
|
|
28
|
+
projectHomeNone: "None",
|
|
29
|
+
projectHomeRepo: "Repository",
|
|
30
|
+
projectRepoSearch: "Search repositories",
|
|
31
|
+
projectRepoEmpty: "No repositories found.",
|
|
32
|
+
projectRepoRequired: "Pick a repository.",
|
|
33
|
+
projectRepoUrl: "Repository URL",
|
|
34
|
+
projectRepoCreate: "Create repository",
|
|
35
|
+
projectRepoOwner: "Owner",
|
|
36
|
+
projectRepoName: "Repository name",
|
|
37
|
+
projectRepoPrivate: "Private repository",
|
|
38
|
+
projectRepoChecking: "Checking…",
|
|
39
|
+
projectRepoAvailable: "Available",
|
|
40
|
+
projectRepoCreateFailed: "Could not create the repository.",
|
|
41
|
+
projectAccess: "Access",
|
|
42
|
+
projectAccessPrivate: "Private",
|
|
43
|
+
projectAccessInvite: "Invite people",
|
|
27
44
|
projectSettings: "Project settings",
|
|
28
45
|
projectSettingsLoadFailed: "Couldn't load the project's settings.",
|
|
29
46
|
projectSaveFailed: "Couldn't save the change.",
|
|
30
47
|
projectMemberReadOnly: "Only the owner and maintainers can change the project's settings.",
|
|
48
|
+
projectSettingsTabs: "Project settings pages",
|
|
49
|
+
projectTabGeneral: "General",
|
|
50
|
+
projectTabAgent: "Agent",
|
|
51
|
+
projectTabArtifacts: "Artifacts",
|
|
31
52
|
projectFolders: "Folders",
|
|
32
53
|
projectHomeFolder: "Home folder",
|
|
33
54
|
projectCopyPath: "Copy path",
|
|
@@ -58,6 +79,10 @@ const PROJECT_LABELS = {
|
|
|
58
79
|
projectPeople: "People",
|
|
59
80
|
projectShare: "Share…",
|
|
60
81
|
projectShareHint: "Members can start their own sessions in the project.",
|
|
82
|
+
/** The people who share the project, in its settings' Sharing section. */
|
|
83
|
+
projectPeopleList: "People in the project",
|
|
84
|
+
projectPeopleLoading: "Loading who shares the project…",
|
|
85
|
+
projectPeopleOnlyOwner: "Only the owner so far.",
|
|
61
86
|
projectServers: "Servers",
|
|
62
87
|
projectPublish: "Publish…",
|
|
63
88
|
projectPublishHint: "Send a copy to a server.",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the caller shares with each person (`SessionSharingHost.shared`), read when a person's card first opens and
|
|
3
|
+
* kept for a short while, so a pointer that sweeps the same faces asks once. React-free.
|
|
4
|
+
*/
|
|
5
|
+
import { SharedWithView } from "zidane/ipc";
|
|
6
|
+
/** How long an answer stays fresh, in ms. */
|
|
7
|
+
export declare const SHARED_WITH_TTL_MS = 30000;
|
|
8
|
+
/** The answers of `shared`, per person, kept {@link SHARED_WITH_TTL_MS}. */
|
|
9
|
+
export interface SharedWithCache {
|
|
10
|
+
/** The fresh answer for `userId`, else `undefined`. */
|
|
11
|
+
peek: (userId: string) => SharedWithView | undefined;
|
|
12
|
+
/** The answer for `userId`: the fresh one, the read in flight, or a new read (`force`: always a new read). */
|
|
13
|
+
load: (userId: string, force?: boolean) => Promise<SharedWithView>;
|
|
14
|
+
/** Forgets every answer: the next `load` reads again. */
|
|
15
|
+
clear: () => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A {@link SharedWithCache} over a host's `shared`.
|
|
19
|
+
*
|
|
20
|
+
* @param shared - Reads what the caller shares with a person.
|
|
21
|
+
* @param options - `ttlMs` (default {@link SHARED_WITH_TTL_MS}) and the clock (`now`).
|
|
22
|
+
* @param options.ttlMs - How long an answer stays fresh.
|
|
23
|
+
* @param options.now - The clock, epoch ms.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createSharedWithCache(shared: (userId: string) => Promise<SharedWithView>, options?: {
|
|
26
|
+
ttlMs?: number;
|
|
27
|
+
now?: () => number;
|
|
28
|
+
}): SharedWithCache;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// src/session/headless/shared-with.ts
|
|
2
|
+
/** How long an answer stays fresh, in ms. */
|
|
3
|
+
const SHARED_WITH_TTL_MS = 3e4;
|
|
4
|
+
/**
|
|
5
|
+
* A {@link SharedWithCache} over a host's `shared`.
|
|
6
|
+
*
|
|
7
|
+
* @param shared - Reads what the caller shares with a person.
|
|
8
|
+
* @param options - `ttlMs` (default {@link SHARED_WITH_TTL_MS}) and the clock (`now`).
|
|
9
|
+
* @param options.ttlMs - How long an answer stays fresh.
|
|
10
|
+
* @param options.now - The clock, epoch ms.
|
|
11
|
+
*/
|
|
12
|
+
function createSharedWithCache(shared, options = {}) {
|
|
13
|
+
const ttl = options.ttlMs ?? 3e4;
|
|
14
|
+
const now = options.now ?? Date.now;
|
|
15
|
+
const answers = /* @__PURE__ */ new Map();
|
|
16
|
+
const reading = /* @__PURE__ */ new Map();
|
|
17
|
+
let generation = 0;
|
|
18
|
+
const fresh = (userId) => {
|
|
19
|
+
const hit = answers.get(userId);
|
|
20
|
+
if (!hit) return void 0;
|
|
21
|
+
if (now() - hit.at < ttl) return hit.view;
|
|
22
|
+
answers.delete(userId);
|
|
23
|
+
};
|
|
24
|
+
return {
|
|
25
|
+
peek: fresh,
|
|
26
|
+
load(userId, force = false) {
|
|
27
|
+
const hit = force ? void 0 : fresh(userId);
|
|
28
|
+
if (hit) return Promise.resolve(hit);
|
|
29
|
+
const inFlight = force ? void 0 : reading.get(userId);
|
|
30
|
+
if (inFlight) return inFlight;
|
|
31
|
+
const started = generation;
|
|
32
|
+
const read = shared(userId).then((view) => {
|
|
33
|
+
if (started === generation) answers.set(userId, {
|
|
34
|
+
at: now(),
|
|
35
|
+
view
|
|
36
|
+
});
|
|
37
|
+
return view;
|
|
38
|
+
}).finally(() => {
|
|
39
|
+
if (reading.get(userId) === read) reading.delete(userId);
|
|
40
|
+
});
|
|
41
|
+
reading.set(userId, read);
|
|
42
|
+
return read;
|
|
43
|
+
},
|
|
44
|
+
clear() {
|
|
45
|
+
generation++;
|
|
46
|
+
answers.clear();
|
|
47
|
+
reading.clear();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export { SHARED_WITH_TTL_MS, createSharedWithCache };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The session host in context, and how a dialog opened on the modal layer keeps it. Internal to the kit:
|
|
3
|
+
* `SessionProvider` sets it. The modal layer sits at the app's root, under the app's host: a dialog opened from a
|
|
4
|
+
* place with another host's projects (a saved server's project home) reads that host, as its opener did.
|
|
5
|
+
*/
|
|
6
|
+
import { SessionHost } from "./headless/host.js";
|
|
7
|
+
import { ReactNode } from "react";
|
|
8
|
+
/** The nearest session host; `null` outside a `SessionProvider`. */
|
|
9
|
+
export declare const SessionHostContext: import("react").Context<SessionHost | null>;
|
|
10
|
+
/** Wraps a node for the modal layer in the caller's session host, so it reads what its opener reads. */
|
|
11
|
+
export declare function useCarrySessionHost(): (node: ReactNode) => ReactNode;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createContext, useCallback, useContext } from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/session/host-context.tsx
|
|
4
|
+
/** The nearest session host; `null` outside a `SessionProvider`. */
|
|
5
|
+
const SessionHostContext = createContext(null);
|
|
6
|
+
/** Wraps a node for the modal layer in the caller's session host, so it reads what its opener reads. */
|
|
7
|
+
function useCarrySessionHost() {
|
|
8
|
+
const host = useContext(SessionHostContext);
|
|
9
|
+
return useCallback((node) => host ? /* @__PURE__ */ jsx(SessionHostContext.Provider, {
|
|
10
|
+
value: host,
|
|
11
|
+
children: node
|
|
12
|
+
}) : node, [host]);
|
|
13
|
+
}
|
|
14
|
+
export { SessionHostContext, useCarrySessionHost };
|