mux-sesh 1.6.2 → 1.6.4
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/package.json +2 -1
- package/src/app.tsx +128 -93
- package/src/config/listed-sessions.ts +2 -5
- package/src/config/session-rules.ts +6 -11
- package/src/items/order.ts +21 -2
- package/src/styles/opencode-tui-colors.ts +1 -1
- package/src/tmux/index.ts +7 -5
- package/src/tmux/projects.ts +2 -1
- package/src/types/index.ts +1 -1
- package/src/ui/ItemList.tsx +13 -8
- package/src/ui/SessionList.tsx +4 -0
- package/src/ui/text-columns.ts +17 -0
- package/src/update/index.ts +6 -2
- package/src/update/installation.ts +92 -2
- package/src/util/path-display.ts +98 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mux-sesh",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "A beautiful tmux session manager built with OpenTUI - fuzzy search sessions, manage projects, clone from GitHub",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@opentui/core": "0.1.60",
|
|
51
51
|
"@opentui/react": "0.1.60",
|
|
52
|
+
"mux-sesh": "^1.6.2",
|
|
52
53
|
"react": "^19.2.2"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
package/src/app.tsx
CHANGED
|
@@ -24,7 +24,7 @@ import SessionList from './ui/SessionList'
|
|
|
24
24
|
import OpencodeSessionGroup from './ui/OpencodeSessionGroup'
|
|
25
25
|
import SearchInput from './ui/SearchInput'
|
|
26
26
|
import ItemList from './ui/ItemList'
|
|
27
|
-
import VersionBadge from './ui/VersionBadge'
|
|
27
|
+
import VersionBadge, { formatVersionBadge } from './ui/VersionBadge'
|
|
28
28
|
import RenameModal from './ui/RenameModal'
|
|
29
29
|
import CommandsModal, { filterCommandEntries, getCommandEntries, type CommandId } from './ui/CommandsModal'
|
|
30
30
|
import SettingsModal from './ui/SettingsModal'
|
|
@@ -749,15 +749,26 @@ export function App() {
|
|
|
749
749
|
let cancelled = false
|
|
750
750
|
|
|
751
751
|
async function loadSessionCandidates() {
|
|
752
|
-
const candidates = await measure('loadSessionCandidateItems', () =>
|
|
752
|
+
const [candidates, sessions] = await measure('loadSessionCandidateItems', () =>
|
|
753
|
+
Promise.all([getSessionCandidateItems(nextConfig), listTmuxSessions()])
|
|
754
|
+
)
|
|
753
755
|
if (cancelled) {
|
|
754
756
|
return
|
|
755
757
|
}
|
|
756
758
|
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
759
|
+
const visibleSessions = filterHiddenSessions(sessions, nextConfig.hiddenSessions)
|
|
760
|
+
const linkedCandidates = await measure('linkSessionCandidateItems', () =>
|
|
761
|
+
annotateProjectItemsWithSessionLinks(candidates, visibleSessions, nextConfig)
|
|
762
|
+
)
|
|
763
|
+
|
|
764
|
+
if (cancelled) {
|
|
765
|
+
return
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
setSessionCandidateItems(linkedCandidates)
|
|
769
|
+
setAllItems(linkedCandidates)
|
|
770
|
+
setItems(linkedCandidates)
|
|
771
|
+
setCursor(getProjectSelectionIndex(linkedCandidates))
|
|
761
772
|
}
|
|
762
773
|
|
|
763
774
|
void loadSessionCandidates()
|
|
@@ -892,6 +903,7 @@ export function App() {
|
|
|
892
903
|
const activeSessions = items.filter(item => item.isSession && item.isAttached).length
|
|
893
904
|
const maxVisibleItems = Math.max(8, rows - (appMode === AppMode.NewSession ? 10 : 12))
|
|
894
905
|
const prefixLabel = config?.prefixKey ? `${config.prefixKey} ...` : 'direct keys'
|
|
906
|
+
const versionLabel = formatVersionBadge(CURRENT_VERSION, updatedVersion)
|
|
895
907
|
const footerHint =
|
|
896
908
|
appMode === AppMode.OpencodeManage
|
|
897
909
|
? `o back d kill ctrl+p commands ${prefixLabel}`
|
|
@@ -905,115 +917,138 @@ export function App() {
|
|
|
905
917
|
<ThemeProvider theme={theme}>
|
|
906
918
|
<box
|
|
907
919
|
style={{
|
|
908
|
-
flexDirection: '
|
|
909
|
-
alignItems: 'stretch',
|
|
910
|
-
justifyContent: 'center',
|
|
920
|
+
flexDirection: 'column',
|
|
911
921
|
width: '100%',
|
|
912
922
|
height: '100%',
|
|
913
923
|
gap: 1,
|
|
914
924
|
backgroundColor: theme.background,
|
|
915
925
|
}}
|
|
916
926
|
>
|
|
917
|
-
<box
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
927
|
+
<box
|
|
928
|
+
style={{
|
|
929
|
+
flexDirection: 'row',
|
|
930
|
+
alignItems: 'stretch',
|
|
931
|
+
justifyContent: 'center',
|
|
932
|
+
width: '100%',
|
|
933
|
+
flexGrow: 1,
|
|
934
|
+
flexShrink: 1,
|
|
935
|
+
gap: 1,
|
|
936
|
+
}}
|
|
937
|
+
>
|
|
938
|
+
<box style={listStyle}>
|
|
939
|
+
<box style={{ justifyContent: 'space-between', marginBottom: 1 }}>
|
|
940
|
+
<box style={{ flexDirection: 'column' }}>
|
|
941
|
+
<text style={{ fg: theme.text }}>mux-sesh</text>
|
|
942
|
+
<text style={{ fg: theme.textSubtle }}>{title}</text>
|
|
943
|
+
</box>
|
|
944
|
+
<box style={{ flexDirection: 'column', alignItems: 'flex-end' }}>
|
|
945
|
+
<text style={{ fg: theme.textMuted }}>
|
|
946
|
+
{viewMode === ViewMode.Sessions ? `${activeSessions}/${totalSessions} active` : `${projectItems.length} projects`}
|
|
947
|
+
</text>
|
|
948
|
+
</box>
|
|
928
949
|
</box>
|
|
929
|
-
</box>
|
|
930
950
|
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
951
|
+
{(appMode === AppMode.Search || appMode === AppMode.NewSession) && (
|
|
952
|
+
<SearchInput
|
|
953
|
+
key={appMode}
|
|
954
|
+
appMode={appMode}
|
|
955
|
+
searchQuery={searchQuery}
|
|
956
|
+
textareaRef={textareaRef}
|
|
957
|
+
prefixActive={prefixActive}
|
|
958
|
+
onContentChange={() => {
|
|
959
|
+
if (textareaRef.current && textareaRef.current.plainText !== undefined) {
|
|
960
|
+
setSearchQuery(textareaRef.current.plainText)
|
|
961
|
+
}
|
|
962
|
+
}}
|
|
963
|
+
/>
|
|
964
|
+
)}
|
|
945
965
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
966
|
+
<box
|
|
967
|
+
style={{
|
|
968
|
+
alignSelf: 'auto',
|
|
969
|
+
flexDirection: 'column',
|
|
970
|
+
flexGrow: 0,
|
|
971
|
+
flexShrink: 0,
|
|
972
|
+
marginTop:
|
|
973
|
+
viewMode === ViewMode.Sessions && (appMode === AppMode.Normal || appMode === AppMode.OpencodeManage)
|
|
974
|
+
? 1
|
|
975
|
+
: 0,
|
|
976
|
+
}}
|
|
977
|
+
>
|
|
978
|
+
{items.length === 0 ? (
|
|
979
|
+
<text style={{ fg: theme.inactive }}>
|
|
980
|
+
{appMode === AppMode.NewSession && searchQuery && isGitHubURL(searchQuery)
|
|
981
|
+
? 'Clone & create session'
|
|
982
|
+
: appMode === AppMode.NewSession && searchQuery
|
|
983
|
+
? `Create session: ${searchQuery}`
|
|
984
|
+
: 'No items found'}
|
|
985
|
+
</text>
|
|
986
|
+
) : viewMode === ViewMode.Sessions && (appMode === AppMode.Normal || appMode === AppMode.OpencodeManage) ? (
|
|
987
|
+
<>
|
|
988
|
+
<SessionList
|
|
989
|
+
items={regularSessions}
|
|
990
|
+
cursor={cursor}
|
|
991
|
+
searchQuery={searchQuery}
|
|
992
|
+
maxItems={maxVisibleItems}
|
|
993
|
+
icons={config?.icons}
|
|
994
|
+
pendingKillSessionName={pendingKillSessionName}
|
|
995
|
+
/>
|
|
996
|
+
|
|
997
|
+
<OpencodeSessionGroup
|
|
998
|
+
sessions={opencodeSessions}
|
|
999
|
+
appMode={appMode}
|
|
1000
|
+
cursor={opencodeCursor}
|
|
1001
|
+
icons={config?.icons}
|
|
1002
|
+
pendingKillSessionName={pendingKillSessionName}
|
|
1003
|
+
/>
|
|
1004
|
+
</>
|
|
1005
|
+
) : (
|
|
1006
|
+
<ItemList
|
|
1007
|
+
items={items}
|
|
970
1008
|
cursor={cursor}
|
|
1009
|
+
appMode={appMode}
|
|
971
1010
|
searchQuery={searchQuery}
|
|
972
1011
|
maxItems={maxVisibleItems}
|
|
973
1012
|
icons={config?.icons}
|
|
974
1013
|
pendingKillSessionName={pendingKillSessionName}
|
|
975
1014
|
/>
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
sessions={opencodeSessions}
|
|
979
|
-
appMode={appMode}
|
|
980
|
-
cursor={opencodeCursor}
|
|
981
|
-
icons={config?.icons}
|
|
982
|
-
pendingKillSessionName={pendingKillSessionName}
|
|
983
|
-
/>
|
|
984
|
-
</>
|
|
985
|
-
) : (
|
|
986
|
-
<ItemList
|
|
987
|
-
items={items}
|
|
988
|
-
cursor={cursor}
|
|
989
|
-
appMode={appMode}
|
|
990
|
-
searchQuery={searchQuery}
|
|
991
|
-
maxItems={maxVisibleItems}
|
|
992
|
-
icons={config?.icons}
|
|
993
|
-
pendingKillSessionName={pendingKillSessionName}
|
|
994
|
-
/>
|
|
995
|
-
)}
|
|
1015
|
+
)}
|
|
1016
|
+
</box>
|
|
996
1017
|
</box>
|
|
997
1018
|
|
|
998
|
-
{(
|
|
999
|
-
|
|
1000
|
-
{
|
|
1001
|
-
|
|
1002
|
-
|
|
1019
|
+
{shouldShowDetailPanel(columns, appMode === AppMode.NewSession) && (
|
|
1020
|
+
<>
|
|
1021
|
+
{viewMode === ViewMode.Sessions && appMode === AppMode.OpencodeManage ? (
|
|
1022
|
+
<OpencodeStatsPanel selectedItem={opencodeSessions[opencodeCursor]} />
|
|
1023
|
+
) : (
|
|
1024
|
+
<SessionDetailsPanel selectedItem={selectedPrimaryItem} config={config} />
|
|
1003
1025
|
)}
|
|
1004
|
-
|
|
1005
|
-
</box>
|
|
1026
|
+
</>
|
|
1006
1027
|
)}
|
|
1007
1028
|
</box>
|
|
1008
1029
|
|
|
1009
|
-
{
|
|
1010
|
-
|
|
1011
|
-
{
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1030
|
+
{(message || columns < 80 || footerHint) && (
|
|
1031
|
+
<box
|
|
1032
|
+
style={{
|
|
1033
|
+
backgroundColor: theme.surface,
|
|
1034
|
+
position: 'absolute',
|
|
1035
|
+
bottom: 0,
|
|
1036
|
+
left: 0,
|
|
1037
|
+
paddingTop: 0.4,
|
|
1038
|
+
paddingBottom: 0.4,
|
|
1039
|
+
paddingLeft: 1,
|
|
1040
|
+
paddingRight: versionLabel.length + 3,
|
|
1041
|
+
width: '100%',
|
|
1042
|
+
flexDirection: 'column',
|
|
1043
|
+
flexShrink: 0,
|
|
1044
|
+
}}
|
|
1045
|
+
>
|
|
1046
|
+
{message && <text style={{ fg: theme.action }}>{message}</text>}
|
|
1047
|
+
{columns < 80 && appMode !== AppMode.NewSession && (
|
|
1048
|
+
<text style={{ fg: theme.textSubtle }}>Resize for the detail pane.</text>
|
|
1015
1049
|
)}
|
|
1016
|
-
|
|
1050
|
+
<text style={{ fg: theme.textSubtle }}>{footerHint}</text>
|
|
1051
|
+
</box>
|
|
1017
1052
|
)}
|
|
1018
1053
|
|
|
1019
1054
|
{modalState?.type === 'rename' && (
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { Config, Item, ProjectProfile } from '../types'
|
|
2
2
|
import { resolveProjectSession } from './session-rules'
|
|
3
|
-
|
|
4
|
-
function displayPath(path: string): string {
|
|
5
|
-
return path.replace(process.env.HOME || '', '~')
|
|
6
|
-
}
|
|
3
|
+
import { getPathGroupLabel } from '../util/path-display'
|
|
7
4
|
|
|
8
5
|
function isListedProjectProfile(profile: ProjectProfile): boolean {
|
|
9
6
|
return profile.listed === true
|
|
@@ -18,7 +15,7 @@ export async function getListedSessionItems(config: Config): Promise<Item[]> {
|
|
|
18
15
|
|
|
19
16
|
return {
|
|
20
17
|
title: resolvedSession.sessionName,
|
|
21
|
-
desc:
|
|
18
|
+
desc: getPathGroupLabel(profile.path),
|
|
22
19
|
path: profile.path,
|
|
23
20
|
isSession: false,
|
|
24
21
|
itemKind: 'configured' as const,
|
|
@@ -50,8 +50,8 @@ export async function getGitRoot(projectPath: string): Promise<string | null> {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
function buildSessionName(projectPath: string, dirLength = 1
|
|
54
|
-
const namingPath = normalizePathForMatching(
|
|
53
|
+
function buildSessionName(projectPath: string, dirLength = 1): string {
|
|
54
|
+
const namingPath = normalizePathForMatching(projectPath)
|
|
55
55
|
const parts = namingPath.split('/').filter(Boolean)
|
|
56
56
|
const segmentCount = Math.max(1, dirLength)
|
|
57
57
|
const relevantParts = parts.slice(-segmentCount)
|
|
@@ -63,16 +63,14 @@ function buildSessionName(projectPath: string, dirLength = 1, gitRoot: string |
|
|
|
63
63
|
export async function resolveProjectSession(
|
|
64
64
|
projectPath: string,
|
|
65
65
|
config: Config,
|
|
66
|
-
|
|
66
|
+
_options: ResolveProjectSessionOptions = {}
|
|
67
67
|
): Promise<ResolvedProjectSession> {
|
|
68
68
|
const normalizedProjectPath = normalizePathForMatching(projectPath)
|
|
69
|
-
const getGitRootForPath = options.getGitRoot ?? getGitRoot
|
|
70
69
|
const projectProfile = findProjectProfile(normalizedProjectPath, config)
|
|
71
70
|
|
|
72
71
|
if (projectProfile) {
|
|
73
|
-
const gitRoot = await getGitRootForPath(projectPath)
|
|
74
72
|
return {
|
|
75
|
-
sessionName: sanitizeSessionName(projectProfile.sessionName ?? buildSessionName(projectPath, config.dirLength
|
|
73
|
+
sessionName: sanitizeSessionName(projectProfile.sessionName ?? buildSessionName(projectPath, config.dirLength)),
|
|
76
74
|
startupCommand: projectProfile.startupCommand ?? config.defaultSession?.startupCommand,
|
|
77
75
|
previewCommand: projectProfile.previewCommand ?? config.defaultSession?.previewCommand,
|
|
78
76
|
source: 'project',
|
|
@@ -81,19 +79,16 @@ export async function resolveProjectSession(
|
|
|
81
79
|
|
|
82
80
|
const wildcard = findWildcard(normalizedProjectPath, config)
|
|
83
81
|
if (wildcard) {
|
|
84
|
-
const gitRoot = await getGitRootForPath(projectPath)
|
|
85
82
|
return {
|
|
86
|
-
sessionName: sanitizeSessionName(wildcard.sessionName ?? buildSessionName(projectPath, config.dirLength
|
|
83
|
+
sessionName: sanitizeSessionName(wildcard.sessionName ?? buildSessionName(projectPath, config.dirLength)),
|
|
87
84
|
startupCommand: wildcard.startupCommand ?? config.defaultSession?.startupCommand,
|
|
88
85
|
previewCommand: wildcard.previewCommand ?? config.defaultSession?.previewCommand,
|
|
89
86
|
source: 'wildcard',
|
|
90
87
|
}
|
|
91
88
|
}
|
|
92
89
|
|
|
93
|
-
const gitRoot = await getGitRootForPath(projectPath)
|
|
94
|
-
|
|
95
90
|
return {
|
|
96
|
-
sessionName: buildSessionName(projectPath, config.dirLength
|
|
91
|
+
sessionName: buildSessionName(projectPath, config.dirLength),
|
|
97
92
|
startupCommand: config.defaultSession?.startupCommand,
|
|
98
93
|
previewCommand: config.defaultSession?.previewCommand,
|
|
99
94
|
source: 'default',
|
package/src/items/order.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import type { Item, SortOrder } from '../types'
|
|
2
|
+
import { getLiveSessionSortKey } from '../util/path-display'
|
|
2
3
|
|
|
3
4
|
function compareByTitle(left: Item, right: Item): number {
|
|
4
5
|
return left.title.localeCompare(right.title)
|
|
5
6
|
}
|
|
6
7
|
|
|
8
|
+
function compareLiveSessions(left: Item, right: Item): number {
|
|
9
|
+
const leftGroupKey = getLiveSessionSortKey(left.path, left.title)
|
|
10
|
+
const rightGroupKey = getLiveSessionSortKey(right.path, right.title)
|
|
11
|
+
const groupDifference = leftGroupKey.localeCompare(rightGroupKey)
|
|
12
|
+
|
|
13
|
+
if (groupDifference !== 0) {
|
|
14
|
+
return groupDifference
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return left.title.localeCompare(right.title)
|
|
18
|
+
}
|
|
19
|
+
|
|
7
20
|
function isOpencodeSession(item: Item): boolean {
|
|
8
21
|
return item.isSession && item.title.startsWith('opencode-')
|
|
9
22
|
}
|
|
@@ -14,7 +27,7 @@ function isConfiguredSession(item: Item): boolean {
|
|
|
14
27
|
|
|
15
28
|
function sortByGroup(items: Item[], groups: Array<'live' | 'configured'>): Item[] {
|
|
16
29
|
const configuredItems = items.filter(isConfiguredSession).sort(compareByTitle)
|
|
17
|
-
const liveItems = items.filter(item => !isConfiguredSession(item)).sort(
|
|
30
|
+
const liveItems = items.filter(item => !isConfiguredSession(item)).sort(compareLiveSessions)
|
|
18
31
|
const groupedItems = new Map([
|
|
19
32
|
['configured', configuredItems],
|
|
20
33
|
['live', liveItems],
|
|
@@ -31,7 +44,13 @@ export function orderSessionItems(items: Item[], sortOrder: SortOrder = 'live-fi
|
|
|
31
44
|
sortOrder === 'configured-first'
|
|
32
45
|
? sortByGroup(regularItems, ['configured', 'live'])
|
|
33
46
|
: sortOrder === 'alphabetical'
|
|
34
|
-
? [...regularItems].sort(
|
|
47
|
+
? [...regularItems].sort((left, right) => {
|
|
48
|
+
if (isConfiguredSession(left) || isConfiguredSession(right)) {
|
|
49
|
+
return compareByTitle(left, right)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return compareLiveSessions(left, right)
|
|
53
|
+
})
|
|
35
54
|
: sortByGroup(regularItems, ['live', 'configured'])
|
|
36
55
|
|
|
37
56
|
return [...orderedRegularItems, ...opencodeItems]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const TUI_THEME_COLORS={"aura":{"dark":{"background":"#0f0f0f","surface":"#15141b","surfaceAlt":"#15141b","surfaceModal":"#15141b","overlay":"#000000","border":"#2d2d2d","borderMuted":"#2d2d2d","text":"#edecee","textMuted":"#6d6d6d","textSubtle":"#6d6d6d","primary":"#a277ff","secondary":"#f694ff","accent":"#a277ff","active":"#61ffca","inactive":"#6d6d6d","key":"#ffca85","action":"#a277ff","separator":"#6d6d6d","program":"#61ffca","fileTree":"#f694ff","danger":"#ff6767","dangerSurface":"#3f191a","selection":"#a277ff","selectionText":"#f5f5f5"},"light":{"background":"#0f0f0f","surface":"#15141b","surfaceAlt":"#15141b","surfaceModal":"#15141b","overlay":"#000000","border":"#2d2d2d","borderMuted":"#2d2d2d","text":"#edecee","textMuted":"#6d6d6d","textSubtle":"#6d6d6d","primary":"#a277ff","secondary":"#f694ff","accent":"#a277ff","active":"#61ffca","inactive":"#6d6d6d","key":"#ffca85","action":"#a277ff","separator":"#6d6d6d","program":"#61ffca","fileTree":"#f694ff","danger":"#ff6767","dangerSurface":"#3f191a","selection":"#a277ff","selectionText":"#f5f5f5"}},"ayu":{"dark":{"background":"#0B0E14","surface":"#0F131A","surfaceAlt":"#0D1017","surfaceModal":"#0F131A","overlay":"#000000","border":"#6C7380","borderMuted":"#11151C","text":"#BFBDB6","textMuted":"#565B66","textSubtle":"#565B66","primary":"#59C2FF","secondary":"#D2A6FF","accent":"#E6B450","active":"#7FD962","inactive":"#565B66","key":"#E6B673","action":"#39BAE6","separator":"#565B66","program":"#AAD94C","fileTree":"#59C2FF","danger":"#D95757","dangerSurface":"#37222c","selection":"#59C2FF","selectionText":"#171717"},"light":{"background":"#0B0E14","surface":"#0F131A","surfaceAlt":"#0D1017","surfaceModal":"#0F131A","overlay":"#000000","border":"#6C7380","borderMuted":"#11151C","text":"#BFBDB6","textMuted":"#565B66","textSubtle":"#565B66","primary":"#59C2FF","secondary":"#D2A6FF","accent":"#E6B450","active":"#7FD962","inactive":"#565B66","key":"#E6B673","action":"#39BAE6","separator":"#565B66","program":"#AAD94C","fileTree":"#59C2FF","danger":"#D95757","dangerSurface":"#37222c","selection":"#59C2FF","selectionText":"#171717"}},"carbonfox":{"dark":{"background":"#161616","surface":"#1a1a1a","surfaceAlt":"#1e1e1e","surfaceModal":"#1a1a1a","overlay":"#000000","border":"#303030","borderMuted":"#262626","text":"#f2f4f8","textMuted":"#7d848f","textSubtle":"#7d848f","primary":"#33b1ff","secondary":"#78a9ff","accent":"#ff7eb6","active":"#25be6a","inactive":"#7d848f","key":"#f1c21b","action":"#33b1ff","separator":"#303030","program":"#25be6a","fileTree":"#78a9ff","danger":"#ee5396","dangerSurface":"#2a1216","selection":"#33b1ff","selectionText":"#f5f5f5"},"light":{"background":"#ffffff","surface":"#f4f4f4","surfaceAlt":"#f4f4f4","surfaceModal":"#f4f4f4","overlay":"#000000","border":"#dcdcdc","borderMuted":"#e8e8e8","text":"#161616","textMuted":"#6f6f6f","textSubtle":"#6f6f6f","primary":"#0043ce","secondary":"#0043ce","accent":"#9f1853","active":"#198038","inactive":"#6f6f6f","key":"#007d79","action":"#0072c3","separator":"#dcdcdc","program":"#198038","fileTree":"#0043ce","danger":"#9f1853","dangerSurface":"#fff1f1","selection":"#0043ce","selectionText":"#f5f5f5"}},"catppuccin-frappe":{"dark":{"background":"#303446","surface":"#292c3c","surfaceAlt":"#232634","surfaceModal":"#292c3c","overlay":"#000000","border":"#414559","borderMuted":"#626880","text":"#c6d0f5","textMuted":"#b5bfe2","textSubtle":"#b5bfe2","primary":"#8da4e2","secondary":"#ca9ee6","accent":"#f4b8e4","active":"#a6d189","inactive":"#b5bfe2","key":"#e5c890","action":"#99d1db","separator":"#a5adce","program":"#a6d189","fileTree":"#8da4e2","danger":"#e78284","dangerSurface":"#3a2a31","selection":"#8da4e2","selectionText":"#171717"},"light":{"background":"#303446","surface":"#292c3c","surfaceAlt":"#232634","surfaceModal":"#292c3c","overlay":"#000000","border":"#414559","borderMuted":"#626880","text":"#c6d0f5","textMuted":"#b5bfe2","textSubtle":"#b5bfe2","primary":"#8da4e2","secondary":"#ca9ee6","accent":"#f4b8e4","active":"#a6d189","inactive":"#b5bfe2","key":"#e5c890","action":"#99d1db","separator":"#a5adce","program":"#a6d189","fileTree":"#8da4e2","danger":"#e78284","dangerSurface":"#3a2a31","selection":"#8da4e2","selectionText":"#171717"}},"catppuccin-macchiato":{"dark":{"background":"#24273a","surface":"#1e2030","surfaceAlt":"#181926","surfaceModal":"#1e2030","overlay":"#000000","border":"#363a4f","borderMuted":"#5b6078","text":"#cad3f5","textMuted":"#b8c0e0","textSubtle":"#b8c0e0","primary":"#8aadf4","secondary":"#c6a0f6","accent":"#f5bde6","active":"#a6da95","inactive":"#b8c0e0","key":"#eed49f","action":"#91d7e3","separator":"#a5adcb","program":"#a6da95","fileTree":"#8aadf4","danger":"#ed8796","dangerSurface":"#3a2a31","selection":"#8aadf4","selectionText":"#171717"},"light":{"background":"#24273a","surface":"#1e2030","surfaceAlt":"#181926","surfaceModal":"#1e2030","overlay":"#000000","border":"#363a4f","borderMuted":"#5b6078","text":"#cad3f5","textMuted":"#b8c0e0","textSubtle":"#b8c0e0","primary":"#8aadf4","secondary":"#c6a0f6","accent":"#f5bde6","active":"#a6da95","inactive":"#b8c0e0","key":"#eed49f","action":"#91d7e3","separator":"#a5adcb","program":"#a6da95","fileTree":"#8aadf4","danger":"#ed8796","dangerSurface":"#3a2a31","selection":"#8aadf4","selectionText":"#171717"}},"catppuccin":{"dark":{"background":"#1e1e2e","surface":"#181825","surfaceAlt":"#11111b","surfaceModal":"#181825","overlay":"#000000","border":"#313244","borderMuted":"#585b70","text":"#cdd6f4","textMuted":"#bac2de","textSubtle":"#bac2de","primary":"#89b4fa","secondary":"#cba6f7","accent":"#f5c2e7","active":"#a6e3a1","inactive":"#bac2de","key":"#f9e2af","action":"#89dceb","separator":"#a6adc8","program":"#a6e3a1","fileTree":"#89b4fa","danger":"#f38ba8","dangerSurface":"#3c2a32","selection":"#89b4fa","selectionText":"#171717"},"light":{"background":"#eff1f5","surface":"#e6e9ef","surfaceAlt":"#dce0e8","surfaceModal":"#e6e9ef","overlay":"#000000","border":"#ccd0da","borderMuted":"#acb0be","text":"#4c4f69","textMuted":"#5c5f77","textSubtle":"#5c5f77","primary":"#1e66f5","secondary":"#8839ef","accent":"#ea76cb","active":"#40a02b","inactive":"#5c5f77","key":"#df8e1d","action":"#04a5e5","separator":"#6c6f85","program":"#40a02b","fileTree":"#1e66f5","danger":"#d20f39","dangerSurface":"#f6dfe2","selection":"#1e66f5","selectionText":"#f5f5f5"}},"cobalt2":{"dark":{"background":"#193549","surface":"#122738","surfaceAlt":"#1f4662","surfaceModal":"#122738","overlay":"#000000","border":"#1f4662","borderMuted":"#0e1e2e","text":"#ffffff","textMuted":"#adb7c9","textSubtle":"#adb7c9","primary":"#0088ff","secondary":"#9a5feb","accent":"#2affdf","active":"#9eff80","inactive":"#adb7c9","key":"#ffc600","action":"#2affdf","separator":"#2d5a7b","program":"#9eff80","fileTree":"#0088ff","danger":"#ff0088","dangerSurface":"#3a1a2a","selection":"#0088ff","selectionText":"#f5f5f5"},"light":{"background":"#ffffff","surface":"#f5f7fa","surfaceAlt":"#e8ecf1","surfaceModal":"#f5f7fa","overlay":"#000000","border":"#d3dae3","borderMuted":"#e8ecf1","text":"#193549","textMuted":"#5c6b7d","textSubtle":"#5c6b7d","primary":"#0066cc","secondary":"#7c4dff","accent":"#00acc1","active":"#4caf50","inactive":"#5c6b7d","key":"#ff9800","action":"#00acc1","separator":"#d3dae3","program":"#4caf50","fileTree":"#0066cc","danger":"#e91e63","dangerSurface":"#ffebee","selection":"#0066cc","selectionText":"#f5f5f5"}},"cursor":{"dark":{"background":"#181818","surface":"#141414","surfaceAlt":"#262626","surfaceModal":"#141414","overlay":"#000000","border":"#e4e4e413","borderMuted":"#0f0f0f","text":"#e4e4e4","textMuted":"#e4e4e45e","textSubtle":"#e4e4e45e","primary":"#88c0d0","secondary":"#81a1c1","accent":"#88c0d0","active":"#3fa266","inactive":"#e4e4e45e","key":"#f1b467","action":"#81a1c1","separator":"#e4e4e45e","program":"#E394DC","fileTree":"#82D2CE","danger":"#e34671","dangerSurface":"#b8004933","selection":"#88c0d0","selectionText":"#171717"},"light":{"background":"#fcfcfc","surface":"#f3f3f3","surfaceAlt":"#ededed","surfaceModal":"#f3f3f3","overlay":"#000000","border":"#14141413","borderMuted":"#e0e0e0","text":"#141414","textMuted":"#141414ad","textSubtle":"#141414ad","primary":"#6f9ba6","secondary":"#3c7cab","accent":"#6f9ba6","active":"#1f8a65","inactive":"#141414ad","key":"#db704b","action":"#141414ad","separator":"#141414ad","program":"#1f8a65","fileTree":"#206595","danger":"#cf2d56","dangerSurface":"#cf2d5614","selection":"#6f9ba6","selectionText":"#f5f5f5"}},"dracula":{"dark":{"background":"#282a36","surface":"#21222c","surfaceAlt":"#44475a","surfaceModal":"#21222c","overlay":"#000000","border":"#44475a","borderMuted":"#191a21","text":"#f8f8f2","textMuted":"#6272a4","textSubtle":"#6272a4","primary":"#bd93f9","secondary":"#ff79c6","accent":"#8be9fd","active":"#50fa7b","inactive":"#6272a4","key":"#f1fa8c","action":"#ff79c6","separator":"#6272a4","program":"#50fa7b","fileTree":"#8be9fd","danger":"#ff5555","dangerSurface":"#3a1a1a","selection":"#bd93f9","selectionText":"#171717"},"light":{"background":"#f8f8f2","surface":"#e8e8e2","surfaceAlt":"#d8d8d2","surfaceModal":"#e8e8e2","overlay":"#000000","border":"#c8c8c2","borderMuted":"#e0e0e0","text":"#282a36","textMuted":"#6272a4","textSubtle":"#6272a4","primary":"#bd93f9","secondary":"#ff79c6","accent":"#8be9fd","active":"#50fa7b","inactive":"#6272a4","key":"#f1fa8c","action":"#ff79c6","separator":"#6272a4","program":"#50fa7b","fileTree":"#8be9fd","danger":"#ff5555","dangerSurface":"#ffe0e0","selection":"#bd93f9","selectionText":"#171717"}},"everforest":{"dark":{"background":"#2d353b","surface":"#333c43","surfaceAlt":"#343f44","surfaceModal":"#333c43","overlay":"#000000","border":"#859289","borderMuted":"#7a8478","text":"#d3c6aa","textMuted":"#7a8478","textSubtle":"#7a8478","primary":"#a7c080","secondary":"#7fbbb3","accent":"#d699b6","active":"#a7c080","inactive":"#7a8478","key":"#e69875","action":"#83c092","separator":"#7a8478","program":"#a7c080","fileTree":"#a7c080","danger":"#e67e80","dangerSurface":"#37222c","selection":"#a7c080","selectionText":"#171717"},"light":{"background":"#fdf6e3","surface":"#efebd4","surfaceAlt":"#f4f0d9","surfaceModal":"#efebd4","overlay":"#000000","border":"#939f91","borderMuted":"#a6b0a0","text":"#5c6a72","textMuted":"#a6b0a0","textSubtle":"#a6b0a0","primary":"#8da101","secondary":"#3a94c5","accent":"#df69ba","active":"#8da101","inactive":"#a6b0a0","key":"#f57d26","action":"#35a77c","separator":"#a6b0a0","program":"#8da101","fileTree":"#8da101","danger":"#f85552","dangerSurface":"#f7d8db","selection":"#8da101","selectionText":"#f5f5f5"}},"flexoki":{"dark":{"background":"#100F0F","surface":"#1C1B1A","surfaceAlt":"#282726","surfaceModal":"#1C1B1A","overlay":"#000000","border":"#575653","borderMuted":"#403E3C","text":"#CECDC3","textMuted":"#6F6E69","textSubtle":"#6F6E69","primary":"#DA702C","secondary":"#4385BE","accent":"#8B7EC8","active":"#879A39","inactive":"#6F6E69","key":"#DA702C","action":"#3AA99F","separator":"#6F6E69","program":"#3AA99F","fileTree":"#4385BE","danger":"#D14D41","dangerSurface":"#2D1A1A","selection":"#DA702C","selectionText":"#f5f5f5"},"light":{"background":"#FFFCF0","surface":"#F2F0E5","surfaceAlt":"#E6E4D9","surfaceModal":"#F2F0E5","overlay":"#000000","border":"#B7B5AC","borderMuted":"#CECDC3","text":"#100F0F","textMuted":"#6F6E69","textSubtle":"#6F6E69","primary":"#205EA6","secondary":"#5E409D","accent":"#BC5215","active":"#66800B","inactive":"#6F6E69","key":"#BC5215","action":"#24837B","separator":"#6F6E69","program":"#24837B","fileTree":"#205EA6","danger":"#AF3029","dangerSurface":"#F7D8DB","selection":"#205EA6","selectionText":"#f5f5f5"}},"github":{"dark":{"background":"#0d1117","surface":"#010409","surfaceAlt":"#161b22","surfaceModal":"#010409","overlay":"#000000","border":"#30363d","borderMuted":"#21262d","text":"#c9d1d9","textMuted":"#8b949e","textSubtle":"#8b949e","primary":"#58a6ff","secondary":"#bc8cff","accent":"#39c5cf","active":"#3fb950","inactive":"#8b949e","key":"#e3b341","action":"#39c5cf","separator":"#30363d","program":"#ff7b72","fileTree":"#58a6ff","danger":"#f85149","dangerSurface":"#67060c","selection":"#58a6ff","selectionText":"#171717"},"light":{"background":"#ffffff","surface":"#f6f8fa","surfaceAlt":"#f0f3f6","surfaceModal":"#f6f8fa","overlay":"#000000","border":"#d0d7de","borderMuted":"#d8dee4","text":"#24292f","textMuted":"#57606a","textSubtle":"#57606a","primary":"#0969da","secondary":"#8250df","accent":"#1b7c83","active":"#1a7f37","inactive":"#57606a","key":"#9a6700","action":"#1b7c83","separator":"#d0d7de","program":"#bf3989","fileTree":"#0969da","danger":"#cf222e","dangerSurface":"#ffebe9","selection":"#0969da","selectionText":"#f5f5f5"}},"gruvbox":{"dark":{"background":"#282828","surface":"#3c3836","surfaceAlt":"#504945","surfaceModal":"#3c3836","overlay":"#000000","border":"#665c54","borderMuted":"#504945","text":"#ebdbb2","textMuted":"#928374","textSubtle":"#928374","primary":"#83a598","secondary":"#d3869b","accent":"#8ec07c","active":"#b8bb26","inactive":"#928374","key":"#fe8019","action":"#b8bb26","separator":"#928374","program":"#fabd2f","fileTree":"#8ec07c","danger":"#fb4934","dangerSurface":"#322929","selection":"#83a598","selectionText":"#171717"},"light":{"background":"#fbf1c7","surface":"#ebdbb2","surfaceAlt":"#d5c4a1","surfaceModal":"#ebdbb2","overlay":"#000000","border":"#bdae93","borderMuted":"#d5c4a1","text":"#3c3836","textMuted":"#7c6f64","textSubtle":"#7c6f64","primary":"#076678","secondary":"#8f3f71","accent":"#427b58","active":"#79740e","inactive":"#7c6f64","key":"#af3a03","action":"#79740e","separator":"#7c6f64","program":"#b57614","fileTree":"#427b58","danger":"#9d0006","dangerSurface":"#e2c7c3","selection":"#076678","selectionText":"#f5f5f5"}},"kanagawa":{"dark":{"background":"#1F1F28","surface":"#2A2A37","surfaceAlt":"#363646","surfaceModal":"#2A2A37","overlay":"#000000","border":"#54546D","borderMuted":"#363646","text":"#DCD7BA","textMuted":"#727169","textSubtle":"#727169","primary":"#7E9CD8","secondary":"#957FB8","accent":"#D27E99","active":"#98BB6C","inactive":"#727169","key":"#D7A657","action":"#76946A","separator":"#727169","program":"#98BB6C","fileTree":"#7E9CD8","danger":"#E82424","dangerSurface":"#362020","selection":"#7E9CD8","selectionText":"#171717"},"light":{"background":"#F2E9DE","surface":"#EAE4D7","surfaceAlt":"#E3DCD2","surfaceModal":"#EAE4D7","overlay":"#000000","border":"#D4CBBF","borderMuted":"#DCD4C9","text":"#54433A","textMuted":"#9E9389","textSubtle":"#9E9389","primary":"#2D4F67","secondary":"#957FB8","accent":"#D27E99","active":"#98BB6C","inactive":"#9E9389","key":"#D7A657","action":"#76946A","separator":"#9E9389","program":"#98BB6C","fileTree":"#2D4F67","danger":"#E82424","dangerSurface":"#FBE6E6","selection":"#2D4F67","selectionText":"#f5f5f5"}},"lucent-orng":{"dark":{"background":"#000000","surface":"#000000","surfaceAlt":"#000000","surfaceModal":"#000000","overlay":"#000000","border":"#EC5B2B","borderMuted":"#3c3c3c","text":"#eeeeee","textMuted":"#808080","textSubtle":"#808080","primary":"#EC5B2B","secondary":"#EE7948","accent":"#FFF7F1","active":"#6ba1e6","inactive":"#808080","key":"#EC5B2B","action":"#56b6c2","separator":"#808080","program":"#6ba1e6","fileTree":"#EC5B2B","danger":"#e06c75","dangerSurface":"#000000","selection":"#EC5B2B","selectionText":"#f5f5f5"},"light":{"background":"#000000","surface":"#000000","surfaceAlt":"#000000","surfaceModal":"#000000","overlay":"#000000","border":"#EC5B2B","borderMuted":"#d4d4d4","text":"#1a1a1a","textMuted":"#8a8a8a","textSubtle":"#8a8a8a","primary":"#EC5B2B","secondary":"#EE7948","accent":"#c94d24","active":"#0062d1","inactive":"#8a8a8a","key":"#EC5B2B","action":"#318795","separator":"#8a8a8a","program":"#0062d1","fileTree":"#EC5B2B","danger":"#d1383d","dangerSurface":"#000000","selection":"#EC5B2B","selectionText":"#f5f5f5"}},"material":{"dark":{"background":"#263238","surface":"#1e272c","surfaceAlt":"#37474f","surfaceModal":"#1e272c","overlay":"#000000","border":"#37474f","borderMuted":"#1e272c","text":"#eeffff","textMuted":"#546e7a","textSubtle":"#546e7a","primary":"#82aaff","secondary":"#c792ea","accent":"#89ddff","active":"#c3e88d","inactive":"#546e7a","key":"#ffcb6b","action":"#c792ea","separator":"#37474f","program":"#c3e88d","fileTree":"#89ddff","danger":"#f07178","dangerSurface":"#3c2b2b","selection":"#82aaff","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f5f5f5","surfaceAlt":"#e7e7e8","surfaceModal":"#f5f5f5","overlay":"#000000","border":"#e0e0e0","borderMuted":"#eeeeee","text":"#263238","textMuted":"#90a4ae","textSubtle":"#90a4ae","primary":"#6182b8","secondary":"#7c4dff","accent":"#39adb5","active":"#91b859","inactive":"#90a4ae","key":"#ffb300","action":"#7c4dff","separator":"#e0e0e0","program":"#91b859","fileTree":"#39adb5","danger":"#e53935","dangerSurface":"#ffebee","selection":"#6182b8","selectionText":"#f5f5f5"}},"matrix":{"dark":{"background":"#0a0e0a","surface":"#0e130d","surfaceAlt":"#141c12","surfaceModal":"#0e130d","overlay":"#000000","border":"#1e2a1b","borderMuted":"#141c12","text":"#62ff94","textMuted":"#8ca391","textSubtle":"#8ca391","primary":"#2eff6a","secondary":"#00efff","accent":"#c770ff","active":"#62ff94","inactive":"#8ca391","key":"#e6ff57","action":"#24f6d9","separator":"#8ca391","program":"#1cc24b","fileTree":"#30b3ff","danger":"#ff4b4b","dangerSurface":"#261212","selection":"#2eff6a","selectionText":"#171717"},"light":{"background":"#eef3ea","surface":"#e4ebe1","surfaceAlt":"#dae1d7","surfaceModal":"#e4ebe1","overlay":"#000000","border":"#748476","borderMuted":"#dae1d7","text":"#203022","textMuted":"#748476","textSubtle":"#748476","primary":"#1cc24b","secondary":"#24f6d9","accent":"#c770ff","active":"#1cc24b","inactive":"#748476","key":"#e6ff57","action":"#24f6d9","separator":"#748476","program":"#1cc24b","fileTree":"#30b3ff","danger":"#ff4b4b","dangerSurface":"#f9e5e5","selection":"#1cc24b","selectionText":"#f5f5f5"}},"mercury":{"dark":{"background":"#171721","surface":"#10101a","surfaceAlt":"#272735","surfaceModal":"#10101a","overlay":"#000000","border":"#b4b7c81f","borderMuted":"#b4b7c814","text":"#dddde5","textMuted":"#9d9da8","textSubtle":"#9d9da8","primary":"#8da4f5","secondary":"#a7b6f8","accent":"#8da4f5","active":"#77c599","inactive":"#9d9da8","key":"#fc9b6f","action":"#a7b6f8","separator":"#b4b7c81f","program":"#77c599","fileTree":"#8da4f5","danger":"#fc92b4","dangerSurface":"#fc92b433","selection":"#8da4f5","selectionText":"#171717"},"light":{"background":"#ffffff","surface":"#fbfcfd","surfaceAlt":"#f4f5f9","surfaceModal":"#fbfcfd","overlay":"#000000","border":"#7073931a","borderMuted":"#7073930f","text":"#363644","textMuted":"#70707d","textSubtle":"#70707d","primary":"#5266eb","secondary":"#465bd1","accent":"#8da4f5","active":"#036e43","inactive":"#70707d","key":"#a44200","action":"#5266eb","separator":"#7073931a","program":"#036e43","fileTree":"#465bd1","danger":"#b0175f","dangerSurface":"#d032751a","selection":"#5266eb","selectionText":"#f5f5f5"}},"monokai":{"dark":{"background":"#272822","surface":"#1e1f1c","surfaceAlt":"#3e3d32","surfaceModal":"#1e1f1c","overlay":"#000000","border":"#3e3d32","borderMuted":"#1e1f1c","text":"#f8f8f2","textMuted":"#75715e","textSubtle":"#75715e","primary":"#66d9ef","secondary":"#ae81ff","accent":"#a6e22e","active":"#a6e22e","inactive":"#75715e","key":"#e6db74","action":"#ae81ff","separator":"#75715e","program":"#a6e22e","fileTree":"#66d9ef","danger":"#f92672","dangerSurface":"#3a1a1a","selection":"#66d9ef","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f0f0f0","surfaceAlt":"#e0e0e0","surfaceModal":"#f0f0f0","overlay":"#000000","border":"#d0d0d0","borderMuted":"#e8e8e8","text":"#272822","textMuted":"#75715e","textSubtle":"#75715e","primary":"#66d9ef","secondary":"#ae81ff","accent":"#a6e22e","active":"#a6e22e","inactive":"#75715e","key":"#fd971f","action":"#ae81ff","separator":"#75715e","program":"#a6e22e","fileTree":"#66d9ef","danger":"#f92672","dangerSurface":"#ffe0e0","selection":"#66d9ef","selectionText":"#171717"}},"nightowl":{"dark":{"background":"#011627","surface":"#0b253a","surfaceAlt":"#0b253a","surfaceModal":"#0b253a","overlay":"#000000","border":"#5f7e97","borderMuted":"#5f7e97","text":"#d6deeb","textMuted":"#5f7e97","textSubtle":"#5f7e97","primary":"#82AAFF","secondary":"#7fdbca","accent":"#c792ea","active":"#c5e478","inactive":"#5f7e97","key":"#ecc48d","action":"#82AAFF","separator":"#5f7e97","program":"#c5e478","fileTree":"#7fdbca","danger":"#EF5350","dangerSurface":"#2d1b1b","selection":"#82AAFF","selectionText":"#171717"},"light":{"background":"#011627","surface":"#0b253a","surfaceAlt":"#0b253a","surfaceModal":"#0b253a","overlay":"#000000","border":"#5f7e97","borderMuted":"#5f7e97","text":"#d6deeb","textMuted":"#5f7e97","textSubtle":"#5f7e97","primary":"#82AAFF","secondary":"#7fdbca","accent":"#c792ea","active":"#c5e478","inactive":"#5f7e97","key":"#ecc48d","action":"#82AAFF","separator":"#5f7e97","program":"#c5e478","fileTree":"#7fdbca","danger":"#EF5350","dangerSurface":"#2d1b1b","selection":"#82AAFF","selectionText":"#171717"}},"nord":{"dark":{"background":"#2E3440","surface":"#3B4252","surfaceAlt":"#434C5E","surfaceModal":"#3B4252","overlay":"#000000","border":"#434C5E","borderMuted":"#434C5E","text":"#ECEFF4","textMuted":"#8B95A7","textSubtle":"#8B95A7","primary":"#88C0D0","secondary":"#81A1C1","accent":"#8FBCBB","active":"#A3BE8C","inactive":"#8B95A7","key":"#D08770","action":"#8FBCBB","separator":"#8B95A7","program":"#A3BE8C","fileTree":"#81A1C1","danger":"#BF616A","dangerSurface":"#3B4252","selection":"#88C0D0","selectionText":"#171717"},"light":{"background":"#ECEFF4","surface":"#E5E9F0","surfaceAlt":"#D8DEE9","surfaceModal":"#E5E9F0","overlay":"#000000","border":"#4C566A","borderMuted":"#4C566A","text":"#2E3440","textMuted":"#3B4252","textSubtle":"#3B4252","primary":"#5E81AC","secondary":"#81A1C1","accent":"#8FBCBB","active":"#A3BE8C","inactive":"#3B4252","key":"#D08770","action":"#8FBCBB","separator":"#4C566A","program":"#A3BE8C","fileTree":"#81A1C1","danger":"#BF616A","dangerSurface":"#E5E9F0","selection":"#5E81AC","selectionText":"#f5f5f5"}},"one-dark":{"dark":{"background":"#282c34","surface":"#21252b","surfaceAlt":"#353b45","surfaceModal":"#21252b","overlay":"#000000","border":"#393f4a","borderMuted":"#2c313a","text":"#abb2bf","textMuted":"#5c6370","textSubtle":"#5c6370","primary":"#61afef","secondary":"#c678dd","accent":"#56b6c2","active":"#98c379","inactive":"#5c6370","key":"#e5c07b","action":"#56b6c2","separator":"#5c6370","program":"#98c379","fileTree":"#61afef","danger":"#e06c75","dangerSurface":"#3a2d2f","selection":"#61afef","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f0f0f1","surfaceAlt":"#eaeaeb","surfaceModal":"#f0f0f1","overlay":"#000000","border":"#d1d1d2","borderMuted":"#e0e0e1","text":"#383a42","textMuted":"#a0a1a7","textSubtle":"#a0a1a7","primary":"#4078f2","secondary":"#a626a4","accent":"#0184bc","active":"#50a14f","inactive":"#a0a1a7","key":"#c18401","action":"#0184bc","separator":"#a0a1a7","program":"#50a14f","fileTree":"#4078f2","danger":"#e45649","dangerSurface":"#fce9e8","selection":"#4078f2","selectionText":"#f5f5f5"}},"opencode":{"dark":{"background":"#0a0a0a","surface":"#141414","surfaceAlt":"#1e1e1e","surfaceModal":"#141414","overlay":"#000000","border":"#484848","borderMuted":"#3c3c3c","text":"#eeeeee","textMuted":"#808080","textSubtle":"#808080","primary":"#fab283","secondary":"#5c9cf5","accent":"#9d7cd8","active":"#7fd88f","inactive":"#808080","key":"#f5a742","action":"#56b6c2","separator":"#808080","program":"#7fd88f","fileTree":"#fab283","danger":"#e06c75","dangerSurface":"#37222c","selection":"#fab283","selectionText":"#171717"},"light":{"background":"#ffffff","surface":"#fafafa","surfaceAlt":"#f5f5f5","surfaceModal":"#fafafa","overlay":"#000000","border":"#b8b8b8","borderMuted":"#d4d4d4","text":"#1a1a1a","textMuted":"#8a8a8a","textSubtle":"#8a8a8a","primary":"#3b7dd8","secondary":"#7b5bb6","accent":"#d68c27","active":"#3d9a57","inactive":"#8a8a8a","key":"#d68c27","action":"#318795","separator":"#8a8a8a","program":"#3d9a57","fileTree":"#3b7dd8","danger":"#d1383d","dangerSurface":"#f7d8db","selection":"#3b7dd8","selectionText":"#f5f5f5"}},"orng":{"dark":{"background":"#0a0a0a","surface":"#141414","surfaceAlt":"#1e1e1e","surfaceModal":"#141414","overlay":"#000000","border":"#EC5B2B","borderMuted":"#3c3c3c","text":"#eeeeee","textMuted":"#808080","textSubtle":"#808080","primary":"#EC5B2B","secondary":"#EE7948","accent":"#FFF7F1","active":"#6ba1e6","inactive":"#808080","key":"#EC5B2B","action":"#56b6c2","separator":"#808080","program":"#6ba1e6","fileTree":"#EC5B2B","danger":"#e06c75","dangerSurface":"#37222c","selection":"#EC5B2B","selectionText":"#f5f5f5"},"light":{"background":"#ffffff","surface":"#FFF7F1","surfaceAlt":"#f5f0eb","surfaceModal":"#FFF7F1","overlay":"#000000","border":"#EC5B2B","borderMuted":"#d4d4d4","text":"#1a1a1a","textMuted":"#8a8a8a","textSubtle":"#8a8a8a","primary":"#EC5B2B","secondary":"#EE7948","accent":"#c94d24","active":"#0062d1","inactive":"#8a8a8a","key":"#EC5B2B","action":"#318795","separator":"#8a8a8a","program":"#0062d1","fileTree":"#EC5B2B","danger":"#d1383d","dangerSurface":"#f7d8db","selection":"#EC5B2B","selectionText":"#f5f5f5"}},"osaka-jade":{"dark":{"background":"#111c18","surface":"#1a2520","surfaceAlt":"#23372B","surfaceModal":"#1a2520","overlay":"#000000","border":"#3d4a44","borderMuted":"#23372B","text":"#C1C497","textMuted":"#53685B","textSubtle":"#53685B","primary":"#2DD5B7","secondary":"#D2689C","accent":"#549e6a","active":"#549e6a","inactive":"#53685B","key":"#E5C736","action":"#549e6a","separator":"#53685B","program":"#63b07a","fileTree":"#8CD3CB","danger":"#FF5345","dangerSurface":"#241515","selection":"#2DD5B7","selectionText":"#171717"},"light":{"background":"#F6F5DD","surface":"#E8E7CC","surfaceAlt":"#D5D4B8","surfaceModal":"#E8E7CC","overlay":"#000000","border":"#A8A78C","borderMuted":"#D5D4B8","text":"#111c18","textMuted":"#53685B","textSubtle":"#53685B","primary":"#1faa90","secondary":"#a8527a","accent":"#3d7a52","active":"#3d7a52","inactive":"#53685B","key":"#b5a020","action":"#3d7a52","separator":"#53685B","program":"#3d7a52","fileTree":"#1faa90","danger":"#c7392d","dangerSurface":"#eee0e0","selection":"#1faa90","selectionText":"#f5f5f5"}},"palenight":{"dark":{"background":"#292d3e","surface":"#1e2132","surfaceAlt":"#32364a","surfaceModal":"#1e2132","overlay":"#000000","border":"#32364a","borderMuted":"#1e2132","text":"#a6accd","textMuted":"#676e95","textSubtle":"#676e95","primary":"#82aaff","secondary":"#c792ea","accent":"#89ddff","active":"#c3e88d","inactive":"#676e95","key":"#ffcb6b","action":"#89ddff","separator":"#676e95","program":"#c3e88d","fileTree":"#82aaff","danger":"#f07178","dangerSurface":"#3c2b2b","selection":"#82aaff","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f5f5f5","surfaceAlt":"#e7e7e8","surfaceModal":"#f5f5f5","overlay":"#000000","border":"#e0e0e0","borderMuted":"#eeeeee","text":"#292d3e","textMuted":"#8796b0","textSubtle":"#8796b0","primary":"#4976eb","secondary":"#a854f2","accent":"#00acc1","active":"#91b859","inactive":"#8796b0","key":"#ffb300","action":"#00acc1","separator":"#8796b0","program":"#91b859","fileTree":"#4976eb","danger":"#e53935","dangerSurface":"#ffebee","selection":"#4976eb","selectionText":"#f5f5f5"}},"rosepine":{"dark":{"background":"#191724","surface":"#1f1d2e","surfaceAlt":"#26233a","surfaceModal":"#1f1d2e","overlay":"#000000","border":"#403d52","borderMuted":"#21202e","text":"#e0def4","textMuted":"#6e6a86","textSubtle":"#6e6a86","primary":"#9ccfd8","secondary":"#c4a7e7","accent":"#ebbcba","active":"#31748f","inactive":"#6e6a86","key":"#f6c177","action":"#ebbcba","separator":"#403d52","program":"#31748f","fileTree":"#9ccfd8","danger":"#eb6f92","dangerSurface":"#3a1f2d","selection":"#9ccfd8","selectionText":"#171717"},"light":{"background":"#faf4ed","surface":"#fffaf3","surfaceAlt":"#f2e9e1","surfaceModal":"#fffaf3","overlay":"#000000","border":"#dfdad9","borderMuted":"#f4ede8","text":"#575279","textMuted":"#9893a5","textSubtle":"#9893a5","primary":"#31748f","secondary":"#907aa9","accent":"#d7827e","active":"#286983","inactive":"#9893a5","key":"#ea9d34","action":"#d7827e","separator":"#dfdad9","program":"#286983","fileTree":"#31748f","danger":"#b4637a","dangerSurface":"#fce5e8","selection":"#31748f","selectionText":"#f5f5f5"}},"solarized":{"dark":{"background":"#002b36","surface":"#073642","surfaceAlt":"#073642","surfaceModal":"#073642","overlay":"#000000","border":"#073642","borderMuted":"#073642","text":"#839496","textMuted":"#586e75","textSubtle":"#586e75","primary":"#268bd2","secondary":"#6c71c4","accent":"#2aa198","active":"#859900","inactive":"#586e75","key":"#b58900","action":"#6c71c4","separator":"#586e75","program":"#859900","fileTree":"#2aa198","danger":"#dc322f","dangerSurface":"#073642","selection":"#268bd2","selectionText":"#f5f5f5"},"light":{"background":"#fdf6e3","surface":"#eee8d5","surfaceAlt":"#eee8d5","surfaceModal":"#eee8d5","overlay":"#000000","border":"#eee8d5","borderMuted":"#eee8d5","text":"#657b83","textMuted":"#93a1a1","textSubtle":"#93a1a1","primary":"#268bd2","secondary":"#6c71c4","accent":"#2aa198","active":"#859900","inactive":"#93a1a1","key":"#b58900","action":"#6c71c4","separator":"#93a1a1","program":"#859900","fileTree":"#2aa198","danger":"#dc322f","dangerSurface":"#eee8d5","selection":"#268bd2","selectionText":"#f5f5f5"}},"synthwave84":{"dark":{"background":"#262335","surface":"#1e1a29","surfaceAlt":"#2a2139","surfaceModal":"#1e1a29","overlay":"#000000","border":"#495495","borderMuted":"#241b2f","text":"#ffffff","textMuted":"#848bbd","textSubtle":"#848bbd","primary":"#36f9f6","secondary":"#ff7edb","accent":"#b084eb","active":"#72f1b8","inactive":"#848bbd","key":"#fede5d","action":"#b084eb","separator":"#495495","program":"#72f1b8","fileTree":"#36f9f6","danger":"#fe4450","dangerSurface":"#3a1a2a","selection":"#36f9f6","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f5f5f5","surfaceAlt":"#eeeeee","surfaceModal":"#f5f5f5","overlay":"#000000","border":"#e0e0e0","borderMuted":"#f0f0f0","text":"#262335","textMuted":"#5c5c8a","textSubtle":"#5c5c8a","primary":"#00bcd4","secondary":"#e91e63","accent":"#9c27b0","active":"#4caf50","inactive":"#5c5c8a","key":"#ff9800","action":"#9c27b0","separator":"#e0e0e0","program":"#4caf50","fileTree":"#00bcd4","danger":"#f44336","dangerSurface":"#ffebee","selection":"#00bcd4","selectionText":"#f5f5f5"}},"tokyonight":{"dark":{"background":"#1a1b26","surface":"#1e2030","surfaceAlt":"#222436","surfaceModal":"#1e2030","overlay":"#000000","border":"#737aa2","borderMuted":"#545c7e","text":"#c8d3f5","textMuted":"#828bb8","textSubtle":"#828bb8","primary":"#82aaff","secondary":"#c099ff","accent":"#ff966c","active":"#c3e88d","inactive":"#828bb8","key":"#ff966c","action":"#86e1fc","separator":"#828bb8","program":"#c3e88d","fileTree":"#82aaff","danger":"#ff757f","dangerSurface":"#37222c","selection":"#82aaff","selectionText":"#171717"},"light":{"background":"#e1e2e7","surface":"#d5d6db","surfaceAlt":"#c8c9ce","surfaceModal":"#d5d6db","overlay":"#000000","border":"#737a8c","borderMuted":"#9699a8","text":"#3760bf","textMuted":"#8990a3","textSubtle":"#8990a3","primary":"#2e7de9","secondary":"#9854f1","accent":"#b15c00","active":"#587539","inactive":"#8990a3","key":"#b15c00","action":"#007197","separator":"#8990a3","program":"#587539","fileTree":"#2e7de9","danger":"#f52a65","dangerSurface":"#f7d8db","selection":"#2e7de9","selectionText":"#f5f5f5"}},"vercel":{"dark":{"background":"#000000","surface":"#1A1A1A","surfaceAlt":"#292929","surfaceModal":"#1A1A1A","overlay":"#000000","border":"#1F1F1F","borderMuted":"#1A1A1A","text":"#EDEDED","textMuted":"#878787","textSubtle":"#878787","primary":"#0070F3","secondary":"#52A8FF","accent":"#8E4EC6","active":"#46A758","inactive":"#878787","key":"#FFB224","action":"#0AC7AC","separator":"#454545","program":"#63C46D","fileTree":"#52A8FF","danger":"#E5484D","dangerSurface":"#2A1314","selection":"#0070F3","selectionText":"#f5f5f5"},"light":{"background":"#FFFFFF","surface":"#FAFAFA","surfaceAlt":"#EAEAEA","surfaceModal":"#FAFAFA","overlay":"#000000","border":"#EAEAEA","borderMuted":"#EAEAEA","text":"#171717","textMuted":"#666666","textSubtle":"#666666","primary":"#0070F3","secondary":"#0062D1","accent":"#8E4EC6","active":"#388E3C","inactive":"#666666","key":"#FF9500","action":"#12A594","separator":"#999999","program":"#46A758","fileTree":"#0070F3","danger":"#DC3545","dangerSurface":"#FDECED","selection":"#0070F3","selectionText":"#f5f5f5"}},"vesper":{"dark":{"background":"#101010","surface":"#101010","surfaceAlt":"#101010","surfaceModal":"#101010","overlay":"#000000","border":"#282828","borderMuted":"#1C1C1C","text":"#FFF","textMuted":"#A0A0A0","textSubtle":"#A0A0A0","primary":"#FFC799","secondary":"#99FFE4","accent":"#FFC799","active":"#99FFE4","inactive":"#A0A0A0","key":"#FFC799","action":"#A0A0A0","separator":"#65737E","program":"#A0A0A0","fileTree":"#FFC799","danger":"#FF8080","dangerSurface":"#281a1a","selection":"#FFC799","selectionText":"#171717"},"light":{"background":"#FFF","surface":"#F0F0F0","surfaceAlt":"#E0E0E0","surfaceModal":"#F0F0F0","overlay":"#000000","border":"#D0D0D0","borderMuted":"#E8E8E8","text":"#101010","textMuted":"#A0A0A0","textSubtle":"#A0A0A0","primary":"#FFC799","secondary":"#99FFE4","accent":"#FFC799","active":"#99FFE4","inactive":"#A0A0A0","key":"#FFC799","action":"#A0A0A0","separator":"#65737E","program":"#A0A0A0","fileTree":"#FFC799","danger":"#FF8080","dangerSurface":"#f5e8e8","selection":"#FFC799","selectionText":"#171717"}},"zenburn":{"dark":{"background":"#3f3f3f","surface":"#4f4f4f","surfaceAlt":"#5f5f5f","surfaceModal":"#4f4f4f","overlay":"#000000","border":"#5f5f5f","borderMuted":"#4f4f4f","text":"#dcdccc","textMuted":"#9f9f9f","textSubtle":"#9f9f9f","primary":"#8cd0d3","secondary":"#dc8cc3","accent":"#93e0e3","active":"#7f9f7f","inactive":"#9f9f9f","key":"#f0dfaf","action":"#93e0e3","separator":"#9f9f9f","program":"#7f9f7f","fileTree":"#8cd0d3","danger":"#cc9393","dangerSurface":"#5f4f4f","selection":"#8cd0d3","selectionText":"#171717"},"light":{"background":"#ffffef","surface":"#f5f5e5","surfaceAlt":"#ebebdb","surfaceModal":"#f5f5e5","overlay":"#000000","border":"#d0d0c0","borderMuted":"#e0e0d0","text":"#3f3f3f","textMuted":"#6f6f6f","textSubtle":"#6f6f6f","primary":"#5f7f8f","secondary":"#8f5f8f","accent":"#5f8f8f","active":"#5f8f5f","inactive":"#6f6f6f","key":"#8f8f5f","action":"#5f8f8f","separator":"#6f6f6f","program":"#5f8f5f","fileTree":"#5f7f8f","danger":"#8f5f5f","dangerSurface":"#ffefef","selection":"#5f7f8f","selectionText":"#f5f5f5"}}} as const
|
|
1
|
+
export const TUI_THEME_COLORS={"aura":{"dark":{"background":"#0f0f0f","surface":"#15141b","surfaceAlt":"#15141b","surfaceModal":"#15141b","overlay":"#000000","border":"#2d2d2d","borderMuted":"#2d2d2d","text":"#edecee","textMuted":"#6d6d6d","textSubtle":"#6d6d6d","primary":"#a277ff","secondary":"#f694ff","accent":"#a277ff","active":"#61ffca","inactive":"#6d6d6d","key":"#ffca85","action":"#a277ff","separator":"#6d6d6d","program":"#61ffca","fileTree":"#f694ff","danger":"#ff6767","dangerSurface":"#3f191a","selection":"#a277ff","selectionText":"#f5f5f5"},"light":{"background":"#0f0f0f","surface":"#15141b","surfaceAlt":"#15141b","surfaceModal":"#15141b","overlay":"#000000","border":"#2d2d2d","borderMuted":"#2d2d2d","text":"#edecee","textMuted":"#6d6d6d","textSubtle":"#6d6d6d","primary":"#a277ff","secondary":"#f694ff","accent":"#a277ff","active":"#61ffca","inactive":"#6d6d6d","key":"#ffca85","action":"#a277ff","separator":"#6d6d6d","program":"#61ffca","fileTree":"#f694ff","danger":"#ff6767","dangerSurface":"#3f191a","selection":"#a277ff","selectionText":"#f5f5f5"}},"ayu":{"dark":{"background":"#0B0E14","surface":"#0F131A","surfaceAlt":"#0D1017","surfaceModal":"#0F131A","overlay":"#000000","border":"#6C7380","borderMuted":"#11151C","text":"#BFBDB6","textMuted":"#565B66","textSubtle":"#565B66","primary":"#59C2FF","secondary":"#D2A6FF","accent":"#E6B450","active":"#7FD962","inactive":"#565B66","key":"#E6B673","action":"#39BAE6","separator":"#565B66","program":"#AAD94C","fileTree":"#59C2FF","danger":"#D95757","dangerSurface":"#37222c","selection":"#59C2FF","selectionText":"#171717"},"light":{"background":"#0B0E14","surface":"#0F131A","surfaceAlt":"#0D1017","surfaceModal":"#0F131A","overlay":"#000000","border":"#6C7380","borderMuted":"#11151C","text":"#BFBDB6","textMuted":"#565B66","textSubtle":"#565B66","primary":"#59C2FF","secondary":"#D2A6FF","accent":"#E6B450","active":"#7FD962","inactive":"#565B66","key":"#E6B673","action":"#39BAE6","separator":"#565B66","program":"#AAD94C","fileTree":"#59C2FF","danger":"#D95757","dangerSurface":"#37222c","selection":"#59C2FF","selectionText":"#171717"}},"carbonfox":{"dark":{"background":"#161616","surface":"#1a1a1a","surfaceAlt":"#1e1e1e","surfaceModal":"#1a1a1a","overlay":"#000000","border":"#303030","borderMuted":"#262626","text":"#f2f4f8","textMuted":"#7d848f","textSubtle":"#7d848f","primary":"#33b1ff","secondary":"#78a9ff","accent":"#ff7eb6","active":"#25be6a","inactive":"#7d848f","key":"#f1c21b","action":"#33b1ff","separator":"#303030","program":"#25be6a","fileTree":"#78a9ff","danger":"#ee5396","dangerSurface":"#2a1216","selection":"#33b1ff","selectionText":"#f5f5f5"},"light":{"background":"#ffffff","surface":"#f4f4f4","surfaceAlt":"#f4f4f4","surfaceModal":"#f4f4f4","overlay":"#000000","border":"#dcdcdc","borderMuted":"#e8e8e8","text":"#161616","textMuted":"#6f6f6f","textSubtle":"#6f6f6f","primary":"#0043ce","secondary":"#0043ce","accent":"#9f1853","active":"#198038","inactive":"#6f6f6f","key":"#007d79","action":"#0072c3","separator":"#dcdcdc","program":"#198038","fileTree":"#0043ce","danger":"#9f1853","dangerSurface":"#fff1f1","selection":"#0043ce","selectionText":"#f5f5f5"}},"catppuccin-frappe":{"dark":{"background":"#303446","surface":"#292c3c","surfaceAlt":"#232634","surfaceModal":"#292c3c","overlay":"#000000","border":"#414559","borderMuted":"#626880","text":"#c6d0f5","textMuted":"#b5bfe2","textSubtle":"#b5bfe2","primary":"#8da4e2","secondary":"#ca9ee6","accent":"#f4b8e4","active":"#a6d189","inactive":"#b5bfe2","key":"#e5c890","action":"#99d1db","separator":"#a5adce","program":"#a6d189","fileTree":"#8da4e2","danger":"#e78284","dangerSurface":"#3a2a31","selection":"#8da4e2","selectionText":"#171717"},"light":{"background":"#303446","surface":"#292c3c","surfaceAlt":"#232634","surfaceModal":"#292c3c","overlay":"#000000","border":"#414559","borderMuted":"#626880","text":"#c6d0f5","textMuted":"#b5bfe2","textSubtle":"#b5bfe2","primary":"#8da4e2","secondary":"#ca9ee6","accent":"#f4b8e4","active":"#a6d189","inactive":"#b5bfe2","key":"#e5c890","action":"#99d1db","separator":"#a5adce","program":"#a6d189","fileTree":"#8da4e2","danger":"#e78284","dangerSurface":"#3a2a31","selection":"#8da4e2","selectionText":"#171717"}},"catppuccin-macchiato":{"dark":{"background":"#24273a","surface":"#1e2030","surfaceAlt":"#181926","surfaceModal":"#1e2030","overlay":"#000000","border":"#363a4f","borderMuted":"#5b6078","text":"#cad3f5","textMuted":"#b8c0e0","textSubtle":"#b8c0e0","primary":"#8aadf4","secondary":"#c6a0f6","accent":"#f5bde6","active":"#a6da95","inactive":"#b8c0e0","key":"#eed49f","action":"#91d7e3","separator":"#a5adcb","program":"#a6da95","fileTree":"#8aadf4","danger":"#ed8796","dangerSurface":"#3a2a31","selection":"#8aadf4","selectionText":"#171717"},"light":{"background":"#24273a","surface":"#1e2030","surfaceAlt":"#181926","surfaceModal":"#1e2030","overlay":"#000000","border":"#363a4f","borderMuted":"#5b6078","text":"#cad3f5","textMuted":"#b8c0e0","textSubtle":"#b8c0e0","primary":"#8aadf4","secondary":"#c6a0f6","accent":"#f5bde6","active":"#a6da95","inactive":"#b8c0e0","key":"#eed49f","action":"#91d7e3","separator":"#a5adcb","program":"#a6da95","fileTree":"#8aadf4","danger":"#ed8796","dangerSurface":"#3a2a31","selection":"#8aadf4","selectionText":"#171717"}},"catppuccin":{"dark":{"background":"#1e1e2e","surface":"#181825","surfaceAlt":"#11111b","surfaceModal":"#181825","overlay":"#000000","border":"#313244","borderMuted":"#585b70","text":"#cdd6f4","textMuted":"#bac2de","textSubtle":"#bac2de","primary":"#89b4fa","secondary":"#cba6f7","accent":"#f5c2e7","active":"#a6e3a1","inactive":"#bac2de","key":"#f9e2af","action":"#89dceb","separator":"#a6adc8","program":"#a6e3a1","fileTree":"#89b4fa","danger":"#f38ba8","dangerSurface":"#3c2a32","selection":"#89b4fa","selectionText":"#171717"},"light":{"background":"#eff1f5","surface":"#e6e9ef","surfaceAlt":"#dce0e8","surfaceModal":"#e6e9ef","overlay":"#000000","border":"#ccd0da","borderMuted":"#acb0be","text":"#4c4f69","textMuted":"#5c5f77","textSubtle":"#5c5f77","primary":"#1e66f5","secondary":"#8839ef","accent":"#ea76cb","active":"#40a02b","inactive":"#5c5f77","key":"#df8e1d","action":"#04a5e5","separator":"#6c6f85","program":"#40a02b","fileTree":"#1e66f5","danger":"#d20f39","dangerSurface":"#f6dfe2","selection":"#1e66f5","selectionText":"#f5f5f5"}},"cobalt2":{"dark":{"background":"#193549","surface":"#122738","surfaceAlt":"#1f4662","surfaceModal":"#122738","overlay":"#000000","border":"#1f4662","borderMuted":"#0e1e2e","text":"#ffffff","textMuted":"#adb7c9","textSubtle":"#adb7c9","primary":"#0088ff","secondary":"#9a5feb","accent":"#2affdf","active":"#9eff80","inactive":"#adb7c9","key":"#ffc600","action":"#2affdf","separator":"#2d5a7b","program":"#9eff80","fileTree":"#0088ff","danger":"#ff0088","dangerSurface":"#3a1a2a","selection":"#0088ff","selectionText":"#f5f5f5"},"light":{"background":"#ffffff","surface":"#f5f7fa","surfaceAlt":"#e8ecf1","surfaceModal":"#f5f7fa","overlay":"#000000","border":"#d3dae3","borderMuted":"#e8ecf1","text":"#193549","textMuted":"#5c6b7d","textSubtle":"#5c6b7d","primary":"#0066cc","secondary":"#7c4dff","accent":"#00acc1","active":"#4caf50","inactive":"#5c6b7d","key":"#ff9800","action":"#00acc1","separator":"#d3dae3","program":"#4caf50","fileTree":"#0066cc","danger":"#e91e63","dangerSurface":"#ffebee","selection":"#0066cc","selectionText":"#f5f5f5"}},"cursor":{"dark":{"background":"#181818","surface":"#141414","surfaceAlt":"#262626","surfaceModal":"#141414","overlay":"#000000","border":"#e4e4e413","borderMuted":"#0f0f0f","text":"#e4e4e4","textMuted":"#e4e4e45e","textSubtle":"#e4e4e45e","primary":"#88c0d0","secondary":"#81a1c1","accent":"#88c0d0","active":"#3fa266","inactive":"#e4e4e45e","key":"#f1b467","action":"#81a1c1","separator":"#e4e4e45e","program":"#E394DC","fileTree":"#82D2CE","danger":"#e34671","dangerSurface":"#b8004933","selection":"#88c0d0","selectionText":"#171717"},"light":{"background":"#fcfcfc","surface":"#f3f3f3","surfaceAlt":"#ededed","surfaceModal":"#f3f3f3","overlay":"#000000","border":"#14141413","borderMuted":"#e0e0e0","text":"#141414","textMuted":"#141414ad","textSubtle":"#141414ad","primary":"#6f9ba6","secondary":"#3c7cab","accent":"#6f9ba6","active":"#1f8a65","inactive":"#141414ad","key":"#db704b","action":"#141414ad","separator":"#141414ad","program":"#1f8a65","fileTree":"#206595","danger":"#cf2d56","dangerSurface":"#cf2d5614","selection":"#6f9ba6","selectionText":"#f5f5f5"}},"dracula":{"dark":{"background":"#282a36","surface":"#21222c","surfaceAlt":"#44475a","surfaceModal":"#21222c","overlay":"#000000","border":"#44475a","borderMuted":"#191a21","text":"#f8f8f2","textMuted":"#6272a4","textSubtle":"#6272a4","primary":"#bd93f9","secondary":"#ff79c6","accent":"#8be9fd","active":"#50fa7b","inactive":"#6272a4","key":"#f1fa8c","action":"#ff79c6","separator":"#6272a4","program":"#50fa7b","fileTree":"#8be9fd","danger":"#ff5555","dangerSurface":"#3a1a1a","selection":"#bd93f9","selectionText":"#171717"},"light":{"background":"#f8f8f2","surface":"#e8e8e2","surfaceAlt":"#d8d8d2","surfaceModal":"#e8e8e2","overlay":"#000000","border":"#c8c8c2","borderMuted":"#e0e0e0","text":"#282a36","textMuted":"#6272a4","textSubtle":"#6272a4","primary":"#bd93f9","secondary":"#ff79c6","accent":"#8be9fd","active":"#50fa7b","inactive":"#6272a4","key":"#f1fa8c","action":"#ff79c6","separator":"#6272a4","program":"#50fa7b","fileTree":"#8be9fd","danger":"#ff5555","dangerSurface":"#ffe0e0","selection":"#bd93f9","selectionText":"#171717"}},"everforest":{"dark":{"background":"#2d353b","surface":"#333c43","surfaceAlt":"#343f44","surfaceModal":"#333c43","overlay":"#000000","border":"#859289","borderMuted":"#7a8478","text":"#d3c6aa","textMuted":"#7a8478","textSubtle":"#7a8478","primary":"#a7c080","secondary":"#7fbbb3","accent":"#d699b6","active":"#a7c080","inactive":"#7a8478","key":"#e69875","action":"#83c092","separator":"#7a8478","program":"#a7c080","fileTree":"#a7c080","danger":"#e67e80","dangerSurface":"#37222c","selection":"#a7c080","selectionText":"#171717"},"light":{"background":"#fdf6e3","surface":"#efebd4","surfaceAlt":"#f4f0d9","surfaceModal":"#efebd4","overlay":"#000000","border":"#939f91","borderMuted":"#a6b0a0","text":"#5c6a72","textMuted":"#a6b0a0","textSubtle":"#a6b0a0","primary":"#8da101","secondary":"#3a94c5","accent":"#df69ba","active":"#8da101","inactive":"#a6b0a0","key":"#f57d26","action":"#35a77c","separator":"#a6b0a0","program":"#8da101","fileTree":"#8da101","danger":"#f85552","dangerSurface":"#f7d8db","selection":"#8da101","selectionText":"#f5f5f5"}},"flexoki":{"dark":{"background":"#100F0F","surface":"#1C1B1A","surfaceAlt":"#282726","surfaceModal":"#1C1B1A","overlay":"#000000","border":"#575653","borderMuted":"#403E3C","text":"#CECDC3","textMuted":"#6F6E69","textSubtle":"#6F6E69","primary":"#DA702C","secondary":"#4385BE","accent":"#8B7EC8","active":"#879A39","inactive":"#6F6E69","key":"#DA702C","action":"#3AA99F","separator":"#6F6E69","program":"#3AA99F","fileTree":"#4385BE","danger":"#D14D41","dangerSurface":"#2D1A1A","selection":"#DA702C","selectionText":"#f5f5f5"},"light":{"background":"#FFFCF0","surface":"#F2F0E5","surfaceAlt":"#E6E4D9","surfaceModal":"#F2F0E5","overlay":"#000000","border":"#B7B5AC","borderMuted":"#CECDC3","text":"#100F0F","textMuted":"#6F6E69","textSubtle":"#6F6E69","primary":"#205EA6","secondary":"#5E409D","accent":"#BC5215","active":"#66800B","inactive":"#6F6E69","key":"#BC5215","action":"#24837B","separator":"#6F6E69","program":"#24837B","fileTree":"#205EA6","danger":"#AF3029","dangerSurface":"#F7D8DB","selection":"#205EA6","selectionText":"#f5f5f5"}},"github":{"dark":{"background":"#0d1117","surface":"#010409","surfaceAlt":"#161b22","surfaceModal":"#010409","overlay":"#000000","border":"#30363d","borderMuted":"#21262d","text":"#c9d1d9","textMuted":"#8b949e","textSubtle":"#8b949e","primary":"#58a6ff","secondary":"#bc8cff","accent":"#39c5cf","active":"#3fb950","inactive":"#8b949e","key":"#e3b341","action":"#39c5cf","separator":"#30363d","program":"#ff7b72","fileTree":"#58a6ff","danger":"#f85149","dangerSurface":"#67060c","selection":"#58a6ff","selectionText":"#171717"},"light":{"background":"#ffffff","surface":"#f6f8fa","surfaceAlt":"#f0f3f6","surfaceModal":"#f6f8fa","overlay":"#000000","border":"#d0d7de","borderMuted":"#d8dee4","text":"#24292f","textMuted":"#57606a","textSubtle":"#57606a","primary":"#0969da","secondary":"#8250df","accent":"#1b7c83","active":"#1a7f37","inactive":"#57606a","key":"#9a6700","action":"#1b7c83","separator":"#d0d7de","program":"#bf3989","fileTree":"#0969da","danger":"#cf222e","dangerSurface":"#ffebe9","selection":"#0969da","selectionText":"#f5f5f5"}},"gruvbox":{"dark":{"background":"#282828","surface":"#3c3836","surfaceAlt":"#504945","surfaceModal":"#3c3836","overlay":"#000000","border":"#665c54","borderMuted":"#504945","text":"#ebdbb2","textMuted":"#928374","textSubtle":"#928374","primary":"#83a598","secondary":"#d3869b","accent":"#8ec07c","active":"#b8bb26","inactive":"#928374","key":"#fe8019","action":"#b8bb26","separator":"#928374","program":"#fabd2f","fileTree":"#8ec07c","danger":"#fb4934","dangerSurface":"#322929","selection":"#83a598","selectionText":"#171717"},"light":{"background":"#fbf1c7","surface":"#ebdbb2","surfaceAlt":"#d5c4a1","surfaceModal":"#ebdbb2","overlay":"#000000","border":"#bdae93","borderMuted":"#d5c4a1","text":"#3c3836","textMuted":"#7c6f64","textSubtle":"#7c6f64","primary":"#076678","secondary":"#8f3f71","accent":"#427b58","active":"#79740e","inactive":"#7c6f64","key":"#af3a03","action":"#79740e","separator":"#7c6f64","program":"#b57614","fileTree":"#427b58","danger":"#9d0006","dangerSurface":"#e2c7c3","selection":"#076678","selectionText":"#f5f5f5"}},"kanagawa":{"dark":{"background":"#1F1F28","surface":"#2A2A37","surfaceAlt":"#363646","surfaceModal":"#2A2A37","overlay":"#000000","border":"#54546D","borderMuted":"#363646","text":"#DCD7BA","textMuted":"#727169","textSubtle":"#727169","primary":"#7E9CD8","secondary":"#957FB8","accent":"#D27E99","active":"#98BB6C","inactive":"#727169","key":"#D7A657","action":"#76946A","separator":"#727169","program":"#98BB6C","fileTree":"#7E9CD8","danger":"#E82424","dangerSurface":"#362020","selection":"#7E9CD8","selectionText":"#171717"},"light":{"background":"#F2E9DE","surface":"#EAE4D7","surfaceAlt":"#E3DCD2","surfaceModal":"#EAE4D7","overlay":"#000000","border":"#D4CBBF","borderMuted":"#DCD4C9","text":"#54433A","textMuted":"#9E9389","textSubtle":"#9E9389","primary":"#2D4F67","secondary":"#957FB8","accent":"#D27E99","active":"#98BB6C","inactive":"#9E9389","key":"#D7A657","action":"#76946A","separator":"#9E9389","program":"#98BB6C","fileTree":"#2D4F67","danger":"#E82424","dangerSurface":"#FBE6E6","selection":"#2D4F67","selectionText":"#f5f5f5"}},"lucent-orng":{"dark":{"background":"#000000","surface":"#000000","surfaceAlt":"#000000","surfaceModal":"#000000","overlay":"#000000","border":"#EC5B2B","borderMuted":"#3c3c3c","text":"#eeeeee","textMuted":"#808080","textSubtle":"#808080","primary":"#EC5B2B","secondary":"#EE7948","accent":"#FFF7F1","active":"#6ba1e6","inactive":"#808080","key":"#EC5B2B","action":"#56b6c2","separator":"#808080","program":"#6ba1e6","fileTree":"#EC5B2B","danger":"#e06c75","dangerSurface":"#000000","selection":"#EC5B2B","selectionText":"#f5f5f5"},"light":{"background":"#000000","surface":"#000000","surfaceAlt":"#000000","surfaceModal":"#000000","overlay":"#000000","border":"#EC5B2B","borderMuted":"#d4d4d4","text":"#1a1a1a","textMuted":"#8a8a8a","textSubtle":"#8a8a8a","primary":"#EC5B2B","secondary":"#EE7948","accent":"#c94d24","active":"#0062d1","inactive":"#8a8a8a","key":"#EC5B2B","action":"#318795","separator":"#8a8a8a","program":"#0062d1","fileTree":"#EC5B2B","danger":"#d1383d","dangerSurface":"#000000","selection":"#EC5B2B","selectionText":"#f5f5f5"}},"material":{"dark":{"background":"#263238","surface":"#1e272c","surfaceAlt":"#37474f","surfaceModal":"#1e272c","overlay":"#000000","border":"#37474f","borderMuted":"#1e272c","text":"#eeffff","textMuted":"#546e7a","textSubtle":"#546e7a","primary":"#82aaff","secondary":"#c792ea","accent":"#89ddff","active":"#c3e88d","inactive":"#546e7a","key":"#ffcb6b","action":"#c792ea","separator":"#37474f","program":"#c3e88d","fileTree":"#89ddff","danger":"#f07178","dangerSurface":"#3c2b2b","selection":"#82aaff","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f5f5f5","surfaceAlt":"#e7e7e8","surfaceModal":"#f5f5f5","overlay":"#000000","border":"#e0e0e0","borderMuted":"#eeeeee","text":"#263238","textMuted":"#90a4ae","textSubtle":"#90a4ae","primary":"#6182b8","secondary":"#7c4dff","accent":"#39adb5","active":"#91b859","inactive":"#90a4ae","key":"#ffb300","action":"#7c4dff","separator":"#e0e0e0","program":"#91b859","fileTree":"#39adb5","danger":"#e53935","dangerSurface":"#ffebee","selection":"#6182b8","selectionText":"#f5f5f5"}},"matrix":{"dark":{"background":"#0a0e0a","surface":"#0e130d","surfaceAlt":"#141c12","surfaceModal":"#0e130d","overlay":"#000000","border":"#1e2a1b","borderMuted":"#141c12","text":"#62ff94","textMuted":"#8ca391","textSubtle":"#8ca391","primary":"#2eff6a","secondary":"#00efff","accent":"#c770ff","active":"#62ff94","inactive":"#8ca391","key":"#e6ff57","action":"#24f6d9","separator":"#8ca391","program":"#1cc24b","fileTree":"#30b3ff","danger":"#ff4b4b","dangerSurface":"#261212","selection":"#2eff6a","selectionText":"#171717"},"light":{"background":"#eef3ea","surface":"#e4ebe1","surfaceAlt":"#dae1d7","surfaceModal":"#e4ebe1","overlay":"#000000","border":"#748476","borderMuted":"#dae1d7","text":"#203022","textMuted":"#748476","textSubtle":"#748476","primary":"#1cc24b","secondary":"#24f6d9","accent":"#c770ff","active":"#1cc24b","inactive":"#748476","key":"#e6ff57","action":"#24f6d9","separator":"#748476","program":"#1cc24b","fileTree":"#30b3ff","danger":"#ff4b4b","dangerSurface":"#f9e5e5","selection":"#1cc24b","selectionText":"#f5f5f5"}},"mercury":{"dark":{"background":"#171721","surface":"#10101a","surfaceAlt":"#272735","surfaceModal":"#10101a","overlay":"#000000","border":"#b4b7c81f","borderMuted":"#b4b7c814","text":"#dddde5","textMuted":"#9d9da8","textSubtle":"#9d9da8","primary":"#8da4f5","secondary":"#a7b6f8","accent":"#8da4f5","active":"#77c599","inactive":"#9d9da8","key":"#fc9b6f","action":"#a7b6f8","separator":"#b4b7c81f","program":"#77c599","fileTree":"#8da4f5","danger":"#fc92b4","dangerSurface":"#fc92b433","selection":"#8da4f5","selectionText":"#171717"},"light":{"background":"#ffffff","surface":"#fbfcfd","surfaceAlt":"#f4f5f9","surfaceModal":"#fbfcfd","overlay":"#000000","border":"#7073931a","borderMuted":"#7073930f","text":"#363644","textMuted":"#70707d","textSubtle":"#70707d","primary":"#5266eb","secondary":"#465bd1","accent":"#8da4f5","active":"#036e43","inactive":"#70707d","key":"#a44200","action":"#5266eb","separator":"#7073931a","program":"#036e43","fileTree":"#465bd1","danger":"#b0175f","dangerSurface":"#d032751a","selection":"#5266eb","selectionText":"#f5f5f5"}},"monokai":{"dark":{"background":"#272822","surface":"#1e1f1c","surfaceAlt":"#3e3d32","surfaceModal":"#1e1f1c","overlay":"#000000","border":"#3e3d32","borderMuted":"#1e1f1c","text":"#f8f8f2","textMuted":"#75715e","textSubtle":"#75715e","primary":"#66d9ef","secondary":"#ae81ff","accent":"#a6e22e","active":"#a6e22e","inactive":"#75715e","key":"#e6db74","action":"#ae81ff","separator":"#75715e","program":"#a6e22e","fileTree":"#66d9ef","danger":"#f92672","dangerSurface":"#3a1a1a","selection":"#66d9ef","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f0f0f0","surfaceAlt":"#e0e0e0","surfaceModal":"#f0f0f0","overlay":"#000000","border":"#d0d0d0","borderMuted":"#e8e8e8","text":"#272822","textMuted":"#75715e","textSubtle":"#75715e","primary":"#66d9ef","secondary":"#ae81ff","accent":"#a6e22e","active":"#a6e22e","inactive":"#75715e","key":"#fd971f","action":"#ae81ff","separator":"#75715e","program":"#a6e22e","fileTree":"#66d9ef","danger":"#f92672","dangerSurface":"#ffe0e0","selection":"#66d9ef","selectionText":"#171717"}},"nightowl":{"dark":{"background":"#011627","surface":"#0b253a","surfaceAlt":"#0b253a","surfaceModal":"#0b253a","overlay":"#000000","border":"#5f7e97","borderMuted":"#5f7e97","text":"#d6deeb","textMuted":"#5f7e97","textSubtle":"#5f7e97","primary":"#82AAFF","secondary":"#7fdbca","accent":"#c792ea","active":"#c5e478","inactive":"#5f7e97","key":"#ecc48d","action":"#82AAFF","separator":"#5f7e97","program":"#c5e478","fileTree":"#7fdbca","danger":"#EF5350","dangerSurface":"#2d1b1b","selection":"#82AAFF","selectionText":"#171717"},"light":{"background":"#011627","surface":"#0b253a","surfaceAlt":"#0b253a","surfaceModal":"#0b253a","overlay":"#000000","border":"#5f7e97","borderMuted":"#5f7e97","text":"#d6deeb","textMuted":"#5f7e97","textSubtle":"#5f7e97","primary":"#82AAFF","secondary":"#7fdbca","accent":"#c792ea","active":"#c5e478","inactive":"#5f7e97","key":"#ecc48d","action":"#82AAFF","separator":"#5f7e97","program":"#c5e478","fileTree":"#7fdbca","danger":"#EF5350","dangerSurface":"#2d1b1b","selection":"#82AAFF","selectionText":"#171717"}},"nord":{"dark":{"background":"#2E3440","surface":"#3B4252","surfaceAlt":"#434C5E","surfaceModal":"#3B4252","overlay":"#000000","border":"#434C5E","borderMuted":"#434C5E","text":"#ECEFF4","textMuted":"#8B95A7","textSubtle":"#8B95A7","primary":"#88C0D0","secondary":"#81A1C1","accent":"#8FBCBB","active":"#A3BE8C","inactive":"#8B95A7","key":"#D08770","action":"#8FBCBB","separator":"#8B95A7","program":"#A3BE8C","fileTree":"#81A1C1","danger":"#BF616A","dangerSurface":"#3B4252","selection":"#88C0D0","selectionText":"#171717"},"light":{"background":"#ECEFF4","surface":"#E5E9F0","surfaceAlt":"#D8DEE9","surfaceModal":"#E5E9F0","overlay":"#000000","border":"#4C566A","borderMuted":"#4C566A","text":"#2E3440","textMuted":"#3B4252","textSubtle":"#3B4252","primary":"#5E81AC","secondary":"#81A1C1","accent":"#8FBCBB","active":"#A3BE8C","inactive":"#3B4252","key":"#D08770","action":"#8FBCBB","separator":"#4C566A","program":"#A3BE8C","fileTree":"#81A1C1","danger":"#BF616A","dangerSurface":"#E5E9F0","selection":"#5E81AC","selectionText":"#f5f5f5"}},"one-dark":{"dark":{"background":"#282c34","surface":"#21252b","surfaceAlt":"#353b45","surfaceModal":"#21252b","overlay":"#000000","border":"#393f4a","borderMuted":"#2c313a","text":"#abb2bf","textMuted":"#5c6370","textSubtle":"#5c6370","primary":"#61afef","secondary":"#c678dd","accent":"#56b6c2","active":"#98c379","inactive":"#5c6370","key":"#e5c07b","action":"#56b6c2","separator":"#5c6370","program":"#98c379","fileTree":"#61afef","danger":"#e06c75","dangerSurface":"#3a2d2f","selection":"#61afef","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f0f0f1","surfaceAlt":"#eaeaeb","surfaceModal":"#f0f0f1","overlay":"#000000","border":"#d1d1d2","borderMuted":"#e0e0e1","text":"#383a42","textMuted":"#a0a1a7","textSubtle":"#a0a1a7","primary":"#4078f2","secondary":"#a626a4","accent":"#0184bc","active":"#50a14f","inactive":"#a0a1a7","key":"#c18401","action":"#0184bc","separator":"#a0a1a7","program":"#50a14f","fileTree":"#4078f2","danger":"#e45649","dangerSurface":"#fce9e8","selection":"#4078f2","selectionText":"#f5f5f5"}},"opencode":{"dark":{"background":"#0a0a0a","surface":"#141414","surfaceAlt":"#1e1e1e","surfaceModal":"#141414","overlay":"#000000","border":"#484848","borderMuted":"#3c3c3c","text":"#eeeeee","textMuted":"#808080","textSubtle":"#808080","primary":"#fab283","secondary":"#5c9cf5","accent":"#9d7cd8","active":"#7fd88f","inactive":"#808080","key":"#f5a742","action":"#56b6c2","separator":"#808080","program":"#7fd88f","fileTree":"#fab283","danger":"#e06c75","dangerSurface":"#37222c","selection":"#fab283","selectionText":"#171717"},"light":{"background":"#ffffff","surface":"#fafafa","surfaceAlt":"#f5f5f5","surfaceModal":"#fafafa","overlay":"#000000","border":"#b8b8b8","borderMuted":"#d4d4d4","text":"#1a1a1a","textMuted":"#8a8a8a","textSubtle":"#8a8a8a","primary":"#3b7dd8","secondary":"#7b5bb6","accent":"#d68c27","active":"#3d9a57","inactive":"#8a8a8a","key":"#d68c27","action":"#318795","separator":"#8a8a8a","program":"#3d9a57","fileTree":"#3b7dd8","danger":"#d1383d","dangerSurface":"#f7d8db","selection":"#3b7dd8","selectionText":"#f5f5f5"}},"orng":{"dark":{"background":"#0a0a0a","surface":"#141414","surfaceAlt":"#1e1e1e","surfaceModal":"#141414","overlay":"#000000","border":"#EC5B2B","borderMuted":"#3c3c3c","text":"#eeeeee","textMuted":"#808080","textSubtle":"#808080","primary":"#EC5B2B","secondary":"#EE7948","accent":"#FFF7F1","active":"#6ba1e6","inactive":"#808080","key":"#EC5B2B","action":"#56b6c2","separator":"#808080","program":"#6ba1e6","fileTree":"#EC5B2B","danger":"#e06c75","dangerSurface":"#37222c","selection":"#EC5B2B","selectionText":"#f5f5f5"},"light":{"background":"#ffffff","surface":"#FFF7F1","surfaceAlt":"#f5f0eb","surfaceModal":"#FFF7F1","overlay":"#000000","border":"#EC5B2B","borderMuted":"#d4d4d4","text":"#1a1a1a","textMuted":"#8a8a8a","textSubtle":"#8a8a8a","primary":"#EC5B2B","secondary":"#EE7948","accent":"#c94d24","active":"#0062d1","inactive":"#8a8a8a","key":"#EC5B2B","action":"#318795","separator":"#8a8a8a","program":"#0062d1","fileTree":"#EC5B2B","danger":"#d1383d","dangerSurface":"#f7d8db","selection":"#EC5B2B","selectionText":"#f5f5f5"}},"osaka-jade":{"dark":{"background":"#111c18","surface":"#1a2520","surfaceAlt":"#23372B","surfaceModal":"#1a2520","overlay":"#000000","border":"#3d4a44","borderMuted":"#23372B","text":"#C1C497","textMuted":"#53685B","textSubtle":"#53685B","primary":"#2DD5B7","secondary":"#D2689C","accent":"#549e6a","active":"#549e6a","inactive":"#53685B","key":"#E5C736","action":"#549e6a","separator":"#53685B","program":"#63b07a","fileTree":"#8CD3CB","danger":"#FF5345","dangerSurface":"#241515","selection":"#2DD5B7","selectionText":"#171717"},"light":{"background":"#F6F5DD","surface":"#E8E7CC","surfaceAlt":"#D5D4B8","surfaceModal":"#E8E7CC","overlay":"#000000","border":"#A8A78C","borderMuted":"#D5D4B8","text":"#111c18","textMuted":"#53685B","textSubtle":"#53685B","primary":"#1faa90","secondary":"#a8527a","accent":"#3d7a52","active":"#3d7a52","inactive":"#53685B","key":"#b5a020","action":"#3d7a52","separator":"#53685B","program":"#3d7a52","fileTree":"#1faa90","danger":"#c7392d","dangerSurface":"#eee0e0","selection":"#1faa90","selectionText":"#f5f5f5"}},"palenight":{"dark":{"background":"#292d3e","surface":"#1e2132","surfaceAlt":"#32364a","surfaceModal":"#1e2132","overlay":"#000000","border":"#32364a","borderMuted":"#1e2132","text":"#a6accd","textMuted":"#676e95","textSubtle":"#676e95","primary":"#82aaff","secondary":"#c792ea","accent":"#89ddff","active":"#c3e88d","inactive":"#676e95","key":"#ffcb6b","action":"#89ddff","separator":"#676e95","program":"#c3e88d","fileTree":"#82aaff","danger":"#f07178","dangerSurface":"#3c2b2b","selection":"#82aaff","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f5f5f5","surfaceAlt":"#e7e7e8","surfaceModal":"#f5f5f5","overlay":"#000000","border":"#e0e0e0","borderMuted":"#eeeeee","text":"#292d3e","textMuted":"#8796b0","textSubtle":"#8796b0","primary":"#4976eb","secondary":"#a854f2","accent":"#00acc1","active":"#91b859","inactive":"#8796b0","key":"#ffb300","action":"#00acc1","separator":"#8796b0","program":"#91b859","fileTree":"#4976eb","danger":"#e53935","dangerSurface":"#ffebee","selection":"#4976eb","selectionText":"#f5f5f5"}},"rosepine":{"dark":{"background":"#191724","surface":"#191724","surfaceAlt":"#26233a","surfaceModal":"#1f1d2e","overlay":"#000000","border":"#403d52","borderMuted":"#21202e","text":"#e0def4","textMuted":"#6e6a86","textSubtle":"#6e6a86","primary":"#9ccfd8","secondary":"#c4a7e7","accent":"#ebbcba","active":"#31748f","inactive":"#6e6a86","key":"#f6c177","action":"#ebbcba","separator":"#403d52","program":"#31748f","fileTree":"#9ccfd8","danger":"#eb6f92","dangerSurface":"#3a1f2d","selection":"#9ccfd8","selectionText":"#171717"},"light":{"background":"#faf4ed","surface":"#fffaf3","surfaceAlt":"#f2e9e1","surfaceModal":"#fffaf3","overlay":"#000000","border":"#dfdad9","borderMuted":"#f4ede8","text":"#575279","textMuted":"#9893a5","textSubtle":"#9893a5","primary":"#31748f","secondary":"#907aa9","accent":"#d7827e","active":"#286983","inactive":"#9893a5","key":"#ea9d34","action":"#d7827e","separator":"#dfdad9","program":"#286983","fileTree":"#31748f","danger":"#b4637a","dangerSurface":"#fce5e8","selection":"#31748f","selectionText":"#f5f5f5"}},"solarized":{"dark":{"background":"#002b36","surface":"#073642","surfaceAlt":"#073642","surfaceModal":"#073642","overlay":"#000000","border":"#073642","borderMuted":"#073642","text":"#839496","textMuted":"#586e75","textSubtle":"#586e75","primary":"#268bd2","secondary":"#6c71c4","accent":"#2aa198","active":"#859900","inactive":"#586e75","key":"#b58900","action":"#6c71c4","separator":"#586e75","program":"#859900","fileTree":"#2aa198","danger":"#dc322f","dangerSurface":"#073642","selection":"#268bd2","selectionText":"#f5f5f5"},"light":{"background":"#fdf6e3","surface":"#eee8d5","surfaceAlt":"#eee8d5","surfaceModal":"#eee8d5","overlay":"#000000","border":"#eee8d5","borderMuted":"#eee8d5","text":"#657b83","textMuted":"#93a1a1","textSubtle":"#93a1a1","primary":"#268bd2","secondary":"#6c71c4","accent":"#2aa198","active":"#859900","inactive":"#93a1a1","key":"#b58900","action":"#6c71c4","separator":"#93a1a1","program":"#859900","fileTree":"#2aa198","danger":"#dc322f","dangerSurface":"#eee8d5","selection":"#268bd2","selectionText":"#f5f5f5"}},"synthwave84":{"dark":{"background":"#262335","surface":"#1e1a29","surfaceAlt":"#2a2139","surfaceModal":"#1e1a29","overlay":"#000000","border":"#495495","borderMuted":"#241b2f","text":"#ffffff","textMuted":"#848bbd","textSubtle":"#848bbd","primary":"#36f9f6","secondary":"#ff7edb","accent":"#b084eb","active":"#72f1b8","inactive":"#848bbd","key":"#fede5d","action":"#b084eb","separator":"#495495","program":"#72f1b8","fileTree":"#36f9f6","danger":"#fe4450","dangerSurface":"#3a1a2a","selection":"#36f9f6","selectionText":"#171717"},"light":{"background":"#fafafa","surface":"#f5f5f5","surfaceAlt":"#eeeeee","surfaceModal":"#f5f5f5","overlay":"#000000","border":"#e0e0e0","borderMuted":"#f0f0f0","text":"#262335","textMuted":"#5c5c8a","textSubtle":"#5c5c8a","primary":"#00bcd4","secondary":"#e91e63","accent":"#9c27b0","active":"#4caf50","inactive":"#5c5c8a","key":"#ff9800","action":"#9c27b0","separator":"#e0e0e0","program":"#4caf50","fileTree":"#00bcd4","danger":"#f44336","dangerSurface":"#ffebee","selection":"#00bcd4","selectionText":"#f5f5f5"}},"tokyonight":{"dark":{"background":"#1a1b26","surface":"#1e2030","surfaceAlt":"#222436","surfaceModal":"#1e2030","overlay":"#000000","border":"#737aa2","borderMuted":"#545c7e","text":"#c8d3f5","textMuted":"#828bb8","textSubtle":"#828bb8","primary":"#82aaff","secondary":"#c099ff","accent":"#ff966c","active":"#c3e88d","inactive":"#828bb8","key":"#ff966c","action":"#86e1fc","separator":"#828bb8","program":"#c3e88d","fileTree":"#82aaff","danger":"#ff757f","dangerSurface":"#37222c","selection":"#82aaff","selectionText":"#171717"},"light":{"background":"#e1e2e7","surface":"#d5d6db","surfaceAlt":"#c8c9ce","surfaceModal":"#d5d6db","overlay":"#000000","border":"#737a8c","borderMuted":"#9699a8","text":"#3760bf","textMuted":"#8990a3","textSubtle":"#8990a3","primary":"#2e7de9","secondary":"#9854f1","accent":"#b15c00","active":"#587539","inactive":"#8990a3","key":"#b15c00","action":"#007197","separator":"#8990a3","program":"#587539","fileTree":"#2e7de9","danger":"#f52a65","dangerSurface":"#f7d8db","selection":"#2e7de9","selectionText":"#f5f5f5"}},"vercel":{"dark":{"background":"#000000","surface":"#1A1A1A","surfaceAlt":"#292929","surfaceModal":"#1A1A1A","overlay":"#000000","border":"#1F1F1F","borderMuted":"#1A1A1A","text":"#EDEDED","textMuted":"#878787","textSubtle":"#878787","primary":"#0070F3","secondary":"#52A8FF","accent":"#8E4EC6","active":"#46A758","inactive":"#878787","key":"#FFB224","action":"#0AC7AC","separator":"#454545","program":"#63C46D","fileTree":"#52A8FF","danger":"#E5484D","dangerSurface":"#2A1314","selection":"#0070F3","selectionText":"#f5f5f5"},"light":{"background":"#FFFFFF","surface":"#FAFAFA","surfaceAlt":"#EAEAEA","surfaceModal":"#FAFAFA","overlay":"#000000","border":"#EAEAEA","borderMuted":"#EAEAEA","text":"#171717","textMuted":"#666666","textSubtle":"#666666","primary":"#0070F3","secondary":"#0062D1","accent":"#8E4EC6","active":"#388E3C","inactive":"#666666","key":"#FF9500","action":"#12A594","separator":"#999999","program":"#46A758","fileTree":"#0070F3","danger":"#DC3545","dangerSurface":"#FDECED","selection":"#0070F3","selectionText":"#f5f5f5"}},"vesper":{"dark":{"background":"#101010","surface":"#101010","surfaceAlt":"#101010","surfaceModal":"#101010","overlay":"#000000","border":"#282828","borderMuted":"#1C1C1C","text":"#FFF","textMuted":"#A0A0A0","textSubtle":"#A0A0A0","primary":"#FFC799","secondary":"#99FFE4","accent":"#FFC799","active":"#99FFE4","inactive":"#A0A0A0","key":"#FFC799","action":"#A0A0A0","separator":"#65737E","program":"#A0A0A0","fileTree":"#FFC799","danger":"#FF8080","dangerSurface":"#281a1a","selection":"#FFC799","selectionText":"#171717"},"light":{"background":"#FFF","surface":"#F0F0F0","surfaceAlt":"#E0E0E0","surfaceModal":"#F0F0F0","overlay":"#000000","border":"#D0D0D0","borderMuted":"#E8E8E8","text":"#101010","textMuted":"#A0A0A0","textSubtle":"#A0A0A0","primary":"#FFC799","secondary":"#99FFE4","accent":"#FFC799","active":"#99FFE4","inactive":"#A0A0A0","key":"#FFC799","action":"#A0A0A0","separator":"#65737E","program":"#A0A0A0","fileTree":"#FFC799","danger":"#FF8080","dangerSurface":"#f5e8e8","selection":"#FFC799","selectionText":"#171717"}},"zenburn":{"dark":{"background":"#3f3f3f","surface":"#4f4f4f","surfaceAlt":"#5f5f5f","surfaceModal":"#4f4f4f","overlay":"#000000","border":"#5f5f5f","borderMuted":"#4f4f4f","text":"#dcdccc","textMuted":"#9f9f9f","textSubtle":"#9f9f9f","primary":"#8cd0d3","secondary":"#dc8cc3","accent":"#93e0e3","active":"#7f9f7f","inactive":"#9f9f9f","key":"#f0dfaf","action":"#93e0e3","separator":"#9f9f9f","program":"#7f9f7f","fileTree":"#8cd0d3","danger":"#cc9393","dangerSurface":"#5f4f4f","selection":"#8cd0d3","selectionText":"#171717"},"light":{"background":"#ffffef","surface":"#f5f5e5","surfaceAlt":"#ebebdb","surfaceModal":"#f5f5e5","overlay":"#000000","border":"#d0d0c0","borderMuted":"#e0e0d0","text":"#3f3f3f","textMuted":"#6f6f6f","textSubtle":"#6f6f6f","primary":"#5f7f8f","secondary":"#8f5f8f","accent":"#5f8f8f","active":"#5f8f5f","inactive":"#6f6f6f","key":"#8f8f5f","action":"#5f8f8f","separator":"#6f6f6f","program":"#5f8f5f","fileTree":"#5f7f8f","danger":"#8f5f5f","dangerSurface":"#ffefef","selection":"#5f7f8f","selectionText":"#f5f5f5"}}} as const
|
package/src/tmux/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { spawn } from 'bun'
|
|
2
2
|
import type { Item, SessionDetails, WindowInfo } from '../types'
|
|
3
|
+
import { getLiveSessionGroupLabel } from '../util/path-display'
|
|
3
4
|
|
|
4
5
|
const SESSION_DETAILS_CACHE_TTL_MS = 4000
|
|
5
6
|
const sessionDetailsCache = new Map<string, { details: SessionDetails; expiresAt: number }>()
|
|
@@ -47,18 +48,19 @@ export async function listTmuxSessions(): Promise<Item[]> {
|
|
|
47
48
|
'tmux',
|
|
48
49
|
'list-sessions',
|
|
49
50
|
'-F',
|
|
50
|
-
'#{session_name}
|
|
51
|
+
'#{session_name}\t#{session_attached}\t#{session_windows}\t#{session_created}\t#{session_activity}\t#{session_path}',
|
|
51
52
|
])
|
|
52
53
|
|
|
53
54
|
const output = await new Response(proc.stdout).text()
|
|
54
55
|
const lines = output.trim().split('\n').filter(Boolean)
|
|
55
56
|
|
|
56
57
|
const sessions = lines.map(line => {
|
|
57
|
-
const [name, attached, windows, created, activity] = line.split('
|
|
58
|
+
const [name, attached, windows, created, activity, sessionPath = ''] = line.split('\t')
|
|
59
|
+
|
|
58
60
|
return {
|
|
59
61
|
title: name,
|
|
60
|
-
path:
|
|
61
|
-
desc:
|
|
62
|
+
path: sessionPath,
|
|
63
|
+
desc: getLiveSessionGroupLabel(sessionPath),
|
|
62
64
|
isSession: true,
|
|
63
65
|
itemKind: 'tmux' as const,
|
|
64
66
|
isAttached: attached === '1',
|
|
@@ -68,7 +70,7 @@ export async function listTmuxSessions(): Promise<Item[]> {
|
|
|
68
70
|
}
|
|
69
71
|
})
|
|
70
72
|
|
|
71
|
-
return sessions
|
|
73
|
+
return sessions
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
export async function createTmuxSession(
|
package/src/tmux/projects.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { basename } from 'path'
|
|
|
3
3
|
import { access, stat } from 'fs/promises'
|
|
4
4
|
import type { Config, Item } from '../types'
|
|
5
5
|
import { normalizePathForMatching } from '../util/glob'
|
|
6
|
+
import { getPathContextLabel } from '../util/path-display'
|
|
6
7
|
|
|
7
8
|
interface ZoxideEntry {
|
|
8
9
|
score: number
|
|
@@ -34,7 +35,7 @@ function isIgnoredProjectDirectory(baseName: string): boolean {
|
|
|
34
35
|
function toProjectItem(projectPath: string): Item {
|
|
35
36
|
return {
|
|
36
37
|
title: basename(projectPath),
|
|
37
|
-
desc: projectPath
|
|
38
|
+
desc: getPathContextLabel(projectPath),
|
|
38
39
|
path: projectPath,
|
|
39
40
|
isSession: false,
|
|
40
41
|
itemKind: 'project',
|
package/src/types/index.ts
CHANGED
package/src/ui/ItemList.tsx
CHANGED
|
@@ -63,21 +63,26 @@ export default function ItemList({
|
|
|
63
63
|
) : (
|
|
64
64
|
<span style={{ fg: theme.text }}>{item.title}</span>
|
|
65
65
|
)}
|
|
66
|
+
{item.desc ? <span style={{ fg: theme.textSubtle }}>{` ${item.desc}`}</span> : null}
|
|
66
67
|
</>
|
|
67
68
|
) : (
|
|
68
69
|
<>
|
|
69
70
|
<span style={{ fg: icon.color }}>{icon.glyph}</span>{' '}
|
|
70
|
-
{
|
|
71
|
-
isSearching && hasDescMatch ? (
|
|
72
|
-
<HighlightedText text={item.desc} matchIndices={descMatchIndices} />
|
|
73
|
-
) : (
|
|
74
|
-
<span style={{ fg: theme.text }}>{item.desc}</span>
|
|
75
|
-
)
|
|
76
|
-
) : isSearching && hasTitleMatch ? (
|
|
71
|
+
{isSearching && hasTitleMatch ? (
|
|
77
72
|
<HighlightedText text={item.title} matchIndices={titleMatchIndices} />
|
|
78
73
|
) : (
|
|
79
74
|
<span style={{ fg: theme.text }}>{item.title}</span>
|
|
80
75
|
)}
|
|
76
|
+
{item.desc ? (
|
|
77
|
+
<>
|
|
78
|
+
<span style={{ fg: theme.textSubtle }}>{' '}</span>
|
|
79
|
+
{isSearching && hasDescMatch ? (
|
|
80
|
+
<HighlightedText text={item.desc} matchIndices={descMatchIndices} />
|
|
81
|
+
) : (
|
|
82
|
+
<span style={{ fg: theme.textSubtle }}>{item.desc}</span>
|
|
83
|
+
)}
|
|
84
|
+
</>
|
|
85
|
+
) : null}
|
|
81
86
|
</>
|
|
82
87
|
)}
|
|
83
88
|
</text>
|
|
@@ -89,7 +94,7 @@ export default function ItemList({
|
|
|
89
94
|
: `(${item.windowCount})`
|
|
90
95
|
: appMode === AppMode.NewSession
|
|
91
96
|
? `${sessionStatusLabel}${linkedSessionLabel}`
|
|
92
|
-
:
|
|
97
|
+
: ''}
|
|
93
98
|
</text>
|
|
94
99
|
</box>
|
|
95
100
|
)
|
package/src/ui/SessionList.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import { getSessionSection } from '../items/order'
|
|
|
5
5
|
import HighlightedText from './HighlightedText'
|
|
6
6
|
import { formatSectionHeader, getItemIconPresentation } from './item-icon'
|
|
7
7
|
import { getVisibleWindow } from './list-window'
|
|
8
|
+
import { getMutedLabelColumnWidth, getMutedLabelSpacer } from './text-columns'
|
|
8
9
|
|
|
9
10
|
interface Props {
|
|
10
11
|
items: Item[]
|
|
@@ -26,6 +27,7 @@ export default function SessionList({
|
|
|
26
27
|
const theme = useTheme()
|
|
27
28
|
const isSearching = searchQuery.trim().length > 0
|
|
28
29
|
const visibleWindow = getVisibleWindow(items, cursor, maxItems)
|
|
30
|
+
const mutedLabelColumnWidth = getMutedLabelColumnWidth(items)
|
|
29
31
|
|
|
30
32
|
return (
|
|
31
33
|
<>
|
|
@@ -41,6 +43,7 @@ export default function SessionList({
|
|
|
41
43
|
const sectionHeader = formatSectionHeader(theme, currentSection, icons)
|
|
42
44
|
const pendingKill = item.title === pendingKillSessionName
|
|
43
45
|
const selected = absoluteIndex === cursor
|
|
46
|
+
const mutedLabelSpacer = item.isSession && item.desc ? getMutedLabelSpacer(item.title, mutedLabelColumnWidth) : ''
|
|
44
47
|
|
|
45
48
|
return (
|
|
46
49
|
<box key={i} style={{ flexDirection: 'column' }}>
|
|
@@ -68,6 +71,7 @@ export default function SessionList({
|
|
|
68
71
|
) : (
|
|
69
72
|
<span style={{ fg: theme.text }}>{item.title}</span>
|
|
70
73
|
)}
|
|
74
|
+
{item.isSession && item.desc ? <span style={{ fg: theme.textSubtle }}>{`${mutedLabelSpacer}${item.desc}`}</span> : null}
|
|
71
75
|
</text>
|
|
72
76
|
|
|
73
77
|
<text style={{ fg: pendingKill ? theme.danger : theme.textSubtle }}>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Item } from '../types'
|
|
2
|
+
|
|
3
|
+
const MIN_COLUMN_GAP = 2
|
|
4
|
+
|
|
5
|
+
export function getMutedLabelColumnWidth(items: Item[]): number {
|
|
6
|
+
return items.reduce((maxWidth, item) => {
|
|
7
|
+
if (!item.isSession || !item.desc) {
|
|
8
|
+
return maxWidth
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return Math.max(maxWidth, item.title.length)
|
|
12
|
+
}, 0)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function getMutedLabelSpacer(title: string, columnWidth: number): string {
|
|
16
|
+
return ' '.repeat(Math.max(MIN_COLUMN_GAP, columnWidth - title.length + MIN_COLUMN_GAP))
|
|
17
|
+
}
|
package/src/update/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Config } from '../types'
|
|
2
2
|
import { CURRENT_VERSION, getLatestVersion, isNewerVersion } from './version'
|
|
3
|
-
import { canAutoUpdate, detectInstallMethod, performUpgrade } from './installation'
|
|
3
|
+
import { canAutoUpdate, detectInstallMethod, getInstalledVersion, performUpgrade } from './installation'
|
|
4
4
|
import { updateEvents } from './events'
|
|
5
5
|
|
|
6
6
|
interface UpdateDependencies {
|
|
@@ -8,6 +8,7 @@ interface UpdateDependencies {
|
|
|
8
8
|
isNewerVersion: typeof isNewerVersion
|
|
9
9
|
detectInstallMethod: typeof detectInstallMethod
|
|
10
10
|
canAutoUpdate: typeof canAutoUpdate
|
|
11
|
+
getInstalledVersion: typeof getInstalledVersion
|
|
11
12
|
performUpgrade: typeof performUpgrade
|
|
12
13
|
emit: typeof updateEvents.emit
|
|
13
14
|
}
|
|
@@ -17,6 +18,7 @@ const defaultDependencies: UpdateDependencies = {
|
|
|
17
18
|
isNewerVersion,
|
|
18
19
|
detectInstallMethod,
|
|
19
20
|
canAutoUpdate,
|
|
21
|
+
getInstalledVersion,
|
|
20
22
|
performUpgrade,
|
|
21
23
|
emit: updateEvents.emit.bind(updateEvents),
|
|
22
24
|
}
|
|
@@ -58,7 +60,9 @@ export async function checkAndUpdate(config: Config, dependencies: Partial<Updat
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
const success = await resolvedDependencies.performUpgrade(method, latest)
|
|
61
|
-
|
|
63
|
+
const installedVersion = success ? await resolvedDependencies.getInstalledVersion() : null
|
|
64
|
+
|
|
65
|
+
if (success && installedVersion === latest) {
|
|
62
66
|
resolvedDependencies.emit({
|
|
63
67
|
kind: 'updated',
|
|
64
68
|
currentVersion: CURRENT_VERSION,
|
|
@@ -1,8 +1,82 @@
|
|
|
1
1
|
import type { InstallMethod } from '../types'
|
|
2
2
|
|
|
3
|
+
interface PackageMetadata {
|
|
4
|
+
name?: string
|
|
5
|
+
version?: string
|
|
6
|
+
}
|
|
7
|
+
|
|
3
8
|
const PACKAGE_NAME = 'mux-sesh'
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
function normalizePath(path: string): string {
|
|
11
|
+
return path.replaceAll('\\', '/')
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function getDefaultRuntimePath(): string {
|
|
15
|
+
return process.argv[1] ?? import.meta.path
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async function findPackageRoot(startPath: string): Promise<string | null> {
|
|
19
|
+
let current = normalizePath(startPath)
|
|
20
|
+
|
|
21
|
+
if (!current) {
|
|
22
|
+
return null
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const lastSlash = current.lastIndexOf('/')
|
|
26
|
+
if (lastSlash === -1) {
|
|
27
|
+
return null
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
current = current.slice(0, lastSlash)
|
|
31
|
+
|
|
32
|
+
while (current) {
|
|
33
|
+
const packageFile = Bun.file(`${current}/package.json`)
|
|
34
|
+
|
|
35
|
+
if (await packageFile.exists()) {
|
|
36
|
+
try {
|
|
37
|
+
const packageJson = (await packageFile.json()) as PackageMetadata
|
|
38
|
+
if (packageJson.name === PACKAGE_NAME) {
|
|
39
|
+
return current
|
|
40
|
+
}
|
|
41
|
+
} catch {
|
|
42
|
+
return null
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const parent = current.slice(0, current.lastIndexOf('/')) || '/'
|
|
47
|
+
if (parent === current) {
|
|
48
|
+
return null
|
|
49
|
+
}
|
|
50
|
+
current = parent
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return null
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function detectInstallMethodFromPath(runtimePath: string): Promise<InstallMethod> {
|
|
57
|
+
const normalizedPath = normalizePath(runtimePath)
|
|
58
|
+
|
|
59
|
+
if (normalizedPath.includes(`/.bun/install/global/node_modules/${PACKAGE_NAME}/`)) {
|
|
60
|
+
return 'bun'
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (normalizedPath.includes(`/Cellar/${PACKAGE_NAME}/`)) {
|
|
64
|
+
return 'brew'
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (normalizedPath.includes(`/node_modules/${PACKAGE_NAME}/`)) {
|
|
68
|
+
return 'npm'
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return (await findPackageRoot(normalizedPath)) ? 'source' : 'unknown'
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export async function detectInstallMethod(runtimePath = getDefaultRuntimePath()): Promise<InstallMethod> {
|
|
75
|
+
const activeMethod = await detectInstallMethodFromPath(runtimePath)
|
|
76
|
+
if (activeMethod !== 'unknown') {
|
|
77
|
+
return activeMethod
|
|
78
|
+
}
|
|
79
|
+
|
|
6
80
|
const checks = [
|
|
7
81
|
{
|
|
8
82
|
name: 'npm' as const,
|
|
@@ -37,11 +111,27 @@ export function canAutoUpdate(method: InstallMethod): boolean {
|
|
|
37
111
|
return method === 'npm' || method === 'bun'
|
|
38
112
|
}
|
|
39
113
|
|
|
114
|
+
export async function getInstalledVersion(runtimePath = getDefaultRuntimePath()): Promise<string | null> {
|
|
115
|
+
const packageRoot = await findPackageRoot(runtimePath)
|
|
116
|
+
|
|
117
|
+
if (!packageRoot) {
|
|
118
|
+
return null
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
try {
|
|
122
|
+
const packageJson = (await Bun.file(`${packageRoot}/package.json`).json()) as PackageMetadata
|
|
123
|
+
return typeof packageJson.version === 'string' ? packageJson.version : null
|
|
124
|
+
} catch (error) {
|
|
125
|
+
console.error('Failed to read installed version:', error)
|
|
126
|
+
return null
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
40
130
|
export async function performUpgrade(
|
|
41
131
|
method: InstallMethod,
|
|
42
132
|
targetVersion: string
|
|
43
133
|
): Promise<boolean> {
|
|
44
|
-
if (method === 'unknown') {
|
|
134
|
+
if (method === 'unknown' || method === 'source') {
|
|
45
135
|
return false
|
|
46
136
|
}
|
|
47
137
|
let command: string[]
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { basename, dirname } from 'path'
|
|
2
|
+
|
|
3
|
+
function toHomeRelativePath(path: string): string {
|
|
4
|
+
const homeDir = process.env.HOME || ''
|
|
5
|
+
|
|
6
|
+
if (!path) {
|
|
7
|
+
return ''
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (homeDir && path === homeDir) {
|
|
11
|
+
return '~'
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if (homeDir && path.startsWith(`${homeDir}/`)) {
|
|
15
|
+
return `~${path.slice(homeDir.length)}`
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return path
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function getWorktreeProjectName(path: string): string | null {
|
|
22
|
+
if (!path) {
|
|
23
|
+
return null
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const parentPath = dirname(path)
|
|
27
|
+
|
|
28
|
+
if (basename(parentPath) !== '.worktrees') {
|
|
29
|
+
return null
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const projectName = basename(dirname(parentPath))
|
|
33
|
+
return projectName && projectName !== '.' && projectName !== '/' ? projectName : null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function getPathGroupLabel(path: string): string {
|
|
37
|
+
if (!path) {
|
|
38
|
+
return ''
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const parentPath = dirname(path)
|
|
42
|
+
if ((process.env.HOME || '') && parentPath === (process.env.HOME || '')) {
|
|
43
|
+
return '~'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const worktreeProject = getWorktreeProjectName(path)
|
|
47
|
+
if (worktreeProject) {
|
|
48
|
+
return worktreeProject
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const parentName = basename(parentPath)
|
|
52
|
+
|
|
53
|
+
if (!parentName || parentName === '.' || parentName === '/') {
|
|
54
|
+
return ''
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return parentName
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function getPathContextLabel(path: string): string {
|
|
61
|
+
if (!path) {
|
|
62
|
+
return ''
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const parentPath = dirname(path)
|
|
66
|
+
|
|
67
|
+
if (!parentPath || parentPath === '.' || parentPath === '/') {
|
|
68
|
+
return parentPath === '/' ? '/' : ''
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const worktreeProject = getWorktreeProjectName(path)
|
|
72
|
+
if (worktreeProject) {
|
|
73
|
+
return `${toHomeRelativePath(dirname(parentPath))} [worktree]`
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return toHomeRelativePath(parentPath)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function getLiveSessionGroupLabel(path: string): string {
|
|
80
|
+
const worktreeProject = getWorktreeProjectName(path)
|
|
81
|
+
|
|
82
|
+
if (worktreeProject) {
|
|
83
|
+
return `${worktreeProject} [worktree]`
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return getPathGroupLabel(path)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function getLiveSessionSortKey(path: string, title: string): string {
|
|
90
|
+
const worktreeProject = getWorktreeProjectName(path)
|
|
91
|
+
|
|
92
|
+
if (worktreeProject) {
|
|
93
|
+
return worktreeProject
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const baseName = basename(path)
|
|
97
|
+
return baseName && baseName !== '.' && baseName !== '/' ? baseName : title
|
|
98
|
+
}
|