@viberaven/cli 1.7.0 → 1.7.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 (35) hide show
  1. package/AGENTS.md +64 -64
  2. package/LICENSE +21 -21
  3. package/README.md +67 -67
  4. package/SECURITY.md +59 -59
  5. package/dist/cli.js +697 -632
  6. package/dist/console/app.js +251 -251
  7. package/dist/console/index.html +46 -46
  8. package/dist/console/styles.css +267 -267
  9. package/dist/github-ci.js +1 -1
  10. package/dist/playbooks/_stack-default.json +11 -11
  11. package/dist/playbooks/auth-supabase.json +31 -31
  12. package/dist/playbooks/stripe.json +66 -66
  13. package/dist/playbooks/supabase.json +51 -51
  14. package/dist/playbooks/vercel.json +42 -42
  15. package/dist/report/assets/provider-authjs.svg +5 -5
  16. package/dist/report/assets/provider-aws.svg +5 -5
  17. package/dist/report/assets/provider-logrocket.svg +4 -4
  18. package/dist/report/report-cli.css +1466 -1466
  19. package/dist/report/station.css +11854 -11854
  20. package/dist/report/station.js +8319 -8319
  21. package/dist/stack/scene.css +522 -522
  22. package/dist/stack/stack.css +1691 -1691
  23. package/dist/vendor/anime.umd.min.js +7 -7
  24. package/package.json +96 -96
  25. package/playbooks/_stack-default.json +11 -11
  26. package/playbooks/auth-supabase.json +31 -31
  27. package/playbooks/stripe.json +66 -66
  28. package/playbooks/supabase.json +51 -51
  29. package/playbooks/vercel.json +42 -42
  30. package/schemas/permissions-matrix.schema.json +90 -90
  31. package/schemas/verification-plan.schema.json +350 -350
  32. package/schemas/verification-report.schema.json +550 -550
  33. package/templates/AGENTS.snippet.md +56 -56
  34. package/templates/CLAUDE.snippet.md +14 -14
  35. package/templates/CURSOR.snippet.md +14 -14
