@reviewsensei/cli-darwin-arm64 0.1.1 → 0.5.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/bin/_internal/base_library.zip +0 -0
- package/bin/_internal/review_sensei/default_stages/01-default-review.json +1 -1
- package/bin/_internal/review_sensei/schemas/canary-binding.schema.json +22 -0
- package/bin/_internal/review_sensei/schemas/candidate-finding.schema.json +59 -0
- package/bin/_internal/review_sensei/schemas/channel-promotion.schema.json +30 -0
- package/bin/_internal/review_sensei/schemas/compatibility-manifest.schema.json +44 -0
- package/bin/_internal/review_sensei/schemas/conversation-reply.schema.json +6 -1
- package/bin/_internal/review_sensei/schemas/coverage-manifest.schema.json +99 -0
- package/bin/_internal/review_sensei/schemas/evaluation-report.schema.json +17 -0
- package/bin/_internal/review_sensei/schemas/learning-entry.schema.json +11 -1
- package/bin/_internal/review_sensei/schemas/learning-feedback.schema.json +56 -0
- package/bin/_internal/review_sensei/schemas/openrouter-qualification.schema.json +108 -0
- package/bin/_internal/review_sensei/schemas/promotion-record.schema.json +39 -0
- package/bin/_internal/review_sensei/schemas/recovery-artifact.schema.json +26 -0
- package/bin/_internal/review_sensei/schemas/review-comment.schema.json +22 -3
- package/bin/_internal/review_sensei/schemas/review-result.schema.json +106 -3
- package/bin/_internal/review_sensei/schemas/review-stage.schema.json +13 -0
- package/bin/_internal/review_sensei/schemas/run-outcome.schema.json +29 -0
- package/bin/_internal/review_sensei/schemas/stage.schema.json +6 -0
- package/bin/_internal/review_sensei/schemas/verification-result.schema.json +14 -0
- package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.5.0.dist-info}/METADATA +228 -56
- package/bin/_internal/review_sensei-0.5.0.dist-info/RECORD +149 -0
- package/bin/review-sensei +0 -0
- package/package.json +1 -1
- package/bin/_internal/review_sensei-0.1.1.dist-info/RECORD +0 -103
- /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.5.0.dist-info}/INSTALLER +0 -0
- /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.5.0.dist-info}/REQUESTED +0 -0
- /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.5.0.dist-info}/WHEEL +0 -0
- /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.5.0.dist-info}/direct_url.json +0 -0
- /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.5.0.dist-info}/entry_points.txt +0 -0
- /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.5.0.dist-info}/licenses/LICENSE +0 -0
- /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.5.0.dist-info}/top_level.txt +0 -0
|
@@ -12,18 +12,70 @@
|
|
|
12
12
|
"items": {
|
|
13
13
|
"type": "object",
|
|
14
14
|
"additionalProperties": false,
|
|
15
|
-
"required": ["path", "
|
|
15
|
+
"required": ["path", "body"],
|
|
16
16
|
"properties": {
|
|
17
17
|
"path": {"type": "string", "minLength": 1},
|
|
18
18
|
"line": {"type": "integer", "minimum": 1},
|
|
19
19
|
"body": {"type": "string", "minLength": 1},
|
|
20
|
+
"side": {"type": "string", "enum": ["LEFT", "RIGHT", "FILE"]},
|
|
20
21
|
"severity": {"type": "string", "minLength": 1},
|
|
21
22
|
"fix_effort": {"type": "string", "minLength": 1},
|
|
22
|
-
"
|
|
23
|
-
|
|
23
|
+
"blocking": {"type": "boolean"},
|
|
24
|
+
"category": {"type": "string", "minLength": 1},
|
|
25
|
+
"symbol": {"type": "string", "minLength": 1},
|
|
26
|
+
"defect_kind": {"type": "string", "minLength": 1},
|
|
27
|
+
"evidence_id": {"type": "string", "minLength": 1}
|
|
28
|
+
},
|
|
29
|
+
"allOf": [
|
|
30
|
+
{
|
|
31
|
+
"if": {
|
|
32
|
+
"properties": {"side": {"const": "FILE"}},
|
|
33
|
+
"required": ["side"]
|
|
34
|
+
},
|
|
35
|
+
"then": {
|
|
36
|
+
"not": {"required": ["line"]}
|
|
37
|
+
},
|
|
38
|
+
"else": {
|
|
39
|
+
"required": ["line"]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
24
43
|
}
|
|
25
44
|
},
|
|
26
45
|
"provider": {"type": "string", "minLength": 1},
|
|
46
|
+
"review_status": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": ["complete", "partial", "incomplete", "summary-only"]
|
|
49
|
+
},
|
|
50
|
+
"evidence_policy": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"enum": ["legacy", "confirmed"]
|
|
53
|
+
},
|
|
54
|
+
"coverage_mode": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": ["full", "incremental", "fallback-full"]
|
|
57
|
+
},
|
|
58
|
+
"finding_lifecycles": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"required": ["fingerprint", "state"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"fingerprint": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
68
|
+
},
|
|
69
|
+
"state": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": ["new", "still-present", "fixed", "outdated", "uncertain"]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"coverage": {
|
|
77
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/coverage-manifest.schema.json"
|
|
78
|
+
},
|
|
27
79
|
"model": {
|
|
28
80
|
"anyOf": [
|
|
29
81
|
{"type": "string", "minLength": 1},
|
|
@@ -48,6 +100,57 @@
|
|
|
48
100
|
"category": {"type": "string", "minLength": 1}
|
|
49
101
|
}
|
|
50
102
|
}
|
|
103
|
+
},
|
|
104
|
+
"source_context": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": [
|
|
108
|
+
"enabled",
|
|
109
|
+
"complete",
|
|
110
|
+
"snapshot",
|
|
111
|
+
"languages",
|
|
112
|
+
"excerpt_count",
|
|
113
|
+
"outcomes"
|
|
114
|
+
],
|
|
115
|
+
"properties": {
|
|
116
|
+
"enabled": {"type": "boolean"},
|
|
117
|
+
"complete": {"type": "boolean"},
|
|
118
|
+
"snapshot": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"required": ["revision", "kind"],
|
|
122
|
+
"properties": {
|
|
123
|
+
"revision": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
126
|
+
},
|
|
127
|
+
"kind": {"type": "string", "const": "base"}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"languages": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"minItems": 1,
|
|
133
|
+
"maxItems": 1,
|
|
134
|
+
"items": {"type": "string", "const": "python"}
|
|
135
|
+
},
|
|
136
|
+
"excerpt_count": {"type": "integer", "minimum": 0},
|
|
137
|
+
"outcomes": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"items": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": ["path", "status"],
|
|
143
|
+
"properties": {
|
|
144
|
+
"path": {"type": "string", "minLength": 1},
|
|
145
|
+
"status": {"type": "string", "minLength": 1}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"untrusted_head_sha": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
51
154
|
}
|
|
52
155
|
}
|
|
53
156
|
}
|
|
@@ -39,6 +39,13 @@
|
|
|
39
39
|
"type": "string",
|
|
40
40
|
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$"
|
|
41
41
|
}
|
|
42
|
+
},
|
|
43
|
+
"provider_profile": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1,
|
|
46
|
+
"maxLength": 64,
|
|
47
|
+
"pattern": "^(?:[a-z0-9]+(?:-[a-z0-9]+)*|local/private)$",
|
|
48
|
+
"description": "Named provider profile for this stage. Accepts canonical names and the local/private alias. Local/private runs cannot select a remote profile."
|
|
42
49
|
}
|
|
43
50
|
},
|
|
44
51
|
"not": {
|
|
@@ -149,6 +156,12 @@
|
|
|
149
156
|
"category_ids": ["correctness", "security"],
|
|
150
157
|
"outputs": ["comments"],
|
|
151
158
|
"prompt_template": "Review categories:\n{review_categories}\n{diff}"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "Fast comments stage",
|
|
162
|
+
"provider_profile": "fast-triage",
|
|
163
|
+
"outputs": ["comments"],
|
|
164
|
+
"prompt_template": "Return JSON comments for {diff}"
|
|
152
165
|
}
|
|
153
166
|
]
|
|
154
167
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/run-outcome.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schema_version", "status", "stage_summary", "provider_calls", "retry_attempts", "prompt_bytes", "response_bytes", "elapsed_ms", "diagnostic"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema_version": {"const": "1.0"},
|
|
9
|
+
"status": {"enum": ["reviewed", "partial", "skipped_stale", "skipped_policy", "provider_failed", "budget_exhausted", "publication_failed", "already_published"]},
|
|
10
|
+
"repository": {"type": ["string", "null"], "maxLength": 256},
|
|
11
|
+
"pull_request_number": {"type": ["integer", "null"], "minimum": 1},
|
|
12
|
+
"base_sha": {"type": ["string", "null"], "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"},
|
|
13
|
+
"head_sha": {"type": ["string", "null"], "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"},
|
|
14
|
+
"stage_summary": {
|
|
15
|
+
"description": "Structural bounds only; runtime validation additionally requires printable Unicode keys and values without control characters.",
|
|
16
|
+
"type": "object",
|
|
17
|
+
"maxProperties": 64,
|
|
18
|
+
"propertyNames": {"type": "string", "minLength": 1, "maxLength": 128},
|
|
19
|
+
"additionalProperties": {"type": "string", "minLength": 1, "maxLength": 128}
|
|
20
|
+
},
|
|
21
|
+
"provider_calls": {"type": "integer", "minimum": 0},
|
|
22
|
+
"retry_attempts": {"type": "integer", "minimum": 0},
|
|
23
|
+
"structural_retries": {"type": "integer", "minimum": 0},
|
|
24
|
+
"prompt_bytes": {"type": "integer", "minimum": 0},
|
|
25
|
+
"response_bytes": {"type": "integer", "minimum": 0},
|
|
26
|
+
"elapsed_ms": {"type": "integer", "minimum": 0},
|
|
27
|
+
"diagnostic": {"type": ["string", "null"], "maxLength": 512}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
"type": "array",
|
|
23
23
|
"minItems": 1,
|
|
24
24
|
"items": {"type": "string", "minLength": 1}
|
|
25
|
+
},
|
|
26
|
+
"provider_profile": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 64,
|
|
30
|
+
"pattern": "^(?:[a-z0-9]+(?:-[a-z0-9]+)*|local/private)$"
|
|
25
31
|
}
|
|
26
32
|
},
|
|
27
33
|
"$defs": {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/verification-result.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schema_version", "disposition", "reasons", "evidence_valid", "actionable"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema_version": {"const": "1.0"},
|
|
9
|
+
"disposition": {"enum": ["confirmed", "rejected", "insufficient-evidence"]},
|
|
10
|
+
"reasons": {"type": "array", "maxItems": 16, "items": {"type": "string", "maxLength": 256}},
|
|
11
|
+
"evidence_valid": {"type": "boolean"},
|
|
12
|
+
"actionable": {"type": "boolean"}
|
|
13
|
+
}
|
|
14
|
+
}
|