@skyramp/testbot-core 0.13.0-v3.180 → 0.13.0-v3.182

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.
@@ -1921,7 +1921,8 @@ declare enum UploadedMediaType {
1921
1921
  Docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1922
1922
  Xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
1923
1923
  }
1924
- declare enum ValidationSufficiency {
1924
+ /** Whether the evidence a run obtained or accepted is enough for the validation its policy asked for. */
1925
+ export declare enum ValidationSufficiency {
1925
1926
  Sufficient = "sufficient",
1926
1927
  Insufficient = "insufficient"
1927
1928
  }
@@ -2106,7 +2107,7 @@ export interface ReportCaveat {
2106
2107
  /** True when it means the run is not evidence the change works. */
2107
2108
  blocking: boolean;
2108
2109
  }
2109
- declare enum SourceProvider {
2110
+ export declare enum SourceProvider {
2110
2111
  GitHub = "github",
2111
2112
  AzureDevOps = "azure-devops"
2112
2113
  }
@@ -2134,7 +2135,8 @@ declare enum CredentialPurpose {
2134
2135
  Skyramp = "skyramp",
2135
2136
  Other = "other"
2136
2137
  }
2137
- declare enum DeliveryStatus {
2138
+ /** How the upload says generated tests were delivered. `Partial`: some PRs opened and some repositories failed. */
2139
+ export declare enum DeliveryStatus {
2138
2140
  None = "none",
2139
2141
  Delivered = "delivered",
2140
2142
  Partial = "partial",
@@ -3438,6 +3440,8 @@ declare const RunnerHandshakeRequestV1Schema: z.ZodObject<{
3438
3440
  deployedPins?: true | undefined;
3439
3441
  }>;
3440
3442
  export type RunnerHandshakeRequestV1 = z.infer<typeof RunnerHandshakeRequestV1Schema>;
3443
+ /** The job that asks to bind a run: its host, repository, workflow run and attempt, as the handshake sends it. */
3444
+ export type ExecutionIdentity = RunnerHandshakeRequestV1["execution"];
3441
3445
  declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3442
3446
  z.ZodObject<{
3443
3447
  status: z.ZodLiteral<DeliveryStatus.None>;
@@ -3703,7 +3707,8 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3703
3707
  }>
3704
3708
  ]>;
3705
3709
  export type GeneratedTestDelivery = z.infer<typeof GeneratedTestDeliverySchema>;
3706
- declare enum GitHubWriteKind {
3710
+ /** What the run did to GitHub with the App's token, which the app records for its audit (SKYR-4857). */
3711
+ export declare enum GitHubWriteKind {
3707
3712
  BranchPushed = "branch_pushed",
3708
3713
  PullRequestOpened = "pull_request_opened",
3709
3714
  PullRequestEdited = "pull_request_edited"
@@ -3921,7 +3926,7 @@ export interface RunnerHost {
3921
3926
  readonly runAttempt?: string;
3922
3927
  readonly job?: string;
3923
3928
  /** Where the V3 handshake says this job runs. The app compares every field with the job's identity token. Throws when the job does not say. */
3924
- execution(): RunnerHandshakeRequestV1["execution"];
3929
+ execution(): ExecutionIdentity;
3925
3930
  /**
3926
3931
  * Takes the job's identity-token credentials out of the environment and returns the only way left to mint a token
3927
3932
  * for an audience. Every process the run starts inherits process.env; with those credentials, code in any of them
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/testbot-core",
3
- "version": "0.13.0-v3.180",
3
+ "version": "0.13.0-v3.182",
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. eval-entry.js is a development entry and must not ship. dist/VERSION.json exists only in a release-engine.yml build. assets/gen-reference/ is the staged codegen reference corpus, which generate.ts finds at ../assets from dist/.",