forgecraft 1.4.0 → 2.0.1
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/README.md +75 -7
- package/dist/chunk-TXQBI725.js +7052 -0
- package/dist/chunk-TXQBI725.js.map +1 -0
- package/dist/cli/index.js +544 -69
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +128 -6
- package/dist/index.js +17 -1
- package/package.json +9 -3
- package/dist/chunk-NYOV5D5J.js +0 -3129
- package/dist/chunk-NYOV5D5J.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<h1 align="center">ForgeAI</h1>
|
|
9
9
|
|
|
10
10
|
<p align="center">
|
|
11
|
-
<strong>
|
|
12
|
-
|
|
11
|
+
<strong>One command. No prompts. Come back to a full app pushed to GitHub.</strong><br/>
|
|
12
|
+
Autonomous AI that plans, builds, reviews, and deploys software — zero human intervention.<br/>Give it a sentence before lunch. Come back to a production-ready app.
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<br/>
|
|
@@ -231,6 +231,20 @@ forge auto "a FastAPI backend with SQLAlchemy and JWT auth"
|
|
|
231
231
|
|
|
232
232
|
Worker prompts automatically adapt to the framework — Next.js gets App Router instructions, Vite gets SPA routing, Django gets migration commands, and generic projects get smart auto-detection.
|
|
233
233
|
|
|
234
|
+
### Project Visualizer (`forge viz`)
|
|
235
|
+
Generate a self-contained interactive HTML dashboard for any project. No external dependencies — everything is inlined. Works offline, shareable as a single file.
|
|
236
|
+
|
|
237
|
+
**Dashboard includes:**
|
|
238
|
+
|
|
239
|
+
- **Overview** — Code health score (A-F grade), project summary, file distribution, language breakdown, complexity hotspots, most-used modules, circular dependency detection, orphan file detection, test coverage map
|
|
240
|
+
- **Architecture** — Layered diagram showing how files flow from entry points through presentation, components, state, API, core logic, and config
|
|
241
|
+
- **System Map** — SVG-based architecture diagram with component boxes, directional arrows, import counts, dashed boundary zones, zoom/pan, keyboard navigation, minimap, and PNG export
|
|
242
|
+
- **Files** — Full file list with test coverage indicators (green/red dots), sortable by category
|
|
243
|
+
- **API Docs** — Auto-generated endpoint documentation from detected routes, grouped by base path with parameter extraction
|
|
244
|
+
- **Diff Mode** — Compare current scan vs previous (added/removed/changed files, line deltas, health score change). Snapshots saved automatically to `.forge/viz-snapshot.json`
|
|
245
|
+
- **File Detail** — Click any file to see stats, exports, routes, dependencies, dependents, first 25 lines of code preview with line numbers, and an "Open in VS Code" button that reuses your existing window
|
|
246
|
+
- **Search** — Press `/` to fuzzy-search files across the sidebar
|
|
247
|
+
|
|
234
248
|
### Sprint Resume
|
|
235
249
|
If a build gets interrupted (auth expires, network drops, you close the terminal), your progress is saved. Run `forge resume` to pick up exactly where you left off. Blocked stories can be retried.
|
|
236
250
|
|
|
@@ -269,6 +283,16 @@ forge sprint "description" # Run full pipeline with human gates
|
|
|
269
283
|
```bash
|
|
270
284
|
forge start # Start the dev server (auto-detects framework)
|
|
271
285
|
forge push # Push commits + tags to GitHub
|
|
286
|
+
forge claude # Launch Claude Code CLI in the current project
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
### Visualizer & Insights
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
forge viz # Interactive project dashboard (opens in browser)
|
|
293
|
+
forge viz /path/to/project # Visualize a specific project
|
|
294
|
+
forge viz --no-open # Generate without opening browser
|
|
295
|
+
forge viz -o report.html # Custom output path
|
|
272
296
|
```
|
|
273
297
|
|
|
274
298
|
### Utilities
|
|
@@ -286,6 +310,11 @@ forge checkout <version> # Jump to a specific version or checkpoint
|
|
|
286
310
|
forge export # Export sprint plan as markdown
|
|
287
311
|
forge clean # Reset sprint state (keeps config)
|
|
288
312
|
forge doctor # Diagnose setup issues
|
|
313
|
+
forge estimate # Estimate token usage and cost for sprint
|
|
314
|
+
forge cicd # Generate CI/CD pipeline configuration
|
|
315
|
+
forge template # Browse and use starter app templates
|
|
316
|
+
forge upgrade # Upgrade Forge to the latest version
|
|
317
|
+
forge test # Generate and run tests for built stories
|
|
289
318
|
```
|
|
290
319
|
|
|
291
320
|
<br/>
|
|
@@ -341,6 +370,11 @@ src/
|
|
|
341
370
|
│ ├── github/
|
|
342
371
|
│ │ └── index.ts # GitHub Issues sync (via gh CLI)
|
|
343
372
|
│ │
|
|
373
|
+
│ ├── visualizer/
|
|
374
|
+
│ │ ├── index.ts # Orchestrates scan → HTML → browser open
|
|
375
|
+
│ │ ├── scanner.ts # Recursive project scanner (imports, exports, routes, deps)
|
|
376
|
+
│ │ └── template.ts # Self-contained HTML dashboard generator
|
|
377
|
+
│ │
|
|
344
378
|
│ └── utils/
|
|
345
379
|
│ ├── attachments.ts # Drag & drop file attachment parser
|
|
346
380
|
│ ├── config.ts # Config validation
|
|
@@ -426,6 +460,7 @@ After `forge init`, your `forge.config.json` controls:
|
|
|
426
460
|
| Review | Manual | None | None | **Automated QA + auto-fix** |
|
|
427
461
|
| Git strategy | Manual | Manual | Manual | **Auto commits + tags + push** |
|
|
428
462
|
| Parallelism | N/A | N/A | N/A | **Dependency-grouped parallel** |
|
|
463
|
+
| Project visualization | N/A | N/A | N/A | **Interactive dashboard + health score** |
|
|
429
464
|
| Human oversight | Full control | None | Approve/reject | **Stage gates + live feedback** |
|
|
430
465
|
| Bug fix with screenshots | N/A | N/A | N/A | **forge fix --image + drag & drop** |
|
|
431
466
|
| SEO & assets | You remember | You remember | You remember | **Built-in defaults** |
|
|
@@ -455,23 +490,53 @@ After `forge init`, your `forge.config.json` controls:
|
|
|
455
490
|
- Config validation with actionable error messages
|
|
456
491
|
- Token expiry handling with auto-retry
|
|
457
492
|
|
|
458
|
-
**v1.1**
|
|
493
|
+
**v1.1**
|
|
459
494
|
- **Any tech stack support** — generic adapter auto-detects language, package manager, build commands, and project structure. Works with Express, Vue, Svelte, Go, Rust, FastAPI, Rails, and more.
|
|
460
495
|
- **`--yes` flag** — skip all confirmation prompts for fully hands-free operation
|
|
461
|
-
- **Drag & drop attachments** — attach mockups, screenshots, specs, and design files by dragging into the terminal
|
|
496
|
+
- **Drag & drop attachments** — attach mockups, screenshots, specs, and design files by dragging into the terminal
|
|
462
497
|
- Published as `forgecraft` on npm
|
|
463
498
|
|
|
464
|
-
**
|
|
499
|
+
**v2.0** — Current
|
|
500
|
+
- **`forge viz`** — Interactive project visualizer with self-contained HTML dashboard
|
|
501
|
+
- Code health score (A-F grade) with detailed breakdown
|
|
502
|
+
- Circular dependency detection (DFS-based, capped at 50 cycles)
|
|
503
|
+
- Orphan file detection (files with no imports and no dependents)
|
|
504
|
+
- Test coverage map with covered/uncovered indicators
|
|
505
|
+
- SVG system architecture diagram with zoom, pan, minimap, keyboard nav
|
|
506
|
+
- PNG export for system map
|
|
507
|
+
- Diff mode — compare scans over time (added/removed/changed files, health delta)
|
|
508
|
+
- Auto-generated API documentation from detected routes
|
|
509
|
+
- File preview with line numbers and "Open in VS Code" integration
|
|
510
|
+
- Fully self-contained, offline-capable, shareable as a single HTML file
|
|
511
|
+
- **`forge test`** — auto-generate and run tests for built stories
|
|
512
|
+
- **`forge estimate`** — token usage and cost estimation
|
|
513
|
+
- **`forge cicd`** — CI/CD pipeline generation (GitHub Actions, GitLab CI)
|
|
514
|
+
- **`forge template`** — starter app template browser
|
|
515
|
+
- **`forge upgrade`** — self-update command
|
|
516
|
+
- 29 CLI commands total
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
520
|
+
## Future Plans
|
|
521
|
+
|
|
522
|
+
### v2.1 — Next Up
|
|
523
|
+
- **Visualizer: Live mode** — watch file system for changes and auto-refresh the dashboard in real time
|
|
524
|
+
- **Visualizer: Dependency graph view** — interactive force-directed graph with filtering by module, role, or category
|
|
525
|
+
- **Visualizer: Git blame integration** — show who last modified each file, commit recency heatmap
|
|
526
|
+
- **Visualizer: Bundle size analysis** — estimate production bundle size per entry point, flag heavy imports
|
|
527
|
+
- **Visualizer: Code duplication detection** — find similar code blocks across files, suggest consolidation
|
|
465
528
|
- **Test generation phase** — auto-generate unit and integration tests after build (Vitest, pytest, Flutter test)
|
|
466
529
|
- **Custom adapter plugin API** — drop a JS file in `.forge/adapters/` to add your own framework
|
|
467
530
|
|
|
468
|
-
|
|
531
|
+
### v2.2 — Planned
|
|
469
532
|
- **Multi-provider support** — swap Claude for OpenAI, Gemini, or local models (Ollama) per agent
|
|
470
533
|
- **Web dashboard** — browser-based sprint monitoring with real-time build progress, token usage charts, and story diffs
|
|
471
534
|
- **CI/CD integration** — GitHub Actions / GitLab CI pipeline generation, auto-run tests on PR, deploy previews
|
|
472
535
|
- **Cost estimation** — token budget planning before sprint starts, per-story cost breakdown, spending alerts
|
|
536
|
+
- **Visualizer: Performance profiling** — detect potential performance bottlenecks (large components, deep dependency chains, circular renders)
|
|
537
|
+
- **Visualizer: Security audit** — flag potential issues (hardcoded secrets, unsafe deps, missing auth checks)
|
|
473
538
|
|
|
474
|
-
|
|
539
|
+
### v3.0 — Future Vision
|
|
475
540
|
- **Team collaboration** — multiple users can queue feedback on the same sprint, role-based permissions (lead reviews, dev builds)
|
|
476
541
|
- **Monorepo support** — run separate pipelines for `packages/*` with shared dependency tracking
|
|
477
542
|
- **Visual regression testing** — screenshot comparison between versions, flag UI drift automatically
|
|
@@ -480,6 +545,9 @@ After `forge init`, your `forge.config.json` controls:
|
|
|
480
545
|
- **i18n / localization** — generate translation keys and locale files from built UI, support RTL layouts
|
|
481
546
|
- **Plugin system** — community-built pipeline phases (e.g., performance audit, API docs, Docker setup)
|
|
482
547
|
- **Template library** — starter templates for common app types (SaaS dashboard, e-commerce, blog, landing page)
|
|
548
|
+
- **Visualizer: AI insights** — natural language summary of codebase ("Your API layer has 3 circular deps, 12 untested endpoints, and 4 files over 500 lines")
|
|
549
|
+
- **Visualizer: Multi-project comparison** — compare architecture and health across multiple repos side by side
|
|
550
|
+
- **Visualizer: Timeline replay** — animate how the codebase evolved over time using saved snapshots
|
|
483
551
|
|
|
484
552
|
<br/>
|
|
485
553
|
|