Files
kandev/apps/web/lib/state/slices/index.ts
T
2026-06-20 10:05:25 +01:00

185 lines
4.8 KiB
TypeScript

// Export slice creators
export { createKanbanSlice, defaultKanbanState } from "./kanban/kanban-slice";
export { createWorkspaceSlice, defaultWorkspaceState } from "./workspace/workspace-slice";
export { createSettingsSlice, defaultSettingsState } from "./settings/settings-slice";
export { createSessionSlice, defaultSessionState } from "./session/session-slice";
export {
createSessionRuntimeSlice,
defaultSessionRuntimeState,
} from "./session-runtime/session-runtime-slice";
export { createUISlice, defaultUIState } from "./ui/ui-slice";
export { createGitHubSlice, defaultGitHubState } from "./github/github-slice";
export { createGitLabSlice, defaultGitLabState } from "./gitlab/gitlab-slice";
export { createJiraSlice, defaultJiraState } from "./jira/jira-slice";
export { createLinearSlice, defaultLinearState } from "./linear/linear-slice";
export { createOfficeSlice, defaultOfficeState } from "./office/office-slice";
export { createFeaturesSlice, defaultFeaturesState } from "./features/features-slice";
export { createAutomationsSlice, defaultAutomationsState } from "./automations/automations-slice";
export { createSystemSlice, defaultSystemState } from "./system/system-slice";
// Export types
export type { KanbanSlice, KanbanSliceState, KanbanSliceActions } from "./kanban/types";
export type { WorkspaceSlice, WorkspaceSliceState, WorkspaceSliceActions } from "./workspace/types";
export type { SettingsSlice, SettingsSliceState, SettingsSliceActions } from "./settings/types";
export type { SessionSlice, SessionSliceState, SessionSliceActions } from "./session/types";
export type {
SessionRuntimeSlice,
SessionRuntimeSliceState,
SessionRuntimeSliceActions,
} from "./session-runtime/types";
export type { UISlice, UISliceState, UISliceActions } from "./ui/types";
export type {
GitHubSlice,
GitHubSliceState,
GitHubSliceActions,
TaskCIAutomationOptionsState,
} from "./github/types";
export type {
GitLabSlice,
GitLabSliceState,
GitLabSliceActions,
TaskMRsState,
} from "./gitlab/types";
export type {
JiraSlice,
JiraSliceState,
JiraSliceActions,
JiraIssueWatchesState,
} from "./jira/types";
export type {
LinearSlice,
LinearSliceState,
LinearSliceActions,
LinearIssueWatchesState,
} from "./linear/types";
export type { OfficeSlice, OfficeSliceState, OfficeSliceActions } from "./office/types";
export type {
FeaturesSlice,
FeaturesSliceState,
FeaturesSliceActions,
FeatureFlags,
FeatureName,
} from "./features/types";
export type {
AutomationsSlice,
AutomationsSliceState,
AutomationsSliceActions,
AutomationsState,
AutomationRunsState,
} from "./automations/types";
export type {
SystemSlice,
SystemSliceState,
SystemSliceActions,
SystemBackupsState,
SystemLogsState,
SystemJobsMap,
} from "./system/types";
// Re-export commonly used types from each domain
export type {
KanbanState,
KanbanMultiState,
WorkflowSnapshotData,
WorkflowsState,
TaskState,
} from "./kanban/types";
export type {
WorkspaceState,
RepositoriesState,
RepositoryBranchesState,
RepositoryScriptsState,
} from "./workspace/types";
export type {
ExecutorsState,
SettingsAgentsState,
AgentDiscoveryState,
AvailableAgentsState,
AgentProfileOption,
AgentProfilesState,
EditorsState,
PromptsState,
SecretsState,
NotificationProvidersState,
SettingsDataState,
UserSettingsState,
} from "./settings/types";
export type {
MessagesState,
TurnsState,
TaskSessionsState,
TaskSessionsByTaskState,
SessionAgentctlStatus,
SessionAgentctlState,
Worktree,
WorktreesState,
SessionWorktreesState,
PendingModelState,
ActiveModelState,
TaskPlansState,
QueueStatus,
QueuedMessage,
QueueState,
} from "./session/types";
export type {
TerminalState,
ShellState,
ProcessStatusEntry,
ProcessState,
FileInfo,
GitStatusEntry,
GitStatusState,
SessionCommit,
CumulativeDiff,
SessionCommitsState,
ContextWindowEntry,
ContextWindowState,
AgentState,
AvailableCommand,
AvailableCommandsState,
UserShellInfo,
UserShellKind,
UserShellState,
UserShellPTYStatus,
UserShellsState,
PrepareStepInfo,
SessionPrepareState,
PrepareProgressState,
} from "./session-runtime/types";
export type {
PreviewStage,
PreviewViewMode,
PreviewDevicePreset,
PreviewPanelState,
RightPanelState,
DiffState,
ConnectionState,
MobileKanbanState,
MobileSessionPanel,
MobileSessionState,
ActiveDocument,
DocumentPanelState,
SystemHealthState,
} from "./ui/types";
export type {
GitHubStatusState,
TaskPRsState,
PRWatchesState,
ReviewWatchesState,
IssueWatchesState,
} from "./github/types";
export type {
AgentProfile,
Skill,
Project,
Approval,
ActivityEntry,
CostSummary,
BudgetPolicy,
Routine,
InboxItem,
Run,
DashboardData,
} from "./office/types";
export type { Repository, Branch } from "@/lib/types/http";