@skyramp/testbot-core 0.13.0-v3.204 → 0.13.0-v3.206

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.
@@ -106,20 +106,20 @@ export type typeToFlattenedError<T, U = string> = {
106
106
  };
107
107
  declare const ZodIssueCode: {
108
108
  invalid_type: "invalid_type";
109
- invalid_literal: "invalid_literal";
110
- custom: "custom";
109
+ too_big: "too_big";
110
+ too_small: "too_small";
111
+ not_multiple_of: "not_multiple_of";
112
+ unrecognized_keys: "unrecognized_keys";
111
113
  invalid_union: "invalid_union";
114
+ custom: "custom";
115
+ invalid_literal: "invalid_literal";
112
116
  invalid_union_discriminator: "invalid_union_discriminator";
113
117
  invalid_enum_value: "invalid_enum_value";
114
- unrecognized_keys: "unrecognized_keys";
115
118
  invalid_arguments: "invalid_arguments";
116
119
  invalid_return_type: "invalid_return_type";
117
120
  invalid_date: "invalid_date";
118
121
  invalid_string: "invalid_string";
119
- too_small: "too_small";
120
- too_big: "too_big";
121
122
  invalid_intersection_types: "invalid_intersection_types";
122
- not_multiple_of: "not_multiple_of";
123
123
  not_finite: "not_finite";
124
124
  };
125
125
  export type ZodIssueCode = keyof typeof ZodIssueCode;
@@ -1004,7 +1004,10 @@ export type noUnrecognized<Obj extends object, Shape extends object> = {
1004
1004
  [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never;
1005
1005
  };
1006
1006
  declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {
1007
- private _cached;
1007
+ _cached: {
1008
+ shape: T;
1009
+ keys: string[];
1010
+ } | null;
1008
1011
  _getCached(): {
1009
1012
  shape: T;
1010
1013
  keys: string[];
@@ -1956,7 +1959,9 @@ declare enum ActionRequiredReason {
1956
1959
  /** The model provider refused Testbot's calls, and the run's work is incomplete (SKYR-5193). */
1957
1960
  ModelProviderDenied = "model_provider_denied",
1958
1961
  /** The model provider did not answer Testbot's calls, and the run's work is incomplete (SKYR-5193). */
1959
- ModelProviderUnavailable = "model_provider_unavailable"
1962
+ ModelProviderUnavailable = "model_provider_unavailable",
1963
+ /** The app sets it when GitHub or Azure DevOps never showed the job running; the runner never reports it (SKYR-5429). */
1964
+ RunnerProviderNotReady = "runner_provider_not_ready"
1960
1965
  }
1961
1966
  declare enum EvidenceKind {
1962
1967
  CiCheck = "ci_check",
@@ -2191,6 +2196,8 @@ declare enum AttemptState {
2191
2196
  * runs, so it is Validation Blocked, not a failed setup (SKYR-5225). `ModelProviderDenied` / `ModelProviderUnavailable`: the
2192
2197
  * model provider refused the run's calls, or did not answer them once Testbot's retries ran out, before any stage produced
2193
2198
  * usable work; the app derives an infrastructure error and does not retry it (SKYR-5193).
2199
+ * `RunnerProviderNotReady`: GitHub or Azure DevOps did not show the job as running while the runner waited for its token,
2200
+ * so the app runs the attempt again (SKYR-5429).
2194
2201
  */
2195
2202
  export declare enum NoReportCause {
2196
2203
  TimedOut = "timed_out",
@@ -2201,7 +2208,8 @@ export declare enum NoReportCause {
2201
2208
  CheckoutFailed = "checkout_failed",
2202
2209
  EnvironmentUnverified = "environment_unverified",
2203
2210
  ModelProviderDenied = "model_provider_denied",
2204
- ModelProviderUnavailable = "model_provider_unavailable"
2211
+ ModelProviderUnavailable = "model_provider_unavailable",
2212
+ RunnerProviderNotReady = "runner_provider_not_ready"
2205
2213
  }
2206
2214
  declare const SourceRefSchema: z.ZodDiscriminatedUnion<"provider", [
2207
2215
  z.ZodObject<{
@@ -4011,6 +4019,12 @@ export interface V3RunnerDeps {
4011
4019
  log?: (line: string) => void;
4012
4020
  /** Pause between retries of a call the app did not answer (default 2 s, then 4 s). */
4013
4021
  retryDelayMs?: number;
4022
+ /** Pause between tries while the app answers that the job is not ready yet (default 10 s). */
4023
+ readyWaitMs?: number;
4024
+ /** Receives why a credentials request for either token (`access`) failed, before the caller sees it (SKYR-5429). */
4025
+ onTokenRefused?: (error: unknown, access: CredentialAccess) => void;
4026
+ /** Receives each credentials request for either token (`access`) that the app answered with a token (SKYR-5429). */
4027
+ onTokenGranted?: (access: CredentialAccess) => void;
4014
4028
  /**
4015
4029
  * The job's own token for its source host (RunnerHost.takeSourceToken): on Azure DevOps, System.AccessToken. The app
4016
4030
  * gives such a job no token, so the attempt uses this one for its sources.
@@ -4022,6 +4036,10 @@ declare enum RunnerMethod {
4022
4036
  Post = "POST",
4023
4037
  Put = "PUT"
4024
4038
  }
4039
+ declare enum CredentialAccess {
4040
+ Run = "run",
4041
+ Read = "read"
4042
+ }
4025
4043
  /** How a direct REST call to the source host is made: the fetch to use, and the job's host, which makes the call. */
4026
4044
  export interface SourceRestOptions {
4027
4045
  fetch?: typeof fetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/testbot-core",
3
- "version": "0.13.0-v3.204",
3
+ "version": "0.13.0-v3.206",
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. assets/gen-reference/ is the staged codegen reference corpus, which generate.ts finds at ../assets from dist/.",
@@ -72,6 +72,6 @@
72
72
  "madge": "^8.0.0",
73
73
  "semver": "^7.8.5",
74
74
  "vitest": "^5.0.5",
75
- "zod": "^3.25.0"
75
+ "zod": "^4.6.6"
76
76
  }
77
77
  }