@cerbur/clutch-dsh-worktree 0.1.9 → 0.1.10
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/README.md +99 -23
- package/README.zh.md +75 -19
- package/lib/client/WorktreeSurface.d.ts +4 -7
- package/lib/client/WorktreeSurface.d.ts.map +1 -1
- package/lib/client/WorktreeSurface.js +44 -1419
- package/lib/client/WorktreeSurface.js.map +1 -1
- package/lib/client/{WorktreeContext.d.ts → context/WorktreeContext.d.ts} +1 -1
- package/lib/client/context/WorktreeContext.d.ts.map +1 -0
- package/lib/client/context/WorktreeContext.js.map +1 -0
- package/lib/client/{WorktreeHeroContext.d.ts → context/WorktreeHeroContext.d.ts} +1 -1
- package/lib/client/context/WorktreeHeroContext.d.ts.map +1 -0
- package/lib/client/context/WorktreeHeroContext.js.map +1 -0
- package/lib/client/{worktree-context-store.d.ts → context/worktree-context-store.d.ts} +1 -1
- package/lib/client/context/worktree-context-store.d.ts.map +1 -0
- package/lib/client/{worktree-context-store.js → context/worktree-context-store.js} +2 -2
- package/lib/client/context/worktree-context-store.js.map +1 -0
- package/lib/client/{worktree-context.d.ts → context/worktree-context.d.ts} +1 -1
- package/lib/client/context/worktree-context.d.ts.map +1 -0
- package/lib/client/{worktree-context.js → context/worktree-context.js} +5 -3
- package/lib/client/context/worktree-context.js.map +1 -0
- package/lib/client/entry.d.ts +1 -1
- package/lib/client/entry.d.ts.map +1 -1
- package/lib/client/entry.js +25 -13
- package/lib/client/entry.js.map +1 -1
- package/lib/client/index.d.ts +3 -3
- package/lib/client/index.d.ts.map +1 -1
- package/lib/client/index.js +2 -2
- package/lib/client/index.js.map +1 -1
- package/lib/client/locales.d.ts +66 -0
- package/lib/client/locales.d.ts.map +1 -1
- package/lib/client/locales.js +76 -10
- package/lib/client/locales.js.map +1 -1
- package/lib/client/{WorktreeOverlay.d.ts → overlay/WorktreeOverlay.d.ts} +2 -2
- package/lib/client/overlay/WorktreeOverlay.d.ts.map +1 -0
- package/lib/client/{WorktreeOverlay.js → overlay/WorktreeOverlay.js} +2 -2
- package/lib/client/overlay/WorktreeOverlay.js.map +1 -0
- package/lib/client/overlay/overlay-bounds.d.ts.map +1 -0
- package/lib/client/overlay/overlay-bounds.js.map +1 -0
- package/lib/client/overlay/sidebar-overlay-geometry.d.ts.map +1 -0
- package/lib/client/overlay/sidebar-overlay-geometry.js.map +1 -0
- package/lib/client/permission/worktree-permission-icon.d.ts.map +1 -0
- package/lib/client/permission/worktree-permission-icon.js.map +1 -0
- package/lib/client/permission/worktree-permission.d.ts.map +1 -0
- package/lib/client/permission/worktree-permission.js.map +1 -0
- package/lib/client/session/session-view.d.ts.map +1 -0
- package/lib/client/session/session-view.js.map +1 -0
- package/lib/client/{virtual-workspace-membership.d.ts → session/virtual-workspace-membership.d.ts} +1 -1
- package/lib/client/session/virtual-workspace-membership.d.ts.map +1 -0
- package/lib/client/{virtual-workspace-membership.js → session/virtual-workspace-membership.js} +1 -1
- package/lib/client/session/virtual-workspace-membership.js.map +1 -0
- package/lib/client/{worktree-session-fork.d.ts → session/worktree-session-fork.d.ts} +7 -1
- package/lib/client/session/worktree-session-fork.d.ts.map +1 -0
- package/lib/client/{worktree-session-fork.js → session/worktree-session-fork.js} +50 -4
- package/lib/client/session/worktree-session-fork.js.map +1 -0
- package/lib/client/session/worktree-session-order.d.ts.map +1 -0
- package/lib/client/session/worktree-session-order.js.map +1 -0
- package/lib/client/session/worktree-session-position.d.ts.map +1 -0
- package/lib/client/session/worktree-session-position.js.map +1 -0
- package/lib/client/{worktree-session.d.ts → session/worktree-session.d.ts} +3 -3
- package/lib/client/session/worktree-session.d.ts.map +1 -0
- package/lib/client/{worktree-session.js → session/worktree-session.js} +3 -3
- package/lib/client/session/worktree-session.js.map +1 -0
- package/lib/client/surface/actions/lifecycle-commands.d.ts +9 -0
- package/lib/client/surface/actions/lifecycle-commands.d.ts.map +1 -0
- package/lib/client/surface/actions/lifecycle-commands.js +243 -0
- package/lib/client/surface/actions/lifecycle-commands.js.map +1 -0
- package/lib/client/surface/actions/useDragActions.d.ts +26 -0
- package/lib/client/surface/actions/useDragActions.d.ts.map +1 -0
- package/lib/client/surface/actions/useDragActions.js +125 -0
- package/lib/client/surface/actions/useDragActions.js.map +1 -0
- package/lib/client/surface/actions/useLifecycleActions.d.ts +30 -0
- package/lib/client/surface/actions/useLifecycleActions.d.ts.map +1 -0
- package/lib/client/surface/actions/useLifecycleActions.js +140 -0
- package/lib/client/surface/actions/useLifecycleActions.js.map +1 -0
- package/lib/client/surface/actions/useNativeActions.d.ts +48 -0
- package/lib/client/surface/actions/useNativeActions.d.ts.map +1 -0
- package/lib/client/surface/actions/useNativeActions.js +182 -0
- package/lib/client/surface/actions/useNativeActions.js.map +1 -0
- package/lib/client/surface/actions/useSessionActions.d.ts +24 -0
- package/lib/client/surface/actions/useSessionActions.d.ts.map +1 -0
- package/lib/client/surface/actions/useSessionActions.js +116 -0
- package/lib/client/surface/actions/useSessionActions.js.map +1 -0
- package/lib/client/surface/actions/useSurfaceMutation.d.ts +15 -0
- package/lib/client/surface/actions/useSurfaceMutation.d.ts.map +1 -0
- package/lib/client/surface/actions/useSurfaceMutation.js +24 -0
- package/lib/client/surface/actions/useSurfaceMutation.js.map +1 -0
- package/lib/client/surface/actions/useWorktreeRegistration.d.ts +31 -0
- package/lib/client/surface/actions/useWorktreeRegistration.d.ts.map +1 -0
- package/lib/client/surface/actions/useWorktreeRegistration.js +203 -0
- package/lib/client/surface/actions/useWorktreeRegistration.js.map +1 -0
- package/lib/client/surface/actions/worktree-cleanup-flow.d.ts +10 -0
- package/lib/client/surface/actions/worktree-cleanup-flow.d.ts.map +1 -0
- package/lib/client/surface/actions/worktree-cleanup-flow.js +19 -0
- package/lib/client/surface/actions/worktree-cleanup-flow.js.map +1 -0
- package/lib/client/surface/components/AccessConfirmation.d.ts +9 -0
- package/lib/client/surface/components/AccessConfirmation.d.ts.map +1 -0
- package/lib/client/surface/components/AccessConfirmation.js +18 -0
- package/lib/client/surface/components/AccessConfirmation.js.map +1 -0
- package/lib/client/surface/components/ActiveWorktree.d.ts +28 -0
- package/lib/client/surface/components/ActiveWorktree.d.ts.map +1 -0
- package/lib/client/surface/components/ActiveWorktree.js +154 -0
- package/lib/client/surface/components/ActiveWorktree.js.map +1 -0
- package/lib/client/surface/components/ArchivedWorktree.d.ts +24 -0
- package/lib/client/surface/components/ArchivedWorktree.d.ts.map +1 -0
- package/lib/client/surface/components/ArchivedWorktree.js +145 -0
- package/lib/client/surface/components/ArchivedWorktree.js.map +1 -0
- package/lib/client/surface/components/ArchivedWorktrees.d.ts +25 -0
- package/lib/client/surface/components/ArchivedWorktrees.d.ts.map +1 -0
- package/lib/client/surface/components/ArchivedWorktrees.js +20 -0
- package/lib/client/surface/components/ArchivedWorktrees.js.map +1 -0
- package/lib/client/surface/components/LifecycleDialogs.d.ts +20 -0
- package/lib/client/surface/components/LifecycleDialogs.d.ts.map +1 -0
- package/lib/client/surface/components/LifecycleDialogs.js +31 -0
- package/lib/client/surface/components/LifecycleDialogs.js.map +1 -0
- package/lib/client/surface/components/NativeDialogs.d.ts +9 -0
- package/lib/client/surface/components/NativeDialogs.d.ts.map +1 -0
- package/lib/client/surface/components/NativeDialogs.js +14 -0
- package/lib/client/surface/components/NativeDialogs.js.map +1 -0
- package/lib/client/surface/components/NotificationToasts.d.ts +7 -0
- package/lib/client/surface/components/NotificationToasts.d.ts.map +1 -0
- package/lib/client/surface/components/NotificationToasts.js +24 -0
- package/lib/client/surface/components/NotificationToasts.js.map +1 -0
- package/lib/client/surface/components/RegistrationDialog.d.ts +15 -0
- package/lib/client/surface/components/RegistrationDialog.d.ts.map +1 -0
- package/lib/client/surface/components/RegistrationDialog.js +22 -0
- package/lib/client/surface/components/RegistrationDialog.js.map +1 -0
- package/lib/client/surface/components/SurfaceContent.d.ts +31 -0
- package/lib/client/surface/components/SurfaceContent.d.ts.map +1 -0
- package/lib/client/surface/components/SurfaceContent.js +65 -0
- package/lib/client/surface/components/SurfaceContent.js.map +1 -0
- package/lib/client/surface/components/SurfaceHeader.d.ts +15 -0
- package/lib/client/surface/components/SurfaceHeader.d.ts.map +1 -0
- package/lib/client/surface/components/SurfaceHeader.js +42 -0
- package/lib/client/surface/components/SurfaceHeader.js.map +1 -0
- package/lib/client/surface/components/WorkspaceTree.d.ts +32 -0
- package/lib/client/surface/components/WorkspaceTree.d.ts.map +1 -0
- package/lib/client/surface/components/WorkspaceTree.js +145 -0
- package/lib/client/surface/components/WorkspaceTree.js.map +1 -0
- package/lib/client/{worktree-surface-dialogs.d.ts → surface/components/dialogs.d.ts} +5 -2
- package/lib/client/surface/components/dialogs.d.ts.map +1 -0
- package/lib/client/{worktree-surface-dialogs.js → surface/components/dialogs.js} +67 -24
- package/lib/client/surface/components/dialogs.js.map +1 -0
- package/lib/client/{worktree-surface-rows.d.ts → surface/components/rows.d.ts} +3 -3
- package/lib/client/surface/components/rows.d.ts.map +1 -0
- package/lib/client/{worktree-surface-rows.js → surface/components/rows.js} +79 -17
- package/lib/client/surface/components/rows.js.map +1 -0
- package/lib/client/surface/notification-queue.d.ts +11 -0
- package/lib/client/surface/notification-queue.d.ts.map +1 -0
- package/lib/client/surface/notification-queue.js +19 -0
- package/lib/client/surface/notification-queue.js.map +1 -0
- package/lib/client/{worktree-surface-selectors.d.ts → surface/selectors.d.ts} +10 -5
- package/lib/client/surface/selectors.d.ts.map +1 -0
- package/lib/client/{worktree-surface-selectors.js → surface/selectors.js} +23 -6
- package/lib/client/surface/selectors.js.map +1 -0
- package/lib/client/surface/shared.d.ts +40 -0
- package/lib/client/surface/shared.d.ts.map +1 -0
- package/lib/client/surface/shared.js +53 -0
- package/lib/client/surface/shared.js.map +1 -0
- package/lib/client/surface/state/useLifecycleState.d.ts +34 -0
- package/lib/client/surface/state/useLifecycleState.d.ts.map +1 -0
- package/lib/client/surface/state/useLifecycleState.js +39 -0
- package/lib/client/surface/state/useLifecycleState.js.map +1 -0
- package/lib/client/surface/state/useRegistrationState.d.ts +34 -0
- package/lib/client/surface/state/useRegistrationState.d.ts.map +1 -0
- package/lib/client/surface/state/useRegistrationState.js +44 -0
- package/lib/client/surface/state/useRegistrationState.js.map +1 -0
- package/lib/client/surface/state/useSessionExpansion.d.ts +39 -0
- package/lib/client/surface/state/useSessionExpansion.d.ts.map +1 -0
- package/lib/client/surface/state/useSessionExpansion.js +230 -0
- package/lib/client/surface/state/useSessionExpansion.js.map +1 -0
- package/lib/client/surface/state/useSessionOrdering.d.ts +15 -0
- package/lib/client/surface/state/useSessionOrdering.d.ts.map +1 -0
- package/lib/client/surface/state/useSessionOrdering.js +68 -0
- package/lib/client/surface/state/useSessionOrdering.js.map +1 -0
- package/lib/client/surface/state/useSurfaceMenus.d.ts +9 -0
- package/lib/client/surface/state/useSurfaceMenus.d.ts.map +1 -0
- package/lib/client/surface/state/useSurfaceMenus.js +15 -0
- package/lib/client/surface/state/useSurfaceMenus.js.map +1 -0
- package/lib/client/surface/state/useSurfaceRefresh.d.ts +39 -0
- package/lib/client/surface/state/useSurfaceRefresh.d.ts.map +1 -0
- package/lib/client/surface/state/useSurfaceRefresh.js +274 -0
- package/lib/client/surface/state/useSurfaceRefresh.js.map +1 -0
- package/lib/client/surface/state/useSurfaceSources.d.ts +31 -0
- package/lib/client/surface/state/useSurfaceSources.d.ts.map +1 -0
- package/lib/client/surface/state/useSurfaceSources.js +63 -0
- package/lib/client/surface/state/useSurfaceSources.js.map +1 -0
- package/lib/client/{worktree-surface-types.d.ts → surface/types.d.ts} +50 -13
- package/lib/client/surface/types.d.ts.map +1 -0
- package/lib/client/surface/types.js +2 -0
- package/lib/client/surface/types.js.map +1 -0
- package/lib/client/{WorktreeModeAction.d.ts → view/WorktreeModeAction.d.ts} +1 -1
- package/lib/client/view/WorktreeModeAction.d.ts.map +1 -0
- package/lib/client/{WorktreeModeAction.js → view/WorktreeModeAction.js} +1 -1
- package/lib/client/view/WorktreeModeAction.js.map +1 -0
- package/lib/client/view/navigation.d.ts.map +1 -0
- package/lib/client/view/navigation.js.map +1 -0
- package/lib/client/view/view-mode-store.d.ts.map +1 -0
- package/lib/client/view/view-mode-store.js.map +1 -0
- package/lib/client/view/view-mode.d.ts.map +1 -0
- package/lib/client/view/view-mode.js.map +1 -0
- package/lib/client/{worktree-error-copy.d.ts → view/worktree-error-copy.d.ts} +2 -2
- package/lib/client/view/worktree-error-copy.d.ts.map +1 -0
- package/lib/client/view/worktree-error-copy.js.map +1 -0
- package/lib/client/{worktree-expand-state.d.ts → view/worktree-expand-state.d.ts} +1 -0
- package/lib/client/view/worktree-expand-state.d.ts.map +1 -0
- package/lib/client/{worktree-expand-state.js → view/worktree-expand-state.js} +11 -0
- package/lib/client/view/worktree-expand-state.js.map +1 -0
- package/lib/client/{worktree-view-actions.d.ts → view/worktree-view-actions.d.ts} +11 -5
- package/lib/client/view/worktree-view-actions.d.ts.map +1 -0
- package/lib/client/{worktree-view-actions.js → view/worktree-view-actions.js} +13 -11
- package/lib/client/view/worktree-view-actions.js.map +1 -0
- package/lib/client/view/worktree-view-errors.d.ts.map +1 -0
- package/lib/client/view/worktree-view-errors.js.map +1 -0
- package/lib/client/{worktree-view-read.d.ts → view/worktree-view-read.d.ts} +4 -2
- package/lib/client/view/worktree-view-read.d.ts.map +1 -0
- package/lib/client/{worktree-view-read.js → view/worktree-view-read.js} +4 -1
- package/lib/client/view/worktree-view-read.js.map +1 -0
- package/lib/client/view/worktree-view.d.ts.map +1 -0
- package/lib/client/view/worktree-view.js.map +1 -0
- package/lib/client/worktree-connection.d.ts +5 -0
- package/lib/client/worktree-connection.d.ts.map +1 -1
- package/lib/client/worktree-connection.js +16 -0
- package/lib/client/worktree-connection.js.map +1 -1
- package/lib/client.js +4295 -2634
- package/lib/client.js.map +1 -1
- package/lib/contract/index.contract.js +10 -0
- package/lib/contract/index.contract.js.map +1 -1
- package/lib/contract/index.d.ts +46 -3
- package/lib/contract/index.d.ts.map +1 -1
- package/lib/contract/index.js +7 -0
- package/lib/contract/index.js.map +1 -1
- package/lib/host/dsh-read-adapter.d.ts +10 -1
- package/lib/host/dsh-read-adapter.d.ts.map +1 -1
- package/lib/host/dsh-read-adapter.js +18 -1
- package/lib/host/dsh-read-adapter.js.map +1 -1
- package/lib/host/remote.d.ts.map +1 -1
- package/lib/host/remote.js +14 -0
- package/lib/host/remote.js.map +1 -1
- package/lib/host/service.d.ts +24 -0
- package/lib/host/service.d.ts.map +1 -1
- package/lib/host/service.js +39 -1
- package/lib/host/service.js.map +1 -1
- package/lib/host/worktree-activity.d.ts +13 -0
- package/lib/host/worktree-activity.d.ts.map +1 -0
- package/lib/host/worktree-activity.js +23 -0
- package/lib/host/worktree-activity.js.map +1 -0
- package/lib/host/worktree-permission-manager.js +2 -2
- package/lib/host/worktree-permission-manager.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/manage/manager-context.d.ts +2 -1
- package/lib/manage/manager-context.d.ts.map +1 -1
- package/lib/manage/manager-sessions.js +4 -4
- package/lib/manage/manager-sessions.js.map +1 -1
- package/lib/manage/manager-worktree-lifecycle.d.ts +23 -0
- package/lib/manage/manager-worktree-lifecycle.d.ts.map +1 -0
- package/lib/manage/manager-worktree-lifecycle.js +165 -0
- package/lib/manage/manager-worktree-lifecycle.js.map +1 -0
- package/lib/manage/manager-worktrees.d.ts +1 -6
- package/lib/manage/manager-worktrees.d.ts.map +1 -1
- package/lib/manage/manager-worktrees.js +78 -112
- package/lib/manage/manager-worktrees.js.map +1 -1
- package/lib/manage/manager.d.ts +17 -1
- package/lib/manage/manager.d.ts.map +1 -1
- package/lib/manage/manager.js +23 -6
- package/lib/manage/manager.js.map +1 -1
- package/lib/provider/generated-name.d.ts +8 -0
- package/lib/provider/generated-name.d.ts.map +1 -0
- package/lib/provider/generated-name.js +29 -0
- package/lib/provider/generated-name.js.map +1 -0
- package/lib/provider/{git.d.ts → git/adapter.d.ts} +2 -2
- package/lib/provider/git/adapter.d.ts.map +1 -0
- package/lib/provider/{git.js → git/adapter.js} +11 -2
- package/lib/provider/git/adapter.js.map +1 -0
- package/lib/provider/{repository-fingerprint.d.ts → git/repository-fingerprint.d.ts} +1 -1
- package/lib/provider/git/repository-fingerprint.d.ts.map +1 -0
- package/lib/provider/git/repository-fingerprint.js.map +1 -0
- package/lib/provider/{subprocess.d.ts → git/subprocess.d.ts} +1 -1
- package/lib/provider/git/subprocess.d.ts.map +1 -0
- package/lib/provider/git/subprocess.js.map +1 -0
- package/lib/provider/git/worktree-status.d.ts +5 -0
- package/lib/provider/git/worktree-status.d.ts.map +1 -0
- package/lib/provider/git/worktree-status.js +23 -0
- package/lib/provider/git/worktree-status.js.map +1 -0
- package/lib/provider/index.d.ts +5 -5
- package/lib/provider/index.d.ts.map +1 -1
- package/lib/provider/index.js +5 -5
- package/lib/provider/index.js.map +1 -1
- package/lib/provider/mutation-token.d.ts +1 -1
- package/lib/provider/mutation-token.d.ts.map +1 -1
- package/lib/provider/mutation-token.js +1 -0
- package/lib/provider/mutation-token.js.map +1 -1
- package/lib/provider/sidecar/mutation-lock.d.ts.map +1 -0
- package/lib/provider/{mutation-lock.js → sidecar/mutation-lock.js} +1 -1
- package/lib/provider/sidecar/mutation-lock.js.map +1 -0
- package/lib/provider/{sidecar.d.ts → sidecar/repository.d.ts} +3 -3
- package/lib/provider/sidecar/repository.d.ts.map +1 -0
- package/lib/provider/{sidecar.js → sidecar/repository.js} +12 -5
- package/lib/provider/sidecar/repository.js.map +1 -0
- package/lib/provider/{sidecar-persistence.d.ts → sidecar/sidecar-persistence.d.ts} +1 -1
- package/lib/provider/sidecar/sidecar-persistence.d.ts.map +1 -0
- package/lib/provider/{sidecar-persistence.js → sidecar/sidecar-persistence.js} +29 -2
- package/lib/provider/sidecar/sidecar-persistence.js.map +1 -0
- package/lib/provider/{sidecar-schema.d.ts → sidecar/sidecar-schema.d.ts} +1 -1
- package/lib/provider/sidecar/sidecar-schema.d.ts.map +1 -0
- package/lib/provider/{sidecar-schema.js → sidecar/sidecar-schema.js} +52 -16
- package/lib/provider/sidecar/sidecar-schema.js.map +1 -0
- package/lib/provider/transaction/dependencies.d.ts +10 -0
- package/lib/provider/transaction/dependencies.d.ts.map +1 -0
- package/lib/provider/transaction/dependencies.js +2 -0
- package/lib/provider/transaction/dependencies.js.map +1 -0
- package/lib/provider/transaction/index.d.ts +17 -0
- package/lib/provider/transaction/index.d.ts.map +1 -0
- package/lib/provider/transaction/index.js +44 -0
- package/lib/provider/transaction/index.js.map +1 -0
- package/lib/provider/transaction/operations/adopt-branch.d.ts +6 -0
- package/lib/provider/transaction/operations/adopt-branch.d.ts.map +1 -0
- package/lib/provider/transaction/operations/adopt-branch.js +59 -0
- package/lib/provider/transaction/operations/adopt-branch.js.map +1 -0
- package/lib/provider/transaction/operations/clean.d.ts +4 -0
- package/lib/provider/transaction/operations/clean.d.ts.map +1 -0
- package/lib/provider/transaction/operations/clean.js +168 -0
- package/lib/provider/transaction/operations/clean.js.map +1 -0
- package/lib/provider/transaction/operations/create.d.ts +5 -0
- package/lib/provider/transaction/operations/create.d.ts.map +1 -0
- package/lib/provider/transaction/operations/create.js +136 -0
- package/lib/provider/transaction/operations/create.js.map +1 -0
- package/lib/provider/transaction/operations/import.d.ts +5 -0
- package/lib/provider/transaction/operations/import.d.ts.map +1 -0
- package/lib/provider/transaction/operations/import.js +92 -0
- package/lib/provider/transaction/operations/import.js.map +1 -0
- package/lib/provider/transaction/operations/remove.d.ts +4 -0
- package/lib/provider/transaction/operations/remove.d.ts.map +1 -0
- package/lib/provider/transaction/operations/remove.js +164 -0
- package/lib/provider/transaction/operations/remove.js.map +1 -0
- package/lib/provider/transaction/recovery/failure-recovery.d.ts +32 -0
- package/lib/provider/transaction/recovery/failure-recovery.d.ts.map +1 -0
- package/lib/provider/transaction/recovery/failure-recovery.js +147 -0
- package/lib/provider/transaction/recovery/failure-recovery.js.map +1 -0
- package/lib/provider/transaction/recovery/recover.d.ts +4 -0
- package/lib/provider/transaction/recovery/recover.d.ts.map +1 -0
- package/lib/provider/transaction/recovery/recover.js +162 -0
- package/lib/provider/transaction/recovery/recover.js.map +1 -0
- package/lib/provider/transaction/support/admission.d.ts +7 -0
- package/lib/provider/transaction/support/admission.d.ts.map +1 -0
- package/lib/provider/transaction/support/admission.js +90 -0
- package/lib/provider/transaction/support/admission.js.map +1 -0
- package/lib/provider/transaction/support/inspection.d.ts +11 -0
- package/lib/provider/transaction/support/inspection.d.ts.map +1 -0
- package/lib/provider/transaction/support/inspection.js +51 -0
- package/lib/provider/transaction/support/inspection.js.map +1 -0
- package/lib/provider/transaction/support/journal.d.ts +12 -0
- package/lib/provider/transaction/support/journal.d.ts.map +1 -0
- package/lib/provider/transaction/support/journal.js +72 -0
- package/lib/provider/transaction/support/journal.js.map +1 -0
- package/lib/provider/transaction/support/locking.d.ts +4 -0
- package/lib/provider/transaction/support/locking.d.ts.map +1 -0
- package/lib/provider/transaction/support/locking.js +11 -0
- package/lib/provider/transaction/support/locking.js.map +1 -0
- package/lib/provider/transaction/support/path-safety.d.ts +11 -0
- package/lib/provider/transaction/support/path-safety.d.ts.map +1 -0
- package/lib/provider/transaction/support/path-safety.js +82 -0
- package/lib/provider/transaction/support/path-safety.js.map +1 -0
- package/lib/provider/transaction/support/paths.d.ts +10 -0
- package/lib/provider/transaction/support/paths.d.ts.map +1 -0
- package/lib/provider/transaction/support/paths.js +68 -0
- package/lib/provider/transaction/support/paths.js.map +1 -0
- package/lib/provider/transaction/support/publication.d.ts +9 -0
- package/lib/provider/transaction/support/publication.d.ts.map +1 -0
- package/lib/provider/transaction/support/publication.js +92 -0
- package/lib/provider/transaction/support/publication.js.map +1 -0
- package/lib/provider/transaction/types.d.ts +38 -0
- package/lib/provider/transaction/types.d.ts.map +1 -0
- package/lib/provider/transaction/types.js +2 -0
- package/lib/provider/transaction/types.js.map +1 -0
- package/lib/provider/types.d.ts +22 -3
- package/lib/provider/types.d.ts.map +1 -1
- package/lib/provider/types.js +1 -1
- package/lib/provider/types.js.map +1 -1
- package/lib/provider/worktree-lifecycle.d.ts +19 -0
- package/lib/provider/worktree-lifecycle.d.ts.map +1 -0
- package/lib/provider/worktree-lifecycle.js +44 -0
- package/lib/provider/worktree-lifecycle.js.map +1 -0
- package/lib/typert.host.js +269 -30
- package/lib/typert.remote-client.d.ts +10 -0
- package/lib/typert.remote-client.d.ts.map +1 -1
- package/lib/typert.remote-client.js +269 -30
- package/package.json +1 -1
- package/lib/client/WorktreeContext.d.ts.map +0 -1
- package/lib/client/WorktreeContext.js.map +0 -1
- package/lib/client/WorktreeHeroContext.d.ts.map +0 -1
- package/lib/client/WorktreeHeroContext.js.map +0 -1
- package/lib/client/WorktreeModeAction.d.ts.map +0 -1
- package/lib/client/WorktreeModeAction.js.map +0 -1
- package/lib/client/WorktreeOverlay.d.ts.map +0 -1
- package/lib/client/WorktreeOverlay.js.map +0 -1
- package/lib/client/dsh-rc1-slot-contract.d.ts +0 -43
- package/lib/client/dsh-rc1-slot-contract.d.ts.map +0 -1
- package/lib/client/dsh-rc1-slot-contract.js +0 -2
- package/lib/client/dsh-rc1-slot-contract.js.map +0 -1
- package/lib/client/navigation.d.ts.map +0 -1
- package/lib/client/navigation.js.map +0 -1
- package/lib/client/overlay-bounds.d.ts.map +0 -1
- package/lib/client/overlay-bounds.js.map +0 -1
- package/lib/client/session-view.d.ts.map +0 -1
- package/lib/client/session-view.js.map +0 -1
- package/lib/client/sidebar-overlay-geometry.d.ts.map +0 -1
- package/lib/client/sidebar-overlay-geometry.js.map +0 -1
- package/lib/client/view-mode-store.d.ts.map +0 -1
- package/lib/client/view-mode-store.js.map +0 -1
- package/lib/client/view-mode.d.ts.map +0 -1
- package/lib/client/view-mode.js.map +0 -1
- package/lib/client/virtual-workspace-membership.d.ts.map +0 -1
- package/lib/client/virtual-workspace-membership.js.map +0 -1
- package/lib/client/worktree-context-store.d.ts.map +0 -1
- package/lib/client/worktree-context-store.js.map +0 -1
- package/lib/client/worktree-context.d.ts.map +0 -1
- package/lib/client/worktree-context.js.map +0 -1
- package/lib/client/worktree-error-copy.d.ts.map +0 -1
- package/lib/client/worktree-error-copy.js.map +0 -1
- package/lib/client/worktree-expand-state.d.ts.map +0 -1
- package/lib/client/worktree-expand-state.js.map +0 -1
- package/lib/client/worktree-permission-icon.d.ts.map +0 -1
- package/lib/client/worktree-permission-icon.js.map +0 -1
- package/lib/client/worktree-permission.d.ts.map +0 -1
- package/lib/client/worktree-permission.js.map +0 -1
- package/lib/client/worktree-session-fork.d.ts.map +0 -1
- package/lib/client/worktree-session-fork.js.map +0 -1
- package/lib/client/worktree-session-order.d.ts.map +0 -1
- package/lib/client/worktree-session-order.js.map +0 -1
- package/lib/client/worktree-session-position.d.ts.map +0 -1
- package/lib/client/worktree-session-position.js.map +0 -1
- package/lib/client/worktree-session.d.ts.map +0 -1
- package/lib/client/worktree-session.js.map +0 -1
- package/lib/client/worktree-surface-dialogs.d.ts.map +0 -1
- package/lib/client/worktree-surface-dialogs.js.map +0 -1
- package/lib/client/worktree-surface-rows.d.ts.map +0 -1
- package/lib/client/worktree-surface-rows.js.map +0 -1
- package/lib/client/worktree-surface-selectors.d.ts.map +0 -1
- package/lib/client/worktree-surface-selectors.js.map +0 -1
- package/lib/client/worktree-surface-types.d.ts.map +0 -1
- package/lib/client/worktree-surface-types.js +0 -2
- package/lib/client/worktree-surface-types.js.map +0 -1
- package/lib/client/worktree-view-actions.d.ts.map +0 -1
- package/lib/client/worktree-view-actions.js.map +0 -1
- package/lib/client/worktree-view-errors.d.ts.map +0 -1
- package/lib/client/worktree-view-errors.js.map +0 -1
- package/lib/client/worktree-view-read.d.ts.map +0 -1
- package/lib/client/worktree-view-read.js.map +0 -1
- package/lib/client/worktree-view.d.ts.map +0 -1
- package/lib/client/worktree-view.js.map +0 -1
- package/lib/provider/git.d.ts.map +0 -1
- package/lib/provider/git.js.map +0 -1
- package/lib/provider/mutation-lock.d.ts.map +0 -1
- package/lib/provider/mutation-lock.js.map +0 -1
- package/lib/provider/repository-fingerprint.d.ts.map +0 -1
- package/lib/provider/repository-fingerprint.js.map +0 -1
- package/lib/provider/sidecar-persistence.d.ts.map +0 -1
- package/lib/provider/sidecar-persistence.js.map +0 -1
- package/lib/provider/sidecar-schema.d.ts.map +0 -1
- package/lib/provider/sidecar-schema.js.map +0 -1
- package/lib/provider/sidecar.d.ts.map +0 -1
- package/lib/provider/sidecar.js.map +0 -1
- package/lib/provider/subprocess.d.ts.map +0 -1
- package/lib/provider/subprocess.js.map +0 -1
- package/lib/provider/transaction.d.ts +0 -65
- package/lib/provider/transaction.d.ts.map +0 -1
- package/lib/provider/transaction.js +0 -1011
- package/lib/provider/transaction.js.map +0 -1
- /package/lib/client/{WorktreeContext.js → context/WorktreeContext.js} +0 -0
- /package/lib/client/{WorktreeHeroContext.js → context/WorktreeHeroContext.js} +0 -0
- /package/lib/client/{overlay-bounds.d.ts → overlay/overlay-bounds.d.ts} +0 -0
- /package/lib/client/{overlay-bounds.js → overlay/overlay-bounds.js} +0 -0
- /package/lib/client/{sidebar-overlay-geometry.d.ts → overlay/sidebar-overlay-geometry.d.ts} +0 -0
- /package/lib/client/{sidebar-overlay-geometry.js → overlay/sidebar-overlay-geometry.js} +0 -0
- /package/lib/client/{worktree-permission-icon.d.ts → permission/worktree-permission-icon.d.ts} +0 -0
- /package/lib/client/{worktree-permission-icon.js → permission/worktree-permission-icon.js} +0 -0
- /package/lib/client/{worktree-permission.d.ts → permission/worktree-permission.d.ts} +0 -0
- /package/lib/client/{worktree-permission.js → permission/worktree-permission.js} +0 -0
- /package/lib/client/{session-view.d.ts → session/session-view.d.ts} +0 -0
- /package/lib/client/{session-view.js → session/session-view.js} +0 -0
- /package/lib/client/{worktree-session-order.d.ts → session/worktree-session-order.d.ts} +0 -0
- /package/lib/client/{worktree-session-order.js → session/worktree-session-order.js} +0 -0
- /package/lib/client/{worktree-session-position.d.ts → session/worktree-session-position.d.ts} +0 -0
- /package/lib/client/{worktree-session-position.js → session/worktree-session-position.js} +0 -0
- /package/lib/client/{navigation.d.ts → view/navigation.d.ts} +0 -0
- /package/lib/client/{navigation.js → view/navigation.js} +0 -0
- /package/lib/client/{view-mode-store.d.ts → view/view-mode-store.d.ts} +0 -0
- /package/lib/client/{view-mode-store.js → view/view-mode-store.js} +0 -0
- /package/lib/client/{view-mode.d.ts → view/view-mode.d.ts} +0 -0
- /package/lib/client/{view-mode.js → view/view-mode.js} +0 -0
- /package/lib/client/{worktree-error-copy.js → view/worktree-error-copy.js} +0 -0
- /package/lib/client/{worktree-view-errors.d.ts → view/worktree-view-errors.d.ts} +0 -0
- /package/lib/client/{worktree-view-errors.js → view/worktree-view-errors.js} +0 -0
- /package/lib/client/{worktree-view.d.ts → view/worktree-view.d.ts} +0 -0
- /package/lib/client/{worktree-view.js → view/worktree-view.js} +0 -0
- /package/lib/provider/{repository-fingerprint.js → git/repository-fingerprint.js} +0 -0
- /package/lib/provider/{subprocess.js → git/subprocess.js} +0 -0
- /package/lib/provider/{mutation-lock.d.ts → sidecar/mutation-lock.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistrationDialog.d.ts","sourceRoot":"","sources":["../../../../src/client/surface/components/RegistrationDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,IAAI,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;IACvC,YAAY,EAAE,IAAI,CAChB,UAAU,CAAC,OAAO,uBAAuB,CAAC,EACxC,gBAAgB,GAChB,WAAW,GACX,kBAAkB,GAClB,gBAAgB,GAChB,sBAAsB,GACtB,yBAAyB,GACzB,sBAAsB,GACtB,gBAAgB,CACnB,CAAC;IACF,iBAAiB,EAAE,IAAI,CACrB,UAAU,CAAC,OAAO,oBAAoB,CAAC,EACrC,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,WAAW,GACX,0BAA0B,GAC1B,kBAAkB,GAClB,mBAAmB,GACnB,cAAc,GACd,uBAAuB,CAC1B,CAAC;IACF,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,EAAE,eAAe,CAAC,CAAC;IACvE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,CAAC;CAC3E,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,IAAI,GACL,EAAE,KAAK,+BAgEP"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { WorktreeCreateDialog } from './dialogs.js';
|
|
3
|
+
export function RegistrationDialog({ props, registration, registrationState, mutation, read, }) {
|
|
4
|
+
const { t } = props;
|
|
5
|
+
const { modalWorkspace, modalView, modalSetupStatus, modalCanCreate, closeWorktreeCreator, changeWorktreeModalMode, loadImportCandidates, submitWorktree, } = registration;
|
|
6
|
+
const { modalReadError, worktreeModalMode, importCandidates, selectedImportPath, selectedBranch, newBranch, worktreeModalWorkspaceId, modalReadViewRef, setSelectedBranch, setNewBranch, setSelectedImportPath, } = registrationState;
|
|
7
|
+
const { actionPending } = mutation;
|
|
8
|
+
const { loadModalWorktreeView } = read;
|
|
9
|
+
return (_jsx(_Fragment, { children: _jsx(WorktreeCreateDialog, { t: t, workspace: modalWorkspace, view: modalView, readError: modalReadError, setupStatus: modalSetupStatus, canCreate: modalCanCreate, mode: worktreeModalMode, importCandidates: importCandidates, selectedImportPath: selectedImportPath, selectedBranch: selectedBranch, newBranch: newBranch, actionPending: actionPending, onClose: closeWorktreeCreator, onRetry: () => {
|
|
10
|
+
if (worktreeModalWorkspaceId === undefined)
|
|
11
|
+
return;
|
|
12
|
+
modalReadViewRef.current = undefined;
|
|
13
|
+
setSelectedBranch('');
|
|
14
|
+
setNewBranch('');
|
|
15
|
+
loadModalWorktreeView(worktreeModalWorkspaceId);
|
|
16
|
+
}, onModeChange: changeWorktreeModalMode, onRetryImportCandidates: () => {
|
|
17
|
+
if (worktreeModalWorkspaceId !== undefined) {
|
|
18
|
+
void loadImportCandidates(worktreeModalWorkspaceId);
|
|
19
|
+
}
|
|
20
|
+
}, onSelectedImportPathChange: setSelectedImportPath, onSelectedBranchChange: setSelectedBranch, onNewBranchChange: setNewBranch, onSubmit: submitWorktree }) }));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=RegistrationDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistrationDialog.js","sourceRoot":"","sources":["../../../../src/client/surface/components/RegistrationDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAsCpD,MAAM,UAAU,kBAAkB,CAAC,EACjC,KAAK,EACL,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,IAAI,GACE;IACN,MAAM,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;IACpB,MAAM,EACJ,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,GACf,GAAG,YAAY,CAAC;IACjB,MAAM,EACJ,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,GACtB,GAAG,iBAAiB,CAAC;IACtB,MAAM,EAAE,aAAa,EAAE,GAAG,QAAQ,CAAC;IACnC,MAAM,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC;IAEvC,OAAO,CACL,4BACE,KAAC,oBAAoB,IACnB,CAAC,EAAE,CAAC,EACJ,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,cAAc,EACzB,WAAW,EAAE,gBAAgB,EAC7B,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE,iBAAiB,EACvB,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,GAAG,EAAE;gBACZ,IAAI,wBAAwB,KAAK,SAAS;oBAAE,OAAO;gBACnD,gBAAgB,CAAC,OAAO,GAAG,SAAS,CAAC;gBACrC,iBAAiB,CAAC,EAAE,CAAC,CAAC;gBACtB,YAAY,CAAC,EAAE,CAAC,CAAC;gBACjB,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;YAClD,CAAC,EACD,YAAY,EAAE,uBAAuB,EACrC,uBAAuB,EAAE,GAAG,EAAE;gBAC5B,IAAI,wBAAwB,KAAK,SAAS,EAAE,CAAC;oBAC3C,KAAK,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;gBACtD,CAAC;YACH,CAAC,EACD,0BAA0B,EAAE,qBAAqB,EACjD,sBAAsB,EAAE,iBAAiB,EACzC,iBAAiB,EAAE,YAAY,EAC/B,QAAQ,EAAE,cAAc,GACxB,GACD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { WorktreeSurfaceProps } from '../types.js';
|
|
2
|
+
import type { useDragActions } from '../actions/useDragActions.js';
|
|
3
|
+
import type { useLifecycleActions } from '../actions/useLifecycleActions.js';
|
|
4
|
+
import type { useLifecycleState } from '../state/useLifecycleState.js';
|
|
5
|
+
import type { useNativeActions } from '../actions/useNativeActions.js';
|
|
6
|
+
import type { useSessionActions } from '../actions/useSessionActions.js';
|
|
7
|
+
import type { useSessionExpansion } from '../state/useSessionExpansion.js';
|
|
8
|
+
import type { useSessionOrdering } from '../state/useSessionOrdering.js';
|
|
9
|
+
import type { useSurfaceMenus } from '../state/useSurfaceMenus.js';
|
|
10
|
+
import type { useSurfaceMutation } from '../actions/useSurfaceMutation.js';
|
|
11
|
+
import type { useSurfaceRefresh } from '../state/useSurfaceRefresh.js';
|
|
12
|
+
import type { useSurfaceSources } from '../state/useSurfaceSources.js';
|
|
13
|
+
import type { useWorktreeRegistration } from '../actions/useWorktreeRegistration.js';
|
|
14
|
+
type Input = {
|
|
15
|
+
source: Pick<ReturnType<typeof useSurfaceSources>, 'permissionNoticeSnapshot' | 'forkRecoverySnapshot' | 'expandSnapshot' | 'workspaces' | 'sessions' | 'archivedSessionIds' | 'sessionPresentations' | 'currentSessionId'>;
|
|
16
|
+
props: Pick<WorktreeSurfaceProps, 't' | 'retryForkSession' | 'openSession' | 'createMainSession' | 'renameSession' | 'forkSession' | 'archiveSession' | 'manager'>;
|
|
17
|
+
lifecycle: Pick<ReturnType<typeof useLifecycleActions>, 'permissionRetryTarget' | 'retryCleanupPermissions' | 'recoveryAction' | 'branchLabel' | 'branchActions'>;
|
|
18
|
+
mutation: Pick<ReturnType<typeof useSurfaceMutation>, 'actionPending' | 'actionError' | 'setActionError' | 'runMutation'>;
|
|
19
|
+
session: Pick<ReturnType<typeof useSessionActions>, 'forkRetryKey' | 'retryForkBinding' | 'pendingSessionBinding' | 'pendingSessionArchived' | 'retrySessionBinding' | 'setPendingSessionBinding' | 'createSession' | 'openWorkspaceSession'>;
|
|
20
|
+
read: Pick<ReturnType<typeof useSurfaceRefresh>, 'refresh' | 'readState' | 'viewByWorkspace'>;
|
|
21
|
+
expansion: Pick<ReturnType<typeof useSessionExpansion>, 'isCurrentSessionReveal' | 'query' | 'expandedSessionGroups' | 'toggleWorkspace' | 'toggleMain' | 'toggleSessionGroup' | 'toggleWorktree' | 'expandedArchivedWorkspaces' | 'toggleArchivedWorkspace'>;
|
|
22
|
+
ordering: Pick<ReturnType<typeof useSessionOrdering>, 'orderedSessionIdsByAccount'>;
|
|
23
|
+
drag: Pick<ReturnType<typeof useDragActions>, 'worktreeDrag' | 'workspaceDrag' | 'workspaceDropCommitted' | 'setWorkspaceDrag' | 'commitWorkspaceDrag' | 'sessionDrag' | 'sessionDropCommitted' | 'setSessionDrag' | 'commitSessionDrag' | 'worktreeDropCommitted' | 'setWorktreeDrag' | 'commitWorktreeDrag'>;
|
|
24
|
+
menus: Pick<ReturnType<typeof useSurfaceMenus>, 'openWorkspaceMenuId' | 'setOpenWorkspaceMenuId' | 'openMainMenuId' | 'setOpenMainMenuId' | 'openWorktreeMenuId' | 'setOpenWorktreeMenuId'>;
|
|
25
|
+
registration: Pick<ReturnType<typeof useWorktreeRegistration>, 'openWorktreeCreator'>;
|
|
26
|
+
native: Pick<ReturnType<typeof useNativeActions>, 'openWorkspaceRename' | 'openWorkspaceDelete' | 'openSessionRename' | 'archiveWorktreeSession'>;
|
|
27
|
+
lifecycleState: Pick<ReturnType<typeof useLifecycleState>, 'setWorktreeRemoval' | 'setWorktreeCleanDisk' | 'setWorktreeForget'>;
|
|
28
|
+
};
|
|
29
|
+
export declare function SurfaceContent({ source, props, lifecycle, mutation, session, read, expansion, ordering, drag, menus, registration, native, lifecycleState, }: Input): import("react").JSX.Element;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=SurfaceContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurfaceContent.d.ts","sourceRoot":"","sources":["../../../../src/client/surface/components/SurfaceContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;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AAG,qBAAqB,GAAG,mBAAmB,GAAG,wBAAwB,CAC/F,CAAC;IACF,cAAc,EAAE,IAAI,CAClB,UAAU,CAAC,OAAO,iBAAiB,CAAC,EACpC,oBAAoB,GAAG,sBAAsB,GAAG,mBAAmB,CACpE,CAAC;CACH,CAAC;AAKF,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,MAAM,EACN,cAAc,GACf,EAAE,KAAK,+BA+NP"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { formatWorktreePermissionNotice, formatWorktreeViewError, } from '../../view/worktree-error-copy.js';
|
|
3
|
+
import styles from '../../worktree.css';
|
|
4
|
+
import { forkRecoveryError } from '../shared.js';
|
|
5
|
+
import { WorkspaceTree } from './WorkspaceTree.js';
|
|
6
|
+
import { NotificationToasts } from './NotificationToasts.js';
|
|
7
|
+
export function SurfaceContent({ source, props, lifecycle, mutation, session, read, expansion, ordering, drag, menus, registration, native, lifecycleState, }) {
|
|
8
|
+
const { permissionNoticeSnapshot, forkRecoverySnapshot } = source;
|
|
9
|
+
const { t, retryForkSession, openSession } = props;
|
|
10
|
+
const { permissionRetryTarget, retryCleanupPermissions, recoveryAction } = lifecycle;
|
|
11
|
+
const { actionPending, actionError, setActionError } = mutation;
|
|
12
|
+
const { forkRetryKey, retryForkBinding, pendingSessionBinding, pendingSessionArchived, retrySessionBinding, setPendingSessionBinding, } = session;
|
|
13
|
+
const { refresh, readState } = read;
|
|
14
|
+
const notices = [];
|
|
15
|
+
const addNotice = (scope, text) => {
|
|
16
|
+
notices.push({ key: JSON.stringify([scope, text]), text });
|
|
17
|
+
};
|
|
18
|
+
if (permissionNoticeSnapshot !== undefined) {
|
|
19
|
+
addNotice('permission:' +
|
|
20
|
+
permissionNoticeSnapshot.workspaceId +
|
|
21
|
+
':' +
|
|
22
|
+
permissionNoticeSnapshot.worktreeId, formatWorktreePermissionNotice(permissionNoticeSnapshot.result, t));
|
|
23
|
+
}
|
|
24
|
+
for (const recovery of forkRecoverySnapshot.pending) {
|
|
25
|
+
addNotice('fork:' + recovery.key, formatWorktreeViewError(forkRecoveryError(recovery), t));
|
|
26
|
+
}
|
|
27
|
+
if (actionError !== undefined) {
|
|
28
|
+
addNotice('action:' + JSON.stringify(actionError.details), formatWorktreeViewError(actionError, t));
|
|
29
|
+
}
|
|
30
|
+
if (readState.targetError !== undefined) {
|
|
31
|
+
addNotice('target:' + JSON.stringify(readState.targetError.workspaceIds), formatWorktreeViewError(readState.targetError.error, t));
|
|
32
|
+
}
|
|
33
|
+
if (readState.status === 'error' && readState.error !== undefined) {
|
|
34
|
+
addNotice('read', formatWorktreeViewError(readState.error, t));
|
|
35
|
+
}
|
|
36
|
+
return (_jsxs("div", { className: styles.content, tabIndex: 0, children: [_jsx(NotificationToasts, { notices: notices, detailsLabel: t('notice.details') }), notices.length > 0 && (_jsxs("details", { className: styles.notificationDetails, children: [_jsxs("summary", { children: [t('notice.details'), " (", notices.length, ")"] }), permissionNoticeSnapshot !== undefined && (_jsxs("div", { className: styles.notice, role: "status", "data-worktree-permission-notice": true, children: [_jsx("p", { className: styles.message, children: formatWorktreePermissionNotice(permissionNoticeSnapshot.result, t) }), permissionRetryTarget !== undefined && (_jsx("button", { type: "button", className: styles.retryButton, disabled: actionPending, onClick: retryCleanupPermissions, children: t('action.retry') }))] })), forkRecoverySnapshot.pending.map((recovery) => {
|
|
37
|
+
const recoveryViewError = forkRecoveryError(recovery);
|
|
38
|
+
return (_jsxs("div", { className: styles.error, role: "alert", "data-fork-recovery": recovery.key, children: [_jsx("p", { className: styles.message, "data-error": "true", children: formatWorktreeViewError(recoveryViewError, t) }), _jsxs("div", { className: styles.recoveryActions, children: [retryForkSession !== undefined && recoveryViewError.retryable && (_jsx("button", { type: "button", className: styles.actionButton, disabled: forkRetryKey !== undefined, onClick: () => {
|
|
39
|
+
void retryForkBinding(recovery.key);
|
|
40
|
+
}, children: t('action.retryBinding') })), _jsx("button", { type: "button", className: styles.actionButton, disabled: forkRetryKey !== undefined, onClick: () => {
|
|
41
|
+
openSession(recovery.childSessionId);
|
|
42
|
+
}, children: t('action.openCreatedSession') })] })] }, recovery.key));
|
|
43
|
+
}), actionError !== undefined && (_jsxs("div", { className: styles.error, role: "alert", "data-worktree-error": true, children: [_jsx("p", { className: styles.message, "data-error": "true", children: formatWorktreeViewError(actionError, t) }), recoveryAction(actionError), pendingSessionBinding !== undefined && (_jsxs("div", { className: styles.recoveryActions, children: [_jsx("button", { type: "button", className: styles.actionButton, disabled: actionPending || pendingSessionArchived, onClick: () => {
|
|
44
|
+
void retrySessionBinding();
|
|
45
|
+
}, children: t('action.retryBinding') }), !pendingSessionBinding.permissionRequired && (_jsx("button", { type: "button", className: styles.actionButton, disabled: actionPending, onClick: () => {
|
|
46
|
+
const sessionId = pendingSessionBinding.sessionId;
|
|
47
|
+
setPendingSessionBinding(undefined);
|
|
48
|
+
setActionError(undefined);
|
|
49
|
+
openSession(sessionId);
|
|
50
|
+
}, children: t('action.openCreatedSession') }))] })), actionError.retryable && (_jsx("button", { type: "button", className: styles.retryButton, onClick: () => {
|
|
51
|
+
setActionError(undefined);
|
|
52
|
+
void refresh({ scope: { kind: 'global' } });
|
|
53
|
+
}, children: t('action.retry') }))] })), readState.targetError !== undefined && (_jsxs("div", { className: styles.error, role: "alert", "data-worktree-target-error": true, children: [_jsx("p", { className: styles.message, "data-error": "true", children: formatWorktreeViewError(readState.targetError.error, t) }), recoveryAction(readState.targetError.error), _jsx("button", { type: "button", className: styles.retryButton, onClick: () => {
|
|
54
|
+
void refresh({
|
|
55
|
+
scope: {
|
|
56
|
+
kind: 'workspaces',
|
|
57
|
+
workspaceIds: readState.targetError.workspaceIds,
|
|
58
|
+
},
|
|
59
|
+
preserveCurrent: true,
|
|
60
|
+
});
|
|
61
|
+
}, children: t('action.retry') })] })), readState.status === 'error' && readState.error !== undefined ? (_jsxs("div", { className: styles.error, role: "alert", "data-worktree-error": true, children: [_jsx("p", { className: styles.message, "data-error": "true", children: formatWorktreeViewError(readState.error, t) }), recoveryAction(readState.error), _jsx("button", { type: "button", className: styles.retryButton, onClick: () => {
|
|
62
|
+
void refresh({ scope: { kind: 'global' } });
|
|
63
|
+
}, children: t('action.retry') })] })) : null] })), readState.status === 'loading' && _jsx("p", { className: styles.message, children: t('status.loading') }), readState.status === 'ready' ? (_jsx(WorkspaceTree, { props: props, read: read, source: source, expansion: expansion, ordering: ordering, drag: drag, mutation: mutation, menus: menus, registration: registration, native: native, lifecycle: lifecycle, session: session, lifecycleState: lifecycleState })) : null] }));
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=SurfaceContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurfaceContent.js","sourceRoot":"","sources":["../../../../src/client/surface/components/SurfaceContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AA8GjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,UAAU,cAAc,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,MAAM,EACN,cAAc,GACR;IACN,MAAM,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC;IAClE,MAAM,EAAE,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAA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AAQ,EAClB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WorktreeSurfaceProps } from '../types.js';
|
|
2
|
+
import type { useSessionExpansion } from '../state/useSessionExpansion.js';
|
|
3
|
+
import type { useSurfaceMutation } from '../actions/useSurfaceMutation.js';
|
|
4
|
+
import type { useSurfaceRefresh } from '../state/useSurfaceRefresh.js';
|
|
5
|
+
import type { useSurfaceSources } from '../state/useSurfaceSources.js';
|
|
6
|
+
type Input = {
|
|
7
|
+
expansion: Pick<ReturnType<typeof useSessionExpansion>, 'searchExpanded' | 'searchRoot' | 'setSearchExpanded' | 'searchInput' | 'searchQuery' | 'setSearchQuery' | 'setExpandedArchivedWorkspaces' | 'setExpandedSessionGroups' | 'setCurrentSessionReveal'>;
|
|
8
|
+
props: Pick<WorktreeSurfaceProps, 't' | 'expandState' | 'createWorkspace' | 'actions'>;
|
|
9
|
+
source: Pick<ReturnType<typeof useSurfaceSources>, 'workspaceIds'>;
|
|
10
|
+
read: Pick<ReturnType<typeof useSurfaceRefresh>, 'readState'>;
|
|
11
|
+
mutation: Pick<ReturnType<typeof useSurfaceMutation>, 'runMutation'>;
|
|
12
|
+
};
|
|
13
|
+
export declare function SurfaceHeader({ expansion, props, source, read, mutation }: Input): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=SurfaceHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurfaceHeader.d.ts","sourceRoot":"","sources":["../../../../src/client/surface/components/SurfaceHeader.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,IAAI,CACb,UAAU,CAAC,OAAO,mBAAmB,CAAC,EACpC,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,+BAA+B,GAC/B,0BAA0B,GAC1B,yBAAyB,CAC5B,CAAC;IACF,KAAK,EAAE,IAAI,CAAC,oBAAoB,EAAE,GAAG,GAAG,aAAa,GAAG,iBAAiB,GAAG,SAAS,CAAC,CAAC;IACvF,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAAE,cAAc,CAAC,CAAC;IACnE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAAE,WAAW,CAAC,CAAC;IAC9D,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC;CACtE,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,+BAwIhF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { IconCloseFill14, IconCloseOutline16, IconProjectAddOutline16, IconSearchOutline16, Tooltip, } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
3
|
+
import styles from '../../worktree.css';
|
|
4
|
+
import { cx, IconCollapseAll16 } from '../shared.js';
|
|
5
|
+
export function SurfaceHeader({ expansion, props, source, read, mutation }) {
|
|
6
|
+
const { searchExpanded, searchRoot, setSearchExpanded, searchInput, searchQuery, setSearchQuery, setExpandedArchivedWorkspaces, setExpandedSessionGroups, setCurrentSessionReveal, } = expansion;
|
|
7
|
+
const { t, expandState, createWorkspace, actions } = props;
|
|
8
|
+
const { workspaceIds } = source;
|
|
9
|
+
const { readState } = read;
|
|
10
|
+
const { runMutation } = mutation;
|
|
11
|
+
return (_jsx(_Fragment, { children: _jsxs("header", { className: styles.header, children: [_jsx("span", { className: cx(styles.title, searchExpanded && styles.titleHidden), children: t('worktree.title') }), _jsx("div", { className: cx(styles.searchSlot, searchExpanded && styles.searchSlotExpanded), children: _jsxs("div", { ref: searchRoot, className: cx(styles.search, searchExpanded && styles.searchExpanded), onClick: () => {
|
|
12
|
+
if (!searchExpanded) {
|
|
13
|
+
setSearchExpanded(true);
|
|
14
|
+
searchInput.current?.focus();
|
|
15
|
+
}
|
|
16
|
+
}, children: [_jsx(Tooltip, { label: t('workspace.search'), side: "bottom", delayMs: 500, disabled: searchExpanded, children: _jsx("button", { type: "button", className: styles.searchButton, "aria-label": t('workspace.search'), "aria-expanded": searchExpanded, onClick: () => {
|
|
17
|
+
setSearchExpanded(true);
|
|
18
|
+
searchInput.current?.focus();
|
|
19
|
+
}, children: _jsx(IconSearchOutline16, { size: searchExpanded ? 12 : 14 }) }) }), _jsx("input", { ref: searchInput, className: styles.searchInput, type: "text", "aria-label": t('workspace.search'), placeholder: t('workspace.search'), value: searchQuery, tabIndex: searchExpanded ? 0 : -1, onChange: (event) => {
|
|
20
|
+
setSearchQuery(event.currentTarget.value);
|
|
21
|
+
}, onKeyDown: (event) => {
|
|
22
|
+
if (event.key === 'Escape') {
|
|
23
|
+
setSearchQuery('');
|
|
24
|
+
setSearchExpanded(false);
|
|
25
|
+
}
|
|
26
|
+
} }), searchExpanded && (_jsx("button", { type: "button", className: styles.clearButton, "aria-label": t('search.clear'), onClick: (event) => {
|
|
27
|
+
event.stopPropagation();
|
|
28
|
+
setSearchQuery('');
|
|
29
|
+
setSearchExpanded(false);
|
|
30
|
+
}, children: _jsx(IconCloseFill14, {}) }))] }) }), _jsxs("div", { className: cx(styles.headerActions, searchExpanded && styles.headerActionsHidden), children: [_jsx(Tooltip, { label: t('workspace.collapseAll'), side: "bottom", delayMs: 500, children: _jsx("button", { type: "button", className: styles.iconButton, "aria-label": t('workspace.collapseAll'), onClick: () => {
|
|
31
|
+
setCurrentSessionReveal(undefined);
|
|
32
|
+
expandState.actions.collapseAll(workspaceIds, readState.views.flatMap((view) => view.worktrees.map((record) => record.worktreeId)));
|
|
33
|
+
setExpandedArchivedWorkspaces({});
|
|
34
|
+
setExpandedSessionGroups({});
|
|
35
|
+
}, children: _jsx(IconCollapseAll16, {}) }) }), _jsx(Tooltip, { label: t('workspace.add'), side: "bottom", delayMs: 500, children: _jsx("button", { type: "button", className: styles.iconButton, "aria-label": t('workspace.add'), onClick: () => {
|
|
36
|
+
if (createWorkspace !== undefined)
|
|
37
|
+
void runMutation(createWorkspace);
|
|
38
|
+
}, children: _jsx(IconProjectAddOutline16, {}) }) }), _jsx(Tooltip, { label: t('mode.exit'), side: "bottom", delayMs: 500, children: _jsx("button", { type: "button", className: styles.closeButton, "aria-label": t('mode.exit'), onClick: () => {
|
|
39
|
+
actions.setViewMode('workspace-session');
|
|
40
|
+
}, children: _jsx(IconCloseOutline16, {}) }) })] })] }) }));
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=SurfaceHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurfaceHeader.js","sourceRoot":"","sources":["../../../../src/client/surface/components/SurfaceHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,OAAO,GACR,MAAM,uCAAuC,CAAC;AAC/C,OAA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OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,YACxD,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,WAAW,gBACjB,CAAC,CAAC,WAAW,CAAC,EAC1B,OAAO,EAAE,GAAG,EAAE;oCACZ,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;gCAC3C,CAAC,YAED,KAAC,kBAAkB,KAAG,GACf,GACD,IACN,IACC,GACR,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { WorktreeSurfaceProps } from '../types.js';
|
|
2
|
+
import type { useDragActions } from '../actions/useDragActions.js';
|
|
3
|
+
import type { useLifecycleActions } from '../actions/useLifecycleActions.js';
|
|
4
|
+
import type { useLifecycleState } from '../state/useLifecycleState.js';
|
|
5
|
+
import type { useNativeActions } from '../actions/useNativeActions.js';
|
|
6
|
+
import type { useSessionActions } from '../actions/useSessionActions.js';
|
|
7
|
+
import type { useSessionExpansion } from '../state/useSessionExpansion.js';
|
|
8
|
+
import type { useSessionOrdering } from '../state/useSessionOrdering.js';
|
|
9
|
+
import type { useSurfaceMenus } from '../state/useSurfaceMenus.js';
|
|
10
|
+
import type { useSurfaceMutation } from '../actions/useSurfaceMutation.js';
|
|
11
|
+
import type { useSurfaceRefresh } from '../state/useSurfaceRefresh.js';
|
|
12
|
+
import type { useSurfaceSources } from '../state/useSurfaceSources.js';
|
|
13
|
+
import type { useWorktreeRegistration } from '../actions/useWorktreeRegistration.js';
|
|
14
|
+
export type WorkspaceTreeInput = {
|
|
15
|
+
props: Pick<WorktreeSurfaceProps, 't' | 'createMainSession' | 'openSession' | 'renameSession' | 'forkSession' | 'archiveSession' | 'manager'>;
|
|
16
|
+
read: Pick<ReturnType<typeof useSurfaceRefresh>, 'viewByWorkspace' | 'refresh'>;
|
|
17
|
+
source: Pick<ReturnType<typeof useSurfaceSources>, 'expandSnapshot' | 'workspaces' | 'sessions' | 'archivedSessionIds' | 'sessionPresentations' | 'currentSessionId'>;
|
|
18
|
+
expansion: Pick<ReturnType<typeof useSessionExpansion>, 'isCurrentSessionReveal' | 'query' | 'expandedSessionGroups' | 'toggleWorkspace' | 'toggleMain' | 'toggleSessionGroup' | 'toggleWorktree' | 'expandedArchivedWorkspaces' | 'toggleArchivedWorkspace'>;
|
|
19
|
+
ordering: Pick<ReturnType<typeof useSessionOrdering>, 'orderedSessionIdsByAccount'>;
|
|
20
|
+
drag: Pick<ReturnType<typeof useDragActions>, 'worktreeDrag' | 'workspaceDrag' | 'workspaceDropCommitted' | 'setWorkspaceDrag' | 'commitWorkspaceDrag' | 'sessionDrag' | 'sessionDropCommitted' | 'setSessionDrag' | 'commitSessionDrag' | 'worktreeDropCommitted' | 'setWorktreeDrag' | 'commitWorktreeDrag'>;
|
|
21
|
+
mutation: Pick<ReturnType<typeof useSurfaceMutation>, 'actionPending' | 'setActionError' | 'runMutation'>;
|
|
22
|
+
menus: Pick<ReturnType<typeof useSurfaceMenus>, 'openWorkspaceMenuId' | 'setOpenWorkspaceMenuId' | 'openMainMenuId' | 'setOpenMainMenuId' | 'openWorktreeMenuId' | 'setOpenWorktreeMenuId'>;
|
|
23
|
+
registration: Pick<ReturnType<typeof useWorktreeRegistration>, 'openWorktreeCreator'>;
|
|
24
|
+
native: Pick<ReturnType<typeof useNativeActions>, 'openWorkspaceRename' | 'openWorkspaceDelete' | 'openSessionRename' | 'archiveWorktreeSession'>;
|
|
25
|
+
lifecycle: Pick<ReturnType<typeof useLifecycleActions>, 'branchLabel' | 'branchActions'>;
|
|
26
|
+
session: Pick<ReturnType<typeof useSessionActions>, 'createSession' | 'openWorkspaceSession'>;
|
|
27
|
+
lifecycleState: Pick<ReturnType<typeof useLifecycleState>, 'setWorktreeRemoval' | 'setWorktreeCleanDisk' | 'setWorktreeForget'>;
|
|
28
|
+
};
|
|
29
|
+
type Input = WorkspaceTreeInput;
|
|
30
|
+
export declare function WorkspaceTree({ props, read, source, expansion, ordering, drag, mutation, menus, registration, native, lifecycle, session, lifecycleState, }: Input): import("react").JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=WorkspaceTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceTree.d.ts","sourceRoot":"","sources":["../../../../src/client/surface/components/WorkspaceTree.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,IAAI,CACT,oBAAoB,EAClB,GAAG,GACH,mBAAmB,GACnB,aAAa,GACb,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,SAAS,CACZ,CAAC;IACF,I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,GAAG,wBAAwB,CAC/F,CAAC;IACF,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,EAAE,aAAa,GAAG,eAAe,CAAC,CAAC;IACzF,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAAE,eAAe,GAAG,sBAAsB,CAAC,CAAC;IAC9F,cAAc,EAAE,IAAI,CAClB,UAAU,CAAC,OAAO,iBAAiB,CAAC,EACpC,oBAAoB,GAAG,sBAAsB,GAAG,mBAAmB,CACpE,CAAC;CACH,CAAC;AACF,KAAK,KAAK,GAAG,kBAAkB,CAAC;AAEhC,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,IAAI,EACJ,MAAM,EACN,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,MAAM,EACN,SAAS,EACT,OAAO,EACP,cAAc,GACf,EAAE,KAAK,+BAiUP"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { IconBranchOutline16 } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
3
|
+
import { openWorktreeSession } from '../../view/navigation.js';
|
|
4
|
+
import { filterVisibleSessionIds, hasOngoingSession, sessionMatchesQuery, } from '../../session/session-view.js';
|
|
5
|
+
import { unboundSessionIds, workspaceSessionIds } from '../../view/view-mode.js';
|
|
6
|
+
import { isMainExpanded, isWorkspaceExpanded } from '../../view/worktree-expand-state.js';
|
|
7
|
+
import { createNumberedWorktreeName, filterArchivedSessionIds } from '../../view/worktree-view.js';
|
|
8
|
+
import styles from '../../worktree.css';
|
|
9
|
+
import { ActiveWorktree } from './ActiveWorktree.js';
|
|
10
|
+
import { ArchivedWorktrees } from './ArchivedWorktrees.js';
|
|
11
|
+
import { WorktreeGroupRow, WorktreeSessionGroup, WorktreeWorkspaceRow } from './rows.js';
|
|
12
|
+
import { includesText, isSessionGroupAutoExpanded, workspaceMatches } from '../selectors.js';
|
|
13
|
+
export function WorkspaceTree({ props, read, source, expansion, ordering, drag, mutation, menus, registration, native, lifecycle, session, lifecycleState, }) {
|
|
14
|
+
const { t, createMainSession, openSession, renameSession, forkSession, archiveSession } = props;
|
|
15
|
+
const { viewByWorkspace } = read;
|
|
16
|
+
const { expandSnapshot, workspaces, sessions, archivedSessionIds, sessionPresentations, currentSessionId, } = source;
|
|
17
|
+
const { isCurrentSessionReveal, query, expandedSessionGroups, toggleWorkspace, toggleMain, toggleSessionGroup, } = expansion;
|
|
18
|
+
const { orderedSessionIdsByAccount } = ordering;
|
|
19
|
+
const { worktreeDrag, workspaceDrag, workspaceDropCommitted, setWorkspaceDrag, commitWorkspaceDrag, sessionDrag, sessionDropCommitted, setSessionDrag, commitSessionDrag, } = drag;
|
|
20
|
+
const { actionPending } = mutation;
|
|
21
|
+
const { openWorkspaceMenuId, setOpenWorkspaceMenuId, openMainMenuId, setOpenMainMenuId } = menus;
|
|
22
|
+
const { openWorktreeCreator } = registration;
|
|
23
|
+
const { openWorkspaceRename, openWorkspaceDelete, openSessionRename, archiveWorktreeSession } = native;
|
|
24
|
+
const visibleWorkspaces = workspaces.items.filter((workspace) => workspaceMatches(workspace, viewByWorkspace.get(workspace.workspaceId), sessions, query));
|
|
25
|
+
return (_jsx(_Fragment, { children: _jsx("div", { className: styles.workspaceList, children: visibleWorkspaces.length === 0 ? (_jsx("p", { className: styles.empty, children: t('workspace.noMatches') })) : (visibleWorkspaces.map((workspace) => {
|
|
26
|
+
const view = viewByWorkspace.get(workspace.workspaceId);
|
|
27
|
+
const currentBranch = view?.branches.find((branch) => branch.isCurrent)?.name;
|
|
28
|
+
const mainLabel = currentBranch === undefined
|
|
29
|
+
? t('worktree.main')
|
|
30
|
+
: t('worktree.mainWithBranch', { branch: currentBranch });
|
|
31
|
+
const expanded = isWorkspaceExpanded(expandSnapshot, workspace.workspaceId) ||
|
|
32
|
+
isCurrentSessionReveal('workspace:' + workspace.workspaceId);
|
|
33
|
+
const workspaceMatchesQuery = includesText(workspace.title, query);
|
|
34
|
+
const allWorkspaceSessionIds = filterArchivedSessionIds(workspaceSessionIds(workspaces, workspace.workspaceId, sessions.ids), archivedSessionIds);
|
|
35
|
+
const workspaceActivitySessionIds = filterVisibleSessionIds(allWorkspaceSessionIds, sessions);
|
|
36
|
+
const workspaceHasOngoingSession = hasOngoingSession(workspaceActivitySessionIds, sessionPresentations);
|
|
37
|
+
const bindings = view?.bindings ?? [];
|
|
38
|
+
const boundSessionIds = new Set(bindings.map((binding) => binding.sessionId));
|
|
39
|
+
const mainSessionIds = filterVisibleSessionIds(unboundSessionIds(allWorkspaceSessionIds, [...boundSessionIds]), sessions);
|
|
40
|
+
const mainGroupKey = `main:${workspace.workspaceId}`;
|
|
41
|
+
const orderedMainSessionIds = orderedSessionIdsByAccount.get(mainGroupKey) ?? mainSessionIds;
|
|
42
|
+
const visibleMainSessionIds = mainSessionIds.filter((sessionId) => workspaceMatchesQuery || sessionMatchesQuery(sessionId, sessions, query));
|
|
43
|
+
const orderedVisibleMainSessionIds = orderedMainSessionIds.filter((sessionId) => workspaceMatchesQuery || sessionMatchesQuery(sessionId, sessions, query));
|
|
44
|
+
const mainExpanded = isMainExpanded(expandSnapshot, workspace.workspaceId) ||
|
|
45
|
+
isCurrentSessionReveal('main:' + workspace.workspaceId);
|
|
46
|
+
const sessionIds = orderedVisibleMainSessionIds.length === visibleMainSessionIds.length
|
|
47
|
+
? orderedVisibleMainSessionIds
|
|
48
|
+
: visibleMainSessionIds;
|
|
49
|
+
const mainSessionGroupAutoExpanded = isSessionGroupAutoExpanded(sessionIds, currentSessionId, isCurrentSessionReveal('session-group:' + mainGroupKey));
|
|
50
|
+
const mainSessionGroupExpanded = expandedSessionGroups[mainGroupKey] === true || mainSessionGroupAutoExpanded;
|
|
51
|
+
const worktrees = view?.worktrees ?? [];
|
|
52
|
+
const activeWorktrees = worktrees.filter((record) => record.status === 'active');
|
|
53
|
+
const archivedWorktrees = worktrees.filter((record) => record.status === 'removed');
|
|
54
|
+
const workspaceWorktreeNames = [
|
|
55
|
+
...(view?.branches.map((branch) => branch.name) ?? []),
|
|
56
|
+
...(view?.worktrees.map((worktree) => worktree.branch) ?? []),
|
|
57
|
+
];
|
|
58
|
+
const sameWorkspaceWorktreeDrag = worktreeDrag?.workspaceId === workspace.workspaceId;
|
|
59
|
+
return (_jsxs("section", { className: styles.workspaceGroup, "data-workspace-id": workspace.workspaceId, children: [_jsx(WorktreeWorkspaceRow, { t: t, workspace: workspace, expanded: expanded, hasOngoingSession: workspaceHasOngoingSession, actionPending: actionPending, menuOpen: openWorkspaceMenuId === workspace.workspaceId, drag: {
|
|
60
|
+
active: workspaceDrag !== undefined,
|
|
61
|
+
marker: workspaceDrag?.over?.workspaceId === workspace.workspaceId
|
|
62
|
+
? workspaceDrag.over.half
|
|
63
|
+
: null,
|
|
64
|
+
start: () => {
|
|
65
|
+
workspaceDropCommitted.current = false;
|
|
66
|
+
setWorkspaceDrag({ workspaceId: workspace.workspaceId, over: null });
|
|
67
|
+
},
|
|
68
|
+
hover: (half) => {
|
|
69
|
+
setWorkspaceDrag((current) => current === undefined
|
|
70
|
+
? current
|
|
71
|
+
: {
|
|
72
|
+
...current,
|
|
73
|
+
over: { workspaceId: workspace.workspaceId, half },
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
drop: (half) => {
|
|
77
|
+
if (workspaceDrag === undefined)
|
|
78
|
+
return;
|
|
79
|
+
commitWorkspaceDrag(workspaceDrag, {
|
|
80
|
+
workspaceId: workspace.workspaceId,
|
|
81
|
+
half,
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
end: () => {
|
|
85
|
+
if (workspaceDrag?.over !== null && workspaceDrag?.over !== undefined) {
|
|
86
|
+
commitWorkspaceDrag(workspaceDrag, workspaceDrag.over);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
setWorkspaceDrag(undefined);
|
|
90
|
+
}
|
|
91
|
+
workspaceDropCommitted.current = false;
|
|
92
|
+
},
|
|
93
|
+
}, onToggle: () => {
|
|
94
|
+
toggleWorkspace(workspace.workspaceId);
|
|
95
|
+
}, onCreateWorktree: () => {
|
|
96
|
+
openWorktreeCreator(workspace);
|
|
97
|
+
}, onRename: () => {
|
|
98
|
+
openWorkspaceRename(workspace);
|
|
99
|
+
}, onDelete: () => {
|
|
100
|
+
openWorkspaceDelete(workspace);
|
|
101
|
+
}, onMenuOpenChange: (open) => {
|
|
102
|
+
setOpenWorkspaceMenuId(open ? workspace.workspaceId : undefined);
|
|
103
|
+
} }), expanded && (_jsxs("div", { className: styles.treeChildren, children: [_jsx(WorktreeGroupRow, { t: t, kind: "main", label: mainLabel, expanded: mainExpanded, hasOngoingSession: hasOngoingSession(mainSessionIds, sessionPresentations), icon: _jsx(IconBranchOutline16, {}), workspaceTitle: workspace.title, onToggle: () => {
|
|
104
|
+
toggleMain(workspace.workspaceId);
|
|
105
|
+
}, menu: {
|
|
106
|
+
open: openMainMenuId === workspace.workspaceId,
|
|
107
|
+
label: mainLabel,
|
|
108
|
+
copyPath: workspace.path,
|
|
109
|
+
showCreate: currentBranch !== undefined,
|
|
110
|
+
showRemove: false,
|
|
111
|
+
disabled: actionPending,
|
|
112
|
+
onOpenChange: (open) => {
|
|
113
|
+
setOpenMainMenuId(open ? workspace.workspaceId : undefined);
|
|
114
|
+
},
|
|
115
|
+
onCreateWorktree: currentBranch === undefined
|
|
116
|
+
? undefined
|
|
117
|
+
: () => {
|
|
118
|
+
openWorktreeCreator(workspace, {
|
|
119
|
+
baseBranch: currentBranch,
|
|
120
|
+
newBranch: createNumberedWorktreeName(currentBranch, workspaceWorktreeNames),
|
|
121
|
+
});
|
|
122
|
+
},
|
|
123
|
+
}, onCreateSession: createMainSession === undefined
|
|
124
|
+
? undefined
|
|
125
|
+
: () => {
|
|
126
|
+
createMainSession(workspace.workspaceId);
|
|
127
|
+
} }), mainExpanded && (_jsx(WorktreeSessionGroup, { t: t, groupKey: mainGroupKey, sessionIds: sessionIds, workspaceId: workspace.workspaceId, currentSessionId: currentSessionId, expanded: mainSessionGroupExpanded, actionPending: actionPending, sessions: sessions, sessionPresentations: sessionPresentations, dragState: sessionDrag, onToggleExpanded: () => {
|
|
128
|
+
toggleSessionGroup(mainGroupKey, mainSessionGroupAutoExpanded);
|
|
129
|
+
}, onStartDrag: (groupKey, sessionId) => {
|
|
130
|
+
sessionDropCommitted.current = false;
|
|
131
|
+
setSessionDrag({ groupKey, sessionId, over: null });
|
|
132
|
+
}, onHoverDrag: (sessionId, half) => {
|
|
133
|
+
setSessionDrag((current) => current === undefined
|
|
134
|
+
? current
|
|
135
|
+
: { ...current, over: { sessionId, half } });
|
|
136
|
+
}, onClearDrag: () => {
|
|
137
|
+
setSessionDrag(undefined);
|
|
138
|
+
}, onFinishDrag: () => {
|
|
139
|
+
sessionDropCommitted.current = false;
|
|
140
|
+
}, onCommitDrag: commitSessionDrag, onOpen: (sessionId) => {
|
|
141
|
+
openWorktreeSession({ open: openSession }, sessionId);
|
|
142
|
+
}, onRename: renameSession === undefined ? undefined : openSessionRename, onFork: forkSession, onArchive: archiveSession === undefined ? undefined : archiveWorktreeSession })), activeWorktrees.length === 0 && archivedWorktrees.length === 0 && (_jsx("p", { className: styles.emptyNested, children: t('worktree.noWorktrees') })), activeWorktrees.map((record) => (_jsx(ActiveWorktree, { record: record, source: source, expansion: expansion, ordering: ordering, props: props, lifecycle: lifecycle, session: session, menus: menus, mutation: mutation, read: read, registration: registration, lifecycleState: lifecycleState, drag: drag, native: native, bindings: bindings, workspaceMatchesQuery: workspaceMatchesQuery, workspace: workspace, workspaceWorktreeNames: workspaceWorktreeNames, sameWorkspaceWorktreeDrag: sameWorkspaceWorktreeDrag, activeWorktrees: activeWorktrees }, record.worktreeId))), archivedWorktrees.length > 0 && (_jsx(ArchivedWorktrees, { expansion: expansion, props: props, source: source, ordering: ordering, lifecycle: lifecycle, mutation: mutation, menus: menus, read: read, lifecycleState: lifecycleState, drag: drag, session: session, native: native, workspace: workspace, archivedWorktrees: archivedWorktrees, bindings: bindings, workspaceMatchesQuery: workspaceMatchesQuery }))] }))] }, workspace.workspaceId));
|
|
143
|
+
})) }) }));
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=WorkspaceTree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceTree.js","sourceRoot":"","sources":["../../../../src/client/surface/components/WorkspaceTree.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AA2F7F,MAAM,UAAU,aAAa,CAAC,EAC5B,KAAK,EACL,IAAI,EACJ,MAAM,EACN,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,MAAM,EACN,SAAS,EACT,OAAO,EACP,cAAc,GACR;IACN,MAAM,EAAE,CAAC,E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EAC9B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,QAAQ,EAClB,qBAAqB,EAAE,qBAAqB,GAC5C,CACH,IACG,CACP,KA1MI,SAAS,CAAC,WAAW,CA2MlB,CACX,CAAC;YACJ,CAAC,CAAC,CACH,GACG,GACL,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import type { SessionRenameDialogProps,
|
|
1
|
+
import type { SessionRenameDialogProps, WorkspaceDeleteDialogProps, WorkspaceRenameDialogProps, WorktreeAdoptBranchDialogProps, WorktreeCleanDiskDialogProps, WorktreeCreateDialogProps, WorktreeForgetDialogProps, WorktreeRemovalDialogProps } from '../types.js';
|
|
2
|
+
export declare function WorktreeAdoptBranchDialog({ t, worktree, actionPending, error, onClose, onSubmit, onRetry, }: WorktreeAdoptBranchDialogProps): import("react").JSX.Element | null;
|
|
2
3
|
export declare function WorktreeSessionRenameDialog({ t, target, draft, pending, error, onClose, onDraftChange, onSubmit, }: SessionRenameDialogProps): import("react").JSX.Element;
|
|
3
4
|
export declare function WorktreeWorkspaceRenameDialog({ t, target, draft, pending, duplicate, error, onClose, onDraftChange, onSubmit, }: WorkspaceRenameDialogProps): import("react").JSX.Element | null;
|
|
4
5
|
export declare function WorktreeWorkspaceDeleteDialog({ t, target, pending, error, onClose, onSubmit, }: WorkspaceDeleteDialogProps): import("react").JSX.Element | null;
|
|
5
6
|
export declare function WorktreeCreateDialog({ t, workspace, view, readError, setupStatus, canCreate, mode, importCandidates, selectedImportPath, selectedBranch, newBranch, actionPending, onClose, onRetry, onModeChange, onRetryImportCandidates, onSelectedImportPathChange, onSelectedBranchChange, onNewBranchChange, onSubmit, }: WorktreeCreateDialogProps): import("react").JSX.Element | null;
|
|
6
7
|
export declare function WorktreeRemovalDialog({ t, worktree, actionPending, onClose, onSubmit, }: WorktreeRemovalDialogProps): import("react").JSX.Element | null;
|
|
7
|
-
|
|
8
|
+
export declare function WorktreeCleanDiskDialog({ t, worktree, actionPending, onClose, onSubmit, }: WorktreeCleanDiskDialogProps): import("react").JSX.Element | null;
|
|
9
|
+
export declare function WorktreeForgetDialog({ t, worktree, actionPending, onClose, onSubmit, }: WorktreeForgetDialogProps): import("react").JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=dialogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogs.d.ts","sourceRoot":"","sources":["../../../../src/client/surface/components/dialogs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAE3B,MAAM,aAAa,CAAC;AAErB,wBAAgB,yBAAyB,CAAC,EACxC,CAAC,EACD,QAAQ,EACR,aAAa,EACb,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE,8BAA8B,sCAyChC;AAkBD,wBAAgB,2BAA2B,CAAC,EAC1C,CAAC,EACD,MAAM,EACN,KAAK,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,aAAa,EACb,QAAQ,GACT,EAAE,wBAAwB,+BAkD1B;AAED,wBAAgB,6BAA6B,CAAC,EAC5C,CAAC,EACD,MAAM,EACN,KAAK,EACL,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,aAAa,EACb,QAAQ,GACT,EAAE,0BAA0B,sCA8D5B;AAED,wBAAgB,6BAA6B,CAAC,EAC5C,CAAC,EACD,MAAM,EACN,OAAO,EACP,KAAK,EACL,OAAO,EACP,QAAQ,GACT,EAAE,0BAA0B,sCAkC5B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,CAAC,EACD,SAAS,EACT,IAAI,EACJ,SAAS,EACT,WAAW,EACX,SAAS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