cursor-kit-cli 1.6.0 → 1.7.0-beta.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursor-kit-cli",
3
- "version": "1.6.0",
3
+ "version": "1.7.0-beta.1",
4
4
  "description": "CLI toolkit to manage Cursor IDE rules and commands",
5
5
  "type": "module",
6
6
  "exports": {
@@ -42,19 +42,23 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@clack/prompts": "^0.8.2",
45
+ "archiver": "^7.0.1",
45
46
  "citty": "^0.1.6",
46
47
  "consola": "^3.2.3",
47
48
  "defu": "^6.1.4",
48
49
  "figlet": "^1.8.0",
49
50
  "giget": "^1.2.3",
50
51
  "gradient-string": "^3.0.0",
51
- "picocolors": "^1.1.1"
52
+ "picocolors": "^1.1.1",
53
+ "unzipper": "^0.12.3"
52
54
  },
53
55
  "devDependencies": {
54
56
  "@biomejs/biome": "^1.9.4",
57
+ "@types/archiver": "^6.0.3",
55
58
  "@types/figlet": "^1.7.0",
56
59
  "@types/gradient-string": "^1.1.6",
57
60
  "@types/node": "^22.9.0",
61
+ "@types/unzipper": "^0.10.10",
58
62
  "tsup": "^8.3.5",
59
63
  "typescript": "^5.6.3"
60
64
  },
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: SwiftUI Design
3
+ description: Expert guide for building production-grade SwiftUI interfaces across iOS, macOS, watchOS, and tvOS. Prioritizes distinctive, hand-crafted aesthetics over generic AI outputs. Enforces declarative architectural patterns, modern data flow (@Observable), and performance best practices.
4
+ ---
5
+
6
+ #  SwiftUI Design Thinking & Architecture
7
+
8
+ ## 1. Core Philosophy: The Declarative Mindset
9
+ You are an expert SwiftUI Engineer. When generating code, you must adhere to these core principles:
10
+
11
+ - **View = f(State):** Never mutate UI directly. Mutate state, let UI react.
12
+ - **Single Source of Truth:** Data must have ONE owner. Use `@Binding` or `@Environment` for passing data, never duplicate it.
13
+ - **Composition over Complexity:** Break views down. If a `body` exceeds 50 lines, extract subviews.
14
+ - **Modern Concurrency:** Prefer the Observation framework (`@Observable`) over generic `ObservableObject` (unless supporting iOS 16-).
15
+
16
+ ## 2. Platform Context Awareness
17
+ Before writing code, analyze the user's prompt to determine the target platform.
18
+ - **If iOS/Mobile:** Apply rules from `references/ios.md`.
19
+ - **If macOS/Desktop:** Apply rules from `references/macos.md`.
20
+ - **If Cross-platform:** Use `#if os(iOS)` or responsive design techniques (`ViewThatFits`) to adapt.
21
+
22
+ ## 3. Data Flow Standards
23
+ - **State Ownership:**
24
+ - Use `@State` for local, view-specific ephemeral state (toggles, text input).
25
+ - Use `@State` + `@Observable class` for Feature/Screen Logic (ViewModels).
26
+ - Use `@Environment` for global dependencies (DI).
27
+ - **Avoid:**
28
+ - `@StateObject` / `@ObservedObject` (Legacy).
29
+ - Passing huge ViewModels into small leaf views (Pass only the necessary data or binding).
30
+
31
+ ## 4. Coding Style & Aesthetics
32
+ - **Avoid "AI Slop":** Do not use generic, unstyled lists or default blue buttons unless requested. Apply thoughtful padding, corner radius, and typography.
33
+ - **Hardcoded Values:** Isolate colors, fonts, and dimensions in constants or extensions (`Color+Design.swift`).
34
+ - **Previewability:** Every View MUST have a `#Preview`. Mock data must be realistic, not "Lorem Ipsum".
35
+
36
+ ## 5. Performance Guardrails
37
+ - **Identifiable:** Always ensure data in `ForEach` is `Identifiable`.
38
+ - **Lazy Loading:** Use `LazyVStack/LazyHStack` for unbounded lists.
39
+ - **Stable Views:** Ensure `struct` views are cheap to init. Put heavy initialization logic in `.task` or ViewModel `init`.