gsd-pi 2.35.0-dev.34ce717 → 2.35.0-dev.4bbf377

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 (54) hide show
  1. package/dist/resources/skills/core-web-vitals/SKILL.md +1 -1
  2. package/dist/resources/skills/create-gsd-extension/workflows/debug-extension.md +1 -1
  3. package/dist/resources/skills/github-workflows/SKILL.md +0 -2
  4. package/dist/resources/skills/web-quality-audit/SKILL.md +0 -2
  5. package/package.json +1 -1
  6. package/packages/pi-agent-core/dist/agent.d.ts +10 -2
  7. package/packages/pi-agent-core/dist/agent.d.ts.map +1 -1
  8. package/packages/pi-agent-core/dist/agent.js +19 -8
  9. package/packages/pi-agent-core/dist/agent.js.map +1 -1
  10. package/packages/pi-agent-core/src/agent.ts +31 -10
  11. package/packages/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -1
  12. package/packages/pi-coding-agent/dist/core/agent-session.js +20 -4
  13. package/packages/pi-coding-agent/dist/core/agent-session.js.map +1 -1
  14. package/packages/pi-coding-agent/src/core/agent-session.ts +36 -12
  15. package/src/resources/skills/core-web-vitals/SKILL.md +1 -1
  16. package/src/resources/skills/create-gsd-extension/workflows/debug-extension.md +1 -1
  17. package/src/resources/skills/github-workflows/SKILL.md +0 -2
  18. package/src/resources/skills/web-quality-audit/SKILL.md +0 -2
  19. package/dist/resources/skills/swiftui/SKILL.md +0 -208
  20. package/dist/resources/skills/swiftui/references/animations.md +0 -921
  21. package/dist/resources/skills/swiftui/references/architecture.md +0 -1561
  22. package/dist/resources/skills/swiftui/references/layout-system.md +0 -1186
  23. package/dist/resources/skills/swiftui/references/navigation.md +0 -1492
  24. package/dist/resources/skills/swiftui/references/networking-async.md +0 -214
  25. package/dist/resources/skills/swiftui/references/performance.md +0 -1706
  26. package/dist/resources/skills/swiftui/references/platform-integration.md +0 -204
  27. package/dist/resources/skills/swiftui/references/state-management.md +0 -1443
  28. package/dist/resources/skills/swiftui/references/swiftdata.md +0 -297
  29. package/dist/resources/skills/swiftui/references/testing-debugging.md +0 -247
  30. package/dist/resources/skills/swiftui/references/uikit-appkit-interop.md +0 -218
  31. package/dist/resources/skills/swiftui/workflows/add-feature.md +0 -191
  32. package/dist/resources/skills/swiftui/workflows/build-new-app.md +0 -311
  33. package/dist/resources/skills/swiftui/workflows/debug-swiftui.md +0 -192
  34. package/dist/resources/skills/swiftui/workflows/optimize-performance.md +0 -197
  35. package/dist/resources/skills/swiftui/workflows/ship-app.md +0 -203
  36. package/dist/resources/skills/swiftui/workflows/write-tests.md +0 -235
  37. package/src/resources/skills/swiftui/SKILL.md +0 -208
  38. package/src/resources/skills/swiftui/references/animations.md +0 -921
  39. package/src/resources/skills/swiftui/references/architecture.md +0 -1561
  40. package/src/resources/skills/swiftui/references/layout-system.md +0 -1186
  41. package/src/resources/skills/swiftui/references/navigation.md +0 -1492
  42. package/src/resources/skills/swiftui/references/networking-async.md +0 -214
  43. package/src/resources/skills/swiftui/references/performance.md +0 -1706
  44. package/src/resources/skills/swiftui/references/platform-integration.md +0 -204
  45. package/src/resources/skills/swiftui/references/state-management.md +0 -1443
  46. package/src/resources/skills/swiftui/references/swiftdata.md +0 -297
  47. package/src/resources/skills/swiftui/references/testing-debugging.md +0 -247
  48. package/src/resources/skills/swiftui/references/uikit-appkit-interop.md +0 -218
  49. package/src/resources/skills/swiftui/workflows/add-feature.md +0 -191
  50. package/src/resources/skills/swiftui/workflows/build-new-app.md +0 -311
  51. package/src/resources/skills/swiftui/workflows/debug-swiftui.md +0 -192
  52. package/src/resources/skills/swiftui/workflows/optimize-performance.md +0 -197
  53. package/src/resources/skills/swiftui/workflows/ship-app.md +0 -203
  54. package/src/resources/skills/swiftui/workflows/write-tests.md +0 -235
