kubit-forge 0.0.2-canary.2 → 0.0.2-canary.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,377 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.2-canary.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Bugfix(chore): include pnpm-lock
8
+
9
+ ## 0.0.2-canary.19
10
+
11
+ ### Patch Changes
12
+
13
+ - Update dependencies
14
+
15
+ ## 0.0.2-canary.18
16
+
17
+ ### Patch Changes
18
+
19
+ - Merge branch 'feat/bundlers-init-commands' into next
20
+
21
+ ## 0.0.2-canary.17
22
+
23
+ ### Patch Changes
24
+
25
+ - Merge branch 'fix/dir-templates' into next
26
+
27
+ ## 0.0.2-canary.16
28
+
29
+ ### Patch Changes
30
+
31
+ - Update documentation [skip-ci]
32
+
33
+ ## 0.0.2-canary.15
34
+
35
+ ### Patch Changes
36
+
37
+ - Simplify CLI by removing redundant features and moving advanced functionality to optional plugins
38
+
39
+ BREAKING CHANGES:
40
+ - Remove GUI/TUI commands (dashboard, gui, visual:config)
41
+ - Remove assets optimization commands (assets:optimize, assets:compress, assets:cdn:sync)
42
+ - Remove SBOM/security commands from core (moved to @kubit/plugin-security)
43
+ - Remove advanced doctor commands (moved to @kubit/plugin-doctor-advanced)
44
+ - Remove dependency management commands (deps:why, deps:dedupe, deps:update, deps:alternatives, deps:export)
45
+ - Remove refactor commands (refactor:rename)
46
+ - Remove ecosystem commands (ecosystem:info, ecosystem:health, ecosystem:upgrade, ecosystem:sync)
47
+ - Remove dedicated bernova commands (bernova:init, bernova:generate, bernova:validate)
48
+
49
+ IMPROVEMENTS:
50
+ - Simplify doctor command to basic checks only (391 lines vs 479 lines)
51
+ - Simplify deps:analyze command with native tool recommendations (125 lines vs 566 lines)
52
+ - Integrate bernova into standard 'add' system for consistency
53
+ - Reduce CLI bundle size by 22.4% (233.86 KB → 181.42 KB)
54
+ - Remove ~4,400 lines of code from core
55
+
56
+ NEW FEATURES:
57
+ - Add @kubit/plugin-security (optional plugin for SBOM generation and security audits)
58
+ - Add @kubit/plugin-doctor-advanced (optional plugin for auto-fix, predictive analysis, IDE integration)
59
+ - Add optional recipes for automated workflows:
60
+ - security-sbom-workflow (CI/CD security automation)
61
+ - doctor-advanced-workflow (advanced diagnostics automation)
62
+ - testing-complete-setup (Vitest + coverage + E2E)
63
+ - monorepo-turborepo-setup (complete Turborepo configuration)
64
+
65
+ DOCUMENTATION:
66
+ - Add PLUGINS-VS-RECIPES.md (comprehensive guide explaining the difference)
67
+ - Add RECIPES-OPTIONAL.md (documentation for optional recipes)
68
+ - Add PLUGIN-SECURITY.md (security plugin documentation)
69
+ - Add PLUGIN-DOCTOR-ADVANCED.md (doctor advanced plugin documentation)
70
+ - Update README.md with new architecture and optional features
71
+ - Update INDEX.md with current command reference
72
+ - Remove outdated documentation (GUI.md, ASSET-OPTIMIZATION.md, SECURITY-SBOM.md, etc.)
73
+
74
+ PHILOSOPHY:
75
+ - Core CLI remains lightweight with essential commands only
76
+ - Advanced features available as optional plugins
77
+ - Automated workflows provided through optional recipes
78
+ - Delegate to specialized tools (pnpm why, npm-check-updates, IDE refactoring, etc.)
79
+ - Maintain neutrality (no favoritism for specific packages)
80
+
81
+ FILES DELETED:
82
+ - src/commands/assets.ts
83
+ - src/commands/dashboard.ts
84
+ - src/commands/gui.ts
85
+ - src/commands/refactor.ts
86
+ - src/commands/ecosystem.ts
87
+ - src/commands/bernova.ts
88
+ - src/core/doctor-auto-fix.ts
89
+ - src/core/doctor-ide-integration.ts
90
+ - src/core/doctor-predictive.ts
91
+ - src/core/doctor-recommendations.ts
92
+ - src/dashboard/\* (8 files)
93
+ - src/gui/\*
94
+ - docs/GUI.md
95
+ - docs/INTERACTIVE-DASHBOARD.md
96
+ - docs/VISUAL-GUI.md
97
+ - docs/ASSET-OPTIMIZATION.md
98
+ - docs/SECURITY-SBOM.md
99
+ - docs/DEPENDENCY_MANAGEMENT.md
100
+
101
+ FILES CREATED:
102
+ - src/plugins/security-plugin.ts
103
+ - src/plugins/doctor-advanced-plugin.ts
104
+ - src/recipes/optional/security-sbom-workflow.json
105
+ - src/recipes/optional/doctor-advanced-workflow.json
106
+ - src/recipes/optional/testing-complete-setup.json
107
+ - src/recipes/optional/monorepo-turborepo-setup.json
108
+ - docs/PLUGINS-VS-RECIPES.md
109
+ - docs/RECIPES-OPTIONAL.md
110
+ - docs/PLUGIN-SECURITY.md
111
+ - docs/PLUGIN-DOCTOR-ADVANCED.md
112
+
113
+ Co-authored-by: Cascade AI <cascade@windsurf.ai>
114
+
115
+ ## 0.0.2-canary.14
116
+
117
+ ### Patch Changes
118
+
119
+ - Remove deprecated loadConfigFromCLIDir option
120
+ - Remove loadConfigFromCLIDir from RunCLIOptions interface
121
+ - configDir is now the only way to specify config location
122
+ - Update documentation with configDir examples
123
+ - Remove unused imports (dirname, join, fileURLToPath)
124
+ - Fix JSDoc example with correct syntax
125
+ - Simplify config directory logic
126
+
127
+ This simplifies the API and makes config location explicit.
128
+
129
+ ## 0.0.2-canary.13
130
+
131
+ ### Patch Changes
132
+
133
+ - Merge pull request #2 from kubit-ui/feat/add-run-cli-dir-configuration
134
+
135
+ add configDir option to runCLI for explicit config location
136
+
137
+ ## 0.0.2-canary.12
138
+
139
+ ### Patch Changes
140
+
141
+ - Include runCli
142
+
143
+ ## 0.0.2-canary.11
144
+
145
+ ### Patch Changes
146
+
147
+ - Migrate to kubit-forge internal plugins system
148
+ - Replace manual plugin loading with PluginManager.loadInternalPlugins()
149
+ - Configure plugins.internal in kubit.config.toml
150
+ - Simplify CLI initialization by ~30 lines using kubit-forge features
151
+ - Use PluginManager.getCommands() and getGenerators() for registration
152
+ - Remove custom plugin lifecycle hook handling
153
+
154
+ This leverages kubit-forge's new internal plugins support (plugins.internal)
155
+ which allows loading local plugins without npm publish.
156
+
157
+ Benefits:
158
+ - Less boilerplate code
159
+ - Consistent plugin loading mechanism
160
+ - Better integration with kubit-forge ecosystem
161
+ - Easier to add more internal plugins in the future
162
+
163
+ Breaking: None - CLI functionality remains unchanged
164
+
165
+ ## 0.0.2-canary.10
166
+
167
+ ### Patch Changes
168
+
169
+ - Resolve ESLint errors and improve error handling
170
+ - Remove useless assignment in HookManager.register method
171
+ - Move exports after class definitions to fix no-use-before-define warnings
172
+ - Add error cause preservation in catch blocks (preserve-caught-error rule)
173
+ - Reorder function declarations before usage in TemplateInstaller
174
+ - Update eslint-config-kubit to v2.0.1 for ESLint 10 compatibility
175
+
176
+ Files changed:
177
+ - src/core/hook-manager.ts
178
+ - src/core/recipe-engine.ts
179
+ - src/core/recipe-remote-loader.ts
180
+ - src/dashboard/components/TemplateInstaller.tsx
181
+ - src/utils/config-loader.ts
182
+ - src/utils/dependency-analyzer.ts
183
+ - package.json
184
+
185
+ ## 0.0.2-canary.9
186
+
187
+ ### Patch Changes
188
+
189
+ - Use correct template IDs matching actual template directories
190
+ - Change react-ts → react
191
+ - Change react-ts-bernova → react-bernova
192
+ - Add react-kubit-ui and kubit-full templates
193
+ - Change vanilla-ts → vanilla
194
+ - Add emoji icons and better descriptions
195
+
196
+ Fixes 'Template not found' errors during project creation.
197
+
198
+ ## 0.0.2-canary.8
199
+
200
+ ### Patch Changes
201
+
202
+ - Make console visible by default with better initialization
203
+ - Console opens automatically on GUI start
204
+ - Fix positioning issues with safe initial values
205
+ - Add welcome logs with helpful tips
206
+ - Increase z-index to ensure visibility
207
+ - Add debugging logs for troubleshooting
208
+
209
+ ## 0.0.2-canary.7
210
+
211
+ ### Patch Changes
212
+
213
+ - Implement template creation with real-time console logging
214
+ - Add /api/template/create endpoint for project initialization
215
+ - Enable real-time log streaming during template creation
216
+ - Add project name validation (lowercase, numbers, hyphens only)
217
+ - Improve Templates component with individual inputs per template
218
+ - Add keyboard shortcut (Enter) to create project
219
+ - Clear input field after successful creation
220
+ - Show visual indicators during creation process
221
+ - Add helpful user guidance to check floating console
222
+ - Improve Features component with better logging
223
+ - Update feature installation to stream logs in real-time
224
+ - Add descriptive messages with emoji icons for better UX
225
+ - Display inline progress indicators during operations
226
+ - Handle errors gracefully with user-friendly messages
227
+
228
+ Both template creation and feature installation now provide full
229
+ visibility through the floating console with real-time output.
230
+
231
+ ## 0.0.2-canary.6
232
+
233
+ ### Patch Changes
234
+
235
+ - Add floating draggable console with real-time logs
236
+ - Add FloatingConsole component accessible from all screens
237
+ - Implement drag and drop functionality for console positioning
238
+ - Add minimize, maximize, and resize controls
239
+ - Enable real-time log streaming during command execution
240
+ - Improve command execution with better error handling
241
+ - Add visual indicators for different log types (info, success, error, stdout, stderr)
242
+ - Remove Console tab from navigation (now global floating console)
243
+ - Add emoji icons for better visual feedback
244
+ - Implement auto-scroll feature for new logs
245
+ - Add console toggle button (bottom-right corner)
246
+ - Capture command output in real-time using streaming
247
+ - Improve error messages with helpful suggestions
248
+ - Add timestamps to all log entries
249
+ - Keep last 100 logs in memory
250
+ - Style console with modern UI (border, shadows, hover effects)
251
+
252
+ Fixes command execution issues and provides better developer experience
253
+ with a professional, always-accessible console interface.
254
+
255
+ ## 0.0.2-canary.5
256
+
257
+ ### Patch Changes
258
+
259
+ - Optimize build size by enabling minification and conditional sourcemaps
260
+ - Enable minification in production builds (~56% size reduction)
261
+ - Add conditional sourcemaps (enabled only in development)
262
+ - Enable code splitting and tree-shaking for better optimization
263
+ - Configure NODE_ENV for dev script to enable debug sourcemaps
264
+ - Reduce production bundle from 2.2MB to 920KB (-58%)
265
+
266
+ ## 0.0.2-canary.4
267
+
268
+ ### Patch Changes
269
+
270
+ - Add Console tab and improve command execution with real-time logging
271
+
272
+ Add comprehensive logging system and improve error handling for command execution:
273
+
274
+ Console Tab (New):
275
+ - Real-time log viewer with auto-refresh every 2 seconds
276
+ - Color-coded log types: error (red), success (green), stderr (orange), stdout (blue), info (gray)
277
+ - Timestamps for each log entry
278
+ - Clear and Refresh buttons
279
+ - Auto-scroll toggle
280
+ - Displays stdout, stderr, and exit codes
281
+ - Keeps last 100 log entries in memory
282
+
283
+ Command Improvements:
284
+ - Load commands dynamically from package.json scripts
285
+ - No longer hardcoded - adapts to each project
286
+ - Displays actual script command in description
287
+ - Better error messages with detailed output
288
+
289
+ Error Handling:
290
+ - Capture both stdout and stderr from command execution
291
+ - Use execa with reject: false to handle failures gracefully
292
+ - Log all command execution steps (start, output, result)
293
+ - Return detailed error information including exit codes
294
+ - Show actual error output to user in console
295
+
296
+ New API Endpoints:
297
+ - GET /api/console/logs - Retrieve console logs
298
+ - POST /api/console/clear - Clear console logs
299
+ - GET /api/commands/available - Get available npm scripts dynamically
300
+
301
+ Technical Changes:
302
+ - Add consoleLogs array to AdvancedGuiServer class
303
+ - Implement addLog() method for centralized logging
304
+ - Update /api/command/execute with comprehensive error handling
305
+ - Console component with real-time polling
306
+ - Commands component now fetches from /api/commands/available
307
+
308
+ Benefits:
309
+ - See exactly what happens when commands execute
310
+ - Debug failed commands with full output
311
+ - No more 500 errors without context
312
+ - All scripts from package.json automatically available
313
+ - Professional logging experience like real terminals
314
+
315
+ Files modified:
316
+ - src/gui/advanced-server.ts (963 lines, +120 lines)
317
+
318
+ All features tested and working. Console provides full visibility into command execution.
319
+
320
+ ## 0.0.2-canary.3
321
+
322
+ ### Patch Changes
323
+
324
+ - Add Advanced GUI with 8 functional tabs
325
+
326
+ Add comprehensive web-based GUI with full project management capabilities:
327
+
328
+ Frontend (8 Tabs):
329
+ - Dashboard: Project stats, version, dependencies count, git status with refresh
330
+ - Commands: Execute commands with one click (dev, build, test, lint, format, typecheck)
331
+ - Git: Branch info, file changes count, last 10 commits with hash and message
332
+ - Dependencies: Visual list of production and development dependencies
333
+ - Features: Install addons (ESLint, Prettier, Vitest, Storybook, etc.) with one click
334
+ - Files: File explorer showing project structure with size indicators
335
+ - Templates: Create new projects from templates (React TS, Bernova, Storybook, Vanilla)
336
+ - Config: Visual editor for kubit.config.toml with live save
337
+
338
+ Backend (REST API):
339
+ - /api/dashboard - Project stats and git status
340
+ - /api/config - GET/POST configuration management
341
+ - /api/command/execute - Execute npm/pnpm commands
342
+ - /api/dependencies - List all dependencies
343
+ - /api/git/commits - Get recent commits
344
+ - /api/templates - Available project templates
345
+ - /api/features - Available features to install
346
+ - /api/feature/install - Install features
347
+ - /api/files - Project file explorer
348
+
349
+ Technical:
350
+ - Single file architecture (advanced-server.ts)
351
+ - Zero dependencies UI (React via CDN)
352
+ - Node.js HTTP server with auto port resolution
353
+ - Real command execution via execa
354
+ - TOML config save/load with smol-toml
355
+ - Kubit design system (black, white, #df2b52 accent)
356
+ - No animations, clean minimal design
357
+ - Real-time notifications
358
+ - Full TypeScript support
359
+
360
+ Features:
361
+ - Execute any package.json script from GUI
362
+ - Visual git history browser
363
+ - One-click feature installation
364
+ - Live config editing with persistence
365
+ - Project file browser
366
+ - Cross-platform browser opening
367
+ - Port conflict auto-resolution
368
+
369
+ Files:
370
+ - src/gui/advanced-server.ts (791 lines, complete GUI)
371
+ - src/commands/gui.ts (updated to use AdvancedGuiServer)
372
+
373
+ All features are production-ready and fully functional.
374
+
3
375
  ## 0.0.2-canary.2
4
376
 
5
377
  ### Patch Changes