@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.
Files changed (181) hide show
  1. package/README.md +5 -7
  2. package/apps/mac/Info.plist +4 -4
  3. package/apps/mac/Lattices.app/Contents/Info.plist +4 -12
  4. package/apps/mac/Lattices.app/Contents/MacOS/Lattices +0 -0
  5. package/bin/lattices-app.ts +110 -17
  6. package/bin/lattices-build +125 -0
  7. package/bin/lattices-dev +89 -16
  8. package/bin/lattices.ts +977 -16
  9. package/docs/agents.md +81 -4
  10. package/docs/ai-chat-ux-review.md +416 -0
  11. package/docs/api.md +135 -3
  12. package/docs/app.md +30 -8
  13. package/docs/config.md +4 -0
  14. package/docs/mouse-gestures.md +60 -1
  15. package/docs/proposals/LAT-004-interactive-overlay-actors.md +1 -1
  16. package/docs/proposals/LAT-005-action-runtime-product-spine.md +914 -0
  17. package/docs/proposals/LAT-006-mira-in-lattices.md +553 -0
  18. package/docs/proposals/LAT-007-unified-app-shell.md +128 -0
  19. package/docs/reference/dewey.config.ts +2 -2
  20. package/docs/release.md +171 -0
  21. package/docs/repo-structure.md +5 -5
  22. package/docs/voice.md +11 -27
  23. package/package.json +11 -10
  24. package/apps/mac/Package.swift +0 -27
  25. package/apps/mac/Sources/AppShell/App.swift +0 -26
  26. package/apps/mac/Sources/AppShell/AppActivationCoordinator.swift +0 -27
  27. package/apps/mac/Sources/AppShell/AppDelegate.swift +0 -189
  28. package/apps/mac/Sources/AppShell/AppServicesBootstrap.swift +0 -25
  29. package/apps/mac/Sources/AppShell/AppShellView.swift +0 -171
  30. package/apps/mac/Sources/AppShell/AppUpdater.swift +0 -305
  31. package/apps/mac/Sources/AppShell/CliActionLauncher.swift +0 -50
  32. package/apps/mac/Sources/AppShell/HomeDashboardView.swift +0 -133
  33. package/apps/mac/Sources/AppShell/HotkeyBootstrap.swift +0 -87
  34. package/apps/mac/Sources/AppShell/KeyRecorderView.swift +0 -210
  35. package/apps/mac/Sources/AppShell/LatticesRuntime.swift +0 -104
  36. package/apps/mac/Sources/AppShell/MainView.swift +0 -847
  37. package/apps/mac/Sources/AppShell/MainWindow.swift +0 -83
  38. package/apps/mac/Sources/AppShell/MenuBarController.swift +0 -177
  39. package/apps/mac/Sources/AppShell/OnboardingView.swift +0 -483
  40. package/apps/mac/Sources/AppShell/PermissionsAssistantView.swift +0 -366
  41. package/apps/mac/Sources/AppShell/PermissionsAssistantWindow.swift +0 -70
  42. package/apps/mac/Sources/AppShell/Preferences.swift +0 -297
  43. package/apps/mac/Sources/AppShell/SettingsView.swift +0 -3163
  44. package/apps/mac/Sources/AppShell/SettingsWindow.swift +0 -34
  45. package/apps/mac/Sources/AppShell/WorkspaceInspectorPresenter.swift +0 -13
  46. package/apps/mac/Sources/Core/Actions/HotkeyManager.swift +0 -256
  47. package/apps/mac/Sources/Core/Actions/HotkeyStore.swift +0 -399
  48. package/apps/mac/Sources/Core/Actions/IntentEngine.swift +0 -988
  49. package/apps/mac/Sources/Core/Actions/IntentSchema.swift +0 -94
  50. package/apps/mac/Sources/Core/Actions/Intents/CreateLayerIntent.swift +0 -54
  51. package/apps/mac/Sources/Core/Actions/Intents/DistributeIntent.swift +0 -56
  52. package/apps/mac/Sources/Core/Actions/Intents/FocusIntent.swift +0 -69
  53. package/apps/mac/Sources/Core/Actions/Intents/HelpIntent.swift +0 -41
  54. package/apps/mac/Sources/Core/Actions/Intents/KillIntent.swift +0 -47
  55. package/apps/mac/Sources/Core/Actions/Intents/LatticeIntent.swift +0 -53
  56. package/apps/mac/Sources/Core/Actions/Intents/LaunchIntent.swift +0 -67
  57. package/apps/mac/Sources/Core/Actions/Intents/ListSessionsIntent.swift +0 -32
  58. package/apps/mac/Sources/Core/Actions/Intents/ListWindowsIntent.swift +0 -30
  59. package/apps/mac/Sources/Core/Actions/Intents/ScanIntent.swift +0 -52
  60. package/apps/mac/Sources/Core/Actions/Intents/SearchIntent.swift +0 -190
  61. package/apps/mac/Sources/Core/Actions/Intents/SwitchLayerIntent.swift +0 -50
  62. package/apps/mac/Sources/Core/Actions/Intents/TileIntent.swift +0 -61
  63. package/apps/mac/Sources/Core/Actions/PaletteCommand.swift +0 -439
  64. package/apps/mac/Sources/Core/Actions/VoiceIntentResolver.swift +0 -713
  65. package/apps/mac/Sources/Core/Companion/CompanionActivityLog.swift +0 -70
  66. package/apps/mac/Sources/Core/Companion/CompanionKeyboardController.swift +0 -141
  67. package/apps/mac/Sources/Core/Companion/LatticesCompanionBridgeServer.swift +0 -454
  68. package/apps/mac/Sources/Core/Companion/LatticesCompanionCockpit.swift +0 -555
  69. package/apps/mac/Sources/Core/Companion/LatticesCompanionSecurityCoordinator.swift +0 -629
  70. package/apps/mac/Sources/Core/Companion/LatticesCompanionTrackpadController.swift +0 -204
  71. package/apps/mac/Sources/Core/Companion/LatticesDeckHost.swift +0 -1463
  72. package/apps/mac/Sources/Core/Daemon/DaemonProtocol.swift +0 -114
  73. package/apps/mac/Sources/Core/Daemon/DaemonServer.swift +0 -427
  74. package/apps/mac/Sources/Core/Daemon/LatticesApi.swift +0 -2965
  75. package/apps/mac/Sources/Core/Desktop/AccessibilityTextExtractor.swift +0 -111
  76. package/apps/mac/Sources/Core/Desktop/AppTypeClassifier.swift +0 -106
  77. package/apps/mac/Sources/Core/Desktop/DesktopModel.swift +0 -331
  78. package/apps/mac/Sources/Core/Desktop/DesktopModelTypes.swift +0 -73
  79. package/apps/mac/Sources/Core/Desktop/InventoryManager.swift +0 -35
  80. package/apps/mac/Sources/Core/Desktop/InventoryPath.swift +0 -43
  81. package/apps/mac/Sources/Core/Desktop/MouseFinder.swift +0 -527
  82. package/apps/mac/Sources/Core/Desktop/OcrModel.swift +0 -467
  83. package/apps/mac/Sources/Core/Desktop/OcrStore.swift +0 -329
  84. package/apps/mac/Sources/Core/Desktop/PlacementSpec.swift +0 -195
  85. package/apps/mac/Sources/Core/Desktop/SessionWindowLocator.swift +0 -139
  86. package/apps/mac/Sources/Core/Desktop/TilePickerView.swift +0 -209
  87. package/apps/mac/Sources/Core/Desktop/WindowCapture.swift +0 -33
  88. package/apps/mac/Sources/Core/Desktop/WindowDragSnapController.swift +0 -429
  89. package/apps/mac/Sources/Core/Desktop/WindowPreviewCard.swift +0 -100
  90. package/apps/mac/Sources/Core/Desktop/WindowPreviewStore.swift +0 -112
  91. package/apps/mac/Sources/Core/Desktop/WindowSelectionStore.swift +0 -76
  92. package/apps/mac/Sources/Core/Desktop/WindowTiler.swift +0 -2222
  93. package/apps/mac/Sources/Core/Input/EventTapBreaker.swift +0 -124
  94. package/apps/mac/Sources/Core/Input/EventTapThread.swift +0 -54
  95. package/apps/mac/Sources/Core/Input/InputCaptureResetCenter.swift +0 -20
  96. package/apps/mac/Sources/Core/Input/KeyboardRemapConfig.swift +0 -69
  97. package/apps/mac/Sources/Core/Input/KeyboardRemapController.swift +0 -346
  98. package/apps/mac/Sources/Core/Input/KeyboardRemapStore.swift +0 -141
  99. package/apps/mac/Sources/Core/Input/MouseGestureConfig.swift +0 -499
  100. package/apps/mac/Sources/Core/Input/MouseGestureController.swift +0 -2583
  101. package/apps/mac/Sources/Core/Input/MouseInputDeviceStore.swift +0 -98
  102. package/apps/mac/Sources/Core/Input/MouseInputEventViewer.swift +0 -272
  103. package/apps/mac/Sources/Core/Input/MouseShortcutStore.swift +0 -170
  104. package/apps/mac/Sources/Core/Input/SecureEventInputMonitor.swift +0 -39
  105. package/apps/mac/Sources/Core/Input/ShapeRecognizer.swift +0 -624
  106. package/apps/mac/Sources/Core/Input/TapBudgetMeter.swift +0 -56
  107. package/apps/mac/Sources/Core/Overlays/AppWindowShell.swift +0 -63
  108. package/apps/mac/Sources/Core/Overlays/CommandMode/CommandModeState.swift +0 -1566
  109. package/apps/mac/Sources/Core/Overlays/CommandMode/CommandModeView.swift +0 -1927
  110. package/apps/mac/Sources/Core/Overlays/CommandMode/CommandModeWindow.swift +0 -196
  111. package/apps/mac/Sources/Core/Overlays/CommandPalette/CommandPaletteView.swift +0 -307
  112. package/apps/mac/Sources/Core/Overlays/CommandPalette/CommandPaletteWindow.swift +0 -67
  113. package/apps/mac/Sources/Core/Overlays/HUD/CheatSheetHUD.swift +0 -576
  114. package/apps/mac/Sources/Core/Overlays/HUD/HUDBottomBar.swift +0 -279
  115. package/apps/mac/Sources/Core/Overlays/HUD/HUDController.swift +0 -1158
  116. package/apps/mac/Sources/Core/Overlays/HUD/HUDLeftBar.swift +0 -849
  117. package/apps/mac/Sources/Core/Overlays/HUD/HUDMinimap.swift +0 -179
  118. package/apps/mac/Sources/Core/Overlays/HUD/HUDRightBar.swift +0 -596
  119. package/apps/mac/Sources/Core/Overlays/HUD/HUDState.swift +0 -367
  120. package/apps/mac/Sources/Core/Overlays/HUD/HUDTopBar.swift +0 -243
  121. package/apps/mac/Sources/Core/Overlays/HUD/LauncherHUD.swift +0 -334
  122. package/apps/mac/Sources/Core/Overlays/HUD/LayerBezel.swift +0 -203
  123. package/apps/mac/Sources/Core/Overlays/OmniSearch/OmniSearchState.swift +0 -280
  124. package/apps/mac/Sources/Core/Overlays/OmniSearch/OmniSearchView.swift +0 -422
  125. package/apps/mac/Sources/Core/Overlays/OmniSearch/OmniSearchWindow.swift +0 -94
  126. package/apps/mac/Sources/Core/Overlays/OverlayPanelShell.swift +0 -241
  127. package/apps/mac/Sources/Core/Overlays/ScreenMap/ScreenMapState.swift +0 -3135
  128. package/apps/mac/Sources/Core/Overlays/ScreenMap/ScreenMapView.swift +0 -3977
  129. package/apps/mac/Sources/Core/Overlays/ScreenMap/ScreenMapWindowController.swift +0 -119
  130. package/apps/mac/Sources/Core/Overlays/ScreenOverlayCanvasController.swift +0 -1217
  131. package/apps/mac/Sources/Core/Overlays/Voice/VoiceCommandWindow.swift +0 -1575
  132. package/apps/mac/Sources/Core/Pi/PiAuthNextStepCard.swift +0 -148
  133. package/apps/mac/Sources/Core/Pi/PiAuthPromptCard.swift +0 -90
  134. package/apps/mac/Sources/Core/Pi/PiChatDock.swift +0 -564
  135. package/apps/mac/Sources/Core/Pi/PiChatSession.swift +0 -1948
  136. package/apps/mac/Sources/Core/Pi/PiInstallCallout.swift +0 -86
  137. package/apps/mac/Sources/Core/Pi/PiProviderSetupCallout.swift +0 -99
  138. package/apps/mac/Sources/Core/Pi/PiWorkspaceView.swift +0 -510
  139. package/apps/mac/Sources/Core/System/Capability.swift +0 -79
  140. package/apps/mac/Sources/Core/System/DiagnosticLog.swift +0 -373
  141. package/apps/mac/Sources/Core/System/EventBus.swift +0 -31
  142. package/apps/mac/Sources/Core/System/PermissionChecker.swift +0 -224
  143. package/apps/mac/Sources/Core/System/ProcessModel.swift +0 -199
  144. package/apps/mac/Sources/Core/System/ProcessQuery.swift +0 -151
  145. package/apps/mac/Sources/Core/System/SystemTelemetryMonitor.swift +0 -273
  146. package/apps/mac/Sources/Core/Voice/AdvisorLearningStore.swift +0 -90
  147. package/apps/mac/Sources/Core/Voice/AgentSession.swift +0 -377
  148. package/apps/mac/Sources/Core/Voice/AudioProvider.swift +0 -555
  149. package/apps/mac/Sources/Core/Voice/HandsOffSession.swift +0 -839
  150. package/apps/mac/Sources/Core/Voice/VoiceChatView.swift +0 -192
  151. package/apps/mac/Sources/Core/Voice/VoxClient.swift +0 -454
  152. package/apps/mac/Sources/Core/Workspace/Project.swift +0 -28
  153. package/apps/mac/Sources/Core/Workspace/ProjectScanner.swift +0 -141
  154. package/apps/mac/Sources/Core/Workspace/SessionLayerStore.swift +0 -285
  155. package/apps/mac/Sources/Core/Workspace/SessionManager.swift +0 -75
  156. package/apps/mac/Sources/Core/Workspace/Terminal/Terminal.swift +0 -259
  157. package/apps/mac/Sources/Core/Workspace/Terminal/TerminalQuery.swift +0 -156
  158. package/apps/mac/Sources/Core/Workspace/Terminal/TerminalSynthesizer.swift +0 -200
  159. package/apps/mac/Sources/Core/Workspace/Tmux/TmuxModel.swift +0 -60
  160. package/apps/mac/Sources/Core/Workspace/Tmux/TmuxQuery.swift +0 -105
  161. package/apps/mac/Sources/Core/Workspace/WorkspaceManager.swift +0 -1027
  162. package/apps/mac/Sources/UI/ActionRow.swift +0 -78
  163. package/apps/mac/Sources/UI/OrphanRow.swift +0 -129
  164. package/apps/mac/Sources/UI/ProjectRow.swift +0 -368
  165. package/apps/mac/Sources/UI/TabGroupRow.swift +0 -178
  166. package/apps/mac/Sources/UI/Theme.swift +0 -164
  167. package/apps/mac/Tests/StageDragTests.swift +0 -333
  168. package/apps/mac/Tests/StageJoinTests.swift +0 -313
  169. package/apps/mac/Tests/StageManagerTests.swift +0 -280
  170. package/apps/mac/Tests/StageTileTests.swift +0 -353
  171. package/swift/Package.swift +0 -20
  172. package/swift/Sources/DeckKit/DeckAction.swift +0 -51
  173. package/swift/Sources/DeckKit/DeckBridgeSecurity.swift +0 -152
  174. package/swift/Sources/DeckKit/DeckCockpit.swift +0 -82
  175. package/swift/Sources/DeckKit/DeckHost.swift +0 -7
  176. package/swift/Sources/DeckKit/DeckManifest.swift +0 -145
  177. package/swift/Sources/DeckKit/DeckRuntimeSnapshot.swift +0 -533
  178. package/swift/Sources/DeckKit/DeckTrackpad.swift +0 -63
  179. package/swift/Sources/DeckKit/DeckValue.swift +0 -93
  180. package/swift/Sources/DeckKit/DeckVoiceError.swift +0 -88
  181. package/swift/Tests/DeckKitTests/DeckKitTests.swift +0 -286
