@levr-one/cli 0.8.2 → 0.9.0

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-1oE5kYAA.js");
216
+ const { loginHandler } = await import("./loginHandler-Ct1N7Elo.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-BF-onk1F.js");
255
+ const { statusHandler } = await import("./statusHandler-DYKfY0j1.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-CFu9EqB-.js");
367
+ const { pushHandler } = await import("./pushHandler-7CSPDo-o.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-CIdsG2Mt.js");
487
+ const { importHandler } = await import("./importHandler-Uo_loZAU.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-4m8fjYpK.js");
508
+ const { listHandler } = await import("./listHandler-Bjchx7d2.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-C7ouZV71.js");
541
+ const { selectHandler } = await import("./selectHandler-BHZw9hjM.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.8.2";
565
+ var version = "0.9.0";
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-CXpXHSJk.js";
2
+ import { authGetProfileV1, configureClient, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-B8v6bgC4.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-B75GtcUw.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-BquQJznu.js";
5
5
  import "./token-refresh-Cu5RpkLJ.js";
6
6
  import { resolveToken } from "./resolve-token-DbQsmn03.js";
7
7
  import chalk from "chalk";
@@ -180,12 +180,12 @@ const IMPORT_TARGET_LIST = [
180
180
  "folder_name",
181
181
  "test_name",
182
182
  "test_description",
183
- "test_type",
183
+ "automation_status",
184
+ "automation_type",
184
185
  "case_type_id",
185
186
  "case_type_name",
186
187
  "test_priority",
187
188
  "estimate",
188
- "is_automated",
189
189
  "assignee_email",
190
190
  "labels",
191
191
  "teams",
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-CXpXHSJk.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-B8v6bgC4.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-CXpXHSJk.js";
2
+ import { configureClient } from "./sdk-client-B8v6bgC4.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-B75GtcUw.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-BquQJznu.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-CXpXHSJk.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-B8v6bgC4.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-B75GtcUw.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-BquQJznu.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-CXpXHSJk.js";
1
+ import { authGetSitesV1 } from "./sdk-client-B8v6bgC4.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -11606,13 +11606,11 @@ const zGenerateIssueDraftResponseDto = z.object({
11606
11606
  });
11607
11607
  const zPromoteItemToTestDto = z.object({
11608
11608
  name: z.string().optional().describe(""),
11609
- test_type: z.enum([
11609
+ automation_type: z.enum([
11610
11610
  "manual",
11611
- "text",
11612
- "prometheus",
11613
- "gherkin",
11614
- "generic_automation",
11615
- "yaml"
11611
+ "check",
11612
+ "automated",
11613
+ "agentic"
11616
11614
  ]).optional().describe(""),
11617
11615
  folder_id: z.string().nullable().optional().describe(""),
11618
11616
  description: z.string().optional().describe(""),
@@ -13115,6 +13113,8 @@ const zFolderWithChildrenDto = z.object({
13115
13113
  sequence: z.string(),
13116
13114
  labels: z.array(z.string()),
13117
13115
  is_automated: z.boolean(),
13116
+ automation_status: z.string(),
13117
+ automation_type: z.string(),
13118
13118
  priority: z.number(),
13119
13119
  created_at: z.unknown(),
13120
13120
  updated_at: z.unknown(),
@@ -13141,7 +13141,7 @@ const zFolderWithChildrenDto = z.object({
13141
13141
  sequence: z.string(),
13142
13142
  labels: z.array(z.string()),
13143
13143
  key: z.number(),
13144
- run_type: z.string(),
13144
+ ingestion_method: z.string(),
13145
13145
  triggered_by: z.string(),
13146
13146
  status_type: z.enum([
13147
13147
  "Unstarted",
@@ -13155,7 +13155,6 @@ const zFolderWithChildrenDto = z.object({
13155
13155
  unstarted_count: z.number(),
13156
13156
  cancelled_count: z.number(),
13157
13157
  is_complete: z.boolean(),
13158
- is_automated: z.boolean(),
13159
13158
  started_at: z.unknown(),
13160
13159
  ended_at: z.unknown(),
13161
13160
  total_duration_ms: z.number().nullable(),
@@ -13195,6 +13194,8 @@ const zRootLevelResponseDto = z.object({
13195
13194
  sequence: z.string(),
13196
13195
  labels: z.array(z.string()),
13197
13196
  is_automated: z.boolean(),
13197
+ automation_status: z.string(),
13198
+ automation_type: z.string(),
13198
13199
  priority: z.number(),
13199
13200
  created_at: z.unknown(),
13200
13201
  updated_at: z.unknown(),
@@ -13220,7 +13221,7 @@ const zRootLevelResponseDto = z.object({
13220
13221
  sequence: z.string(),
13221
13222
  labels: z.array(z.string()),
13222
13223
  key: z.number(),
13223
- run_type: z.string(),
13224
+ ingestion_method: z.string(),
13224
13225
  triggered_by: z.string(),
13225
13226
  status_type: z.enum([
13226
13227
  "Unstarted",
@@ -13234,7 +13235,6 @@ const zRootLevelResponseDto = z.object({
13234
13235
  unstarted_count: z.number(),
13235
13236
  cancelled_count: z.number(),
13236
13237
  is_complete: z.boolean(),
13237
- is_automated: z.boolean(),
13238
13238
  started_at: z.unknown(),
13239
13239
  ended_at: z.unknown(),
13240
13240
  total_duration_ms: z.number().nullable(),
@@ -13294,6 +13294,8 @@ const zFolderChildrenResponseDto = z.object({
13294
13294
  sequence: z.string(),
13295
13295
  labels: z.array(z.string()),
13296
13296
  is_automated: z.boolean(),
13297
+ automation_status: z.string(),
13298
+ automation_type: z.string(),
13297
13299
  priority: z.number(),
13298
13300
  created_at: z.unknown(),
13299
13301
  updated_at: z.unknown(),
@@ -13320,7 +13322,7 @@ const zFolderChildrenResponseDto = z.object({
13320
13322
  sequence: z.string(),
13321
13323
  labels: z.array(z.string()),
13322
13324
  key: z.number(),
13323
- run_type: z.string(),
13325
+ ingestion_method: z.string(),
13324
13326
  triggered_by: z.string(),
13325
13327
  status_type: z.enum([
13326
13328
  "Unstarted",
@@ -13334,7 +13336,6 @@ const zFolderChildrenResponseDto = z.object({
13334
13336
  unstarted_count: z.number(),
13335
13337
  cancelled_count: z.number(),
13336
13338
  is_complete: z.boolean(),
13337
- is_automated: z.boolean(),
13338
13339
  started_at: z.unknown(),
13339
13340
  ended_at: z.unknown(),
13340
13341
  total_duration_ms: z.number().nullable(),
@@ -24666,7 +24667,7 @@ const zRunApiFindAllV1Data = z.object({
24666
24667
  "filter.id": z.array(z.string()).optional(),
24667
24668
  "filter.name": z.array(z.string()).optional(),
24668
24669
  "filter.is_complete": z.array(z.string()).optional(),
24669
- "filter.is_automated": z.array(z.string()).optional(),
24670
+ "filter.ingestion_method": z.array(z.string()).optional(),
24670
24671
  "filter.status_type": z.array(z.string()).optional(),
24671
24672
  "filter.project_id": z.array(z.string()).optional(),
24672
24673
  "filter.team_id": z.array(z.string()).optional(),
@@ -28093,6 +28094,17 @@ const zTestResponseDto = z.object({
28093
28094
  "yaml"
28094
28095
  ]).nullable().optional().describe(""),
28095
28096
  to_automate: z.boolean().optional().describe(""),
28097
+ automation_status: z.enum([
28098
+ "not_automated",
28099
+ "to_automate",
28100
+ "automated"
28101
+ ]).optional().describe(""),
28102
+ automation_type: z.enum([
28103
+ "manual",
28104
+ "check",
28105
+ "automated",
28106
+ "agentic"
28107
+ ]).optional().describe(""),
28096
28108
  origin: z.string().optional().describe(""),
28097
28109
  origin_detail: z.string().nullable().optional().describe(""),
28098
28110
  origin_model: z.string().nullable().optional().describe(""),
@@ -28165,6 +28177,17 @@ const zCreateTestDto = z.object({
28165
28177
  "yaml"
28166
28178
  ]).nullable().optional().describe(""),
28167
28179
  to_automate: z.boolean().optional().describe(""),
28180
+ automation_status: z.enum([
28181
+ "not_automated",
28182
+ "to_automate",
28183
+ "automated"
28184
+ ]).optional().describe(""),
28185
+ automation_type: z.enum([
28186
+ "manual",
28187
+ "check",
28188
+ "automated",
28189
+ "agentic"
28190
+ ]).optional().describe(""),
28168
28191
  origin: z.string().optional().describe(""),
28169
28192
  origin_detail: z.string().nullable().optional().describe(""),
28170
28193
  case_type_id: z.string().nullable().optional().describe(""),
@@ -28185,6 +28208,17 @@ const zCreateTestDto = z.object({
28185
28208
  });
28186
28209
  const zUpdateTestDto = z.object({
28187
28210
  name: z.string().optional(),
28211
+ automation_status: z.enum([
28212
+ "not_automated",
28213
+ "to_automate",
28214
+ "automated"
28215
+ ]).optional(),
28216
+ automation_type: z.enum([
28217
+ "manual",
28218
+ "check",
28219
+ "automated",
28220
+ "agentic"
28221
+ ]).optional(),
28188
28222
  is_automated: z.boolean().optional(),
28189
28223
  to_automate: z.boolean().optional(),
28190
28224
  state_mask: z.number().optional(),
@@ -28287,10 +28321,9 @@ const zTestFindAllV1Data = z.object({
28287
28321
  "filter.key": z.array(z.string()).optional(),
28288
28322
  "filter.name": z.array(z.string()).optional(),
28289
28323
  "filter.priority": z.array(z.string()).optional(),
28290
- "filter.test_type": z.array(z.string()).optional(),
28291
28324
  "filter.case_type_id": z.array(z.string()).optional(),
28292
- "filter.is_automated": z.array(z.string()).optional(),
28293
- "filter.to_automate": z.array(z.string()).optional(),
28325
+ "filter.automation_status": z.array(z.string()).optional(),
28326
+ "filter.automation_type": z.array(z.string()).optional(),
28294
28327
  "filter.state_mask": z.array(z.string()).optional(),
28295
28328
  "filter.assignee_id": z.array(z.string()).optional(),
28296
28329
  "filter.created_at": z.array(z.string()).optional(),
@@ -28315,10 +28348,10 @@ const zTestFindAllV1Data = z.object({
28315
28348
  "updated_by:DESC",
28316
28349
  "priority:ASC",
28317
28350
  "priority:DESC",
28318
- "is_automated:ASC",
28319
- "is_automated:DESC",
28320
- "to_automate:ASC",
28321
- "to_automate:DESC"
28351
+ "automation_status:ASC",
28352
+ "automation_status:DESC",
28353
+ "automation_type:ASC",
28354
+ "automation_type:DESC"
28322
28355
  ])).optional(),
28323
28356
  "search": z.string().optional(),
28324
28357
  "searchBy": z.array(z.string()).optional()
@@ -28532,12 +28565,12 @@ const zPreviewImportResponseDto = z.object({
28532
28565
  "folder_name",
28533
28566
  "test_name",
28534
28567
  "test_description",
28535
- "test_type",
28568
+ "automation_status",
28569
+ "automation_type",
28536
28570
  "case_type_id",
28537
28571
  "case_type_name",
28538
28572
  "test_priority",
28539
28573
  "estimate",
28540
- "is_automated",
28541
28574
  "assignee_email",
28542
28575
  "labels",
28543
28576
  "teams",
@@ -28590,12 +28623,12 @@ const zPreviewImportResponseDto = z.object({
28590
28623
  "folder_name",
28591
28624
  "test_name",
28592
28625
  "test_description",
28593
- "test_type",
28626
+ "automation_status",
28627
+ "automation_type",
28594
28628
  "case_type_id",
28595
28629
  "case_type_name",
28596
28630
  "test_priority",
28597
28631
  "estimate",
28598
- "is_automated",
28599
28632
  "assignee_email",
28600
28633
  "labels",
28601
28634
  "teams",
@@ -28649,12 +28682,12 @@ const zCommitImportDto = z.object({
28649
28682
  "folder_name",
28650
28683
  "test_name",
28651
28684
  "test_description",
28652
- "test_type",
28685
+ "automation_status",
28686
+ "automation_type",
28653
28687
  "case_type_id",
28654
28688
  "case_type_name",
28655
28689
  "test_priority",
28656
28690
  "estimate",
28657
- "is_automated",
28658
28691
  "assignee_email",
28659
28692
  "labels",
28660
28693
  "teams",
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-CXpXHSJk.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-B8v6bgC4.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-CXpXHSJk.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-B8v6bgC4.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.8.2",
3
+ "version": "0.9.0",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",