@lexq/cli 0.1.31 → 0.1.32

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/CONTEXT.md CHANGED
@@ -112,7 +112,7 @@ live)
112
112
 
113
113
  ### Simulation Statuses
114
114
 
115
- `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`, `CANCELLED`
115
+ `PENDING`, `RUNNING`, `COMPLETED`, `FAILED`, `CANCELED`
116
116
 
117
117
  ### Decision Statuses
118
118
 
package/dist/index.js CHANGED
@@ -435,7 +435,7 @@ ${data.length} total`);
435
435
  const answer = await rl.question(`Delete group ${opts.id}? [y/N] `);
436
436
  rl.close();
437
437
  if (answer.toLowerCase() !== "y") {
438
- console.log("Cancelled.");
438
+ console.log("Canceled.");
439
439
  return;
440
440
  }
441
441
  }
@@ -543,7 +543,7 @@ ${data.length} total`);
543
543
  const answer = await rl.question(`Stop A/B test for group ${opts.groupId}? [y/N] `);
544
544
  rl.close();
545
545
  if (answer.toLowerCase() !== "y") {
546
- console.log("Cancelled.");
546
+ console.log("Canceled.");
547
547
  return;
548
548
  }
549
549
  }
@@ -755,7 +755,7 @@ ${data.totalElements} total \xB7 page ${data.pageNo + 1}/${data.totalPages}`);
755
755
  const answer = await rl.question(`Delete version ${opts.id}? [y/N] `);
756
756
  rl.close();
757
757
  if (answer.toLowerCase() !== "y") {
758
- console.log("Cancelled.");
758
+ console.log("Canceled.");
759
759
  return;
760
760
  }
761
761
  }
@@ -996,7 +996,7 @@ ${data.length} total`);
996
996
  const answer = await rl.question(`Delete rule ${opts.id}? [y/N] `);
997
997
  rl.close();
998
998
  if (answer.toLowerCase() !== "y") {
999
- console.log("Cancelled.");
999
+ console.log("Canceled.");
1000
1000
  return;
1001
1001
  }
1002
1002
  }
@@ -1220,7 +1220,7 @@ ${data.totalElements} total \xB7 page ${data.pageNo + 1}/${data.totalPages}`);
1220
1220
  const answer = await rl.question(`Delete fact ${opts.id}? [y/N] `);
1221
1221
  rl.close();
1222
1222
  if (answer.toLowerCase() !== "y") {
1223
- console.log("Cancelled.");
1223
+ console.log("Canceled.");
1224
1224
  return;
1225
1225
  }
1226
1226
  }
@@ -1377,7 +1377,7 @@ function registerDeployCommands(program) {
1377
1377
  const answer = await rl.question(`Rollback group ${opts.groupId}? [y/N] `);
1378
1378
  rl.close();
1379
1379
  if (answer.toLowerCase() !== "y") {
1380
- console.log("Cancelled.");
1380
+ console.log("Canceled.");
1381
1381
  return;
1382
1382
  }
1383
1383
  }
@@ -1412,7 +1412,7 @@ function registerDeployCommands(program) {
1412
1412
  const answer = await rl.question(`Undeploy group ${opts.groupId}? [y/N] `);
1413
1413
  rl.close();
1414
1414
  if (answer.toLowerCase() !== "y") {
1415
- console.log("Cancelled.");
1415
+ console.log("Canceled.");
1416
1416
  return;
1417
1417
  }
1418
1418
  }
@@ -1867,10 +1867,7 @@ function registerAnalyticsCommands(program) {
1867
1867
  process.exit(1);
1868
1868
  }
1869
1869
  });
1870
- sim.command("list").description("List simulation history").option(
1871
- "--status <status>",
1872
- "Filter by status (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED)"
1873
- ).option("--from <date>", "Start date (yyyy-MM-dd)").option("--to <date>", "End date (yyyy-MM-dd)").option("--page <number>", "Page number", "0").option("--size <number>", "Page size", "20").action(async (opts) => {
1870
+ sim.command("list").description("List simulation history").option("--status <status>", "Filter by status (PENDING, RUNNING, COMPLETED, FAILED, CANCELED)").option("--from <date>", "Start date (yyyy-MM-dd)").option("--to <date>", "End date (yyyy-MM-dd)").option("--page <number>", "Page number", "0").option("--size <number>", "Page size", "20").action(async (opts) => {
1874
1871
  try {
1875
1872
  const globalOpts = program.opts();
1876
1873
  const format = globalOpts.format ?? "json";
@@ -1917,7 +1914,7 @@ ${data.totalElements} total \xB7 page ${data.pageNo + 1}/${data.totalPages}`);
1917
1914
  "after",
