@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.
|
@@ -1675,7 +1675,7 @@ export interface paths {
|
|
|
1675
1675
|
};
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Test pyramid assessment — workspace summary
|
|
1678
|
-
* @description Org-level Test pyramid assessment for `/insights/test-pyramid`. Aggregates each active repo's **latest** readiness-scan test-pyramid snapshot and the immediately previous succeeded/partial_failed/failed point when present (`limitPerRepo: 2`). Layer **presence is count-based** (`fileCount > 0`); CI/dependency-only AF `present` flags are ignored. Shape uses fixed advisory targets (base ~70% unit, middle ~20% integration+contract+acceptance/BDD, top ~10% E2E) and returns `insufficient_data` when total classified test files < 10. Also returns maturity trend, coverage overlay, confidence, applicability, E2E-cross/hotspot risk,
|
|
1678
|
+
* @description Org-level Test pyramid assessment for `/insights/test-pyramid`. Aggregates each active repo's **latest** readiness-scan test-pyramid snapshot and the immediately previous succeeded/partial_failed/failed point when present (`limitPerRepo: 2`). Layer **presence is count-based** (`fileCount > 0`); CI/dependency-only AF `present` flags are ignored. Shape uses fixed advisory targets (base ~70% unit, middle ~20% integration+contract+acceptance/BDD, top ~10% E2E) and returns `insufficient_data` when total classified test files < 10. Also returns maturity trend, coverage overlay, confidence, applicability, E2E-cross/hotspot risk, workspace-only `ciQuality`, and Actions/check-name `suiteExecution` (unit/e2e suite pass/flake) from the latest org dashboard snapshot. Does not change Agentic Foundation `/readiness/test-pyramid*` responses.
|
|
1679
1679
|
*/
|
|
1680
1680
|
get: operations["getInsightsTestPyramidSummary"];
|
|
1681
1681
|
put?: never;
|
|
@@ -12638,6 +12638,22 @@ export interface components {
|
|
|
12638
12638
|
/** @description Dashboard metrics bucket end for the org snapshot. */
|
|
12639
12639
|
bucketEnd: string;
|
|
12640
12640
|
} | null;
|
|
12641
|
+
InsightsTestPyramidSuiteLayerOutcomeDto: {
|
|
12642
|
+
passRatePercent: number;
|
|
12643
|
+
failRatePercent: number;
|
|
12644
|
+
runsTotal: number;
|
|
12645
|
+
/** @description Latest mapped check-run `occurred_at` in the sample. */
|
|
12646
|
+
sampleBucketEnd: string;
|
|
12647
|
+
/** @description Included only when `runsTotal` is at least 5. Failure then success on the same `head_sha` + check name counts as a flake observation. */
|
|
12648
|
+
flakePercent?: number;
|
|
12649
|
+
};
|
|
12650
|
+
/** @description Suite-level pass/flake from GitHub Actions / Checks job names classified onto pyramid layers. Null when no mapped unit/e2e (or optional integration) check names exist in the org dashboard quality snapshot. */
|
|
12651
|
+
InsightsTestPyramidSuiteExecutionDto: {
|
|
12652
|
+
unit?: components["schemas"]["InsightsTestPyramidSuiteLayerOutcomeDto"] | null;
|
|
12653
|
+
e2e?: components["schemas"]["InsightsTestPyramidSuiteLayerOutcomeDto"] | null;
|
|
12654
|
+
/** @description Optional bonus layer; not required for */
|
|
12655
|
+
integration?: components["schemas"]["InsightsTestPyramidSuiteLayerOutcomeDto"] | null;
|
|
12656
|
+
} | null;
|
|
12641
12657
|
InsightsTestPyramidSummaryDto: {
|
|
12642
12658
|
/** Format: uuid */
|
|
12643
12659
|
workspaceId: string;
|
|
@@ -12668,6 +12684,7 @@ export interface components {
|
|
|
12668
12684
|
/** @description Repos whose latest Code Insights snapshot has `hotspotCount` > 0. */
|
|
12669
12685
|
reposWithHotspots: number;
|
|
12670
12686
|
ciQuality: components["schemas"]["InsightsTestPyramidCiQualityDto"];
|
|
12687
|
+
suiteExecution: components["schemas"]["InsightsTestPyramidSuiteExecutionDto"];
|
|
12671
12688
|
};
|
|
12672
12689
|
InsightsTestPyramidRepoItemDto: {
|
|
12673
12690
|
/** Format: uuid */
|
|
@@ -12698,6 +12715,7 @@ export interface components {
|
|
|
12698
12715
|
e2eCrossRepoCandidate: boolean;
|
|
12699
12716
|
/** @description Row count in `tai_workspace_repo_code_hotspots` for the repo's latest Code Insights metrics snapshot. Null when the repo has no metrics snapshot. */
|
|
12700
12717
|
hotspotCount: number | null;
|
|
12718
|
+
suiteExecution: components["schemas"]["InsightsTestPyramidSuiteExecutionDto"];
|
|
12701
12719
|
};
|
|
12702
12720
|
InsightsTestPyramidRepoListDto: {
|
|
12703
12721
|
items: components["schemas"]["InsightsTestPyramidRepoItemDto"][];
|
|
@@ -13752,6 +13770,8 @@ export type InsightsTestPyramidConfidenceDto = components['schemas']['InsightsTe
|
|
|
13752
13770
|
export type InsightsTestPyramidLayerConfidenceDto = components['schemas']['InsightsTestPyramidLayerConfidenceDto'];
|
|
13753
13771
|
export type InsightsTestPyramidCoverageRollupDto = components['schemas']['InsightsTestPyramidCoverageRollupDto'];
|
|
13754
13772
|
export type InsightsTestPyramidCiQualityDto = components['schemas']['InsightsTestPyramidCiQualityDto'];
|
|
13773
|
+
export type InsightsTestPyramidSuiteLayerOutcomeDto = components['schemas']['InsightsTestPyramidSuiteLayerOutcomeDto'];
|
|
13774
|
+
export type InsightsTestPyramidSuiteExecutionDto = components['schemas']['InsightsTestPyramidSuiteExecutionDto'];
|
|
13755
13775
|
export type InsightsTestPyramidSummaryDto = components['schemas']['InsightsTestPyramidSummaryDto'];
|
|
13756
13776
|
export type InsightsTestPyramidRepoItemDto = components['schemas']['InsightsTestPyramidRepoItemDto'];
|
|
13757
13777
|
export type InsightsTestPyramidRepoListDto = components['schemas']['InsightsTestPyramidRepoListDto'];
|