@lattices/cli 0.3.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 (74) hide show
  1. package/README.md +155 -0
  2. package/app/Lattices.app/Contents/Info.plist +24 -0
  3. package/app/Package.swift +13 -0
  4. package/app/Sources/AccessibilityTextExtractor.swift +111 -0
  5. package/app/Sources/ActionRow.swift +61 -0
  6. package/app/Sources/App.swift +10 -0
  7. package/app/Sources/AppDelegate.swift +242 -0
  8. package/app/Sources/AppShellView.swift +62 -0
  9. package/app/Sources/AppTypeClassifier.swift +70 -0
  10. package/app/Sources/AppWindowShell.swift +63 -0
  11. package/app/Sources/CheatSheetHUD.swift +332 -0
  12. package/app/Sources/CommandModeState.swift +1362 -0
  13. package/app/Sources/CommandModeView.swift +1405 -0
  14. package/app/Sources/CommandModeWindow.swift +192 -0
  15. package/app/Sources/CommandPaletteView.swift +307 -0
  16. package/app/Sources/CommandPaletteWindow.swift +134 -0
  17. package/app/Sources/DaemonProtocol.swift +101 -0
  18. package/app/Sources/DaemonServer.swift +414 -0
  19. package/app/Sources/DesktopModel.swift +149 -0
  20. package/app/Sources/DesktopModelTypes.swift +71 -0
  21. package/app/Sources/DiagnosticLog.swift +271 -0
  22. package/app/Sources/EventBus.swift +30 -0
  23. package/app/Sources/HotkeyManager.swift +254 -0
  24. package/app/Sources/HotkeyStore.swift +338 -0
  25. package/app/Sources/InventoryManager.swift +35 -0
  26. package/app/Sources/InventoryPath.swift +43 -0
  27. package/app/Sources/KeyRecorderView.swift +210 -0
  28. package/app/Sources/LatticesApi.swift +1234 -0
  29. package/app/Sources/LayerBezel.swift +203 -0
  30. package/app/Sources/MainView.swift +479 -0
  31. package/app/Sources/MainWindow.swift +83 -0
  32. package/app/Sources/OcrModel.swift +430 -0
  33. package/app/Sources/OcrStore.swift +329 -0
  34. package/app/Sources/OmniSearchState.swift +283 -0
  35. package/app/Sources/OmniSearchView.swift +288 -0
  36. package/app/Sources/OmniSearchWindow.swift +105 -0
  37. package/app/Sources/OrphanRow.swift +129 -0
  38. package/app/Sources/PaletteCommand.swift +419 -0
  39. package/app/Sources/PermissionChecker.swift +125 -0
  40. package/app/Sources/Preferences.swift +99 -0
  41. package/app/Sources/ProcessModel.swift +199 -0
  42. package/app/Sources/ProcessQuery.swift +151 -0
  43. package/app/Sources/Project.swift +28 -0
  44. package/app/Sources/ProjectRow.swift +368 -0
  45. package/app/Sources/ProjectScanner.swift +128 -0
  46. package/app/Sources/ScreenMapState.swift +2387 -0
  47. package/app/Sources/ScreenMapView.swift +2820 -0
  48. package/app/Sources/ScreenMapWindowController.swift +89 -0
  49. package/app/Sources/SessionManager.swift +72 -0
  50. package/app/Sources/SettingsView.swift +1064 -0
  51. package/app/Sources/SettingsWindow.swift +20 -0
  52. package/app/Sources/TabGroupRow.swift +178 -0
  53. package/app/Sources/Terminal.swift +259 -0
  54. package/app/Sources/TerminalQuery.swift +156 -0
  55. package/app/Sources/TerminalSynthesizer.swift +200 -0
  56. package/app/Sources/Theme.swift +163 -0
  57. package/app/Sources/TilePickerView.swift +209 -0
  58. package/app/Sources/TmuxModel.swift +53 -0
  59. package/app/Sources/TmuxQuery.swift +81 -0
  60. package/app/Sources/WindowTiler.swift +1778 -0
  61. package/app/Sources/WorkspaceManager.swift +575 -0
  62. package/bin/client.js +4 -0
  63. package/bin/daemon-client.js +187 -0
  64. package/bin/lattices-app.js +221 -0
  65. package/bin/lattices.js +1551 -0
  66. package/docs/api.md +924 -0
  67. package/docs/app.md +297 -0
  68. package/docs/concepts.md +135 -0
  69. package/docs/config.md +245 -0
  70. package/docs/layers.md +410 -0
  71. package/docs/ocr.md +185 -0
  72. package/docs/overview.md +94 -0
  73. package/docs/quickstart.md +75 -0
  74. package/package.json +42 -0
