vibe-fabric 0.3.3 → 0.4.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.
Files changed (56) hide show
  1. package/dist/cli/commands/analyze.d.ts +33 -0
  2. package/dist/cli/commands/analyze.d.ts.map +1 -0
  3. package/dist/cli/commands/analyze.js +243 -0
  4. package/dist/cli/commands/analyze.js.map +1 -0
  5. package/dist/cli/commands/config/get.d.ts +9 -0
  6. package/dist/cli/commands/config/get.d.ts.map +1 -0
  7. package/dist/cli/commands/config/get.js +69 -0
  8. package/dist/cli/commands/config/get.js.map +1 -0
  9. package/dist/cli/commands/config/list.d.ts +24 -0
  10. package/dist/cli/commands/config/list.d.ts.map +1 -0
  11. package/dist/cli/commands/config/list.js +146 -0
  12. package/dist/cli/commands/config/list.js.map +1 -0
  13. package/dist/cli/commands/config/set.d.ts +14 -0
  14. package/dist/cli/commands/config/set.d.ts.map +1 -0
  15. package/dist/cli/commands/config/set.js +111 -0
  16. package/dist/cli/commands/config/set.js.map +1 -0
  17. package/dist/cli/commands/repo/list.d.ts +26 -0
  18. package/dist/cli/commands/repo/list.d.ts.map +1 -0
  19. package/dist/cli/commands/repo/list.js +197 -0
  20. package/dist/cli/commands/repo/list.js.map +1 -0
  21. package/dist/cli/commands/repo/remove.d.ts +29 -0
  22. package/dist/cli/commands/repo/remove.d.ts.map +1 -0
  23. package/dist/cli/commands/repo/remove.js +219 -0
  24. package/dist/cli/commands/repo/remove.js.map +1 -0
  25. package/dist/cli/commands/report.d.ts +16 -0
  26. package/dist/cli/commands/report.d.ts.map +1 -0
  27. package/dist/cli/commands/report.js +160 -0
  28. package/dist/cli/commands/report.js.map +1 -0
  29. package/dist/cli/index.js +14 -0
  30. package/dist/cli/index.js.map +1 -1
  31. package/dist/core/config.d.ts +25 -0
  32. package/dist/core/config.d.ts.map +1 -1
  33. package/dist/core/config.js +77 -0
  34. package/dist/core/config.js.map +1 -1
  35. package/dist/core/repo/templates/claude-agents.d.ts.map +1 -1
  36. package/dist/core/repo/templates/claude-agents.js +136 -28
  37. package/dist/core/repo/templates/claude-agents.js.map +1 -1
  38. package/dist/core/repo/templates/claude-prompts.d.ts +1 -1
  39. package/dist/core/repo/templates/claude-prompts.d.ts.map +1 -1
  40. package/dist/core/repo/templates/claude-prompts.js +412 -157
  41. package/dist/core/repo/templates/claude-prompts.js.map +1 -1
  42. package/dist/core/repo/templates/claude-scripts.d.ts.map +1 -1
  43. package/dist/core/repo/templates/claude-scripts.js +555 -94
  44. package/dist/core/repo/templates/claude-scripts.js.map +1 -1
  45. package/dist/core/repo/templates/vibe-readme.d.ts.map +1 -1
  46. package/dist/core/repo/templates/vibe-readme.js +177 -10
  47. package/dist/core/repo/templates/vibe-readme.js.map +1 -1
  48. package/dist/core/report.d.ts +25 -0
  49. package/dist/core/report.d.ts.map +1 -0
  50. package/dist/core/report.js +702 -0
  51. package/dist/core/report.js.map +1 -0
  52. package/dist/types/report.d.ts +158 -0
  53. package/dist/types/report.d.ts.map +1 -0
  54. package/dist/types/report.js +7 -0
  55. package/dist/types/report.js.map +1 -0
  56. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"claude-scripts.js","sourceRoot":"","sources":["../../../../src/core/repo/templates/claude-scripts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,CAAC,MAAM,aAAa,GAAmB;IAC3C,2CAA2C;IAC3C;QACE,IAAI,EAAE,iCAAiC;QACvC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyMZ;KACE;CACF,CAAC"}
