@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 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("--version-id <versionId>", "Challenger version 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 to test"),
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
  },
@@ -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 to test"),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexq/cli",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "mcpName": "io.lexq/lexq",
5
5
  "description": "LexQ CLI — manage policies, simulate rules, and deploy from the terminal. Built for humans and AI agents.",
6
6
  "type": "module",
@@ -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. Starting a test cancels any pending
224
- scheduled deployment for the group.
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