@levr-one/cli 0.9.23 → 0.9.25

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/cli.js CHANGED
@@ -213,7 +213,7 @@ Examples:
213
213
  aliases: { d: "device-code" }
214
214
  },
215
215
  loader: async () => {
216
- const { loginHandler } = await import("./loginHandler-DPD1W7OS.js");
216
+ const { loginHandler } = await import("./loginHandler-172r5DUi.js");
217
217
  return loginHandler;
218
218
  }
219
219
  });
@@ -252,7 +252,7 @@ Examples:
252
252
  },
253
253
  parameters: {},
254
254
  loader: async () => {
255
- const { statusHandler } = await import("./statusHandler-CdyRH4An.js");
255
+ const { statusHandler } = await import("./statusHandler-B1BoR_a4.js");
256
256
  return statusHandler;
257
257
  }
258
258
  });
@@ -364,7 +364,7 @@ Examples:
364
364
  }
365
365
  },
366
366
  loader: async () => {
367
- const { pushHandler } = await import("./pushHandler-DpDN_d0H.js");
367
+ const { pushHandler } = await import("./pushHandler-BwpXPxwH.js");
368
368
  return pushHandler;
369
369
  }
370
370
  });
@@ -484,7 +484,7 @@ Examples:
484
484
  }
485
485
  },
486
486
  loader: async () => {
487
- const { importHandler } = await import("./importHandler-Bqu-n2I0.js");
487
+ const { importHandler } = await import("./importHandler-B2EukQ6y.js");
488
488
  return importHandler;
489
489
  }
490
490
  });
@@ -505,7 +505,7 @@ Examples:
505
505
  },
506
506
  parameters: {},
507
507
  loader: async () => {
508
- const { listHandler } = await import("./listHandler-D2qLvZ3K.js");
508
+ const { listHandler } = await import("./listHandler-Cd0dtTqZ.js");
509
509
  return listHandler;
510
510
  }
511
511
  });
@@ -538,7 +538,7 @@ Examples:
538
538
  flags: {}
539
539
  },
540
540
  loader: async () => {
541
- const { selectHandler } = await import("./selectHandler-CaCywIE9.js");
541
+ const { selectHandler } = await import("./selectHandler-CMc-vN0O.js");
542
542
  return selectHandler;
543
543
  }
544
544
  });
@@ -562,7 +562,7 @@ Examples:
562
562
 
563
563
  //#endregion
564
564
  //#region package.json
565
- var version = "0.9.23";
565
+ var version = "0.9.25";
566
566
 
567
567
  //#endregion
568
568
  //#region src/app.ts
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl, getTeamId } from "./env-CHeKHu5S.js";
2
- import { authGetProfileV1, configureClient, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-Dxrxhc41.js";
2
+ import { authGetProfileV1, configureClient, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-D7mJV9ML.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-BvVflX3F.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-CZMkwuLN.js";
5
5
  import "./token-refresh-Cu5RpkLJ.js";
6
6
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
7
7
  import chalk from "chalk";
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-Dxrxhc41.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-D7mJV9ML.js";
3
3
  import { loadWorkspace } from "./workspace-store-DDOxnut1.js";
4
4
  import "./token-refresh-Cu5RpkLJ.js";
5
5
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
@@ -1,7 +1,7 @@
1
1
  import { CLI_CLIENT_ID, getApiUrl, getAuthUrl, setSessionApiUrl, writeCredentials } from "./env-CHeKHu5S.js";
2
- import { configureClient } from "./sdk-client-Dxrxhc41.js";
2
+ import { configureClient } from "./sdk-client-D7mJV9ML.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-BvVflX3F.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-CZMkwuLN.js";
5
5
  import chalk from "chalk";
6
6
  import { createHash, randomBytes } from "node:crypto";
7
7
  import { createServer } from "node:http";
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl, getAutomationSourceIdOverride, getSourceOverride, getTeamId } from "./env-CHeKHu5S.js";
2
- import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-Dxrxhc41.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-D7mJV9ML.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-BvVflX3F.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-CZMkwuLN.js";
5
5
  import "./token-refresh-Cu5RpkLJ.js";
6
6
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
7
7
  import { readFileSync, statSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { authGetSitesV1 } from "./sdk-client-Dxrxhc41.js";
1
+ import { authGetSitesV1 } from "./sdk-client-D7mJV9ML.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -215,6 +215,12 @@ const zCascadeSkipDto = z.object({
215
215
  issue: zCascadeIssueRefDto,
216
216
  reason: z.string()
217
217
  });
