@reneturcios/greenlight 0.7.0 → 0.8.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/types.d.ts CHANGED
@@ -8,6 +8,28 @@ export interface CommentSignal {
8
8
  author: string;
9
9
  body: string;
10
10
  createdAt: string;
11
+ /** GitHub comment id, when the fetch layer captured it. Absent on older fixtures. */
12
+ id?: number;
13
+ }
14
+ /**
15
+ * One AI-classified claim-intent signal from a comment. The optional
16
+ * Fireworks layer returns these; the deterministic engine never invents
17
+ * them, and they can only ever downgrade GO to RISKY (flag "llm-claim"),
18
+ * never produce TAKEN or override GATED.
19
+ */
20
+ export interface LLMClaimFlag {
21
+ /** GitHub comment id, or a stable hash when the fixture had no id. */
22
+ commentId: string;
23
+ author: string;
24
+ createdAt: string;
25
+ /** Exact substring of the comment body; results without one are dropped. */
26
+ quote: string;
27
+ /** Model-reported confidence, 0 to 1. */
28
+ confidence: number;
29
+ /** Short model-supplied reason for the classification. */
30
+ reason: string;
31
+ /** Model id that produced the flag (env GREENLIGHT_LLM_MODEL). */
32
+ model: string;
11
33
  }
12
34
  /** A pull request that references the issue (linked, closes, or mentions). */
13
35
  export interface LinkedPR {
@@ -155,6 +177,8 @@ export interface VerdictResult {
155
177
  claims: ClaimSignal[];
156
178
  gates: Gate[];
157
179
  flags: string[];
180
+ /** AI claim-intent flags (optional layer, off by default). Absent when the layer is disabled. */
181
+ llm_claims?: LLMClaimFlag[];
158
182
  }
159
183
  /**
160
184
  * Repo conventions learned during prep: the local rituals a contributor
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "test": "tsx --test test/*.test.ts"
26
26
  },
27
27
  "type": "module",
28
- "version": "0.7.0",
28
+ "version": "0.8.0",
29
29
  "mcpName": "io.github.CloudCorpRecords/greenlight",
30
30
  "publishConfig": {
31
31
  "access": "public"
package/server.json CHANGED
@@ -6,13 +6,13 @@
6
6
  "url": "https://github.com/CloudCorpRecords/greenlight",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.7.0",
9
+ "version": "0.8.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "registryBaseUrl": "https://registry.npmjs.org",
14
14
  "identifier": "@reneturcios/greenlight",
15
- "version": "0.7.0",
15
+ "version": "0.8.0",
16
16
  "runtimeHint": "npx",
17
17
  "packageArguments": [
18
18
  {