@@ -1,204 +0,0 @@
1
- <overview>
2
- SwiftUI enables true multiplatform development: write once, adapt per platform. A single codebase can target iOS, iPadOS, macOS, watchOS, tvOS, and visionOS while respecting each platform's unique conventions and capabilities.
3
-
4
- **Key insight:** SwiftUI's declarative syntax works everywhere, but each platform has distinct interaction models. iOS uses touch and gestures, macOS has precise mouse input and keyboard shortcuts, watchOS centers on the Digital Crown, and visionOS introduces spatial computing with gaze and hand tracking.
5
-
6
- **When to read this:**
7
- - Building multiplatform apps with shared logic but platform-specific UI
8
- - Implementing macOS menu bar utilities or Settings windows
9
- - Creating watchOS complications or Digital Crown interactions
10
- - Developing visionOS apps with immersive spaces and ornaments
11
- - Adapting layouts responsively across iPhone, iPad, and Mac
12
- </overview>
13
-
14
- <platform_conditionals>
15
- ## Platform Conditionals
16
-
17
- **Compile-time platform checks:**
18
- ```swift
19
- #if os(iOS)
20
- // iOS-only code
21
- #elseif os(macOS)
22
- // macOS-only code
23
- #elseif os(watchOS)
24
- // watchOS-only code
25
- #elseif os(visionOS)
26
- // visionOS-only code
27
- #endif
28
- ```
29
-
30
- **Runtime API availability:**
31
- ```swift
32
- if #available(iOS 17, macOS 14, *) {
33
- // Use iOS 17+/macOS 14+ API
34
- }
35
- ```
36
-
37
- **Target environment:**
38
- ```swift
39
- #if targetEnvironment(simulator)
40
- // Running in simulator
41
- #endif
42
-
43
- #if canImport(UIKit)
44
- // UIKit available
45
- #endif
46
- ```
47
- </platform_conditionals>
48
-
49
- <ios_specifics>
50
- ## iOS-Specific Features
51
-
52
- **Navigation patterns:**
53
- - Tab bar at bottom
54
- - Full-screen covers
55
- - Pull-to-refresh with .refreshable
56
-
57
- **System integration:**
58
- - Push notifications
59
- - Widgets and Live Activities
60
- - App Intents / Siri
61
-
62
- **Device variations:**
63
- ```swift
64
- @Environment(\.horizontalSizeClass) var horizontalSizeClass
65
-
66
- if horizontalSizeClass == .regular {
67
- // iPad layout
68
- }
69
- ```
70
- </ios_specifics>
71
-
72
- <macos_specifics>
73
- ## macOS-Specific Features
74
-
75
- **Window management:**
76
- ```swift
77
- WindowGroup("Main") { ContentView() }
78
- .defaultSize(width: 800, height: 600)
79
-
80
- Window("Settings") { SettingsView() }
81
-
82
- Settings { SettingsView() }
83
- ```
84
-
85
- **MenuBarExtra:**
86
- ```swift
87
- MenuBarExtra("App Name", systemImage: "star") {
88
- MenuBarContentView()
89
- }
90
- .menuBarExtraStyle(.window)
91
- ```
92
-
93
- **Commands:**
94
- ```swift
95
- .commands {
96
- CommandGroup(replacing: .newItem) {
97
- Button("New Document") { }
98
- }
99
- CommandMenu("Custom") {
100
- Button("Action") { }
101
- }
102
- }
103
- ```
104
- </macos_specifics>
105
-
106
- <watchos_specifics>
107
- ## watchOS-Specific Features
108
-
109
- **Digital Crown:**
110
- ```swift
111
- @State private var crownValue: Double = 0.0
112
-
113
- VStack { Text("\(crownValue)") }
114
- .focusable()
115
- .digitalCrownRotation($crownValue)
116
- ```
117
-
118
- **Always-on display:**
119
- ```swift
120
- @Environment(\.isLuminanceReduced) var isLuminanceReduced
121
- ```
122
- </watchos_specifics>
123
-
124
- <visionos_specifics>
125
- ## visionOS-Specific Features
126
-
127
- **Immersive spaces:**
128
- ```swift
129
- ImmersiveSpace(id: "immersive") {
130
- RealityView { content in
131
- // 3D content
132
- }
133
- }
134
- ```
135
-
136
- **Window styles:**
137
- ```swift
138
- .windowStyle(.volumetric)
139
- ```
140
-
141
- **Ornaments:**
142
- ```swift
143
- .ornament(attachmentAnchor: .scene(.bottom)) {
144
- BottomControls()
145
- }
146
- ```
147
- </visionos_specifics>
148
-
149
- <responsive_design>
150
- ## Responsive Design
151
-
152
- **Size classes:**
153
- ```swift
154
- @Environment(\.horizontalSizeClass) var horizontalSizeClass
155
- @Environment(\.verticalSizeClass) var verticalSizeClass
156
- ```
157
-
158
- **ViewThatFits (iOS 16+):**
159
- ```swift
160
- ViewThatFits {
161
- WideLayout()
162
- CompactLayout()
163
- }
164
- ```
165
-
166
- **containerRelativeFrame (iOS 17+):**
167
- ```swift
168
- .containerRelativeFrame(.horizontal) { length, axis in
169
- length * 0.8
170
- }
171
- ```
172
- </responsive_design>
173
-
174
- <decision_tree>
175
- ## Platform Strategy
176
-
177
- **Shared codebase structure:**
178
- - Models, ViewModels, Services: All platforms
179
- - Views: Platform-specific where needed
180
-
181
- **When to use conditionals:**
182
- - Platform-exclusive APIs
183
- - Different navigation patterns
184
- - Different default sizes
185
- </decision_tree>
186
-
187
- <anti_patterns>
188
- ## What NOT to Do
189
-
190
- <anti_pattern name="Scattered #if os() conditionals">
191
- **Problem:** Platform checks everywhere
192
- **Instead:** Extract to platform-specific files
193
- </anti_pattern>
194
-
195
- <anti_pattern name="Ignoring platform idioms">
196
- **Problem:** iOS patterns on macOS
197
- **Instead:** Respect each platform's conventions
198
- </anti_pattern>
199
-
200
- <anti_pattern name="Testing only in simulator">
201
- **Problem:** Missing real device behaviors
202
- **Instead:** Test on physical devices
203
- </anti_pattern>
204
- </anti_patterns>