@@ -0,0 +1,75 @@
1
+ ---
2
+ title: Quickstart
3
+ description: Install lattices and launch your first workspace in 2 minutes
4
+ order: 0.5
5
+ ---
6
+
7
+ Four steps to a running workspace.
8
+
9
+ ## 1. Install lattices
10
+
11
+ ```bash
12
+ git clone https://github.com/arach/lattices
13
+ cd lattices && npm link
14
+ ```
15
+
16
+ Verify: `lattices help` should print usage info.
17
+
18
+ ## 2. Launch the menu bar app
19
+
20
+ ```bash
21
+ lattices app
22
+ ```
23
+
24
+ This builds (or downloads) and launches the native macOS companion.
25
+ Open the command palette with **Cmd+Shift+M** to search and launch
26
+ any project, tile windows, or switch workspace layers.
27
+
28
+ ## 3. Add a project config
29
+
30
+ Drop a `.lattices.json` in your project root:
31
+
32
+ ```bash
33
+ cd ~/your-project
34
+ lattices init
35
+ ```
36
+
37
+ This generates a config like:
38
+
39
+ ```json
40
+ {
41
+ "panes": [
42
+ { "name": "claude", "cmd": "claude", "size": 60 },
43
+ { "name": "server", "cmd": "bun dev" }
44
+ ]
45
+ }
46
+ ```
47
+
48
+ The menu bar app discovers projects with `.lattices.json` files
49
+ automatically — they show up in the command palette.
50
+
51
+ ## 4. (Optional) Add tmux for persistent sessions
52
+
53
+ If you want terminal sessions that survive disconnects and auto-restore
54
+ your pane layout:
55
+
56
+ ```bash
57
+ brew install tmux
58
+ cd ~/your-project && lattices
59
+ ```
60
+
61
+ This creates a tmux session with your configured panes side by side.
62
+ The session persists in the background — close your terminal, reopen it,
63
+ run `lattices` again, and everything is still there.
64
+
65
+ > **Without tmux**, you still get the menu bar app, command palette,
66
+ > window tiling, workspace layers, OCR, and the full agent API.
67
+
68
+ ## What's next
69
+
70
+ - [Configuration](/docs/config): `.lattices.json` reference and CLI commands
71
+ - [Menu Bar App](/docs/app): command palette, tiling, and settings
72
+ - [Layers & Groups](/docs/layers): organize projects into switchable contexts
73
+ - [Screen OCR](/docs/ocr): let agents read what's on screen
74
+ - [Concepts](/docs/concepts): sessions, panes, and the architecture
75
+ - [Agent API](/docs/api): programmatic control for agents and scripts
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@lattices/cli",
3
+ "version": "0.3.0",
4
+ "description": "Agentic window manager for macOS — programmable workspace, smart layouts, managed tmux sessions, and a 35+-method agent API",
5
+ "bin": {
6
+ "lattices": "./bin/lattices.js",
7
+ "lattices-app": "./bin/lattices-app.js"
8
+ },
9
+ "keywords": [
10
+ "tmux",
11
+ "claude",
12
+ "dev-server",
13
+ "developer-tools",
14
+ "cli",
15
+ "terminal",
16
+ "multiplexer"
17
+ ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/arach/lattices"
21
+ },
22
+ "license": "MIT",
23
+ "exports": {
24
+ ".": "./bin/client.js",
25
+ "./daemon-client": "./bin/daemon-client.js"
26
+ },
27
+ "scripts": {
28
+ "dev": "bun --cwd docs-site dev"
29
+ },
30
+ "type": "module",
31
+ "engines": {
32
+ "node": ">=18"
33
+ },
34
+ "os": ["darwin"],
35
+ "files": [
36
+ "bin",
37
+ "app/Package.swift",
38
+ "app/Sources",
39
+ "app/Lattices.app/Contents/Info.plist",
40
+ "docs"
41
+ ]
42
+ }