@skyramp/testbot-core 0.13.0-v3.355 → 0.13.0-v3.358
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 +527 -542
- package/dist/post.js +132 -222
- package/dist/runner-client.cjs +89 -89
- package/dist/runner-client.d.cts +17 -18
- package/package.json +1 -1
package/dist/runner-client.d.cts
CHANGED
|
@@ -1847,6 +1847,8 @@ export interface ReportTestPackage {
|
|
|
1847
1847
|
created: boolean;
|
|
1848
1848
|
/** owner/repo the package is in. */
|
|
1849
1849
|
repository?: string;
|
|
1850
|
+
/** The packages a package this run set up installs, name to version: the dependency it adds is named (SKYR-5678). */
|
|
1851
|
+
dependencies?: Record<string, string>;
|
|
1850
1852
|
}
|
|
1851
1853
|
/** A package added to an application manifest (finalize.json dependencies.added). */
|
|
1852
1854
|
export interface ReportDependencyChange {
|
|
@@ -2158,6 +2160,8 @@ declare enum CaveatKind {
|
|
|
2158
2160
|
TestsCouldNotRunHere = "tests-could-not-run-here",
|
|
2159
2161
|
/** Another build stood in for the browser build a test's own Playwright declares (a link): its results may not hold in CI (SKYR-5512). */
|
|
2160
2162
|
BrowserBuildNotDeclared = "browser-build-not-declared",
|
|
2163
|
+
/** Results of test files the session changed after its last run of them: not of the delivered tests (SKYR-5683). */
|
|
2164
|
+
ResultsNotOfDeliveredTests = "results-not-of-delivered-tests",
|
|
2161
2165
|
/** Browser tests the run wrote that have no video, with the reason (ffmpeg missing, not Playwright, budget): SKYR-5675. */
|
|
2162
2166
|
VideoMissing = "video-missing",
|
|
2163
2167
|
/** Checks only of what the change could break elsewhere that this run did not make: reported, not missing evidence. */
|
|
@@ -2186,6 +2190,12 @@ declare enum ReportLanguage {
|
|
|
2186
2190
|
En = "en",
|
|
2187
2191
|
Ja = "ja"
|
|
2188
2192
|
}
|
|
2193
|
+
declare enum CredentialPurpose {
|
|
2194
|
+
ModelProvider = "model_provider",
|
|
2195
|
+
SutAccess = "sut_access",
|
|
2196
|
+
Skyramp = "skyramp",
|
|
2197
|
+
Other = "other"
|
|
2198
|
+
}
|
|
2189
2199
|
export declare enum SourceProvider {
|
|
2190
2200
|
GitHub = "github",
|
|
2191
2201
|
AzureDevOps = "azure-devops"
|
|
@@ -2212,12 +2222,6 @@ declare enum MergedRevisionKind {
|
|
|
2212
2222
|
PullRequest = "pull_request",
|
|
2213
2223
|
Branch = "branch"
|
|
2214
2224
|
}
|
|
2215
|
-
declare enum CredentialPurpose {
|
|
2216
|
-
ModelProvider = "model_provider",
|
|
2217
|
-
SutAccess = "sut_access",
|
|
2218
|
-
Skyramp = "skyramp",
|
|
2219
|
-
Other = "other"
|
|
2220
|
-
}
|
|
2221
2225
|
/** How the upload says generated tests were delivered. `Partial`: some PRs opened and some repositories failed. */
|
|
2222
2226
|
export declare enum DeliveryStatus {
|
|
2223
2227
|
None = "none",
|
|
@@ -3665,7 +3669,6 @@ declare const RunnerHandshakeRequestV1Schema: z.ZodObject<{
|
|
|
3665
3669
|
deployedPins: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3666
3670
|
statedPins: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3667
3671
|
runSettings: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3668
|
-
credentialRelay: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3669
3672
|
}, "strict", z.ZodTypeAny, {
|
|
3670
3673
|
schemaVersion: 1;
|
|
3671
3674
|
runId: string;
|
|
@@ -3691,7 +3694,6 @@ declare const RunnerHandshakeRequestV1Schema: z.ZodObject<{
|
|
|
3691
3694
|
workflowRef: string;
|
|
3692
3695
|
};
|
|
3693
3696
|
runSettings?: true | undefined;
|
|
3694
|
-
credentialRelay?: true | undefined;
|
|
3695
3697
|
requester?: true | undefined;
|
|
3696
3698
|
writeCheck?: true | undefined;
|
|
3697
3699
|
claudeCodePin?: true | undefined;
|
|
@@ -3722,7 +3724,6 @@ declare const RunnerHandshakeRequestV1Schema: z.ZodObject<{
|
|
|
3722
3724
|
workflowRef: string;
|
|
3723
3725
|
};
|
|
3724
3726
|
runSettings?: true | undefined;
|
|
3725
|
-
credentialRelay?: true | undefined;
|
|
3726
3727
|
requester?: true | undefined;
|
|
3727
3728
|
writeCheck?: true | undefined;
|
|
3728
3729
|
claudeCodePin?: true | undefined;
|
|
@@ -4501,14 +4502,14 @@ declare const AttemptHeartbeatV1Schema: z.ZodObject<{
|
|
|
4501
4502
|
schemaVersion: 1;
|
|
4502
4503
|
state: AttemptState;
|
|
4503
4504
|
deadlineAt: string;
|
|
4504
|
-
ending: AttemptEndReason | null;
|
|
4505
4505
|
cause: NoReportCause | null;
|
|
4506
|
+
ending: AttemptEndReason | null;
|
|
4506
4507
|
}, {
|
|
4507
4508
|
schemaVersion: 1;
|
|
4508
4509
|
state: AttemptState;
|
|
4509
4510
|
deadlineAt: string;
|
|
4510
|
-
ending: AttemptEndReason | null;
|
|
4511
4511
|
cause: NoReportCause | null;
|
|
4512
|
+
ending: AttemptEndReason | null;
|
|
4512
4513
|
}>;
|
|
4513
4514
|
export type AttemptHeartbeatV1 = z.infer<typeof AttemptHeartbeatV1Schema>;
|
|
4514
4515
|
declare enum AttemptClosure {
|
|
@@ -4557,8 +4558,8 @@ declare const MergeConflictV1Schema: z.ZodObject<{
|
|
|
4557
4558
|
providerAccountId: string;
|
|
4558
4559
|
providerRepositoryId: string;
|
|
4559
4560
|
};
|
|
4560
|
-
files: string[];
|
|
4561
4561
|
revisions: number[];
|
|
4562
|
+
files: string[];
|
|
4562
4563
|
}, {
|
|
4563
4564
|
repository: {
|
|
4564
4565
|
provider: SourceProvider.GitHub;
|
|
@@ -4569,8 +4570,8 @@ declare const MergeConflictV1Schema: z.ZodObject<{
|
|
|
4569
4570
|
providerAccountId: string;
|
|
4570
4571
|
providerRepositoryId: string;
|
|
4571
4572
|
};
|
|
4572
|
-
files: string[];
|
|
4573
4573
|
revisions: number[];
|
|
4574
|
+
files: string[];
|
|
4574
4575
|
}>;
|
|
4575
4576
|
export type MergeConflictV1 = z.infer<typeof MergeConflictV1Schema>;
|
|
4576
4577
|
declare enum CommitLookup {
|
|
@@ -4760,8 +4761,6 @@ export declare class V3Attempt {
|
|
|
4760
4761
|
}[];
|
|
4761
4762
|
/** The run's MCP and Bedrock settings, on a host whose job file names none (SKYR-5215). Absent when the app did not say. */
|
|
4762
4763
|
readonly runSettings?: RunSettings | undefined;
|
|
4763
|
-
/** A `sut_setup` attempt whose workflow takes credential relays (SKYR-5268): it registers a relay key. */
|
|
4764
|
-
readonly credentialRelay: boolean;
|
|
4765
4764
|
constructor(attemptId: string, attemptNumber: number, deadlineAt: Date, manifest: RunManifestV1, deps: V3RunnerDeps,
|
|
4766
4765
|
/** Absent while the app has licensing off: the run then uses the license file. */
|
|
4767
4766
|
license?: RunLicense | undefined,
|
|
@@ -4788,9 +4787,7 @@ export declare class V3Attempt {
|
|
|
4788
4787
|
revision: string;
|
|
4789
4788
|
}[],
|
|
4790
4789
|
/** The run's MCP and Bedrock settings, on a host whose job file names none (SKYR-5215). Absent when the app did not say. */
|
|
4791
|
-
runSettings?: RunSettings | undefined
|
|
4792
|
-
/** A `sut_setup` attempt whose workflow takes credential relays (SKYR-5268): it registers a relay key. */
|
|
4793
|
-
credentialRelay?: boolean);
|
|
4790
|
+
runSettings?: RunSettings | undefined);
|
|
4794
4791
|
/**
|
|
4795
4792
|
* The run's budget, from now: the time to the attempt deadline, less the post step's reserve. The app fixed the
|
|
4796
4793
|
* deadline from the execution timeout it froze, so the `testbotTimeout` input has no say in a V3 run.
|
|
@@ -4799,6 +4796,8 @@ export declare class V3Attempt {
|
|
|
4799
4796
|
/** The run's page in the app (skyrampRunPageUrl). */
|
|
4800
4797
|
get skyrampRunUrl(): string;
|
|
4801
4798
|
/** One call to an attempt route of the app. */
|
|
4799
|
+
/** Writes one line to the job log. */
|
|
4800
|
+
log(line: string): void;
|
|
4802
4801
|
send<T>(method: RunnerMethod, route: string, body: unknown, deadlineMs?: number): Promise<T>;
|
|
4803
4802
|
/** One read of an attempt route that answers bytes (callAppBytes). */
|
|
4804
4803
|
readBytes(route: string, maxBytes: number): Promise<Buffer>;
|
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.358",
|
|
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.",
|