@thinkai/tai-api-contract 2.133.0 → 2.134.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.
@@ -6874,6 +6874,36 @@ export interface components {
6874
6874
  */
6875
6875
  cursorKeySource?: "workspace_execution_token" | "platform_env_key" | null;
6876
6876
  };
6877
+ /**
6878
+ * @description Where a CI setup criterion's evidence came from. `in_repo` — this repository's CI config contributed. `linked_platform` — a linked CI templates platform repo (role `ci_templates` or the `jenkins_shared` alias) contributed.
6879
+ * @enum {string}
6880
+ */
6881
+ CriterionEvidenceKind: "in_repo" | "linked_platform";
6882
+ /** @description One evidence chip for a CI setup criterion (CI on change, CI runs build, CI runs tests, CI static analysis). `role` and `providerSlug` are present when `kind` is `linked_platform` and omitted for `in_repo`. */
6883
+ CriterionEvidenceSourceDto: {
6884
+ kind: components["schemas"]["CriterionEvidenceKind"];
6885
+ /** @description Chip text shown in the UI (for example "In this repo" or "CI templates · org/platform-ci"). */
6886
+ label: string;
6887
+ /** @description Topology role when `kind` is `linked_platform` (for example `ci_templates` or `jenkins_shared`). Omit for `in_repo`. */
6888
+ role?: string;
6889
+ /** @description Platform repository `owner/name` when `kind` is `linked_platform`. Omit for `in_repo`. */
6890
+ providerSlug?: string;
6891
+ };
6892
+ /**
6893
+ * @description Stable "Improve this scan" code for Agentic Foundation CI setup honesty. `configure_linked_ci_templates` — map a linked CI templates repo. `scan_linked_ci_templates` — the mapped platform repo still needs a fresh scan. `view_ci_health_in_insights` — CI config is present; live pass/fail health is in SDLC Insights.
6894
+ * @enum {string}
6895
+ */
6896
+ ScanImprovementCode: "configure_linked_ci_templates" | "scan_linked_ci_templates" | "view_ci_health_in_insights";
6897
+ /** @description One repo-level recommendation on a readiness scorecard. Display copy is `title` and `description`; clients may also route from `code`. */
6898
+ ScanImprovementDto: {
6899
+ code: components["schemas"]["ScanImprovementCode"];
6900
+ title: string;
6901
+ description: string;
6902
+ /** @description Optional SPA path for the recommendation (linked-platform settings or SDLC Insights). Not a scored URL. */
6903
+ href?: string;
6904
+ /** @description Platform repository `owner/name` when the recommendation names a specific linked repo (typically `scan_linked_ci_templates`). */
6905
+ providerSlug?: string;
6906
+ };
6877
6907
  CriterionDetailDto: {
6878
6908
  /** @description Rubric criterion id (e.g. A1, B3) */
6879
6909
  rubricId: string;
@@ -6900,6 +6930,8 @@ export interface components {
6900
6930
  * @description UUID of the linked open issue in tai_workspace_repo_issues. Present only for gap/partial criteria that have a corresponding issue row. Use this to navigate to the Fix flow.
6901
6931
  */
6902
6932
  issueId?: string | null;
6933
+ /** @description Sources that contributed to CI setup criteria (CI on change, CI runs build, CI runs tests, CI static analysis). Met or Partial on those rows includes at least one entry (`in_repo` and/or `linked_platform`). Omitted on other criteria and when the scan did not record evidence. */
6934
+ evidenceUsed?: components["schemas"]["CriterionEvidenceSourceDto"][];
6903
6935
  };
6904
6936
  ReadinessCriteriaSummaryDto: {
6905
6937
  total: number;
@@ -7267,6 +7299,8 @@ export interface components {
7267
7299
  platformArchetype?: "terraform_platform" | "gitops_platform" | "ci_templates" | "api_contracts_platform" | null;
7268
7300
  /** @description Federated readiness completeness for service repos: which linked platform roles (terraform/gitops/ci_templates/api_contracts, from the workspace delivery topology) are still missing scan evidence. Absent/null when no topology is configured or every declared role has fresh metadata (`complete: true`). */
7269
7301
  linkedRoleAssessment?: components["schemas"]["LinkedRoleAssessmentDto"] | null;
7302
+ /** @description Repo-level "Improve this scan" recommendations for Agentic Foundation CI setup (at most three). Omitted when the scan emitted none. Does not change criterion scores; live CI health stays in SDLC Insights. */
7303
+ scanImprovements?: components["schemas"]["ScanImprovementDto"][];
7270
7304
  };
7271
7305
  LinkedRolePendingDto: {
7272
7306
  /** @description Topology role key, e.g. terraform | gitops | ci_templates | api_contracts. */
@@ -7345,6 +7379,8 @@ export interface components {
7345
7379
  platformArchetype?: "terraform_platform" | "gitops_platform" | "ci_templates" | "api_contracts_platform" | null;
7346
7380
  /** @description See RepoReadinessScoreDto.linkedRoleAssessment. */
7347
7381
  linkedRoleAssessment?: components["schemas"]["LinkedRoleAssessmentDto"] | null;
7382
+ /** @description See RepoReadinessScoreDto.scanImprovements. */
7383
+ scanImprovements?: components["schemas"]["ScanImprovementDto"][];
7348
7384
  };
7349
7385
  AgenticFoundationDashboardSummaryDto: {
7350
7386
  repoCount: number;
@@ -10263,6 +10299,10 @@ export type ReadinessAnalyzeResponseDto = components['schemas']['ReadinessAnalyz
10263
10299
  export type ReadinessRunStatusDto = components['schemas']['ReadinessRunStatusDto'];
10264
10300
  export type ReadinessRepoAnalysisStatusDto = components['schemas']['ReadinessRepoAnalysisStatusDto'];
10265
10301
  export type ReadinessRunSummaryDto = components['schemas']['ReadinessRunSummaryDto'];
10302
+ export type CriterionEvidenceKind = components['schemas']['CriterionEvidenceKind'];
10303
+ export type CriterionEvidenceSourceDto = components['schemas']['CriterionEvidenceSourceDto'];
10304
+ export type ScanImprovementCode = components['schemas']['ScanImprovementCode'];
10305
+ export type ScanImprovementDto = components['schemas']['ScanImprovementDto'];
10266
10306
  export type CriterionDetailDto = components['schemas']['CriterionDetailDto'];
10267
10307
  export type ReadinessCriteriaSummaryDto = components['schemas']['ReadinessCriteriaSummaryDto'];
10268
10308
  export type ReadinessIssueDto = components['schemas']['ReadinessIssueDto'];