@justmpm/firebase-audit 0.1.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/dist/index.js ADDED
@@ -0,0 +1,65 @@
1
+ import {
2
+ AccessOriginSchema,
3
+ AuditYamlSchema,
4
+ ConfidenceSchema,
5
+ DynamicValueSchema,
6
+ EvidenceSchema,
7
+ FindingSchema,
8
+ FirestoreIndexSchema,
9
+ GraphEdgeSchema,
10
+ IndexFieldSchema,
11
+ LocationSchema,
12
+ OperationSchema,
13
+ PermissionSchema,
14
+ PositionSchema,
15
+ ProjectModelSchema,
16
+ QueryFilterSchema,
17
+ QueryOrderSchema,
18
+ QueryShapeSchema,
19
+ RoleSchema,
20
+ RuleSchema,
21
+ SeveritySchema,
22
+ classifyOrigin,
23
+ discover,
24
+ emptyModel,
25
+ extractRules,
26
+ findPublicAllows,
27
+ runChecks,
28
+ scan
29
+ } from "./chunk-VKCDUCYE.js";
30
+
31
+ // src/index.ts
32
+ import { createRequire } from "module";
33
+ var require2 = createRequire(import.meta.url);
34
+ var pkg = require2("../package.json");
35
+ var VERSION = pkg.version;
36
+ export {
37
+ AccessOriginSchema,
38
+ AuditYamlSchema,
39
+ ConfidenceSchema,
40
+ DynamicValueSchema,
41
+ EvidenceSchema,
42
+ FindingSchema,
43
+ FirestoreIndexSchema,
44
+ GraphEdgeSchema,
45
+ IndexFieldSchema,
46
+ LocationSchema,
47
+ OperationSchema,
48
+ PermissionSchema,
49
+ PositionSchema,
50
+ ProjectModelSchema,
51
+ QueryFilterSchema,
52
+ QueryOrderSchema,
53
+ QueryShapeSchema,
54
+ RoleSchema,
55
+ RuleSchema,
56
+ SeveritySchema,
57
+ VERSION,
58
+ classifyOrigin,
59
+ discover,
60
+ emptyModel,
61
+ extractRules,
62
+ findPublicAllows,
63
+ runChecks,
64
+ scan
65
+ };
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@justmpm/firebase-audit",
3
+ "version": "0.1.0",
4
+ "description": "Auditor de consistência e segurança para projetos Firebase: código + Rules + índices + contrato vs comportamento. Static-first, nunca inventa certeza.",
5
+ "keywords": [
6
+ "firebase",
7
+ "firestore",
8
+ "security-rules",
9
+ "audit",
10
+ "rbac",
11
+ "mcp"
12
+ ],
13
+ "author": "Koda AI Studio <studio.kodaai@gmail.com>",
14
+ "license": "MIT",
15
+ "type": "module",
16
+ "main": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "bin": {
19
+ "firebase-audit": "dist/cli.js"
20
+ },
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js",
25
+ "default": "./dist/index.js"
26
+ }
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "scripts": {
32
+ "build": "tsup src/index.ts src/cli.ts --format esm --dts --clean",
33
+ "dev": "tsup src/index.ts src/cli.ts --format esm --dts --watch",
34
+ "prepublishOnly": "npm run build",
35
+ "typecheck": "tsc --noEmit",
36
+ "test": "vitest run"
37
+ },
38
+ "dependencies": {
39
+ "@justmpm/ai-tool": "^6.1.1",
40
+ "@justmpm/supergrep": "^0.7.0",
41
+ "@modelcontextprotocol/sdk": "^1.25.3",
42
+ "zod": "^4.1.0"
43
+ },
44
+ "devDependencies": {
45
+ "@types/node": "^22.15.21",
46
+ "tsup": "^8.5.0",
47
+ "typescript": "^5.8.3",
48
+ "vitest": "^4.1.0"
49
+ },
50
+ "engines": {
51
+ "node": ">=18.0.0"
52
+ }
53
+ }