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

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.
@@ -1956,7 +1956,9 @@ declare enum ActionRequiredReason {
1956
1956
  /** The model provider refused Testbot's calls, and the run's work is incomplete (SKYR-5193). */
1957
1957
  ModelProviderDenied = "model_provider_denied",
1958
1958
  /** The model provider did not answer Testbot's calls, and the run's work is incomplete (SKYR-5193). */
1959
- ModelProviderUnavailable = "model_provider_unavailable"
1959
+ ModelProviderUnavailable = "model_provider_unavailable",
1960
+ /** The app sets it when GitHub or Azure DevOps never showed the job running; the runner never reports it (SKYR-5429). */
1961
+ RunnerProviderNotReady = "runner_provider_not_ready"
1960
1962
  }
1961
1963
  declare enum EvidenceKind {
1962
1964
  CiCheck = "ci_check",
@@ -2191,6 +2193,8 @@ declare enum AttemptState {
2191
2193
  * runs, so it is Validation Blocked, not a failed setup (SKYR-5225). `ModelProviderDenied` / `ModelProviderUnavailable`: the
2192
2194
  * model provider refused the run's calls, or did not answer them once Testbot's retries ran out, before any stage produced
2193
2195
  * usable work; the app derives an infrastructure error and does not retry it (SKYR-5193).
2196
+ * `RunnerProviderNotReady`: GitHub or Azure DevOps did not show the job as running while the runner waited for its token,
2197
+ * so the app runs the attempt again (SKYR-5429).
2194
2198
  */
2195
2199
  export declare enum NoReportCause {
2196
2200
  TimedOut = "timed_out",
@@ -2201,7 +2205,8 @@ export declare enum NoReportCause {
2201
2205
  CheckoutFailed = "checkout_failed",
2202
2206
  EnvironmentUnverified = "environment_unverified",
2203
2207
  ModelProviderDenied = "model_provider_denied",
2204
- ModelProviderUnavailable = "model_provider_unavailable"
2208
+ ModelProviderUnavailable = "model_provider_unavailable",
2209
+ RunnerProviderNotReady = "runner_provider_not_ready"
2205
2210
  }
2206
2211
  declare const SourceRefSchema: z.ZodDiscriminatedUnion<"provider", [
2207
2212
  z.ZodObject<{
@@ -4011,6 +4016,12 @@ export interface V3RunnerDeps {
4011
4016
  log?: (line: string) => void;
4012
4017
  /** Pause between retries of a call the app did not answer (default 2 s, then 4 s). */
4013
4018
  retryDelayMs?: number;
4019
+ /** Pause between tries while the app answers that the job is not ready yet (default 10 s). */
4020
+ readyWaitMs?: number;
4021
+ /** Receives why a credentials request for either token (`access`) failed, before the caller sees it (SKYR-5429). */
4022
+ onTokenRefused?: (error: unknown, access: CredentialAccess) => void;
4023
+ /** Receives each credentials request for either token (`access`) that the app answered with a token (SKYR-5429). */
4024
+ onTokenGranted?: (access: CredentialAccess) => void;
4014
4025
  /**
4015
4026
  * The job's own token for its source host (RunnerHost.takeSourceToken): on Azure DevOps, System.AccessToken. The app
4016
4027
  * gives such a job no token, so the attempt uses this one for its sources.
@@ -4022,6 +4033,10 @@ declare enum RunnerMethod {
4022
4033
  Post = "POST",
4023
4034
  Put = "PUT"
4024
4035
  }
4036
+ declare enum CredentialAccess {
4037
+ Run = "run",
4038
+ Read = "read"
4039
+ }
4025
4040
  /** 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
4041
  export interface SourceRestOptions {
4027
4042
  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.205",
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/.",