@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.197.0",
3
+ "version": "2.198.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1676,7 +1676,7 @@ export interface paths {
1676
1676
  };
1677
1677
  /**
1678
1678
  * Test pyramid assessment — workspace summary
1679
- * @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, and workspace-only `ciQuality` from the latest org dashboard snapshot. Does not change Agentic Foundation `/readiness/test-pyramid*` responses.
1679
+ * @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.
1680
1680
  */
1681
1681
  get: operations["getInsightsTestPyramidSummary"];
1682
1682
  put?: never;
@@ -12639,6 +12639,22 @@ export interface components {
12639
12639
  /** @description Dashboard metrics bucket end for the org snapshot. */
12640
12640
  bucketEnd: string;
12641
12641
  } | null;
12642
+ InsightsTestPyramidSuiteLayerOutcomeDto: {
12643
+ passRatePercent: number;
12644
+ failRatePercent: number;
12645
+ runsTotal: number;
12646
+ /** @description Latest mapped check-run `occurred_at` in the sample. */
12647
+ sampleBucketEnd: string;
12648
+ /** @description Included only when `runsTotal` is at least 5. Failure then success on the same `head_sha` + check name counts as a flake observation. */
12649
+ flakePercent?: number;
12650
+ };
12651
+ /** @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. */
12652
+ InsightsTestPyramidSuiteExecutionDto: {
12653
+ unit?: components["schemas"]["InsightsTestPyramidSuiteLayerOutcomeDto"] | null;
12654
+ e2e?: components["schemas"]["InsightsTestPyramidSuiteLayerOutcomeDto"] | null;
12655
+ /** @description Optional bonus layer; not required for */
12656
+ integration?: components["schemas"]["InsightsTestPyramidSuiteLayerOutcomeDto"] | null;
12657
+ } | null;
12642
12658
  InsightsTestPyramidSummaryDto: {
12643
12659
  /** Format: uuid */
12644
12660
  workspaceId: string;
@@ -12669,6 +12685,7 @@ export interface components {
12669
12685
  /** @description Repos whose latest Code Insights snapshot has `hotspotCount` > 0. */
12670
12686
  reposWithHotspots: number;
12671
12687
  ciQuality: components["schemas"]["InsightsTestPyramidCiQualityDto"];
12688
+ suiteExecution: components["schemas"]["InsightsTestPyramidSuiteExecutionDto"];
12672
12689
  };
12673
12690
  InsightsTestPyramidRepoItemDto: {
12674
12691
  /** Format: uuid */
@@ -12699,6 +12716,7 @@ export interface components {
12699
12716
  e2eCrossRepoCandidate: boolean;
12700
12717
  /** @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. */
12701
12718
  hotspotCount: number | null;
12719
+ suiteExecution: components["schemas"]["InsightsTestPyramidSuiteExecutionDto"];
12702
12720
  };
12703
12721
  InsightsTestPyramidRepoListDto: {
12704
12722
  items: components["schemas"]["InsightsTestPyramidRepoItemDto"][];
@@ -13753,6 +13771,8 @@ export type InsightsTestPyramidConfidenceDto = components['schemas']['InsightsTe
13753
13771
  export type InsightsTestPyramidLayerConfidenceDto = components['schemas']['InsightsTestPyramidLayerConfidenceDto'];
13754
13772
  export type InsightsTestPyramidCoverageRollupDto = components['schemas']['InsightsTestPyramidCoverageRollupDto'];
13755
13773
  export type InsightsTestPyramidCiQualityDto = components['schemas']['InsightsTestPyramidCiQualityDto'];
13774
+ export type InsightsTestPyramidSuiteLayerOutcomeDto = components['schemas']['InsightsTestPyramidSuiteLayerOutcomeDto'];
13775
+ export type InsightsTestPyramidSuiteExecutionDto = components['schemas']['InsightsTestPyramidSuiteExecutionDto'];
13756
13776
  export type InsightsTestPyramidSummaryDto = components['schemas']['InsightsTestPyramidSummaryDto'];
13757
13777
  export type InsightsTestPyramidRepoItemDto = components['schemas']['InsightsTestPyramidRepoItemDto'];
13758
13778
  export type InsightsTestPyramidRepoListDto = components['schemas']['InsightsTestPyramidRepoListDto'];