@skyramp/testbot-core 0.13.0-v3.233 → 0.13.0-v3.235

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.
@@ -1770,6 +1770,8 @@ export interface StagedTestbotReport {
1770
1770
  * disclosure a property of the report rather than of its wording.
1771
1771
  */
1772
1772
  caveats?: ReportCaveat[];
1773
+ /** Only in report-display.json: why a report in another language stayed English (SKYR-5218). */
1774
+ notTranslated?: NotTranslatedReason;
1773
1775
  /** Behaviour → proving test. Absent when analyze named no behaviours. */
1774
1776
  changes?: ChangeRow[];
1775
1777
  /** Absent when there are no rows to count. */
@@ -2106,6 +2108,12 @@ export interface TestExecutionContext {
2106
2108
  /** The checkout `test` is in, until v3Report links it to its results and drops this. */
2107
2109
  repository?: string;
2108
2110
  }
2111
+ declare enum NotTranslatedReason {
2112
+ /** The budget left after deliver's share was too short for the translation. */
2113
+ NoTime = "no-time",
2114
+ /** The translation session failed, or its answer held no JSON object. */
2115
+ Failed = "failed"
2116
+ }
2109
2117
  declare enum CaveatKind {
2110
2118
  TestsNotExecuted = "tests-not-executed",
2111
2119
  DeployFailed = "deploy-failed",
@@ -2139,6 +2147,10 @@ export interface ReportCaveat {
2139
2147
  /** True when it means the run is not evidence the change works. */
2140
2148
  blocking: boolean;
2141
2149
  }
2150
+ declare enum ReportLanguage {
2151
+ En = "en",
2152
+ Ja = "ja"
2153
+ }
2142
2154
  export declare enum SourceProvider {
2143
2155
  GitHub = "github",
2144
2156
  AzureDevOps = "azure-devops"
@@ -3732,7 +3744,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3732
3744
  ]>;
3733
3745
  message: z.ZodString;
3734
3746
  }, "strict", z.ZodTypeAny, {
3735
- message: string;
3736
3747
  repository: {
3737
3748
  provider: SourceProvider.GitHub;
3738
3749
  providerAccountId: string;
@@ -3742,8 +3753,8 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3742
3753
  providerAccountId: string;
3743
3754
  providerRepositoryId: string;
3744
3755
  };
3745
- }, {
3746
3756
  message: string;
3757
+ }, {
3747
3758
  repository: {
3748
3759
  provider: SourceProvider.GitHub;
3749
3760
  providerAccountId: string;
@@ -3753,6 +3764,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3753
3764
  providerAccountId: string;
3754
3765
  providerRepositoryId: string;
3755
3766
  };
3767
+ message: string;
3756
3768
  }>, "many">;
3757
3769
  }, "strict", z.ZodTypeAny, {
3758
3770
  status: DeliveryStatus.Partial;
@@ -3770,7 +3782,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3770
3782
  commitSha?: string | undefined;
3771
3783
  }[];
3772
3784
  failures: {
3773
- message: string;
3774
3785
  repository: {
3775
3786
  provider: SourceProvider.GitHub;
3776
3787
  providerAccountId: string;
@@ -3780,6 +3791,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3780
3791
  providerAccountId: string;
3781
3792
  providerRepositoryId: string;
3782
3793
  };
3794
+ message: string;
3783
3795
  }[];
3784
3796
  }, {
3785
3797
  status: DeliveryStatus.Partial;
@@ -3797,7 +3809,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3797
3809
  commitSha?: string | undefined;
3798
3810
  }[];
3799
3811
  failures: {
3800
- message: string;
3801
3812
  repository: {
3802
3813
  provider: SourceProvider.GitHub;
3803
3814
  providerAccountId: string;
@@ -3807,6 +3818,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3807
3818
  providerAccountId: string;
3808
3819
  providerRepositoryId: string;
3809
3820
  };
3821
+ message: string;
3810
3822
  }[];
3811
3823
  }>,
3812
3824
  z.ZodObject<{
@@ -3821,6 +3833,24 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3821
3833
  }>
3822
3834
  ]>;
3823
3835
  export type GeneratedTestDelivery = z.infer<typeof GeneratedTestDeliverySchema>;
3836
+ /**
3837
+ * The staged report (`report.json`) with its V3 fields present. The report stage owns these fields. The upload
3838
+ * applies every rule the app applies on arrival, so a bad report fails here with a named field instead of ending
3839
+ * the run as an infrastructure error. The other fields travel unchanged.
3840
+ */
3841
+ export type V3StagedReport = Omit<StagedTestbotReport, "testResults" | "validation" | "notTranslated"> & {
3842
+ /** Why the report the run showed on GitHub stayed English, though the Target's report language is `language` (SKYR-5218). */
3843
+ notTranslated?: {
3844
+ language: ReportLanguage;
3845
+ reason: NotTranslatedReason;
3846
+ };
3847
+ testResults: (StagedTestbotReport["testResults"][number] & {
3848
+ repository: string;
3849
+ resultId: string;
3850
+ })[];
3851
+ validation: ReportValidation;
3852
+ traceVersion: 1;
3853
+ };
3824
3854
  /** What the run did to GitHub with the App's token, which the app records for its audit (SKYR-4857). */
3825
3855
  export declare enum GitHubWriteKind {
3826
3856
  BranchPushed = "branch_pushed",
@@ -4286,6 +4316,8 @@ export declare function uploadV3Report(attempt: V3Attempt, input: {
4286
4316
  secrets?: readonly string[];
4287
4317
  /** What the run wrote to GitHub (githubWritesFromOutputs). */
4288
4318
  githubWrites?: GitHubWrite[];
4319
+ /** Why the report the run showed stayed English (notTranslatedOf). */
4320
+ notTranslated?: V3StagedReport["notTranslated"];
4289
4321
  }): Promise<void>;
4290
4322
  /** Why the attempt ended without a report: a cancellation, or one of the contract's causes. */
4291
4323
  export type V3EndCause = AttemptEndReason.Cancelled | NoReportCause;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/testbot-core",
3
- "version": "0.13.0-v3.233",
3
+ "version": "0.13.0-v3.235",
4
4
  "description": "Skyramp Testbot engine: AI-powered deterministic test generation, execution and maintenance",
5
5
  "main": "dist/main.js",
6
6
  "//files": "An explicit allowlist, never a glob. `dist/` is gitignored, so without this key npm's .gitignore fallback would publish a package with no engine in it; with a glob it would publish the sourcemaps, whose sourcesContent embeds every src/*.ts verbatim. dist/VERSION.json exists only in a release-engine.yml build.",