@thinkai/tai-api-contract 2.197.0 → 2.198.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/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.198.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}/...`.
|
|
@@ -5015,7 +5015,8 @@ paths:
|
|
|
5015
5015
|
middle ~20% integration+contract+acceptance/BDD, top ~10% E2E) and returns
|
|
5016
5016
|
`insufficient_data` when total classified test files < 10. Also returns
|
|
5017
5017
|
maturity trend, coverage overlay, confidence, applicability, E2E-cross/hotspot
|
|
5018
|
-
risk,
|
|
5018
|
+
risk, workspace-only `ciQuality`, and Actions/check-name `suiteExecution`
|
|
5019
|
+
(unit/e2e suite pass/flake) from the latest org dashboard snapshot.
|
|
5019
5020
|
Does not change Agentic Foundation `/readiness/test-pyramid*` responses.
|
|
5020
5021
|
parameters:
|
|
5021
5022
|
- $ref: "#/components/parameters/WorkspaceId"
|
|
@@ -29616,6 +29617,54 @@ components:
|
|
|
29616
29617
|
type: string
|
|
29617
29618
|
description: Dashboard metrics bucket end for the org snapshot.
|
|
29618
29619
|
|
|
29620
|
+
InsightsTestPyramidSuiteLayerOutcomeDto:
|
|
29621
|
+
type: object
|
|
29622
|
+
required: [passRatePercent, failRatePercent, runsTotal, sampleBucketEnd]
|
|
29623
|
+
properties:
|
|
29624
|
+
passRatePercent:
|
|
29625
|
+
type: number
|
|
29626
|
+
minimum: 0
|
|
29627
|
+
maximum: 100
|
|
29628
|
+
failRatePercent:
|
|
29629
|
+
type: number
|
|
29630
|
+
minimum: 0
|
|
29631
|
+
maximum: 100
|
|
29632
|
+
runsTotal:
|
|
29633
|
+
type: integer
|
|
29634
|
+
minimum: 1
|
|
29635
|
+
sampleBucketEnd:
|
|
29636
|
+
type: string
|
|
29637
|
+
description: Latest mapped check-run `occurred_at` in the sample.
|
|
29638
|
+
flakePercent:
|
|
29639
|
+
type: number
|
|
29640
|
+
minimum: 0
|
|
29641
|
+
maximum: 100
|
|
29642
|
+
description: >
|
|
29643
|
+
Included only when `runsTotal` is at least 5. Failure then success on
|
|
29644
|
+
the same `head_sha` + check name counts as a flake observation.
|
|
29645
|
+
|
|
29646
|
+
InsightsTestPyramidSuiteExecutionDto:
|
|
29647
|
+
type: object
|
|
29648
|
+
nullable: true
|
|
29649
|
+
description: >
|
|
29650
|
+
Suite-level pass/flake from GitHub Actions / Checks job names classified
|
|
29651
|
+
onto pyramid layers. Null when no mapped unit/e2e (or optional integration)
|
|
29652
|
+
check names exist in the org dashboard quality snapshot.
|
|
29653
|
+
properties:
|
|
29654
|
+
unit:
|
|
29655
|
+
allOf:
|
|
29656
|
+
- $ref: "#/components/schemas/InsightsTestPyramidSuiteLayerOutcomeDto"
|
|
29657
|
+
nullable: true
|
|
29658
|
+
e2e:
|
|
29659
|
+
allOf:
|
|
29660
|
+
- $ref: "#/components/schemas/InsightsTestPyramidSuiteLayerOutcomeDto"
|
|
29661
|
+
nullable: true
|
|
29662
|
+
integration:
|
|
29663
|
+
allOf:
|
|
29664
|
+
- $ref: "#/components/schemas/InsightsTestPyramidSuiteLayerOutcomeDto"
|
|
29665
|
+
nullable: true
|
|
29666
|
+
description: Optional bonus layer; not required for #234 acceptance.
|
|
29667
|
+
|
|
29619
29668
|
InsightsTestPyramidSummaryDto:
|
|
29620
29669
|
type: object
|
|
29621
29670
|
required:
|
|
@@ -29636,6 +29685,7 @@ components:
|
|
|
29636
29685
|
- e2eCrossRepoCandidateCount
|
|
29637
29686
|
- reposWithHotspots
|
|
29638
29687
|
- ciQuality
|
|
29688
|
+
- suiteExecution
|
|
29639
29689
|
properties:
|
|
29640
29690
|
workspaceId: { type: string, format: uuid }
|
|
29641
29691
|
generatedAt: { type: string, format: date-time }
|
|
@@ -29687,6 +29737,8 @@ components:
|
|
|
29687
29737
|
description: Repos whose latest Code Insights snapshot has `hotspotCount` > 0.
|
|
29688
29738
|
ciQuality:
|
|
29689
29739
|
$ref: "#/components/schemas/InsightsTestPyramidCiQualityDto"
|
|
29740
|
+
suiteExecution:
|
|
29741
|
+
$ref: "#/components/schemas/InsightsTestPyramidSuiteExecutionDto"
|
|
29690
29742
|
|
|
29691
29743
|
InsightsTestPyramidRepoItemDto:
|
|
29692
29744
|
type: object
|
|
@@ -29711,6 +29763,7 @@ components:
|
|
|
29711
29763
|
- layerApplicable
|
|
29712
29764
|
- e2eCrossRepoCandidate
|
|
29713
29765
|
- hotspotCount
|
|
29766
|
+
- suiteExecution
|
|
29714
29767
|
properties:
|
|
29715
29768
|
repoId: { type: string, format: uuid }
|
|
29716
29769
|
repoName: { type: string }
|
|
@@ -29772,6 +29825,8 @@ components:
|
|
|
29772
29825
|
description: >
|
|
29773
29826
|
Row count in `tai_workspace_repo_code_hotspots` for the repo's latest
|
|
29774
29827
|
Code Insights metrics snapshot. Null when the repo has no metrics snapshot.
|
|
29828
|
+
suiteExecution:
|
|
29829
|
+
$ref: "#/components/schemas/InsightsTestPyramidSuiteExecutionDto"
|
|
29775
29830
|
|
|
29776
29831
|
InsightsTestPyramidRepoListDto:
|
|
29777
29832
|
type: object
|