@lexq/cli 1.1.6 → 1.1.7
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/index.js +6 -3
- package/dist/mcp/register.js +2 -2
- package/package.json +1 -1
- package/skills/lexq-groups/SKILL.md +3 -2
package/dist/index.js
CHANGED
|
@@ -608,7 +608,10 @@ ${data.length} total`);
|
|
|
608
608
|
The remaining traffic continues to the current live version.
|
|
609
609
|
`
|
|
610
610
|
);
|
|
611
|
-
abTest.command("start").description("Start an A/B test").requiredOption("--group-id <groupId>", "Policy group ID").requiredOption(
|
|
611
|
+
abTest.command("start").description("Start an A/B test").requiredOption("--group-id <groupId>", "Policy group ID").requiredOption(
|
|
612
|
+
"--version-id <versionId>",
|
|
613
|
+
"Challenger version ID (a published version of this group)"
|
|
614
|
+
).requiredOption(
|
|
612
615
|
"--traffic-rate <rate>",
|
|
613
616
|
`Traffic rate for challenger (${MIN_TRAFFIC_RATE}-${MAX_TRAFFIC_RATE})`
|
|
614
617
|
).addHelpText(
|
|
@@ -3760,10 +3763,10 @@ function registerGroupTools(server, callApi) {
|
|
|
3760
3763
|
{
|
|
3761
3764
|
title: "Start A/B Test",
|
|
3762
3765
|
annotations: { readOnlyHint: false, destructiveHint: false },
|
|
3763
|
-
description: "Start an A/B test on a policy group. Requires a challenger version ID and traffic rate. The split is computed from context.trafficKey on each execution request; requests that omit it never reach the challenger and the test stays at 0%.",
|
|
3766
|
+
description: "Start an A/B test on a policy group. Requires a challenger version ID and traffic rate. The challenger must be a published version of the same group; a version from another group is rejected with P-016. The split is computed from context.trafficKey on each execution request; requests that omit it never reach the challenger and the test stays at 0%.",
|
|
3764
3767
|
inputSchema: z2.object({
|
|
3765
3768
|
groupId: z2.string().uuid().describe("Policy group ID"),
|
|
3766
|
-
testVersionId: z2.string().uuid().describe("Challenger version ID
|
|
3769
|
+
testVersionId: z2.string().uuid().describe("Challenger version ID. Must be a published version of this group"),
|
|
3767
3770
|
trafficRate: z2.number().int().min(1).max(99).describe("Traffic percentage routed to challenger (1-99)")
|
|
3768
3771
|
})
|
|
3769
3772
|
},
|
package/dist/mcp/register.js
CHANGED
|
@@ -182,10 +182,10 @@ function registerGroupTools(server, callApi) {
|
|
|
182
182
|
{
|
|
183
183
|
title: "Start A/B Test",
|
|
184
184
|
annotations: { readOnlyHint: false, destructiveHint: false },
|
|
185
|
-
description: "Start an A/B test on a policy group. Requires a challenger version ID and traffic rate. The split is computed from context.trafficKey on each execution request; requests that omit it never reach the challenger and the test stays at 0%.",
|
|
185
|
+
description: "Start an A/B test on a policy group. Requires a challenger version ID and traffic rate. The challenger must be a published version of the same group; a version from another group is rejected with P-016. The split is computed from context.trafficKey on each execution request; requests that omit it never reach the challenger and the test stays at 0%.",
|
|
186
186
|
inputSchema: z2.object({
|
|
187
187
|
groupId: z2.string().uuid().describe("Policy group ID"),
|
|
188
|
-
testVersionId: z2.string().uuid().describe("Challenger version ID
|
|
188
|
+
testVersionId: z2.string().uuid().describe("Challenger version ID. Must be a published version of this group"),
|
|
189
189
|
trafficRate: z2.number().int().min(1).max(99).describe("Traffic percentage routed to challenger (1-99)")
|
|
190
190
|
})
|
|
191
191
|
},
|
package/package.json
CHANGED
|
@@ -220,8 +220,9 @@ lexq groups ab-test start --group-id <groupId> --version-id <activeVersionId> --
|
|
|
220
220
|
|
|
221
221
|
`--traffic-rate` is the percentage (1–99) of traffic routed to the test version.
|
|
222
222
|
|
|
223
|
-
The test version must be `ACTIVE` (published) and different from the live version.
|
|
224
|
-
scheduled deployment for the
|
|
223
|
+
The test version must be a version of the same group, `ACTIVE` (published), and different from the live version. A
|
|
224
|
+
version from another group is rejected with `P-016`. Starting a test cancels any pending scheduled deployment for the
|
|
225
|
+
group.
|
|
225
226
|
|
|
226
227
|
### Adjust Traffic
|
|
227
228
|
|