@vibecheckai/cli 3.0.4 → 3.0.7
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/bin/dev/run-v2-torture.js +30 -0
- package/bin/runners/context/index.js +1 -1
- package/bin/runners/lib/analyzers.js +38 -0
- package/bin/runners/lib/assets/vibecheck-logo.png +0 -0
- package/bin/runners/lib/contracts/auth-contract.js +8 -0
- package/bin/runners/lib/contracts/env-contract.js +3 -0
- package/bin/runners/lib/contracts/external-contract.js +10 -2
- package/bin/runners/lib/contracts/route-contract.js +7 -0
- package/bin/runners/lib/contracts.js +804 -0
- package/bin/runners/lib/detectors-v2.js +703 -0
- package/bin/runners/lib/drift.js +425 -0
- package/bin/runners/lib/entitlements-v2.js +3 -1
- package/bin/runners/lib/entitlements.js +11 -3
- package/bin/runners/lib/env-resolver.js +417 -0
- package/bin/runners/lib/extractors/client-calls.js +990 -0
- package/bin/runners/lib/extractors/fastify-route-dump.js +573 -0
- package/bin/runners/lib/extractors/fastify-routes.js +426 -0
- package/bin/runners/lib/extractors/index.js +363 -0
- package/bin/runners/lib/extractors/next-routes.js +524 -0
- package/bin/runners/lib/extractors/proof-graph.js +431 -0
- package/bin/runners/lib/extractors/route-matcher.js +451 -0
- package/bin/runners/lib/extractors/truthpack-v2.js +377 -0
- package/bin/runners/lib/extractors/ui-bindings.js +547 -0
- package/bin/runners/lib/findings-schema.js +281 -0
- package/bin/runners/lib/html-report.js +650 -0
- package/bin/runners/lib/missions/templates.js +45 -0
- package/bin/runners/lib/policy.js +295 -0
- package/bin/runners/lib/reality/correlation-detectors.js +359 -0
- package/bin/runners/lib/reality/index.js +318 -0
- package/bin/runners/lib/reality/request-hashing.js +416 -0
- package/bin/runners/lib/reality/request-mapper.js +453 -0
- package/bin/runners/lib/reality/safety-rails.js +463 -0
- package/bin/runners/lib/reality/semantic-snapshot.js +408 -0
- package/bin/runners/lib/reality/toast-detector.js +393 -0
- package/bin/runners/lib/report-html.js +5 -0
- package/bin/runners/lib/report-templates.js +5 -0
- package/bin/runners/lib/report.js +135 -0
- package/bin/runners/lib/route-truth.js +10 -10
- package/bin/runners/lib/schema-validator.js +350 -0
- package/bin/runners/lib/schemas/contracts.schema.json +160 -0
- package/bin/runners/lib/schemas/finding.schema.json +100 -0
- package/bin/runners/lib/schemas/mission-pack.schema.json +206 -0
- package/bin/runners/lib/schemas/proof-graph.schema.json +176 -0
- package/bin/runners/lib/schemas/reality-report.schema.json +162 -0
- package/bin/runners/lib/schemas/share-pack.schema.json +180 -0
- package/bin/runners/lib/schemas/ship-report.schema.json +117 -0
- package/bin/runners/lib/schemas/truthpack-v2.schema.json +303 -0
- package/bin/runners/lib/schemas/validator.js +438 -0
- package/bin/runners/lib/ui.js +562 -0
- package/bin/runners/lib/verdict-engine.js +628 -0
- package/bin/runners/runAIAgent.js +228 -1
- package/bin/runners/runBadge.js +181 -1
- package/bin/runners/runCtx.js +7 -2
- package/bin/runners/runCtxDiff.js +301 -0
- package/bin/runners/runGuard.js +168 -0
- package/bin/runners/runInitGha.js +78 -15
- package/bin/runners/runLabs.js +341 -0
- package/bin/runners/runLaunch.js +180 -1
- package/bin/runners/runMdc.js +203 -1
- package/bin/runners/runProof.zip +0 -0
- package/bin/runners/runProve.js +23 -0
- package/bin/runners/runReplay.js +114 -84
- package/bin/runners/runScan.js +111 -32
- package/bin/runners/runShip.js +23 -2
- package/bin/runners/runTruthpack.js +9 -7
- package/bin/runners/runValidate.js +161 -1
- package/bin/vibecheck.js +416 -770
- package/mcp-server/.guardrail/audit/audit.log.jsonl +2 -0
- package/mcp-server/.specs/architecture.mdc +90 -0
- package/mcp-server/.specs/security.mdc +30 -0
- package/mcp-server/README.md +252 -0
- package/mcp-server/agent-checkpoint.js +364 -0
- package/mcp-server/architect-tools.js +707 -0
- package/mcp-server/audit-mcp.js +206 -0
- package/mcp-server/codebase-architect-tools.js +838 -0
- package/mcp-server/consolidated-tools.js +804 -0
- package/mcp-server/hygiene-tools.js +428 -0
- package/mcp-server/index-v1.js +698 -0
- package/mcp-server/index.js +2092 -0
- package/mcp-server/index.old.js +4137 -0
- package/mcp-server/intelligence-tools.js +664 -0
- package/mcp-server/intent-drift-tools.js +873 -0
- package/mcp-server/mdc-generator.js +298 -0
- package/mcp-server/package-lock.json +165 -0
- package/mcp-server/package.json +47 -0
- package/mcp-server/premium-tools.js +1275 -0
- package/mcp-server/test-mcp.js +108 -0
- package/mcp-server/test-tools.js +36 -0
- package/mcp-server/tier-auth.js +147 -0
- package/mcp-server/tools/index.js +72 -0
- package/mcp-server/tools-reorganized.ts +244 -0
- package/mcp-server/truth-context.js +581 -0
- package/mcp-server/truth-firewall-tools.js +1500 -0
- package/mcp-server/vibecheck-2.0-tools.js +748 -0
- package/mcp-server/vibecheck-tools.js +1075 -0
- package/package.json +10 -8
- package/bin/guardrail.js +0 -834
- package/bin/runners/runAudit.js +0 -2
- package/bin/runners/runAutopilot.js +0 -2
- package/bin/runners/runCertify.js +0 -2
- package/bin/runners/runDashboard.js +0 -10
- package/bin/runners/runEnhancedShip.js +0 -2
- package/bin/runners/runFixPacks.js +0 -2
- package/bin/runners/runNaturalLanguage.js +0 -3
- package/bin/runners/runProof.js +0 -2
- package/bin/runners/runRealitySniff.js +0 -2
- package/bin/runners/runUpgrade.js +0 -2
- package/bin/runners/runVerifyAgentOutput.js +0 -2
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://vibecheck.dev/schemas/share-pack.schema.json",
|
|
4
|
+
"title": "Vibecheck Share Pack",
|
|
5
|
+
"description": "Sanitized bundle for sharing analysis results without sensitive data",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["specVersion", "generatedAt", "fingerprint", "redaction", "report"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"specVersion": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "2.0"
|
|
12
|
+
},
|
|
13
|
+
"generatedAt": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "date-time"
|
|
16
|
+
},
|
|
17
|
+
"fingerprint": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
20
|
+
"description": "Hash of share pack contents"
|
|
21
|
+
},
|
|
22
|
+
"projectName": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Sanitized project name (no paths)"
|
|
25
|
+
},
|
|
26
|
+
"redaction": {
|
|
27
|
+
"$ref": "#/$defs/redactionMetadata"
|
|
28
|
+
},
|
|
29
|
+
"report": {
|
|
30
|
+
"$ref": "#/$defs/sanitizedReport"
|
|
31
|
+
},
|
|
32
|
+
"proofGraph": {
|
|
33
|
+
"$ref": "#/$defs/sanitizedProofGraph"
|
|
34
|
+
},
|
|
35
|
+
"missions": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": { "$ref": "#/$defs/sanitizedMission" }
|
|
38
|
+
},
|
|
39
|
+
"artifacts": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": { "$ref": "#/$defs/artifact" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"$defs": {
|
|
45
|
+
"redactionMetadata": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": ["level", "redactedFields", "originalFingerprints"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"level": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": ["minimal", "standard", "paranoid"],
|
|
52
|
+
"description": "Redaction level applied"
|
|
53
|
+
},
|
|
54
|
+
"redactedFields": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "type": "string" },
|
|
57
|
+
"description": "List of field paths that were redacted"
|
|
58
|
+
},
|
|
59
|
+
"pathsRedacted": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "Whether file paths were anonymized"
|
|
62
|
+
},
|
|
63
|
+
"envVarsRedacted": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "Whether env var names were replaced"
|
|
66
|
+
},
|
|
67
|
+
"codeSnippetsRedacted": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "Whether code snippets were removed"
|
|
70
|
+
},
|
|
71
|
+
"originalFingerprints": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"description": "Original fingerprints before redaction for verification",
|
|
74
|
+
"properties": {
|
|
75
|
+
"truthpack": { "type": "string" },
|
|
76
|
+
"contracts": { "type": "string" },
|
|
77
|
+
"shipReport": { "type": "string" }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"sanitizedReport": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"verdict": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"status": { "type": "string", "enum": ["SHIP", "WARN", "BLOCK"] },
|
|
89
|
+
"exitCode": { "type": "integer" },
|
|
90
|
+
"reason": { "type": "string" }
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"stats": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"findingsTotal": { "type": "integer" },
|
|
97
|
+
"bySeverity": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": { "type": "integer" }
|
|
100
|
+
},
|
|
101
|
+
"byCategory": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": { "type": "integer" }
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"coverage": {
|
|
108
|
+
"$ref": "#/$defs/coverageMetrics"
|
|
109
|
+
},
|
|
110
|
+
"findings": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": { "$ref": "#/$defs/sanitizedFinding" }
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"sanitizedFinding": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"id": { "type": "string" },
|
|
120
|
+
"detectorId": { "type": "string" },
|
|
121
|
+
"severity": { "type": "string" },
|
|
122
|
+
"category": { "type": "string" },
|
|
123
|
+
"title": { "type": "string" },
|
|
124
|
+
"confidence": { "type": "string" },
|
|
125
|
+
"fileRef": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "Anonymized file reference (e.g., 'file_001')"
|
|
128
|
+
},
|
|
129
|
+
"lineRange": { "type": "string" }
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"sanitizedProofGraph": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"nodeCount": { "type": "integer" },
|
|
136
|
+
"edgeCount": { "type": "integer" },
|
|
137
|
+
"coverage": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"uiBindingsLinked": { "type": "number" },
|
|
141
|
+
"clientCallsLinked": { "type": "number" },
|
|
142
|
+
"serverRoutesLinked": { "type": "number" }
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"gapCount": { "type": "integer" }
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"sanitizedMission": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"id": { "type": "string" },
|
|
152
|
+
"type": { "type": "string" },
|
|
153
|
+
"priority": { "type": "string" },
|
|
154
|
+
"status": { "type": "string" },
|
|
155
|
+
"title": { "type": "string" }
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"coverageMetrics": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"properties": {
|
|
161
|
+
"clientCallsMappedPct": { "type": "number" },
|
|
162
|
+
"serverRoutesCoveredPct": { "type": "number" },
|
|
163
|
+
"uiActionsVerifiedPct": { "type": "number" },
|
|
164
|
+
"authVerifiedPct": { "type": ["number", "null"] }
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"artifact": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"required": ["name", "sha256"],
|
|
170
|
+
"properties": {
|
|
171
|
+
"name": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"description": "Artifact type name (not path)"
|
|
174
|
+
},
|
|
175
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
176
|
+
"included": { "type": "boolean" }
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://vibecheck.dev/schemas/ship-report.schema.json",
|
|
4
|
+
"title": "Vibecheck Ship Report",
|
|
5
|
+
"description": "Final ship verdict with findings and proof chain",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["meta", "verdict", "findings", "stats"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"meta": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["version", "generatedAt", "repoRoot"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"version": { "type": "string", "const": "2.0.0" },
|
|
14
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
15
|
+
"repoRoot": { "type": "string" },
|
|
16
|
+
"commit": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"sha": { "type": "string" },
|
|
20
|
+
"branch": { "type": "string" },
|
|
21
|
+
"message": { "type": "string" }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"durationMs": { "type": "integer" },
|
|
25
|
+
"truthpackHash": { "type": "string" }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"verdict": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["status", "exitCode"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"status": { "type": "string", "enum": ["SHIP", "WARN", "BLOCK"] },
|
|
33
|
+
"exitCode": { "type": "integer", "enum": [0, 1, 2] },
|
|
34
|
+
"summary": { "type": "string" },
|
|
35
|
+
"blockReasons": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": { "type": "string" }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"findings": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": { "$ref": "finding.schema.json" }
|
|
44
|
+
},
|
|
45
|
+
"stats": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"total": { "type": "integer" },
|
|
49
|
+
"byCategory": { "type": "object", "additionalProperties": { "type": "integer" } },
|
|
50
|
+
"bySeverity": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"BLOCK": { "type": "integer" },
|
|
54
|
+
"WARN": { "type": "integer" },
|
|
55
|
+
"INFO": { "type": "integer" }
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"byScope": { "type": "object", "additionalProperties": { "type": "integer" } }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"proofChain": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "Summary proof chain for top blockers",
|
|
64
|
+
"properties": {
|
|
65
|
+
"topBlockers": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"maxItems": 5,
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"findingId": { "type": "string" },
|
|
72
|
+
"chain": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"nodeType": { "type": "string" },
|
|
78
|
+
"label": { "type": "string" },
|
|
79
|
+
"evidence": { "type": "string" }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"artifacts": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"truthpack": { "type": "string" },
|
|
92
|
+
"realityReport": { "type": "string" },
|
|
93
|
+
"proofGraph": { "type": "string" },
|
|
94
|
+
"missionPack": { "type": "string" }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"runtime": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"description": "Runtime verification summary if available",
|
|
100
|
+
"properties": {
|
|
101
|
+
"ran": { "type": "boolean" },
|
|
102
|
+
"url": { "type": "string" },
|
|
103
|
+
"actionsCount": { "type": "integer" },
|
|
104
|
+
"requestsCount": { "type": "integer" },
|
|
105
|
+
"toastsDetected": { "type": "integer" },
|
|
106
|
+
"coverage": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"properties": {
|
|
109
|
+
"routesHit": { "type": "integer" },
|
|
110
|
+
"routesTotal": { "type": "integer" },
|
|
111
|
+
"percent": { "type": "number" }
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://vibecheck.dev/schemas/truthpack-v2.schema.json",
|
|
4
|
+
"title": "Vibecheck Truthpack v2",
|
|
5
|
+
"description": "Complete extracted truth from static analysis",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["specVersion", "generatedAt", "projectRoot", "fingerprint", "routes", "clientCalls", "uiBindings"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"specVersion": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "2.0",
|
|
12
|
+
"description": "Schema version"
|
|
13
|
+
},
|
|
14
|
+
"generatedAt": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "date-time",
|
|
17
|
+
"description": "ISO timestamp of generation"
|
|
18
|
+
},
|
|
19
|
+
"projectRoot": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Absolute path to project root"
|
|
22
|
+
},
|
|
23
|
+
"fingerprint": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^sha256:[a-f0-9]{64}$",
|
|
26
|
+
"description": "Hash of truthpack contents for drift detection"
|
|
27
|
+
},
|
|
28
|
+
"stack": {
|
|
29
|
+
"$ref": "#/$defs/stackDetection"
|
|
30
|
+
},
|
|
31
|
+
"routes": {
|
|
32
|
+
"$ref": "#/$defs/routesTruth"
|
|
33
|
+
},
|
|
34
|
+
"clientCalls": {
|
|
35
|
+
"$ref": "#/$defs/clientCallsTruth"
|
|
36
|
+
},
|
|
37
|
+
"uiBindings": {
|
|
38
|
+
"$ref": "#/$defs/uiBindingsTruth"
|
|
39
|
+
},
|
|
40
|
+
"env": {
|
|
41
|
+
"$ref": "#/$defs/envTruth"
|
|
42
|
+
},
|
|
43
|
+
"auth": {
|
|
44
|
+
"$ref": "#/$defs/authTruth"
|
|
45
|
+
},
|
|
46
|
+
"billing": {
|
|
47
|
+
"$ref": "#/$defs/billingTruth"
|
|
48
|
+
},
|
|
49
|
+
"proofGraph": {
|
|
50
|
+
"$ref": "#/$defs/proofGraphRef"
|
|
51
|
+
},
|
|
52
|
+
"artifacts": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": { "$ref": "#/$defs/artifact" },
|
|
55
|
+
"description": "Generated artifact paths and hashes"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"$defs": {
|
|
59
|
+
"stackDetection": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"next": { "$ref": "#/$defs/frameworkInfo" },
|
|
63
|
+
"fastify": { "$ref": "#/$defs/frameworkInfo" },
|
|
64
|
+
"express": { "$ref": "#/$defs/frameworkInfo" },
|
|
65
|
+
"trpc": { "$ref": "#/$defs/frameworkInfo" },
|
|
66
|
+
"graphql": { "$ref": "#/$defs/frameworkInfo" }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"frameworkInfo": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"present": { "type": "boolean" },
|
|
73
|
+
"version": { "type": ["string", "null"] },
|
|
74
|
+
"entryFile": { "type": ["string", "null"] },
|
|
75
|
+
"confidence": { "type": "string", "enum": ["high", "medium", "low"] }
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"routesTruth": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"required": ["server", "count"],
|
|
81
|
+
"properties": {
|
|
82
|
+
"server": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": { "$ref": "#/$defs/serverRoute" }
|
|
85
|
+
},
|
|
86
|
+
"count": { "type": "integer", "minimum": 0 },
|
|
87
|
+
"byFramework": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": { "type": "integer" }
|
|
90
|
+
},
|
|
91
|
+
"runtimeOverrides": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": { "$ref": "#/$defs/serverRoute" },
|
|
94
|
+
"description": "Routes from runtime dump (higher confidence)"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"serverRoute": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"required": ["id", "method", "path", "file", "confidence"],
|
|
101
|
+
"properties": {
|
|
102
|
+
"id": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"pattern": "^R_[A-Z]+_[A-F0-9]+$"
|
|
105
|
+
},
|
|
106
|
+
"method": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "ALL"]
|
|
109
|
+
},
|
|
110
|
+
"path": { "type": "string" },
|
|
111
|
+
"canonicalPath": { "type": "string" },
|
|
112
|
+
"file": { "type": "string" },
|
|
113
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
114
|
+
"framework": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"enum": ["next-app", "next-pages", "fastify", "express", "trpc", "graphql"]
|
|
117
|
+
},
|
|
118
|
+
"confidence": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"enum": ["high", "medium", "low"]
|
|
121
|
+
},
|
|
122
|
+
"authRequired": { "type": "boolean" },
|
|
123
|
+
"source": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"enum": ["static", "runtime"],
|
|
126
|
+
"default": "static"
|
|
127
|
+
},
|
|
128
|
+
"evidence": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": { "type": "object" }
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"clientCallsTruth": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"required": ["calls", "count"],
|
|
137
|
+
"properties": {
|
|
138
|
+
"calls": {
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": { "$ref": "#/$defs/clientCall" }
|
|
141
|
+
},
|
|
142
|
+
"count": { "type": "integer", "minimum": 0 },
|
|
143
|
+
"byKind": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": { "type": "integer" }
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"clientCall": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"required": ["id", "kind", "file", "confidence"],
|
|
152
|
+
"properties": {
|
|
153
|
+
"id": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"pattern": "^C_[A-Z]+_[A-F0-9]+$"
|
|
156
|
+
},
|
|
157
|
+
"kind": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"enum": ["http", "trpc", "graphql", "server-action"]
|
|
160
|
+
},
|
|
161
|
+
"method": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]
|
|
164
|
+
},
|
|
165
|
+
"urlTemplate": { "type": ["string", "null"] },
|
|
166
|
+
"canonicalPath": { "type": ["string", "null"] },
|
|
167
|
+
"file": { "type": "string" },
|
|
168
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
169
|
+
"confidence": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"enum": ["high", "medium", "low"]
|
|
172
|
+
},
|
|
173
|
+
"trpcProcedure": { "type": ["string", "null"] },
|
|
174
|
+
"graphqlOperation": { "type": ["string", "null"] },
|
|
175
|
+
"serverActionId": { "type": ["string", "null"] },
|
|
176
|
+
"linkedBindingId": { "type": ["string", "null"] },
|
|
177
|
+
"evidence": {
|
|
178
|
+
"type": "array",
|
|
179
|
+
"items": { "type": "object" }
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"uiBindingsTruth": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"required": ["bindings", "count"],
|
|
186
|
+
"properties": {
|
|
187
|
+
"bindings": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"items": { "$ref": "#/$defs/uiBinding" }
|
|
190
|
+
},
|
|
191
|
+
"count": { "type": "integer", "minimum": 0 },
|
|
192
|
+
"byEvent": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"additionalProperties": { "type": "integer" }
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"uiBinding": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"required": ["id", "event", "file", "line"],
|
|
201
|
+
"properties": {
|
|
202
|
+
"id": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"pattern": "^UIB_[A-F0-9]+$"
|
|
205
|
+
},
|
|
206
|
+
"event": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"enum": ["onClick", "onSubmit", "onChange", "onBlur", "formAction", "serverAction"]
|
|
209
|
+
},
|
|
210
|
+
"element": { "type": "string" },
|
|
211
|
+
"file": { "type": "string" },
|
|
212
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
213
|
+
"handlerName": { "type": ["string", "null"] },
|
|
214
|
+
"labelHint": { "type": ["string", "null"] },
|
|
215
|
+
"selectorHint": { "type": ["string", "null"] },
|
|
216
|
+
"linkedClientCallId": { "type": ["string", "null"] },
|
|
217
|
+
"hasTransition": { "type": "boolean" },
|
|
218
|
+
"hasOptimistic": { "type": "boolean" }
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"envTruth": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"properties": {
|
|
224
|
+
"vars": {
|
|
225
|
+
"type": "array",
|
|
226
|
+
"items": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"required": ["name"],
|
|
229
|
+
"properties": {
|
|
230
|
+
"name": { "type": "string" },
|
|
231
|
+
"usageCount": { "type": "integer" },
|
|
232
|
+
"required": { "type": "boolean" },
|
|
233
|
+
"files": { "type": "array", "items": { "type": "string" } },
|
|
234
|
+
"isPublic": { "type": "boolean" }
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"declared": {
|
|
239
|
+
"type": "array",
|
|
240
|
+
"items": { "type": "string" }
|
|
241
|
+
},
|
|
242
|
+
"baseUrl": { "type": ["string", "null"] },
|
|
243
|
+
"baseUrlVar": { "type": ["string", "null"] }
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"authTruth": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"provider": {
|
|
250
|
+
"type": ["string", "null"],
|
|
251
|
+
"enum": [null, "next-auth", "clerk", "supabase", "custom"]
|
|
252
|
+
},
|
|
253
|
+
"protectedPatterns": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": { "type": "string" }
|
|
256
|
+
},
|
|
257
|
+
"publicPatterns": {
|
|
258
|
+
"type": "array",
|
|
259
|
+
"items": { "type": "string" }
|
|
260
|
+
},
|
|
261
|
+
"middlewareFile": { "type": ["string", "null"] }
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"billingTruth": {
|
|
265
|
+
"type": "object",
|
|
266
|
+
"properties": {
|
|
267
|
+
"provider": {
|
|
268
|
+
"type": ["string", "null"],
|
|
269
|
+
"enum": [null, "stripe", "paddle", "lemon-squeezy"]
|
|
270
|
+
},
|
|
271
|
+
"webhookPath": { "type": ["string", "null"] },
|
|
272
|
+
"products": {
|
|
273
|
+
"type": "array",
|
|
274
|
+
"items": { "type": "string" }
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"proofGraphRef": {
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"nodeCount": { "type": "integer" },
|
|
282
|
+
"edgeCount": { "type": "integer" },
|
|
283
|
+
"coverage": {
|
|
284
|
+
"type": "object",
|
|
285
|
+
"properties": {
|
|
286
|
+
"serverRoutesLinked": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
287
|
+
"clientCallsLinked": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
288
|
+
"uiBindingsLinked": { "type": "number", "minimum": 0, "maximum": 1 }
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"artifact": {
|
|
294
|
+
"type": "object",
|
|
295
|
+
"required": ["path", "sha256"],
|
|
296
|
+
"properties": {
|
|
297
|
+
"path": { "type": "string" },
|
|
298
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
299
|
+
"size": { "type": "integer" }
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|