218
+ const zCompletedLinkedRunDto = z.object({
219
+ id: z.string(),
220
+ name: z.record(z.string(), z.unknown()).nullable(),
221
+ is_gate_run: z.boolean(),
222
+ advisory_not_run: z.number().describe("")
223
+ });
218
224
 
219
225
  //#endregion
220
226
  //#region ../sdk/dist/runtime/client.js
@@ -14269,7 +14275,6 @@ const zGateSetRestoreV1Data = z.object({
14269
14275
  //#region ../sdk/dist/gen/gate-set-definition/zod.js
14270
14276
  const zCreateGateSetDefinitionDto = z.object({
14271
14277
  id: z.string().optional().describe(""),
14272
- required: z.boolean().optional().describe(""),
14273
14278
  sort_order: z.number().optional().describe(""),
14274
14279
  override_verification_rule: z.unknown().optional().describe(""),
14275
14280
  gate_set_id: z.string(),
@@ -14277,7 +14282,6 @@ const zCreateGateSetDefinitionDto = z.object({
14277
14282
  });
14278
14283
  const zResponseGateSetDefinitionDto = z.object({
14279
14284
  id: z.string().describe(""),
14280
- required: z.boolean().optional().describe(""),
14281
14285
  sort_order: z.number().optional().describe(""),
14282
14286
  override_verification_rule: z.unknown().optional().describe(""),
14283
14287
  gate_set_id: z.string(),
@@ -14293,7 +14297,6 @@ const zResponseGateSetDefinitionDto = z.object({
14293
14297
  });
14294
14298
  const zUpdateGateSetDefinitionDto = z.object({
14295
14299
  id: z.string().optional().describe(""),
14296
- required: z.boolean().optional().describe(""),
14297
14300
  sort_order: z.number().optional().describe(""),
14298
14301
  override_verification_rule: z.unknown().optional().describe(""),
14299
14302
  gate_set_id: z.string().optional(),
@@ -14340,7 +14343,6 @@ const zGateSetDefinitionFindAllV1Data = z.object({
14340
14343
  "page": z.number().optional(),
14341
14344
  "limit": z.number().optional(),
14342
14345
  "filter.id": z.array(z.string()).optional(),
14343
- "filter.required": z.array(z.string()).optional(),
14344
14346
  "filter.sort_order": z.array(z.string()).optional(),
14345
14347
  "filter.gate_set_id": z.array(z.string()).optional(),
14346
14348
  "filter.gate_definition_id": z.array(z.string()).optional(),
@@ -16250,13 +16252,35 @@ const zIssueGateVerificationReportGateResultsV1Body = z.object({ results: z.arra
16250
16252
  ]),
16251
16253
  output: z.string(),
16252
16254
  expected: z.string().optional(),
16255
+ step_id: z.string().optional().describe(""),
16256
+ rule_hash: z.string().optional().describe(""),
16253
16257
  steps: z.array(z.object({
16254
16258
  command: z.string(),
16255
16259
  exit_code: z.number(),
16256
16260
  stdout_tail: z.string(),
16257
- stderr_tail: z.string()
16261
+ stderr_tail: z.string(),
16262
+ step_id: z.string().optional().describe("")
16258
16263
  })).optional()
16259
16264
  })) });
16265
+ const zIssueGateVerificationDeployGatesV1Body = z.object({
16266
+ root_folder_name: z.string(),
16267
+ child_folders: z.array(z.object({
16268
+ deliverable: z.number(),
16269
+ name: z.string()
16270
+ })),
16271
+ tests_by_deliverable: z.record(z.string(), z.array(z.object({
16272
+ name: z.string(),
16273
+ required: z.boolean().optional().describe(""),
16274
+ advisory_reason: z.string().optional().describe(""),
16275
+ data: z.record(z.string(), z.unknown()).optional()
16276
+ }))).describe(""),
16277
+ link_template: z.record(z.string(), z.string()),
16278
+ verification_rule: z.record(z.string(), z.unknown()).optional(),
16279
+ replace_existing: z.boolean().optional(),
16280
+ rename_reused: z.boolean().optional(),
16281
+ test_origin: z.string().optional(),
16282
+ validate: z.boolean().optional()
16283
+ });
16260
16284
  const zIssueGateVerificationGateStatusV1Data = z.object({
16261
16285
  path: z.object({ "id": z.string() }),
16262
16286
  query: z.object({ "executor_type": z.enum([
@@ -16280,7 +16304,10 @@ const zIssueGateVerificationReportGateResultsV1Data = z.object({
16280
16304
  path: z.object({ "id": z.string() }),
16281
16305
  url: z.literal("/v1/issue/{id}/gate-results")
16282
16306
  });
16283
- const zIssueGateVerificationDeployGatesV1Data = z.object({ url: z.literal("/v1/issue/deploy-gates") });
16307
+ const zIssueGateVerificationDeployGatesV1Data = z.object({
16308
+ body: zIssueGateVerificationDeployGatesV1Body,
16309
+ url: z.literal("/v1/issue/deploy-gates")
16310
+ });
16284
16311
 
16285
16312
  //#endregion
16286
16313
  //#region ../sdk/dist/gen/issue-history/zod.js
@@ -16952,6 +16979,7 @@ const zCreateIssueTestLinkDto = z.object({
16952
16979
  origin_run_result_id: z.string().nullable().optional().describe(""),
16953
16980
  latest_run_result_id: z.string().nullable().optional().describe(""),
16954
16981
  verified_at: z.unknown().optional().describe(""),
16982
+ required: z.boolean().optional().describe(""),
16955
16983
  issue_id: z.string(),
16956
16984
  test_id: z.string().nullable().optional(),
16957
16985
  automation_test_id: z.string().nullable().optional(),
@@ -16983,8 +17011,10 @@ const zResponseIssueTestLinkDto = z.object({
16983
17011
  gate_slot: z.string().nullable().optional().describe(""),
16984
17012
  gate_content_hash: z.string().nullable().optional().describe(""),
16985
17013
  gate_drifted: z.boolean().nullable().optional().describe(""),
16986
- required: z.boolean().nullable().optional().describe(""),
16987
- required_override: z.boolean().nullable().optional().describe(""),
17014
+ required: z.boolean().optional().describe(""),
17015
+ advisory_reason: z.string().nullable().optional().describe(""),
17016
+ required_set_at: z.unknown().optional().describe(""),
17017
+ required_set_by: z.string().nullable().optional().describe(""),
16988
17018
  waived_reason: z.string().nullable().optional().describe(""),
16989
17019
  waived_at: z.unknown().optional().describe(""),
16990
17020
  last_attempt_at: z.unknown().optional().describe(""),
@@ -17018,6 +17048,7 @@ const zUpdateIssueTestLinkDto = z.object({
17018
17048
  origin_run_result_id: z.string().nullable().optional().describe(""),
17019
17049
  latest_run_result_id: z.string().nullable().optional().describe(""),
17020
17050
  verified_at: z.unknown().optional().describe(""),
17051
+ required: z.boolean().optional().describe(""),
17021
17052
  issue_id: z.string().optional(),
17022
17053
  test_id: z.string().nullable().optional(),
17023
17054
  automation_test_id: z.string().nullable().optional(),
@@ -17081,7 +17112,9 @@ const zIssueTestLinkFindAllV1Data = z.object({
17081
17112
  "filter.gate_content_hash": z.array(z.string()).optional(),
17082
17113
  "filter.gate_drifted": z.array(z.string()).optional(),
17083
17114
  "filter.required": z.array(z.string()).optional(),
17084
- "filter.required_override": z.array(z.string()).optional(),
17115
+ "filter.advisory_reason": z.array(z.string()).optional(),
17116
+ "filter.required_set_at": z.array(z.string()).optional(),
17117
+ "filter.required_set_by": z.array(z.string()).optional(),
17085
17118
  "filter.waived_reason": z.array(z.string()).optional(),
17086
17119
  "filter.waived_at": z.array(z.string()).optional(),
17087
17120
  "filter.last_attempt_at": z.array(z.string()).optional(),
@@ -17116,6 +17149,10 @@ const zIssueTestLinkFindAllV1Data = z.object({
17116
17149
  "gate_slot:DESC",
17117
17150
  "gate_content_hash:ASC",
17118
17151
  "gate_content_hash:DESC",
17152
+ "advisory_reason:ASC",
17153
+ "advisory_reason:DESC",
17154
+ "required_set_at:ASC",
17155
+ "required_set_at:DESC",
17119
17156
  "waived_reason:ASC",
17120
17157
  "waived_reason:DESC",
17121
17158
  "waived_at:ASC",
@@ -17142,6 +17179,8 @@ const zIssueTestLinkFindAllV1Data = z.object({
17142
17179
  "gate_definition_id:DESC",
17143
17180
  "waived_by:ASC",
17144
17181
  "waived_by:DESC",
17182
+ "required_set_by:ASC",
17183
+ "required_set_by:DESC",
17145
17184
  "verified_by_user_id:ASC",
17146
17185
  "verified_by_user_id:DESC",
17147
17186
  "created_at:ASC",
@@ -17172,6 +17211,14 @@ const zIssueTestLinkBulkOperationV1Data = z.object({
17172
17211
  url: z.literal("/v1/issue-test-link/bulk")
17173
17212
  });
17174
17213
 
17214
+ //#endregion
17215
+ //#region ../sdk/dist/gen/issue-test-link-waiver/zod.js
17216
+ const zRevokeLinkWaiverResponseDto = z.object({ evidence_id: z.string().describe("") });
17217
+ const zIssueTestLinkWaiverRevokeWaiverV1Data = z.object({
17218
+ path: z.object({ "id": z.string() }),
17219
+ url: z.literal("/v1/issue-test-link/{id}/revoke-waiver")
17220
+ });
17221
+
17175
17222
  //#endregion
17176
17223
  //#region ../sdk/dist/gen/issue-transition/zod.js
17177
17224
  const zTransitionIssueDto = z.object({
@@ -17181,6 +17228,11 @@ const zTransitionIssueDto = z.object({
17181
17228
  "leave_children",
17182
17229
  "cascade_children"
17183
17230
  ]).optional().describe(""),
17231
+ run_completion: z.enum([
17232
+ "require_runs",
17233
+ "complete_runs",
17234
+ "leave_runs"
17235
+ ]).optional().describe(""),
17184
17236
  verification_override: z.array(z.object({
17185
17237
  link_id: z.string(),
17186
17238
  kind: z.enum(["override", "not_applicable"]),
@@ -24478,10 +24530,14 @@ const zCreateRunDto = z.object({
24478
24530
  environment_ids: z.array(z.string()).optional(),
24479
24531
  test_inclusions: z.array(z.object({
24480
24532
  test_id: z.string(),
24481
- folder_id: z.string().optional()
24533
+ folder_id: z.string().optional(),
24534
+ required: z.boolean().optional()
24482
24535
  })).optional(),
24483
24536
  folder_id: z.string().nullable(),
24484
- sequence: z.string().optional()
24537
+ sequence: z.string().optional(),
24538
+ required: z.enum(["all", "none"]).optional(),
24539
+ required_test_ids: z.array(z.string()).optional(),
24540
+ not_required_test_ids: z.array(z.string()).optional()
24485
24541
  });
24486
24542
  const zUpdateRunDto = z.object({
24487
24543
  name: z.string().optional(),
@@ -24570,6 +24626,7 @@ const zRunWithContentDto = z.object({
24570
24626
  assignee_id: z.string().nullable(),
24571
24627
  flakiness: z.number().nullable(),
24572
24628
  priority: z.number().nullable(),
24629
+ required: z.boolean().optional(),
24573
24630
  failure_signature_id: z.string().nullable(),
24574
24631
  test_snapshot: z.record(z.string(), z.unknown()).nullable(),
24575
24632
  test_data: z.record(z.string(), z.unknown()).nullable(),
@@ -24619,6 +24676,7 @@ const zRunResultNodeDto = z.object({
24619
24676
  assignee_id: z.string().nullable(),
24620
24677
  flakiness: z.number().nullable(),
24621
24678
  priority: z.number().nullable(),
24679
+ required: z.boolean().optional(),
24622
24680
  failure_signature_id: z.string().nullable(),
24623
24681
  test_snapshot: z.record(z.string(), z.unknown()).nullable(),
24624
24682
  test_data: z.record(z.string(), z.unknown()).nullable(),
@@ -24659,7 +24717,8 @@ const zRunResultNodeDto = z.object({
24659
24717
  const zUpdateRunResultDto = z.object({
24660
24718
  status_id: z.string().optional(),
24661
24719
  assignee_id: z.string().nullable(),
24662
- flakiness: z.number().nullable()
24720
+ flakiness: z.number().nullable(),
24721
+ required: z.boolean().optional().describe("")
24663
24722
  });
24664
24723
  const zBulkRemoveRunResultsDto = z.object({ run_result_ids: z.array(z.string()) });
24665
24724
  const zBulkAssignRunResultsDto = z.object({
@@ -24719,11 +24778,16 @@ const zUpdateExecutionStepDto = z.object({
24719
24778
  elapsed_time: z.number().nullable()
24720
24779
  });
24721
24780
  const zAddTestsToRunDto = z.object({
24722
- tests: z.array(z.object({ test_id: z.string() })),
24781
+ tests: z.array(z.object({
24782
+ test_id: z.string(),
24783
+ required: z.boolean().optional()
24784
+ })),
24723
24785
  environment_ids: z.array(z.string()).optional(),
24724
- auto_add_tests_to_team: z.boolean().optional()
24786
+ auto_add_tests_to_team: z.boolean().optional(),
24787
+ required: z.enum(["all", "none"]).optional(),
24788
+ required_test_ids: z.array(z.string()).optional(),
24789
+ not_required_test_ids: z.array(z.string()).optional()
24725
24790
  });
24726
- const zUpdateTestsEpochDto = z.object({ run_result_ids: z.array(z.string()).optional() });
24727
24791
  const zRefreshFolderDto = z.object({
24728
24792
  folder_id: z.string(),
24729
24793
  auto_add_tests_to_team: z.boolean().optional()
@@ -24906,11 +24970,6 @@ const zRunApiAddTestsToRunV1Data = z.object({
24906
24970
  path: z.object({ "runId": z.string() }),
24907
24971
  url: z.literal("/v1/run/{runId}/tests")
24908
24972
  });
24909
- const zRunApiUpdateTestsEpochV1Data = z.object({
24910
- body: zUpdateTestsEpochDto,
24911
- path: z.object({ "runId": z.string() }),
24912
- url: z.literal("/v1/run/{runId}/tests/update-epoch")
24913
- });
24914
24973
  const zRunApiRefreshRunResultV1Data = z.object({
24915
24974
  path: z.object({
24916
24975
  "runId": z.string(),
@@ -30588,7 +30647,13 @@ const zUserPreferenceRestoreV1Data = z.object({
30588
30647
  //#region ../sdk/dist/gen/verify/zod.js
30589
30648
  const zVerifyDigestRequestDto = z.object({
30590
30649
  entity: z.string().describe(""),
30591
- level: z.union([z.number(), z.number()]).optional().describe("")
30650
+ level: z.union([z.number(), z.number()]).optional().describe(""),
30651
+ due_reason: z.enum([
30652
+ "interval",
30653
+ "dirty",
30654
+ "never_stamped"
30655
+ ]).optional().describe(""),
30656
+ pass_id: z.string().optional().describe("")
30592
30657
  });
30593
30658
  const zFoldedDigestDto = z.object({
30594
30659
  n: z.number().describe(""),
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-Dxrxhc41.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-D7mJV9ML.js";
3
3
  import { saveWorkspace } from "./workspace-store-DDOxnut1.js";
4
4
  import "./token-refresh-Cu5RpkLJ.js";
5
5
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
@@ -1,5 +1,5 @@
1
1
  import { getApiUrl, getPatToken, readCredentials } from "./env-CHeKHu5S.js";
2
- import { authGetProfileV1, configureClient } from "./sdk-client-Dxrxhc41.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-D7mJV9ML.js";
3
3
  import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
4
4
  import chalk from "chalk";
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levr-one/cli",
3
- "version": "0.9.23",
3
+ "version": "0.9.25",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",