@@ -1,90 +1,90 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://viberaven.dev/schemas/permissions-matrix.v1.json",
4
- "title": "VibeRaven permissions matrix (viberaven.permissions.json)",
5
- "description": "Who may read, add, change and delete rows in each table, written by a person. `viberaven rls-test` checks the migrations against it. Never generate it from the app's own policies. Every cell is about rows owned by `owner`: owner acts on their own row, other_user is a different signed-in user acting on the owner's row, anon is a request with only the public anon key. For insert, the new row names the owner as its owner.",
6
- "type": "object",
7
- "additionalProperties": false,
8
- "required": ["version", "tables"],
9
- "properties": {
10
- "$schema": { "type": "string" },
11
- "version": { "const": 1 },
12
- "description": { "type": "string" },
13
- "defaultGrants": {
14
- "description": "Table grants the test database gives new public tables. supabase-legacy: anon and authenticated get all privileges on new public tables, as on existing Supabase projects (the more exposed assumption). none: no default grants, only what the migrations grant.",
15
- "enum": ["supabase-legacy", "none"],
16
- "default": "supabase-legacy"
17
- },
18
- "tables": {
19
- "type": "object",
20
- "minProperties": 1,
21
- "propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_$]*(\\.[A-Za-z_][A-Za-z0-9_$]*)?$" },
22
- "additionalProperties": { "$ref": "#/$defs/table" }
23
- }
24
- },
25
- "$defs": {
26
- "table": {
27
- "type": "object",
28
- "additionalProperties": false,
29
- "required": ["owner", "expect"],
30
- "properties": {
31
- "description": { "type": "string" },
32
- "owner": {
33
- "description": "How a row's owner is defined. Only `column = auth.uid()` is supported.",
34
- "type": "object",
35
- "additionalProperties": false,
36
- "required": ["column", "is"],
37
- "properties": {
38
- "column": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_$]*$" },
39
- "is": { "const": "auth.uid()" }
40
- }
41
- },
42
- "expect": { "$ref": "#/$defs/expectation" },
43
- "seed": {
44
- "description": "Values for columns the test cannot fill by itself (for example a NOT NULL foreign key). Used for every seeded and inserted row. Leave the owner column out.",
45
- "type": "object",
46
- "propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_$]*$" },
47
- "additionalProperties": { "type": ["string", "number", "boolean", "null"] }
48
- },
49
- "updateColumn": {
50
- "description": "Column the update probe changes. Default: the first plain column that is not the owner column or part of the primary key.",
51
- "type": "string",
52
- "pattern": "^[A-Za-z_][A-Za-z0-9_$]*$"
53
- }
54
- }
55
- },
56
- "expectation": {
57
- "type": "object",
58
- "additionalProperties": false,
59
- "required": ["owner", "other_user", "anon"],
60
- "properties": {
61
- "owner": { "$ref": "#/$defs/actorCells" },
62
- "other_user": { "$ref": "#/$defs/actorCells" },
63
- "anon": { "$ref": "#/$defs/actorCells" },
64
- "service_role": {
65
- "description": "The service role bypasses RLS, so it is never tested.",
66
- "const": "excluded"
67
- }
68
- }
69
- },
70
- "actorCells": {
71
- "type": "object",
72
- "additionalProperties": false,
73
- "required": ["select", "insert", "update", "delete"],
74
- "properties": {
75
- "select": { "$ref": "#/$defs/cell" },
76
- "insert": { "$ref": "#/$defs/cell" },
77
- "update": { "$ref": "#/$defs/cell" },
78
- "delete": { "$ref": "#/$defs/cell" },
79
- "reassign": {
80
- "description": "Optional. Setting the owner column of the owner's row to another user: the owner giving the row away, or another user taking it. Not tested when absent.",
81
- "$ref": "#/$defs/cell"
82
- }
83
- }
84
- },
85
- "cell": {
86
- "description": "allow: the action must work on the owner's row. deny: it must return nothing, change nothing, or be refused with a permission error. skip: not tested (N/A).",
87
- "enum": ["allow", "deny", "skip"]
88
- }
89
- }
90
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://viberaven.dev/schemas/permissions-matrix.v1.json",
4
+ "title": "VibeRaven permissions matrix (viberaven.permissions.json)",
5
+ "description": "Who may read, add, change and delete rows in each table, written by a person. `viberaven rls-test` checks the migrations against it. Never generate it from the app's own policies. Every cell is about rows owned by `owner`: owner acts on their own row, other_user is a different signed-in user acting on the owner's row, anon is a request with only the public anon key. For insert, the new row names the owner as its owner.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["version", "tables"],
9
+ "properties": {
10
+ "$schema": { "type": "string" },
11
+ "version": { "const": 1 },
12
+ "description": { "type": "string" },
13
+ "defaultGrants": {
14
+ "description": "Table grants the test database gives new public tables. supabase-legacy: anon and authenticated get all privileges on new public tables, as on existing Supabase projects (the more exposed assumption). none: no default grants, only what the migrations grant.",
15
+ "enum": ["supabase-legacy", "none"],
16
+ "default": "supabase-legacy"
17
+ },
18
+ "tables": {
19
+ "type": "object",
20
+ "minProperties": 1,
21
+ "propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_$]*(\\.[A-Za-z_][A-Za-z0-9_$]*)?$" },
22
+ "additionalProperties": { "$ref": "#/$defs/table" }
23
+ }
24
+ },
25
+ "$defs": {
26
+ "table": {
27
+ "type": "object",
28
+ "additionalProperties": false,
29
+ "required": ["owner", "expect"],
30
+ "properties": {
31
+ "description": { "type": "string" },
32
+ "owner": {
33
+ "description": "How a row's owner is defined. Only `column = auth.uid()` is supported.",
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": ["column", "is"],
37
+ "properties": {
38
+ "column": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_$]*$" },
39
+ "is": { "const": "auth.uid()" }
40
+ }
41
+ },
42
+ "expect": { "$ref": "#/$defs/expectation" },
43
+ "seed": {
44
+ "description": "Values for columns the test cannot fill by itself (for example a NOT NULL foreign key). Used for every seeded and inserted row. Leave the owner column out.",
45
+ "type": "object",
46
+ "propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_$]*$" },
47
+ "additionalProperties": { "type": ["string", "number", "boolean", "null"] }
48
+ },
49
+ "updateColumn": {
50
+ "description": "Column the update probe changes. Default: the first plain column that is not the owner column or part of the primary key.",
51
+ "type": "string",
52
+ "pattern": "^[A-Za-z_][A-Za-z0-9_$]*$"
53
+ }
54
+ }
55
+ },
56
+ "expectation": {
57
+ "type": "object",
58
+ "additionalProperties": false,
59
+ "required": ["owner", "other_user", "anon"],
60
+ "properties": {
61
+ "owner": { "$ref": "#/$defs/actorCells" },
62
+ "other_user": { "$ref": "#/$defs/actorCells" },
63
+ "anon": { "$ref": "#/$defs/actorCells" },
64
+ "service_role": {
65
+ "description": "The service role bypasses RLS, so it is never tested.",
66
+ "const": "excluded"
67
+ }
68
+ }
69
+ },
70
+ "actorCells": {
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "required": ["select", "insert", "update", "delete"],
74
+ "properties": {
75
+ "select": { "$ref": "#/$defs/cell" },
76
+ "insert": { "$ref": "#/$defs/cell" },
77
+ "update": { "$ref": "#/$defs/cell" },
78
+ "delete": { "$ref": "#/$defs/cell" },
79
+ "reassign": {
80
+ "description": "Optional. Setting the owner column of the owner's row to another user: the owner giving the row away, or another user taking it. Not tested when absent.",
81
+ "$ref": "#/$defs/cell"
82
+ }
83
+ }
84
+ },
85
+ "cell": {
86
+ "description": "allow: the action must work on the owner's row. deny: it must return nothing, change nothing, or be refused with a permission error. skip: not tested (N/A).",
87
+ "enum": ["allow", "deny", "skip"]
88
+ }
89
+ }
90
+ }