1
+ {"version":3,"file":"claude-scripts.js","sourceRoot":"","sources":["../../../../src/core/repo/templates/claude-scripts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,CAAC,MAAM,aAAa,GAAmB;IAC3C,2CAA2C;IAC3C;QACE,IAAI,EAAE,iCAAiC;QACvC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAspBZ;KACE;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"vibe-readme.d.ts","sourceRoot":"","sources":["../../../../src/core/repo/templates/vibe-readme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,WAAW,EAAE,YAAY,EA4MrC,CAAC"}
1
+ {"version":3,"file":"vibe-readme.d.ts","sourceRoot":"","sources":["../../../../src/core/repo/templates/vibe-readme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,WAAW,EAAE,YAAY,EAyXrC,CAAC"}
@@ -113,22 +113,39 @@ From scope:
113
113
  // knowledge-base/_index.md
114
114
  {
115
115
  path: 'vibe/knowledge-base/_index.md',
116
- content: `# Knowledge Base
116
+ content: `# Knowledge Base Index
117
117
 
118
- Documentation and learnings from this repository.
118
+ Quick reference for all KB entries. Updated automatically by \`/kb-add\`.
119
119
 
120
- ## Structure
120
+ ---
121
121
 
122
- Add entries by category:
122
+ ## apis
123
+ <!-- API-related entries will be added here -->
123
124
 
124
- \`\`\`markdown
125
- ## Category Name
126
- - [Entry Title](path/to/entry.md)
127
- \`\`\`
125
+ ---
126
+
127
+ ## auth
128
+ <!-- Authentication/authorization entries will be added here -->
129
+
130
+ ---
131
+
132
+ ## database
133
+ <!-- Database-related entries will be added here -->
134
+
135
+ ---
136
+
137
+ ## deployment
138
+ <!-- Deployment/infrastructure entries will be added here -->
128
139
 
129
- ## Categories
140
+ ---
130
141
 
131
- <!-- Add categories and entries as you learn -->
142
+ ## general
143
+ <!-- General/cross-cutting entries will be added here -->
144
+
145
+ ---
146
+
147
+ ## testing
148
+ <!-- Testing-related entries will be added here -->
132
149
  `,
133
150
  },
134
151
  // knowledge-base/_TEMPLATE.md
@@ -198,6 +215,156 @@ Code or configuration example.
198
215
  ## Syncing
199
216
 
200
217
  The planning hub syncs KB entries via \`vibe sync\`. Keep \`_index.md\` updated with links to all entries.
218
+ `,
219
+ },
220
+ // knowledge-base/apis/README.md
221
+ {
222
+ path: 'vibe/knowledge-base/apis/README.md',
223
+ content: `# APIs Knowledge Base
224
+
225
+ Documentation and learnings related to API design and implementation.
226
+
227
+ ## What Belongs Here
228
+
229
+ - REST API patterns and conventions
230
+ - GraphQL schema decisions
231
+ - API versioning strategies
232
+ - Rate limiting implementations
233
+ - Request/response validation
234
+ - Error response formats
235
+ - API documentation practices
236
+
237
+ ## Example Topics
238
+
239
+ - "API pagination with cursor vs offset"
240
+ - "GraphQL N+1 query prevention"
241
+ - "REST error response standardization"
242
+ - "API rate limiting with Redis"
243
+ `,
244
+ },
245
+ // knowledge-base/auth/README.md
246
+ {
247
+ path: 'vibe/knowledge-base/auth/README.md',
248
+ content: `# Authentication Knowledge Base
249
+
250
+ Documentation and learnings related to authentication and authorization.
251
+
252
+ ## What Belongs Here
253
+
254
+ - Authentication strategies (JWT, sessions, OAuth)
255
+ - Authorization patterns (RBAC, ABAC)
256
+ - Security best practices
257
+ - Token management
258
+ - Password policies
259
+ - MFA implementations
260
+ - SSO integrations
261
+
262
+ ## Example Topics
263
+
264
+ - "JWT refresh token rotation strategy"
265
+ - "Role-based access control implementation"
266
+ - "OAuth2 provider integration gotchas"
267
+ - "Session management in distributed systems"
268
+ `,
269
+ },
270
+ // knowledge-base/database/README.md
271
+ {
272
+ path: 'vibe/knowledge-base/database/README.md',
273
+ content: `# Database Knowledge Base
274
+
275
+ Documentation and learnings related to databases and data management.
276
+
277
+ ## What Belongs Here
278
+
279
+ - ORM patterns and gotchas (Prisma, TypeORM, etc.)
280
+ - Migration strategies
281
+ - Query optimization
282
+ - Connection pooling
283
+ - Data modeling decisions
284
+ - Backup and recovery
285
+ - Database scaling
286
+
287
+ ## Example Topics
288
+
289
+ - "Prisma migration rollback procedure"
290
+ - "Connection pool exhaustion debugging"
291
+ - "Soft delete implementation patterns"
292
+ - "Database indexing strategy for search"
293
+ `,
294
+ },
295
+ // knowledge-base/deployment/README.md
296
+ {
297
+ path: 'vibe/knowledge-base/deployment/README.md',
298
+ content: `# Deployment Knowledge Base
299
+
300
+ Documentation and learnings related to deployment and infrastructure.
301
+
302
+ ## What Belongs Here
303
+
304
+ - CI/CD pipeline configurations
305
+ - Docker and containerization
306
+ - Cloud provider specifics (AWS, GCP, Azure)
307
+ - Environment management
308
+ - Secrets handling
309
+ - Monitoring and logging
310
+ - Performance optimization
311
+
312
+ ## Example Topics
313
+
314
+ - "Docker multi-stage build optimization"
315
+ - "GitHub Actions caching strategies"
316
+ - "Environment variable management"
317
+ - "Zero-downtime deployment process"
318
+ `,
319
+ },
320
+ // knowledge-base/general/README.md
321
+ {
322
+ path: 'vibe/knowledge-base/general/README.md',
323
+ content: `# General Knowledge Base
324
+
325
+ Cross-cutting documentation and learnings that don't fit specific categories.
326
+
327
+ ## What Belongs Here
328
+
329
+ - TypeScript patterns and tips
330
+ - Code organization decisions
331
+ - Architectural choices
332
+ - Tooling configurations
333
+ - Team conventions
334
+ - Debugging techniques
335
+ - Performance patterns
336
+
337
+ ## Example Topics
338
+
339
+ - "TypeScript strict mode migration"
340
+ - "Monorepo vs multi-repo decision"
341
+ - "ESLint rule customizations"
342
+ - "Error handling conventions"
343
+ `,
344
+ },
345
+ // knowledge-base/testing/README.md
346
+ {
347
+ path: 'vibe/knowledge-base/testing/README.md',
348
+ content: `# Testing Knowledge Base
349
+
350
+ Documentation and learnings related to testing strategies and implementation.
351
+
352
+ ## What Belongs Here
353
+
354
+ - Unit testing patterns
355
+ - Integration testing approaches
356
+ - E2E testing strategies
357
+ - Test data management
358
+ - Mocking and stubbing
359
+ - Test coverage goals
360
+ - CI test optimization
361
+
362
+ ## Example Topics
363
+
364
+ - "Database seeding for integration tests"
365
+ - "Mocking external APIs in tests"
366
+ - "Flaky test investigation process"
367
+ - "Test coverage requirements by module"
201
368
  `,
202
369
  },
203
370
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"vibe-readme.js","sourceRoot":"","sources":["../../../../src/core/repo/templates/vibe-readme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,CAAC,MAAM,WAAW,GAAmB;IACzC,4BAA4B;IAC5B;QACE,IAAI,EAAE,gCAAgC;QACtC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BZ;KACE;IAED,iCAAiC;IACjC;QACE,IAAI,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A2B;IAC3B;QACE,IAAI,EAAE,+BAA+B;QACrC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCZ;KACE;IAED,gCAAgC;IAChC;QACE,IAAI,EAAE,oCAAoC;QAC1C,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;CAoBZ;KACE;IAED,gCAAgC;IAChC;QACE,IAAI,EAAE,oCAAoC;QAC1C,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;CAoBZ;KACE;IAED,oCAAoC;IACpC;QACE,IAAI,EAAE,wCAAwC;QAC9C,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;CAoBZ;KACE;IAED,sCAAsC;IACtC;QACE,IAAI,EAAE,0CAA0C;QAChD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;CAoBZ;KACE;IAED,mCAAmC;IACnC;QACE,IAAI,EAAE,uCAAuC;QAC7C,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;CAoBZ;KACE;IAED,mCAAmC;IACnC;QACE,IAAI,EAAE,uCAAuC;QAC7C,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;CAoBZ;KACE;CACF,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Core report module - aggregates data and generates reports
3
+ *
4
+ * Generates exportable reports in Markdown, JSON, and HTML formats
5
+ * using cached project data.
6
+ */
7
+ import { Config } from '../types/config.js';
8
+ import { ReportData, ReportType } from '../types/report.js';
9
+ /**
10
+ * Aggregate all data needed for reports
11
+ */
12
+ export declare function aggregateReportData(projectPath: string, config: Config): Promise<ReportData>;
13
+ /**
14
+ * Generate Markdown report
15
+ */
16
+ export declare function generateMarkdown(data: ReportData, type: ReportType): string;
17
+ /**
18
+ * Generate JSON report
19
+ */
20
+ export declare function generateJson(data: ReportData, type: ReportType): string;
21
+ /**
22
+ * Generate HTML report
23
+ */
24
+ export declare function generateHtml(data: ReportData, type: ReportType): string;
25
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/core/report.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EACL,UAAU,EASV,UAAU,EACX,MAAM,oBAAoB,CAAC;AAW5B;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,UAAU,CAAC,CAyGrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CA2L3E;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CAoDvE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CA4WvE"}