lwazi 1.6.9 → 1.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lwazi",
3
- "version": "1.6.9",
3
+ "version": "1.7.0",
4
4
  "description": "Lwazi is an AI assistant for Laravel. Install with one command to add an AI assistant to your Laravel app.",
5
5
  "main": "bin/lwazi.js",
6
6
  "bin": {
@@ -69,6 +69,16 @@ class AnalyzeProjectCommand extends Command
69
69
 
70
70
  $root = $this->extractRoot($rootUrl);
71
71
 
72
+ if (!isset($manifest['flat'])) {
73
+ $manifest['flat'] = [];
74
+ }
75
+ if (!isset($manifest['nodes'])) {
76
+ $manifest['nodes'] = [];
77
+ }
78
+ if (!isset($manifest['adjacency'])) {
79
+ $manifest['adjacency'] = [];
80
+ }
81
+
72
82
  foreach ($routes as $route) {
73
83
  $path = '/' . ltrim($route['uri'], '/');
74
84
 
@@ -149,6 +149,16 @@ class SetupCommand extends Command
149
149
 
150
150
  $root = $this->extractRoot($rootUrl);
151
151
 
152
+ if (!isset($manifest['flat'])) {
153
+ $manifest['flat'] = [];
154
+ }
155
+ if (!isset($manifest['nodes'])) {
156
+ $manifest['nodes'] = [];
157
+ }
158
+ if (!isset($manifest['adjacency'])) {
159
+ $manifest['adjacency'] = [];
160
+ }
161
+
152
162
  foreach ($routes as $route) {
153
163
  $path = '/' . ltrim($route['uri'], '/');
154
164