@skyramp/mcp 0.5.0-rc.10 → 0.5.0-rc.11
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.
|
@@ -13,6 +13,8 @@ type ContractParams = BaseTestParams & {
|
|
|
13
13
|
parentStatusCode?: Record<string, string>;
|
|
14
14
|
parentFormParams?: Record<string, string>;
|
|
15
15
|
skipProvisionParents?: boolean;
|
|
16
|
+
uniqueFields?: string[];
|
|
17
|
+
cleanupPath?: string;
|
|
16
18
|
};
|
|
17
19
|
export declare class ContractTestService extends TestGenerationService {
|
|
18
20
|
protected getTestType(): TestType;
|
|
@@ -113,6 +113,14 @@ const baseContractTestSchema = {
|
|
|
113
113
|
.boolean()
|
|
114
114
|
.default(false)
|
|
115
115
|
.describe("When true, skips generating setup/teardown functions for the provider contract test. Requires providerMode to be enabled. Not allowed together with parentRequestData or parentStatusCode."),
|
|
116
|
+
uniqueFields: z
|
|
117
|
+
.array(z.string())
|
|
118
|
+
.optional()
|
|
119
|
+
.describe("Request-body fields (JSON paths, e.g. 'name', 'owner.email') the test sends a run-unique value for, so a rerun does not collide with data a previous run left (HTTP 409). Use for fields the API keeps unique: names, slugs, SKUs, emails."),
|
|
120
|
+
cleanupPath: z
|
|
121
|
+
.string()
|
|
122
|
+
.optional()
|
|
123
|
+
.describe("For a provider test of a POST with no API schema: the item route the created entity is deleted through after the test, e.g. '/api/v1/products/{product_id}'. Its id is read from responseData, which must hold it."),
|
|
116
124
|
};
|
|
117
125
|
const consumerModeSchemaFields = {
|
|
118
126
|
consumerMode: z
|
|
@@ -370,6 +378,10 @@ The generated consumer contract test contains a stub test function that uses Sky
|
|
|
370
378
|
parentStatusCode: params.parentStatusCode,
|
|
371
379
|
parentFormParams: params.parentFormParams,
|
|
372
380
|
skipProvisionParents: params.skipProvisionParents,
|
|
381
|
+
...(params.uniqueFields?.length
|
|
382
|
+
? { uniqueFields: params.uniqueFields }
|
|
383
|
+
: {}),
|
|
384
|
+
...(params.cleanupPath ? { cleanupPath: params.cleanupPath } : {}),
|
|
373
385
|
};
|
|
374
386
|
if (CONSUMER_MODE_ENABLED) {
|
|
375
387
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SKYRAMP_IMAGE_VERSION = "v1.3.
|
|
2
|
-
export declare const EXECUTOR_DOCKER_IMAGE = "skyramp/executor:v1.3.
|
|
3
|
-
export declare const WORKER_DOCKER_IMAGE = "skyramp/worker:v1.3.
|
|
1
|
+
export declare const SKYRAMP_IMAGE_VERSION = "v1.3.54";
|
|
2
|
+
export declare const EXECUTOR_DOCKER_IMAGE = "skyramp/executor:v1.3.54";
|
|
3
|
+
export declare const WORKER_DOCKER_IMAGE = "skyramp/worker:v1.3.54";
|
|
4
4
|
export declare const WORKER_CONTROL_PORT = 35142;
|
package/build/utils/versions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const SKYRAMP_IMAGE_VERSION = "v1.3.
|
|
1
|
+
export const SKYRAMP_IMAGE_VERSION = "v1.3.54";
|
|
2
2
|
export const EXECUTOR_DOCKER_IMAGE = `skyramp/executor:${SKYRAMP_IMAGE_VERSION}`;
|
|
3
3
|
export const WORKER_DOCKER_IMAGE = `skyramp/worker:${SKYRAMP_IMAGE_VERSION}`;
|
|
4
4
|
// Control port the Skyramp worker listens on (SDK `CONTAINER_PORT`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyramp/mcp",
|
|
3
|
-
"version": "0.5.0-rc.
|
|
3
|
+
"version": "0.5.0-rc.11",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./build/index.js",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@modelcontextprotocol/client": "^2.0.0",
|
|
73
73
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
74
74
|
"@playwright/test": "^1.55.0",
|
|
75
|
-
"@skyramp/skyramp": "1.3.
|
|
75
|
+
"@skyramp/skyramp": "1.3.54",
|
|
76
76
|
"dockerode": "^5.0.0",
|
|
77
77
|
"fast-glob": "^3.3.3",
|
|
78
78
|
"js-yaml": "^4.1.1",
|