1918
1915
  dedent8`
1919
1916
 
1920
- Only PENDING or RUNNING simulations can be cancelled.
1917
+ Only PENDING or RUNNING simulations can be canceled.
1921
1918
  `
1922
1919
  ).action(async (opts) => {
1923
1920
  try {
@@ -1928,7 +1925,7 @@ ${data.totalElements} total \xB7 page ${data.pageNo + 1}/${data.totalPages}`);
1928
1925
  const answer = await rl.question(`Cancel simulation ${opts.id}? [y/N] `);
1929
1926
  rl.close();
1930
1927
  if (answer.toLowerCase() !== "y") {
1931
- console.log("Cancelled.");
1928
+ console.log("Canceled.");
1932
1929
  return;
1933
1930
  }
1934
1931
  }
@@ -1938,7 +1935,7 @@ ${data.totalElements} total \xB7 page ${data.pageNo + 1}/${data.totalPages}`);
1938
1935
  dryRun: globalOpts.dryRun,
1939
1936
  verbose: globalOpts.verbose
1940
1937
  });
1941
- console.log(`\u2713 Simulation ${opts.id} cancelled.`);
1938
+ console.log(`\u2713 Simulation ${opts.id} canceled.`);
1942
1939
  } catch (error) {
1943
1940
  printError(error);
1944
1941
  process.exit(1);
@@ -2388,7 +2385,7 @@ ${data.totalElements} total \xB7 page ${data.pageNo + 1}/${data.totalPages}`);
2388
2385
  const answer = await rl.question(`Delete integration ${opts.id}? [y/N] `);
2389
2386
  rl.close();
2390
2387
  if (answer.toLowerCase() !== "y") {
2391
- console.log("Cancelled.");
2388
+ console.log("Canceled.");
2392
2389
  return;
2393
2390
  }
2394
2391
  }
@@ -2765,7 +2762,7 @@ ${data.totalElements} total \xB7 page ${data.pageNo + 1}/${data.totalPages}`);
2765
2762
  const answer = await rl.question(`Delete webhook subscription ${opts.id}? [y/N] `);
2766
2763
  rl.close();
2767
2764
  if (answer.toLowerCase() !== "y") {
2768
- console.log("Cancelled.");
2765
+ console.log("Canceled.");
2769
2766
  return;
2770
2767
  }
2771
2768
  }
@@ -3597,7 +3594,7 @@ function registerAnalyticsTools(server, callApi) {
3597
3594
  inputSchema: {
3598
3595
  page: z6.number().int().min(0).default(0).describe("Page number"),
3599
3596
  size: z6.number().int().min(1).max(100).default(20).describe("Page size"),
3600
- status: z6.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED", "CANCELLED"]).optional().describe("Filter by status"),
3597
+ status: z6.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED", "CANCELED"]).optional().describe("Filter by status"),
3601
3598
  from: z6.string().optional().describe("Start date (yyyy-MM-dd)"),
3602
3599
  to: z6.string().optional().describe("End date (yyyy-MM-dd)")
3603
3600
  }
@@ -4175,7 +4172,7 @@ function registerDomainTemplateCommands(program) {
4175
4172
  );
4176
4173
  rl.close();
4177
4174
  if (answer.toLowerCase() !== "y") {
4178
- console.log("Cancelled.");
4175
+ console.log("Canceled.");
4179
4176
  return;
4180
4177
  }
4181
4178
  }
@@ -727,7 +727,7 @@ function registerAnalyticsTools(server, callApi) {
727
727
  inputSchema: {
728
728
  page: z6.number().int().min(0).default(0).describe("Page number"),
729
729
  size: z6.number().int().min(1).max(100).default(20).describe("Page size"),
730
- status: z6.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED", "CANCELLED"]).optional().describe("Filter by status"),
730
+ status: z6.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED", "CANCELED"]).optional().describe("Filter by status"),
731
731
  from: z6.string().optional().describe("Start date (yyyy-MM-dd)"),
732
732
  to: z6.string().optional().describe("End date (yyyy-MM-dd)")
733
733
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexq/cli",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "LexQ CLI — manage policies, simulate rules, and deploy from the terminal. Built for humans and AI agents.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -260,7 +260,7 @@ Simulation is async. Poll until `status` is `COMPLETED` or `FAILED`.
260
260
  | `RUNNING` | In progress (`progress` field shows 0–100) |
261
261
  | `COMPLETED` | Done — results available |
262
262
  | `FAILED` | Error occurred |
263
- | `CANCELLED` | Manually cancelled |
263
+ | `CANCELED` | Manually canceled |
264
264
 
265
265
  ### List Simulations
266
266