@thinkai/tai-api-contract 2.79.0-pr.976.2077d2a6 → 2.80.0-pr.976.4c124f8a

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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.79.0
4
+ version: 2.80.0
5
5
  description: >
6
6
  Contract surface for the AI Driven SDLC backend used by ThinkAI.
7
7
  Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
@@ -3369,6 +3369,14 @@ paths:
3369
3369
  schema:
3370
3370
  type: string
3371
3371
  format: uuid
3372
+ - name: source
3373
+ in: query
3374
+ required: false
3375
+ description: >
3376
+ Optional filter for findings by source. Omit to return both
3377
+ deterministic and llm findings.
3378
+ schema:
3379
+ $ref: "#/components/schemas/CodeInsightsFindingSource"
3372
3380
  responses:
3373
3381
  "200":
3374
3382
  description: Repo code-quality detail payload
@@ -17273,15 +17281,18 @@ components:
17273
17281
 
17274
17282
  CodeInsightsFindingCategory:
17275
17283
  type: string
17276
- enum: [duplication, complexity, proliferation, coverage]
17284
+ enum: [duplication, complexity, proliferation, coverage, anemic_domain, context_leak, tx_boundary, error_handling]
17277
17285
  description: >
17278
- v1 deterministic categories. The v2 LLM pass adds `anemic_domain`,
17279
- `context_leak`, `tx_boundary`, `error_handling` (contract bump).
17286
+ Deterministic categories (`duplication`, `complexity`, `proliferation`,
17287
+ `coverage`) plus LLM semantic detectors (`anemic_domain`, `context_leak`,
17288
+ `tx_boundary`, `error_handling`).
17280
17289
 
17281
17290
  CodeInsightsFindingSource:
17282
17291
  type: string
17283
- enum: [deterministic]
17284
- description: v1 ships deterministic findings only; the v2 LLM pass adds `llm`.
17292
+ enum: [deterministic, llm]
17293
+ description: >
17294
+ `deterministic` = measured Code Insights rules; `llm` = AI-detected
17295
+ semantic findings (separate agent pass; never blended in scoring).
17285
17296
 
17286
17297
  CodeInsightsMetricsDto:
17287
17298
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.79.0-pr.976.2077d2a6",
3
+ "version": "2.80.0-pr.976.4c124f8a",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -7598,15 +7598,15 @@ export interface components {
7598
7598
  /** @enum {string} */
7599
7599
  CodeInsightsFindingSeverity: "critical" | "high" | "medium" | "low";
7600
7600
  /**
7601
- * @description v1 deterministic categories. The v2 LLM pass adds `anemic_domain`, `context_leak`, `tx_boundary`, `error_handling` (contract bump).
7601
+ * @description Deterministic categories (`duplication`, `complexity`, `proliferation`, `coverage`) plus LLM semantic detectors (`anemic_domain`, `context_leak`, `tx_boundary`, `error_handling`).
7602
7602
  * @enum {string}
7603
7603
  */
7604
- CodeInsightsFindingCategory: "duplication" | "complexity" | "proliferation" | "coverage";
7604
+ CodeInsightsFindingCategory: "duplication" | "complexity" | "proliferation" | "coverage" | "anemic_domain" | "context_leak" | "tx_boundary" | "error_handling";
7605
7605
  /**
7606
- * @description v1 ships deterministic findings only; the v2 LLM pass adds `llm`.
7606
+ * @description `deterministic` = measured Code Insights rules; `llm` = AI-detected semantic findings (separate agent pass; never blended in scoring).
7607
7607
  * @enum {string}
7608
7608
  */
7609
- CodeInsightsFindingSource: "deterministic";
7609
+ CodeInsightsFindingSource: "deterministic" | "llm";
7610
7610
  CodeInsightsMetricsDto: {
7611
7611
  /** @description Readiness run that produced this metrics row. */
7612
7612
  runId: string;
@@ -11716,7 +11716,10 @@ export interface operations {
11716
11716
  };
11717
11717
  getCodeInsightsRepoDetail: {
11718
11718
  parameters: {
11719
- query?: never;
11719
+ query?: {
11720
+ /** @description Optional filter for findings by source. Omit to return both deterministic and llm findings. */
11721
+ source?: components["schemas"]["CodeInsightsFindingSource"];
11722
+ };
11720
11723
  header?: never;
11721
11724
  path: {
11722
11725
  workspaceId: components["parameters"]["WorkspaceId"];