brakit 0.6.2 → 0.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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Brakit
2
2
 
3
- **Your API is leaking data. Your queries are slow. Brakit shows you.**
3
+ **See what your app is actually doing.**
4
4
 
5
- AI writes your API. Nobody checks what it does — missing auth, leaked data, N+1 queries, slow endpoints. Brakit watches your app run and shows you everything. One command. Zero setup.
5
+ One command. Every request, query, and security issue before you ship.
6
6
 
7
7
  Open source · Local only · Zero config · 2 dependencies
8
8
 
@@ -1,5 +1,3 @@
1
- import { IncomingMessage, ServerResponse, Server } from 'node:http';
2
-
3
1
  type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | (string & {});
4
2
  type FlatHeaders = Record<string, string>;
5
3
  interface TracedRequest {
@@ -161,9 +159,6 @@ interface InsightContext {
161
159
  }
162
160
  declare function computeInsights(ctx: InsightContext): Insight[];
163
161
 
164
- type DashboardHandler = (req: IncomingMessage, res: ServerResponse, config: BrakitConfig) => void;
165
- declare function createProxyServer(config: BrakitConfig, handleDashboard: DashboardHandler): Server;
166
-
167
162
  declare function detectProject(rootDir: string): Promise<DetectedProject>;
168
163
 
169
164
  declare class AdapterRegistry {
@@ -200,4 +195,4 @@ declare class AnalysisEngine {
200
195
 
201
196
  declare const VERSION: string;
202
197
 
203
- export { AdapterRegistry, AnalysisEngine, type BrakitAdapter, type BrakitConfig, type DetectedProject, type FlatHeaders, type Framework, type HttpMethod, type Insight, type InsightContext, type NormalizedOp, type RequestCategory, type RequestListener, type SecurityContext, type SecurityFinding, type SecurityRule, SecurityScanner, type SecuritySeverity, type TracedRequest, VERSION, computeInsights, createDefaultScanner, createProxyServer, detectProject };
198
+ export { AdapterRegistry, AnalysisEngine, type BrakitAdapter, type BrakitConfig, type DetectedProject, type FlatHeaders, type Framework, type HttpMethod, type Insight, type InsightContext, type NormalizedOp, type RequestCategory, type RequestListener, type SecurityContext, type SecurityFinding, type SecurityRule, SecurityScanner, type SecuritySeverity, type TracedRequest, VERSION, computeInsights, createDefaultScanner, detectProject };