@skyramp/testbot-core 0.13.0-v3.217 → 0.13.0-v3.218
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 +264 -264
- package/dist/post.js +59 -59
- package/dist/runner-client.cjs +25 -25
- package/dist/runner-client.d.cts +70 -2
- package/package.json +1 -1
package/dist/runner-client.d.cts
CHANGED
|
@@ -3334,6 +3334,65 @@ declare const RequestedBySchema: z.ZodObject<{
|
|
|
3334
3334
|
kind: RequesterKind;
|
|
3335
3335
|
}>;
|
|
3336
3336
|
export type RequestedBy = z.infer<typeof RequestedBySchema>;
|
|
3337
|
+
declare const RunSettingsSchema: z.ZodObject<{
|
|
3338
|
+
mcp: z.ZodDiscriminatedUnion<"source", [
|
|
3339
|
+
z.ZodObject<{
|
|
3340
|
+
source: z.ZodLiteral<"npm">;
|
|
3341
|
+
version: z.ZodNullable<z.ZodString>;
|
|
3342
|
+
}, "strict", z.ZodTypeAny, {
|
|
3343
|
+
source: "npm";
|
|
3344
|
+
version: string | null;
|
|
3345
|
+
}, {
|
|
3346
|
+
source: "npm";
|
|
3347
|
+
version: string | null;
|
|
3348
|
+
}>,
|
|
3349
|
+
z.ZodObject<{
|
|
3350
|
+
source: z.ZodLiteral<"github">;
|
|
3351
|
+
ref: z.ZodString;
|
|
3352
|
+
}, "strict", z.ZodTypeAny, {
|
|
3353
|
+
source: "github";
|
|
3354
|
+
ref: string;
|
|
3355
|
+
}, {
|
|
3356
|
+
source: "github";
|
|
3357
|
+
ref: string;
|
|
3358
|
+
}>
|
|
3359
|
+
]>;
|
|
3360
|
+
bedrock: z.ZodNullable<z.ZodObject<{
|
|
3361
|
+
region: z.ZodString;
|
|
3362
|
+
roleArn: z.ZodString;
|
|
3363
|
+
}, "strict", z.ZodTypeAny, {
|
|
3364
|
+
region: string;
|
|
3365
|
+
roleArn: string;
|
|
3366
|
+
}, {
|
|
3367
|
+
region: string;
|
|
3368
|
+
roleArn: string;
|
|
3369
|
+
}>>;
|
|
3370
|
+
}, "strict", z.ZodTypeAny, {
|
|
3371
|
+
mcp: {
|
|
3372
|
+
source: "npm";
|
|
3373
|
+
version: string | null;
|
|
3374
|
+
} | {
|
|
3375
|
+
source: "github";
|
|
3376
|
+
ref: string;
|
|
3377
|
+
};
|
|
3378
|
+
bedrock: {
|
|
3379
|
+
region: string;
|
|
3380
|
+
roleArn: string;
|
|
3381
|
+
} | null;
|
|
3382
|
+
}, {
|
|
3383
|
+
mcp: {
|
|
3384
|
+
source: "npm";
|
|
3385
|
+
version: string | null;
|
|
3386
|
+
} | {
|
|
3387
|
+
source: "github";
|
|
3388
|
+
ref: string;
|
|
3389
|
+
};
|
|
3390
|
+
bedrock: {
|
|
3391
|
+
region: string;
|
|
3392
|
+
roleArn: string;
|
|
3393
|
+
} | null;
|
|
3394
|
+
}>;
|
|
3395
|
+
export type RunSettings = z.infer<typeof RunSettingsSchema>;
|
|
3337
3396
|
declare const RunnerHandshakeRequestV1Schema: z.ZodObject<{
|
|
3338
3397
|
schemaVersion: z.ZodLiteral<1>;
|
|
3339
3398
|
runId: z.ZodString;
|
|
@@ -3422,6 +3481,7 @@ declare const RunnerHandshakeRequestV1Schema: z.ZodObject<{
|
|
|
3422
3481
|
claudeCodePin: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3423
3482
|
deployedPins: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3424
3483
|
statedPins: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3484
|
+
runSettings: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3425
3485
|
}, "strict", z.ZodTypeAny, {
|
|
3426
3486
|
schemaVersion: 1;
|
|
3427
3487
|
runId: string;
|
|
@@ -3446,6 +3506,7 @@ declare const RunnerHandshakeRequestV1Schema: z.ZodObject<{
|
|
|
3446
3506
|
providerRunAttempt: number;
|
|
3447
3507
|
workflowRef: string;
|
|
3448
3508
|
};
|
|
3509
|
+
runSettings?: true | undefined;
|
|
3449
3510
|
requester?: true | undefined;
|
|
3450
3511
|
writeCheck?: true | undefined;
|
|
3451
3512
|
claudeCodePin?: true | undefined;
|
|
@@ -3475,6 +3536,7 @@ declare const RunnerHandshakeRequestV1Schema: z.ZodObject<{
|
|
|
3475
3536
|
providerRunAttempt: number;
|
|
3476
3537
|
workflowRef: string;
|
|
3477
3538
|
};
|
|
3539
|
+
runSettings?: true | undefined;
|
|
3478
3540
|
requester?: true | undefined;
|
|
3479
3541
|
writeCheck?: true | undefined;
|
|
3480
3542
|
claudeCodePin?: true | undefined;
|
|
@@ -3989,6 +4051,8 @@ export interface RunnerHost {
|
|
|
3989
4051
|
readonly assumesBedrockRole: boolean;
|
|
3990
4052
|
/** Whether the Skyramp MCP server needs the run's repository and provider: the job's env names neither. */
|
|
3991
4053
|
readonly namesSourceToMcp: boolean;
|
|
4054
|
+
/** Whether the job's file names no MCP or Bedrock input, so the handshake asks the app for them (SKYR-5215). */
|
|
4055
|
+
readonly runSettingsFromApp: boolean;
|
|
3992
4056
|
/** Throws when `repository` cannot be a repository on this host: its names go into paths and URLs. */
|
|
3993
4057
|
checkSourceName(repository: SourceName): void;
|
|
3994
4058
|
/** The clone URL of `repository`, which is also where gitAuthEnv sends the token. */
|
|
@@ -4087,6 +4151,8 @@ export declare class V3Attempt {
|
|
|
4087
4151
|
repository: SourceRef;
|
|
4088
4152
|
revision: string;
|
|
4089
4153
|
}[];
|
|
4154
|
+
/** The run's MCP and Bedrock settings, on a host whose job file names none (SKYR-5215). Absent when the app did not say. */
|
|
4155
|
+
readonly runSettings?: RunSettings | undefined;
|
|
4090
4156
|
constructor(attemptId: string, attemptNumber: number, deadlineAt: Date, manifest: RunManifestV1, deps: V3RunnerDeps,
|
|
4091
4157
|
/** Absent while the app has licensing off: the run then uses the license file. */
|
|
4092
4158
|
license?: RunLicense | undefined,
|
|
@@ -4111,7 +4177,9 @@ export declare class V3Attempt {
|
|
|
4111
4177
|
statedPins?: readonly {
|
|
4112
4178
|
repository: SourceRef;
|
|
4113
4179
|
revision: string;
|
|
4114
|
-
}[]
|
|
4180
|
+
}[],
|
|
4181
|
+
/** The run's MCP and Bedrock settings, on a host whose job file names none (SKYR-5215). Absent when the app did not say. */
|
|
4182
|
+
runSettings?: RunSettings | undefined);
|
|
4115
4183
|
/**
|
|
4116
4184
|
* The run's budget, from now: the time to the attempt deadline, less the post step's reserve. The app fixed the
|
|
4117
4185
|
* deadline from the execution timeout it froze, so the `testbotTimeout` input has no say in a V3 run.
|
|
@@ -4172,7 +4240,7 @@ export declare class V3Attempt {
|
|
|
4172
4240
|
private revokeOne;
|
|
4173
4241
|
}
|
|
4174
4242
|
/** The handshake. Refuses a manifest whose hash does not match, that names another run, or a source on another provider. */
|
|
4175
|
-
export declare function startV3Attempt(runId: string, host: Pick<RunnerHost, "execution"
|
|
4243
|
+
export declare function startV3Attempt(runId: string, host: Pick<RunnerHost, "execution"> & Partial<Pick<RunnerHost, "runSettingsFromApp">>, deps: V3RunnerDeps): Promise<V3Attempt>;
|
|
4176
4244
|
/** The attempt as the app holds it. */
|
|
4177
4245
|
export declare function heartbeatV3Attempt(attempt: V3Attempt): Promise<AttemptHeartbeatV1>;
|
|
4178
4246
|
/**
|
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.218",
|
|
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.",
|