@wyxos/zephyr 0.8.3 → 0.8.4

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": "@wyxos/zephyr",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "A streamlined deployment tool for web applications with intelligent Laravel project detection",
5
5
  "type": "module",
6
6
  "main": "./src/index.mjs",
@@ -161,6 +161,17 @@ export function suggestFallbackCommitMessage(statusEntries = []) {
161
161
  return null
162
162
  }
163
163
 
164
+ const hasTests = paths.some((entryPath) => (
165
+ entryPath.startsWith('tests/')
166
+ || entryPath.includes('.test.')
167
+ || entryPath.includes('.spec.')
168
+ ))
169
+ const hasApplicationCode = paths.some((entryPath) => (
170
+ ['app/', 'bootstrap/', 'config/', 'database/', 'extension/', 'resources/', 'routes/'].some((prefix) => entryPath.startsWith(prefix))
171
+ || entryPath.startsWith('artisan')
172
+ || entryPath.startsWith('vite.config.')
173
+ ))
174
+
164
175
  if (paths.some((entryPath) => entryPath.includes('FullscreenPreviewRail'))) {
165
176
  return 'feat: refine fullscreen preview rail'
166
177
  }
@@ -174,7 +185,7 @@ export function suggestFallbackCommitMessage(statusEntries = []) {
174
185
  }
175
186
 
176
187
  if (paths.some((entryPath) => entryPath.startsWith('src/'))) {
177
- return paths.some((entryPath) => entryPath.startsWith('tests/') || entryPath.includes('.test.'))
188
+ return hasTests
178
189
  ? 'fix: update source behavior and tests'
179
190
  : 'fix: update source behavior'
180
191
  }
@@ -183,9 +194,20 @@ export function suggestFallbackCommitMessage(statusEntries = []) {
183
194
  return 'chore: update package metadata'
184
195
  }
185
196
 
186
- return null
197
+ if (hasApplicationCode) {
198
+ return hasTests
199
+ ? 'fix: update application behavior and tests'
200
+ : 'fix: update application behavior'
201
+ }
202
+
203
+ if (hasTests) {
204
+ return 'test: update test coverage'
205
+ }
206
+
207
+ return 'chore: update project files'
187
208
  }
188
209
 
210
+
189
211
  export async function suggestCommitMessage(rootDir = process.cwd(), {
190
212
  runCommand,
191
213
  commandExistsImpl = commandExists,