@skyramp/testbot-core 0.13.0-v3.203 → 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.
- package/dist/VERSION.json +1 -1
- package/dist/main.js +365 -365
- package/dist/post.js +255 -255
- package/dist/runner-client.cjs +54 -54
- package/dist/runner-client.d.cts +24 -2
- package/package.json +1 -1
package/dist/runner-client.d.cts
CHANGED
|
@@ -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",
|
|
@@ -2000,6 +2002,13 @@ export interface AcceptedEvidence {
|
|
|
2000
2002
|
* `actionRequired` reason, is never a validated success. The app refuses a report that breaks the rules below.
|
|
2001
2003
|
*/
|
|
2002
2004
|
export interface ReportValidation {
|
|
2005
|
+
/** A prerequisite the changed code failed before validation could begin; never an environment setup failure. */
|
|
2006
|
+
blockedPreflight?: {
|
|
2007
|
+
file: string;
|
|
2008
|
+
repository?: string;
|
|
2009
|
+
reason: string;
|
|
2010
|
+
evidence: string;
|
|
2011
|
+
};
|
|
2003
2012
|
sufficiency: ValidationSufficiency;
|
|
2004
2013
|
/** Why the evidence is, or is not, enough. Never empty. */
|
|
2005
2014
|
rationale: string;
|
|
@@ -2184,6 +2193,8 @@ declare enum AttemptState {
|
|
|
2184
2193
|
* runs, so it is Validation Blocked, not a failed setup (SKYR-5225). `ModelProviderDenied` / `ModelProviderUnavailable`: the
|
|
2185
2194
|
* model provider refused the run's calls, or did not answer them once Testbot's retries ran out, before any stage produced
|
|
2186
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).
|
|
2187
2198
|
*/
|
|
2188
2199
|
export declare enum NoReportCause {
|
|
2189
2200
|
TimedOut = "timed_out",
|
|
@@ -2194,7 +2205,8 @@ export declare enum NoReportCause {
|
|
|
2194
2205
|
CheckoutFailed = "checkout_failed",
|
|
2195
2206
|
EnvironmentUnverified = "environment_unverified",
|
|
2196
2207
|
ModelProviderDenied = "model_provider_denied",
|
|
2197
|
-
ModelProviderUnavailable = "model_provider_unavailable"
|
|
2208
|
+
ModelProviderUnavailable = "model_provider_unavailable",
|
|
2209
|
+
RunnerProviderNotReady = "runner_provider_not_ready"
|
|
2198
2210
|
}
|
|
2199
2211
|
declare const SourceRefSchema: z.ZodDiscriminatedUnion<"provider", [
|
|
2200
2212
|
z.ZodObject<{
|
|
@@ -4004,6 +4016,12 @@ export interface V3RunnerDeps {
|
|
|
4004
4016
|
log?: (line: string) => void;
|
|
4005
4017
|
/** Pause between retries of a call the app did not answer (default 2 s, then 4 s). */
|
|
4006
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;
|
|
4007
4025
|
/**
|
|
4008
4026
|
* The job's own token for its source host (RunnerHost.takeSourceToken): on Azure DevOps, System.AccessToken. The app
|
|
4009
4027
|
* gives such a job no token, so the attempt uses this one for its sources.
|
|
@@ -4015,6 +4033,10 @@ declare enum RunnerMethod {
|
|
|
4015
4033
|
Post = "POST",
|
|
4016
4034
|
Put = "PUT"
|
|
4017
4035
|
}
|
|
4036
|
+
declare enum CredentialAccess {
|
|
4037
|
+
Run = "run",
|
|
4038
|
+
Read = "read"
|
|
4039
|
+
}
|
|
4018
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. */
|
|
4019
4041
|
export interface SourceRestOptions {
|
|
4020
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.
|
|
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/.",
|