@@ -1,279 +0,0 @@
1
- import SwiftUI
2
-
3
- // MARK: - HUDBottomBar (action playback tray)
4
-
5
- struct HUDBottomBar: View {
6
- @ObservedObject var state: HUDState
7
- @ObservedObject private var handsOff = HandsOffSession.shared
8
- var onDismiss: () -> Void
9
-
10
- var body: some View {
11
- HStack(spacing: 0) {
12
- if state.tileMode {
13
- tileModeView
14
- } else if !handsOff.recentActions.isEmpty {
15
- actionPlayback
16
- } else if let feedback = state.feedbackMessage {
17
- feedbackView(feedback)
18
- } else if state.voiceActive {
19
- voiceStatusView
20
- } else {
21
- shortcutsView
22
- }
23
- }
24
- .frame(maxWidth: .infinity)
25
- .frame(height: 48)
26
- .background(Palette.bg)
27
- }
28
-
29
- // MARK: - Action playback (what just happened)
30
-
31
- private var actionPlayback: some View {
32
- HStack(spacing: 8) {
33
- // Flash indicator
34
- Image(systemName: "checkmark.circle.fill")
35
- .font(.system(size: 12))
36
- .foregroundColor(Palette.running)
37
-
38
- // Action chips showing what was executed
39
- ScrollView(.horizontal, showsIndicators: false) {
40
- HStack(spacing: 6) {
41
- ForEach(Array(handsOff.recentActions.enumerated()), id: \.offset) { _, action in
42
- executedChip(action)
43
- }
44
- }
45
- }
46
-
47
- Spacer()
48
-
49
- // Dismiss playback
50
- Button {
51
- handsOff.recentActions = []
52
- } label: {
53
- Image(systemName: "xmark")
54
- .font(.system(size: 9, weight: .bold))
55
- .foregroundColor(Palette.textMuted)
56
- .frame(width: 20, height: 20)
57
- }
58
- .buttonStyle(.plain)
59
- }
60
- .padding(.horizontal, 16)
61
- }
62
-
63
- // MARK: - Executed action chip
64
-
65
- private func executedChip(_ action: [String: Any]) -> some View {
66
- let intent = action["intent"] as? String ?? "action"
67
- let slots = action["slots"] as? [String: Any] ?? [:]
68
- let summary = actionSummary(intent: intent, slots: slots)
69
-
70
- return HStack(spacing: 5) {
71
- Image(systemName: iconForIntent(intent))
72
- .font(.system(size: 9))
73
- .foregroundColor(Palette.running)
74
- Text(summary)
75
- .font(Typo.mono(10))
76
- .foregroundColor(Palette.text)
77
- .lineLimit(1)
78
- Image(systemName: "checkmark")
79
- .font(.system(size: 7, weight: .bold))
80
- .foregroundColor(Palette.running)
81
- }
82
- .padding(.horizontal, 10)
83
- .padding(.vertical, 5)
84
- .background(
85
- RoundedRectangle(cornerRadius: 5)
86
- .fill(Palette.running.opacity(0.06))
87
- .overlay(
88
- RoundedRectangle(cornerRadius: 5)
89
- .strokeBorder(Palette.running.opacity(0.2), lineWidth: 0.5)
90
- )
91
- )
92
- }
93
-
94
- // MARK: - Voice active status
95
-
96
- private var voiceStatusView: some View {
97
- HStack(spacing: 8) {
98
- // Pulsing mic
99
- Image(systemName: "waveform")
100
- .font(.system(size: 11))
101
- .foregroundColor(voiceColor)
102
-
103
- Text(voiceLabel)
104
- .font(Typo.monoBold(10))
105
- .foregroundColor(voiceColor)
106
-
107
- if let transcript = handsOff.lastTranscript {
108
- Rectangle().fill(Palette.border).frame(width: 0.5, height: 20)
109
- Text(transcript)
110
- .font(Typo.mono(10))
111
- .foregroundColor(Palette.textMuted)
112
- .lineLimit(1)
113
- }
114
-
115
- Spacer()
116
-
117
- if let response = handsOff.lastResponse {
118
- Text(response)
119
- .font(Typo.mono(9))
120
- .foregroundColor(Palette.textDim)
121
- .lineLimit(1)
122
- .frame(maxWidth: 250, alignment: .trailing)
123
- }
124
- }
125
- .padding(.horizontal, 16)
126
- }
127
-
128
- private var voiceColor: Color {
129
- switch handsOff.state {
130
- case .idle: return Palette.running
131
- case .connecting: return Palette.detach
132
- case .listening: return Palette.running
133
- case .thinking: return Palette.detach
134
- }
135
- }
136
-
137
- private var voiceLabel: String {
138
- switch handsOff.state {
139
- case .idle: return "ready"
140
- case .connecting: return "connecting..."
141
- case .listening: return "listening..."
142
- case .thinking: return "thinking..."
143
- }
144
- }
145
-
146
- // MARK: - Interaction feedback
147
-
148
- private func feedbackView(_ message: String) -> some View {
149
- HStack(spacing: 8) {
150
- Image(systemName: "cursorarrow.click.2")
151
- .font(.system(size: 11, weight: .medium))
152
- .foregroundColor(Palette.running)
153
- Text(message)
154
- .font(Typo.monoBold(10))
155
- .foregroundColor(Palette.text)
156
- .lineLimit(1)
157
- Spacer()
158
- Text("working")
159
- .font(Typo.mono(9))
160
- .foregroundColor(Palette.textDim)
161
- }
162
- .padding(.horizontal, 16)
163
- }
164
-
165
- // MARK: - Tile mode
166
-
167
- private var tileModeView: some View {
168
- HStack(spacing: 8) {
169
- // Mode indicator
170
- HStack(spacing: 4) {
171
- Image(systemName: "rectangle.split.2x2")
172
- .font(.system(size: 11))
173
- .foregroundColor(Palette.running)
174
- Text("TILE")
175
- .font(Typo.monoBold(10))
176
- .foregroundColor(Palette.running)
177
- }
178
-
179
- Rectangle().fill(Palette.border).frame(width: 0.5, height: 20)
180
-
181
- // Key hints
182
- HStack(spacing: 6) {
183
- tileKey("H", "←")
184
- tileKey("J", "↓")
185
- tileKey("K", "↑")
186
- tileKey("L", "→")
187
- tileKey("F", "max")
188
- }
189
-
190
- Rectangle().fill(Palette.border).frame(width: 0.5, height: 20)
191
-
192
- HStack(spacing: 6) {
193
- tileKey("Y", "◸")
194
- tileKey("U", "◹")
195
- tileKey("B", "◺")
196
- tileKey("N", "◿")
197
- }
198
-
199
- Spacer()
200
-
201
- Text("⎋ done")
202
- .font(Typo.mono(9))
203
- .foregroundColor(Palette.textMuted)
204
- }
205
- .padding(.horizontal, 16)
206
- }
207
-
208
- private func tileKey(_ key: String, _ hint: String) -> some View {
209
- HStack(spacing: 2) {
210
- Text(key)
211
- .font(Typo.geistMonoBold(9))
212
- .foregroundColor(Palette.text)
213
- .frame(width: 16, height: 16)
214
- .background(
215
- RoundedRectangle(cornerRadius: 3)
216
- .fill(Palette.surface)
217
- .overlay(
218
- RoundedRectangle(cornerRadius: 3)
219
- .strokeBorder(Palette.border, lineWidth: 0.5)
220
- )
221
- )
222
- Text(hint)
223
- .font(Typo.mono(8))
224
- .foregroundColor(Palette.textDim)
225
- }
226
- }
227
-
228
- // MARK: - Shortcuts hint (default state)
229
-
230
- private var shortcutsView: some View {
231
- HStack(spacing: 8) {
232
- Image(systemName: "keyboard")
233
- .font(.system(size: 10))
234
- .foregroundColor(Palette.textMuted.opacity(0.4))
235
- Text("V voice / search 1-4 jump ⇥ tab ↵ go ⎋ close")
236
- .font(Typo.mono(9))
237
- .foregroundColor(Palette.textMuted.opacity(0.5))
238
- Spacer()
239
- }
240
- .padding(.horizontal, 16)
241
- }
242
-
243
- // MARK: - Helpers
244
-
245
- private func actionSummary(intent: String, slots: [String: Any]) -> String {
246
- let target = slots["target"] as? String
247
- ?? slots["app"] as? String
248
- ?? slots["query"] as? String
249
- ?? ""
250
- let position = slots["position"] as? String ?? ""
251
-
252
- switch intent {
253
- case "tile_window":
254
- let parts = [target, position].filter { !$0.isEmpty }
255
- return "Tile \(parts.joined(separator: " "))"
256
- case "focus", "focus_app":
257
- return "Focus \(target)"
258
- case "launch", "launch_project":
259
- return "Launch \(target)"
260
- case "close_window":
261
- return "Close \(target)"
262
- case "maximize":
263
- return "Maximize \(target)"
264
- default:
265
- return target.isEmpty ? intent : "\(intent) \(target)"
266
- }
267
- }
268
-
269
- private func iconForIntent(_ intent: String) -> String {
270
- switch intent {
271
- case "tile_window": return "rectangle.split.2x1"
272
- case "focus", "focus_app": return "eye"
273
- case "launch", "launch_project": return "play.fill"
274
- case "close_window": return "xmark.circle"
275
- case "maximize": return "arrow.up.left.and.arrow.down.right"
276
- default: return "bolt"
277
- }
278
- }
279
- }