@lattices/cli 0.4.14 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -7
- package/apps/mac/Info.plist +4 -4
- package/apps/mac/Lattices.app/Contents/Info.plist +4 -12
- package/apps/mac/Lattices.app/Contents/MacOS/Lattices +0 -0
- package/bin/lattices-app.ts +110 -17
- package/bin/lattices-build +125 -0
- package/bin/lattices-dev +89 -16
- package/bin/lattices.ts +977 -16
- package/docs/agents.md +81 -4
- package/docs/ai-chat-ux-review.md +416 -0
- package/docs/api.md +135 -3
- package/docs/app.md +30 -8
- package/docs/config.md +4 -0
- package/docs/mouse-gestures.md +60 -1
- package/docs/proposals/LAT-004-interactive-overlay-actors.md +1 -1
- package/docs/proposals/LAT-005-action-runtime-product-spine.md +914 -0
- package/docs/proposals/LAT-006-mira-in-lattices.md +553 -0
- package/docs/proposals/LAT-007-unified-app-shell.md +128 -0
- package/docs/reference/dewey.config.ts +2 -2
- package/docs/release.md +171 -0
- package/docs/repo-structure.md +5 -5
- package/docs/voice.md +11 -27
- package/package.json +11 -10
- package/apps/mac/Package.swift +0 -27
- package/apps/mac/Sources/AppShell/App.swift +0 -26
- package/apps/mac/Sources/AppShell/AppActivationCoordinator.swift +0 -27
- package/apps/mac/Sources/AppShell/AppDelegate.swift +0 -189
- package/apps/mac/Sources/AppShell/AppServicesBootstrap.swift +0 -25
- package/apps/mac/Sources/AppShell/AppShellView.swift +0 -171
- package/apps/mac/Sources/AppShell/AppUpdater.swift +0 -305
- package/apps/mac/Sources/AppShell/CliActionLauncher.swift +0 -50
- package/apps/mac/Sources/AppShell/HomeDashboardView.swift +0 -133
- package/apps/mac/Sources/AppShell/HotkeyBootstrap.swift +0 -87
- package/apps/mac/Sources/AppShell/KeyRecorderView.swift +0 -210
- package/apps/mac/Sources/AppShell/LatticesRuntime.swift +0 -104
- package/apps/mac/Sources/AppShell/MainView.swift +0 -847
- package/apps/mac/Sources/AppShell/MainWindow.swift +0 -83
- package/apps/mac/Sources/AppShell/MenuBarController.swift +0 -177
- package/apps/mac/Sources/AppShell/OnboardingView.swift +0 -483
- package/apps/mac/Sources/AppShell/PermissionsAssistantView.swift +0 -366
- package/apps/mac/Sources/AppShell/PermissionsAssistantWindow.swift +0 -70
- package/apps/mac/Sources/AppShell/Preferences.swift +0 -297
- package/apps/mac/Sources/AppShell/SettingsView.swift +0 -3163
- package/apps/mac/Sources/AppShell/SettingsWindow.swift +0 -34
- package/apps/mac/Sources/AppShell/WorkspaceInspectorPresenter.swift +0 -13
- package/apps/mac/Sources/Core/Actions/HotkeyManager.swift +0 -256
- package/apps/mac/Sources/Core/Actions/HotkeyStore.swift +0 -399
- package/apps/mac/Sources/Core/Actions/IntentEngine.swift +0 -988
- package/apps/mac/Sources/Core/Actions/IntentSchema.swift +0 -94
- package/apps/mac/Sources/Core/Actions/Intents/CreateLayerIntent.swift +0 -54
- package/apps/mac/Sources/Core/Actions/Intents/DistributeIntent.swift +0 -56
- package/apps/mac/Sources/Core/Actions/Intents/FocusIntent.swift +0 -69
- package/apps/mac/Sources/Core/Actions/Intents/HelpIntent.swift +0 -41
- package/apps/mac/Sources/Core/Actions/Intents/KillIntent.swift +0 -47
- package/apps/mac/Sources/Core/Actions/Intents/LatticeIntent.swift +0 -53
- package/apps/mac/Sources/Core/Actions/Intents/LaunchIntent.swift +0 -67
- package/apps/mac/Sources/Core/Actions/Intents/ListSessionsIntent.swift +0 -32
- package/apps/mac/Sources/Core/Actions/Intents/ListWindowsIntent.swift +0 -30
- package/apps/mac/Sources/Core/Actions/Intents/ScanIntent.swift +0 -52
- package/apps/mac/Sources/Core/Actions/Intents/SearchIntent.swift +0 -190
- package/apps/mac/Sources/Core/Actions/Intents/SwitchLayerIntent.swift +0 -50
- package/apps/mac/Sources/Core/Actions/Intents/TileIntent.swift +0 -61
- package/apps/mac/Sources/Core/Actions/PaletteCommand.swift +0 -439
- package/apps/mac/Sources/Core/Actions/VoiceIntentResolver.swift +0 -713
- package/apps/mac/Sources/Core/Companion/CompanionActivityLog.swift +0 -70
- package/apps/mac/Sources/Core/Companion/CompanionKeyboardController.swift +0 -141
- package/apps/mac/Sources/Core/Companion/LatticesCompanionBridgeServer.swift +0 -454
- package/apps/mac/Sources/Core/Companion/LatticesCompanionCockpit.swift +0 -555
- package/apps/mac/Sources/Core/Companion/LatticesCompanionSecurityCoordinator.swift +0 -629
- package/apps/mac/Sources/Core/Companion/LatticesCompanionTrackpadController.swift +0 -204
- package/apps/mac/Sources/Core/Companion/LatticesDeckHost.swift +0 -1463
- package/apps/mac/Sources/Core/Daemon/DaemonProtocol.swift +0 -114
- package/apps/mac/Sources/Core/Daemon/DaemonServer.swift +0 -427
- package/apps/mac/Sources/Core/Daemon/LatticesApi.swift +0 -2965
- package/apps/mac/Sources/Core/Desktop/AccessibilityTextExtractor.swift +0 -111
- package/apps/mac/Sources/Core/Desktop/AppTypeClassifier.swift +0 -106
- package/apps/mac/Sources/Core/Desktop/DesktopModel.swift +0 -331
- package/apps/mac/Sources/Core/Desktop/DesktopModelTypes.swift +0 -73
- package/apps/mac/Sources/Core/Desktop/InventoryManager.swift +0 -35
- package/apps/mac/Sources/Core/Desktop/InventoryPath.swift +0 -43
- package/apps/mac/Sources/Core/Desktop/MouseFinder.swift +0 -527
- package/apps/mac/Sources/Core/Desktop/OcrModel.swift +0 -467
- package/apps/mac/Sources/Core/Desktop/OcrStore.swift +0 -329
- package/apps/mac/Sources/Core/Desktop/PlacementSpec.swift +0 -195
- package/apps/mac/Sources/Core/Desktop/SessionWindowLocator.swift +0 -139
- package/apps/mac/Sources/Core/Desktop/TilePickerView.swift +0 -209
- package/apps/mac/Sources/Core/Desktop/WindowCapture.swift +0 -33
- package/apps/mac/Sources/Core/Desktop/WindowDragSnapController.swift +0 -429
- package/apps/mac/Sources/Core/Desktop/WindowPreviewCard.swift +0 -100
- package/apps/mac/Sources/Core/Desktop/WindowPreviewStore.swift +0 -112
- package/apps/mac/Sources/Core/Desktop/WindowSelectionStore.swift +0 -76
- package/apps/mac/Sources/Core/Desktop/WindowTiler.swift +0 -2222
- package/apps/mac/Sources/Core/Input/EventTapBreaker.swift +0 -124
- package/apps/mac/Sources/Core/Input/EventTapThread.swift +0 -54
- package/apps/mac/Sources/Core/Input/InputCaptureResetCenter.swift +0 -20
- package/apps/mac/Sources/Core/Input/KeyboardRemapConfig.swift +0 -69
- package/apps/mac/Sources/Core/Input/KeyboardRemapController.swift +0 -346
- package/apps/mac/Sources/Core/Input/KeyboardRemapStore.swift +0 -141
- package/apps/mac/Sources/Core/Input/MouseGestureConfig.swift +0 -499
- package/apps/mac/Sources/Core/Input/MouseGestureController.swift +0 -2583
- package/apps/mac/Sources/Core/Input/MouseInputDeviceStore.swift +0 -98
- package/apps/mac/Sources/Core/Input/MouseInputEventViewer.swift +0 -272
- package/apps/mac/Sources/Core/Input/MouseShortcutStore.swift +0 -170
- package/apps/mac/Sources/Core/Input/SecureEventInputMonitor.swift +0 -39
- package/apps/mac/Sources/Core/Input/ShapeRecognizer.swift +0 -624
- package/apps/mac/Sources/Core/Input/TapBudgetMeter.swift +0 -56
- package/apps/mac/Sources/Core/Overlays/AppWindowShell.swift +0 -63
- package/apps/mac/Sources/Core/Overlays/CommandMode/CommandModeState.swift +0 -1566
- package/apps/mac/Sources/Core/Overlays/CommandMode/CommandModeView.swift +0 -1927
- package/apps/mac/Sources/Core/Overlays/CommandMode/CommandModeWindow.swift +0 -196
- package/apps/mac/Sources/Core/Overlays/CommandPalette/CommandPaletteView.swift +0 -307
- package/apps/mac/Sources/Core/Overlays/CommandPalette/CommandPaletteWindow.swift +0 -67
- package/apps/mac/Sources/Core/Overlays/HUD/CheatSheetHUD.swift +0 -576
- package/apps/mac/Sources/Core/Overlays/HUD/HUDBottomBar.swift +0 -279
- package/apps/mac/Sources/Core/Overlays/HUD/HUDController.swift +0 -1158
- package/apps/mac/Sources/Core/Overlays/HUD/HUDLeftBar.swift +0 -849
- package/apps/mac/Sources/Core/Overlays/HUD/HUDMinimap.swift +0 -179
- package/apps/mac/Sources/Core/Overlays/HUD/HUDRightBar.swift +0 -596
- package/apps/mac/Sources/Core/Overlays/HUD/HUDState.swift +0 -367
- package/apps/mac/Sources/Core/Overlays/HUD/HUDTopBar.swift +0 -243
- package/apps/mac/Sources/Core/Overlays/HUD/LauncherHUD.swift +0 -334
- package/apps/mac/Sources/Core/Overlays/HUD/LayerBezel.swift +0 -203
- package/apps/mac/Sources/Core/Overlays/OmniSearch/OmniSearchState.swift +0 -280
- package/apps/mac/Sources/Core/Overlays/OmniSearch/OmniSearchView.swift +0 -422
- package/apps/mac/Sources/Core/Overlays/OmniSearch/OmniSearchWindow.swift +0 -94
- package/apps/mac/Sources/Core/Overlays/OverlayPanelShell.swift +0 -241
- package/apps/mac/Sources/Core/Overlays/ScreenMap/ScreenMapState.swift +0 -3135
- package/apps/mac/Sources/Core/Overlays/ScreenMap/ScreenMapView.swift +0 -3977
- package/apps/mac/Sources/Core/Overlays/ScreenMap/ScreenMapWindowController.swift +0 -119
- package/apps/mac/Sources/Core/Overlays/ScreenOverlayCanvasController.swift +0 -1217
- package/apps/mac/Sources/Core/Overlays/Voice/VoiceCommandWindow.swift +0 -1575
- package/apps/mac/Sources/Core/Pi/PiAuthNextStepCard.swift +0 -148
- package/apps/mac/Sources/Core/Pi/PiAuthPromptCard.swift +0 -90
- package/apps/mac/Sources/Core/Pi/PiChatDock.swift +0 -564
- package/apps/mac/Sources/Core/Pi/PiChatSession.swift +0 -1948
- package/apps/mac/Sources/Core/Pi/PiInstallCallout.swift +0 -86
- package/apps/mac/Sources/Core/Pi/PiProviderSetupCallout.swift +0 -99
- package/apps/mac/Sources/Core/Pi/PiWorkspaceView.swift +0 -510
- package/apps/mac/Sources/Core/System/Capability.swift +0 -79
- package/apps/mac/Sources/Core/System/DiagnosticLog.swift +0 -373
- package/apps/mac/Sources/Core/System/EventBus.swift +0 -31
- package/apps/mac/Sources/Core/System/PermissionChecker.swift +0 -224
- package/apps/mac/Sources/Core/System/ProcessModel.swift +0 -199
- package/apps/mac/Sources/Core/System/ProcessQuery.swift +0 -151
- package/apps/mac/Sources/Core/System/SystemTelemetryMonitor.swift +0 -273
- package/apps/mac/Sources/Core/Voice/AdvisorLearningStore.swift +0 -90
- package/apps/mac/Sources/Core/Voice/AgentSession.swift +0 -377
- package/apps/mac/Sources/Core/Voice/AudioProvider.swift +0 -555
- package/apps/mac/Sources/Core/Voice/HandsOffSession.swift +0 -839
- package/apps/mac/Sources/Core/Voice/VoiceChatView.swift +0 -192
- package/apps/mac/Sources/Core/Voice/VoxClient.swift +0 -454
- package/apps/mac/Sources/Core/Workspace/Project.swift +0 -28
- package/apps/mac/Sources/Core/Workspace/ProjectScanner.swift +0 -141
- package/apps/mac/Sources/Core/Workspace/SessionLayerStore.swift +0 -285
- package/apps/mac/Sources/Core/Workspace/SessionManager.swift +0 -75
- package/apps/mac/Sources/Core/Workspace/Terminal/Terminal.swift +0 -259
- package/apps/mac/Sources/Core/Workspace/Terminal/TerminalQuery.swift +0 -156
- package/apps/mac/Sources/Core/Workspace/Terminal/TerminalSynthesizer.swift +0 -200
- package/apps/mac/Sources/Core/Workspace/Tmux/TmuxModel.swift +0 -60
- package/apps/mac/Sources/Core/Workspace/Tmux/TmuxQuery.swift +0 -105
- package/apps/mac/Sources/Core/Workspace/WorkspaceManager.swift +0 -1027
- package/apps/mac/Sources/UI/ActionRow.swift +0 -78
- package/apps/mac/Sources/UI/OrphanRow.swift +0 -129
- package/apps/mac/Sources/UI/ProjectRow.swift +0 -368
- package/apps/mac/Sources/UI/TabGroupRow.swift +0 -178
- package/apps/mac/Sources/UI/Theme.swift +0 -164
- package/apps/mac/Tests/StageDragTests.swift +0 -333
- package/apps/mac/Tests/StageJoinTests.swift +0 -313
- package/apps/mac/Tests/StageManagerTests.swift +0 -280
- package/apps/mac/Tests/StageTileTests.swift +0 -353
- package/swift/Package.swift +0 -20
- package/swift/Sources/DeckKit/DeckAction.swift +0 -51
- package/swift/Sources/DeckKit/DeckBridgeSecurity.swift +0 -152
- package/swift/Sources/DeckKit/DeckCockpit.swift +0 -82
- package/swift/Sources/DeckKit/DeckHost.swift +0 -7
- package/swift/Sources/DeckKit/DeckManifest.swift +0 -145
- package/swift/Sources/DeckKit/DeckRuntimeSnapshot.swift +0 -533
- package/swift/Sources/DeckKit/DeckTrackpad.swift +0 -63
- package/swift/Sources/DeckKit/DeckValue.swift +0 -93
- package/swift/Sources/DeckKit/DeckVoiceError.swift +0 -88
- package/swift/Tests/DeckKitTests/DeckKitTests.swift +0 -286
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import SwiftUI
|
|
2
|
-
|
|
3
|
-
// MARK: - HUDMinimap (expanded canvas-attached minimap)
|
|
4
|
-
|
|
5
|
-
struct HUDMinimap: View {
|
|
6
|
-
@ObservedObject var state: HUDState
|
|
7
|
-
@ObservedObject private var desktop = DesktopModel.shared
|
|
8
|
-
var onDismiss: () -> Void
|
|
9
|
-
let screenIndex: Int
|
|
10
|
-
|
|
11
|
-
var body: some View {
|
|
12
|
-
VStack(alignment: .leading, spacing: 0) {
|
|
13
|
-
// Header
|
|
14
|
-
HStack(spacing: 0) {
|
|
15
|
-
Image(systemName: screenIndex == 0 ? "display" : "rectangle.on.rectangle")
|
|
16
|
-
.font(.system(size: 10))
|
|
17
|
-
.foregroundColor(Palette.textMuted)
|
|
18
|
-
Text(screenIndex == 0 ? "Main" : "Display \(screenIndex + 1)")
|
|
19
|
-
.font(Typo.monoBold(10))
|
|
20
|
-
.foregroundColor(Palette.textMuted)
|
|
21
|
-
.padding(.leading, 4)
|
|
22
|
-
|
|
23
|
-
Spacer()
|
|
24
|
-
|
|
25
|
-
// Dock back into sidebar
|
|
26
|
-
Button {
|
|
27
|
-
state.minimapMode = .docked
|
|
28
|
-
} label: {
|
|
29
|
-
Image(systemName: "arrow.down.right.and.arrow.up.left")
|
|
30
|
-
.font(.system(size: 8, weight: .bold))
|
|
31
|
-
.foregroundColor(Palette.textMuted)
|
|
32
|
-
.frame(width: 20, height: 20)
|
|
33
|
-
.background(
|
|
34
|
-
RoundedRectangle(cornerRadius: 3)
|
|
35
|
-
.fill(Palette.surface)
|
|
36
|
-
)
|
|
37
|
-
}
|
|
38
|
-
.buttonStyle(.plain)
|
|
39
|
-
.help("Dock map (M)")
|
|
40
|
-
}
|
|
41
|
-
.padding(.horizontal, 12)
|
|
42
|
-
.padding(.top, 10)
|
|
43
|
-
.padding(.bottom, 6)
|
|
44
|
-
|
|
45
|
-
// Map canvas (larger in expanded mode)
|
|
46
|
-
mapCanvas
|
|
47
|
-
.padding(.horizontal, 10)
|
|
48
|
-
.padding(.bottom, 10)
|
|
49
|
-
}
|
|
50
|
-
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
51
|
-
.background(Palette.bg)
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// MARK: - Map canvas
|
|
55
|
-
|
|
56
|
-
private var mapCanvas: some View {
|
|
57
|
-
GeometryReader { geo in
|
|
58
|
-
let screens = NSScreen.screens
|
|
59
|
-
let idx = clampedIndex
|
|
60
|
-
if idx < screens.count {
|
|
61
|
-
let screen = screens[idx]
|
|
62
|
-
let sw = screen.frame.width
|
|
63
|
-
let sh = screen.frame.height
|
|
64
|
-
let canvasW = geo.size.width
|
|
65
|
-
let canvasH = geo.size.height
|
|
66
|
-
|
|
67
|
-
let scaleX = canvasW / sw
|
|
68
|
-
let scaleY = canvasH / sh
|
|
69
|
-
let scale = min(scaleX, scaleY)
|
|
70
|
-
let drawW = sw * scale
|
|
71
|
-
let drawH = sh * scale
|
|
72
|
-
let offsetX = (canvasW - drawW) / 2
|
|
73
|
-
let offsetY = (canvasH - drawH) / 2
|
|
74
|
-
|
|
75
|
-
let origin = screenCGOrigin(screen)
|
|
76
|
-
let wins = windowsOnScreen(idx)
|
|
77
|
-
|
|
78
|
-
ZStack(alignment: .topLeading) {
|
|
79
|
-
// Screen background
|
|
80
|
-
RoundedRectangle(cornerRadius: 6)
|
|
81
|
-
.fill(Palette.surface.opacity(0.4))
|
|
82
|
-
.frame(width: drawW, height: drawH)
|
|
83
|
-
.offset(x: offsetX, y: offsetY)
|
|
84
|
-
|
|
85
|
-
// Windows (back-to-front)
|
|
86
|
-
ForEach(wins.reversed()) { win in
|
|
87
|
-
let rx = (CGFloat(win.frame.x) - origin.x) * scale + offsetX
|
|
88
|
-
let ry = (CGFloat(win.frame.y) - origin.y) * scale + offsetY
|
|
89
|
-
let rw = CGFloat(win.frame.w) * scale
|
|
90
|
-
let rh = CGFloat(win.frame.h) * scale
|
|
91
|
-
let isSelected = state.selectedItem == .window(win)
|
|
92
|
-
|
|
93
|
-
RoundedRectangle(cornerRadius: 2)
|
|
94
|
-
.fill(appColor(win.app).opacity(isSelected ? 0.5 : 0.15))
|
|
95
|
-
.overlay(
|
|
96
|
-
RoundedRectangle(cornerRadius: 2)
|
|
97
|
-
.strokeBorder(
|
|
98
|
-
isSelected ? Palette.running : appColor(win.app).opacity(0.35),
|
|
99
|
-
lineWidth: isSelected ? 1.5 : 0.5
|
|
100
|
-
)
|
|
101
|
-
)
|
|
102
|
-
.overlay(
|
|
103
|
-
Group {
|
|
104
|
-
if rw > 30 && rh > 18 {
|
|
105
|
-
VStack(spacing: 1) {
|
|
106
|
-
Text(String(win.app.prefix(1)))
|
|
107
|
-
.font(Typo.geistMonoBold(max(7, min(11, rh * 0.3))))
|
|
108
|
-
.foregroundColor(appColor(win.app).opacity(isSelected ? 1.0 : 0.5))
|
|
109
|
-
if rh > 30 && rw > 50 {
|
|
110
|
-
Text(win.title.prefix(12).description)
|
|
111
|
-
.font(Typo.mono(max(5, min(7, rh * 0.12))))
|
|
112
|
-
.foregroundColor(Palette.textDim.opacity(0.6))
|
|
113
|
-
.lineLimit(1)
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
.frame(width: max(rw, 4), height: max(rh, 3))
|
|
120
|
-
.offset(x: rx, y: ry)
|
|
121
|
-
.onTapGesture {
|
|
122
|
-
state.selectedItem = .window(win)
|
|
123
|
-
state.focus = .list
|
|
124
|
-
if let flatIdx = state.flatItems.firstIndex(of: .window(win)) {
|
|
125
|
-
state.selectedIndex = flatIdx
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
.frame(width: canvasW, height: canvasH)
|
|
131
|
-
.clipShape(RoundedRectangle(cornerRadius: 6))
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// MARK: - Helpers
|
|
137
|
-
|
|
138
|
-
private var clampedIndex: Int {
|
|
139
|
-
min(screenIndex, NSScreen.screens.count - 1)
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
private func screenCGOrigin(_ screen: NSScreen) -> (x: CGFloat, y: CGFloat) {
|
|
143
|
-
let primaryH = NSScreen.screens.first?.frame.height ?? 900
|
|
144
|
-
return (screen.frame.origin.x, primaryH - screen.frame.origin.y - screen.frame.height)
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
private func windowsOnScreen(_ screenIdx: Int) -> [WindowEntry] {
|
|
148
|
-
let screens = NSScreen.screens
|
|
149
|
-
guard screenIdx < screens.count else { return [] }
|
|
150
|
-
let screen = screens[screenIdx]
|
|
151
|
-
let origin = screenCGOrigin(screen)
|
|
152
|
-
let sw = Double(screen.frame.width)
|
|
153
|
-
let sh = Double(screen.frame.height)
|
|
154
|
-
|
|
155
|
-
return desktop.allWindows().filter { win in
|
|
156
|
-
let cx = win.frame.x + win.frame.w / 2
|
|
157
|
-
let cy = win.frame.y + win.frame.h / 2
|
|
158
|
-
return cx >= Double(origin.x) && cx < Double(origin.x) + sw &&
|
|
159
|
-
cy >= Double(origin.y) && cy < Double(origin.y) + sh &&
|
|
160
|
-
win.app != "Lattices"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
private func appColor(_ app: String) -> Color {
|
|
165
|
-
if ["iTerm2", "Terminal", "WezTerm", "Alacritty", "kitty"].contains(app) {
|
|
166
|
-
return Palette.running
|
|
167
|
-
}
|
|
168
|
-
if ["Google Chrome", "Safari", "Arc", "Firefox", "Brave Browser"].contains(app) {
|
|
169
|
-
return Color.blue
|
|
170
|
-
}
|
|
171
|
-
if ["Xcode", "Visual Studio Code", "Cursor", "Zed"].contains(app) {
|
|
172
|
-
return Color.purple
|
|
173
|
-
}
|
|
174
|
-
if app.localizedCaseInsensitiveContains("Claude") || app.localizedCaseInsensitiveContains("Codex") {
|
|
175
|
-
return Color.orange
|
|
176
|
-
}
|
|
177
|
-
return Palette.textMuted
|
|
178
|
-
}
|
|
179
|
-
}
|