opencode-swarm 6.53.7 → 6.54.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.
@@ -27,6 +27,12 @@ export interface LaravelCommandOverlay {
27
27
  lintCommand: string | null;
28
28
  /** Static analysis command. PHPStan if phpstan config is present, null otherwise. */
29
29
  staticAnalysisCommand: string | null;
30
+ /**
31
+ * Identified static analysis tool. 'larastan' if phpstan.neon contains a
32
+ * Larastan extension reference, 'phpstan' if a phpstan config is present
33
+ * without Larastan markers, null if no phpstan config is present.
34
+ */
35
+ staticAnalysisTool: 'larastan' | 'phpstan' | null;
30
36
  /** Dependency audit command (always composer audit --locked --format=json for Laravel). */
31
37
  auditCommand: string;
32
38
  /** Whether --parallel flag is supported (Pest parallel testing via artisan). */
@@ -54,6 +60,22 @@ export declare function detectLaravelProject(directory: string): boolean;
54
60
  * @returns LaravelDetectionSignals with each signal's boolean state
55
61
  */
56
62
  export declare function getLaravelSignals(directory: string): LaravelDetectionSignals;
63
+ /**
64
+ * Determine whether a project is configured to use Larastan (the Laravel
65
+ * extension for PHPStan) rather than vanilla PHPStan.
66
+ *
67
+ * Detection is content-based: the first 4096 bytes of `phpstan.neon` are
68
+ * read and scanned for a reference to either of the two known Larastan
69
+ * package names (`nunomaduro/larastan` or `larastan/larastan`).
70
+ *
71
+ * Only `phpstan.neon` is checked — `phpstan.neon.dist` is a distribution
72
+ * baseline that projects override locally, so it is not scanned for the
73
+ * Larastan marker.
74
+ *
75
+ * @param directory - Absolute path to the project root
76
+ * @returns true if phpstan.neon contains a Larastan extension reference
77
+ */
78
+ export declare function isLarastanConfigured(directory: string): boolean;
57
79
  /**
58
80
  * Get the Laravel command overlay for a project directory.
59
81
  * Returns null if the directory is not a Laravel project.
@@ -65,6 +87,8 @@ export declare function getLaravelSignals(directory: string): LaravelDetectionSi
65
87
  * null otherwise
66
88
  * - staticAnalysisCommand: 'vendor/bin/phpstan analyse' if phpstan.neon or phpstan.neon.dist present,
67
89
  * null otherwise
90
+ * - staticAnalysisTool: 'larastan' if phpstan.neon contains a Larastan extension reference,
91
+ * 'phpstan' if a phpstan config is present without Larastan markers, null otherwise
68
92
  * - auditCommand: always 'composer audit --locked --format=json'
69
93
  * - supportsParallel: true (php artisan test --parallel is supported)
70
94
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.53.7",
3
+ "version": "6.54.0",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",