@levr-one/cli 0.8.2 → 0.9.1

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-tt3zsHJ6.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-CX4ULg3s.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-XMcjwUY_.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-CEkJTuIO.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-FY-HkjDg.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-BVyfRKT2.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.1";
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-7Yu4mQLM.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-B75GtcUw.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-BW_qxG5P.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-7Yu4mQLM.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-7Yu4mQLM.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-B75GtcUw.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-BW_qxG5P.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-7Yu4mQLM.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-B75GtcUw.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-BW_qxG5P.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-7Yu4mQLM.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(),
@@ -27670,6 +27671,8 @@ const zPriorityBootstrapRequestDto = z.object({
27670
27671
  column: z.string().describe(""),
27671
27672
  value: z.string().describe("")
27672
27673
  });
27674
+ const zEntityPresenceRequestDto = z.object({ entities: z.array(z.string()).describe("") });
27675
+ const zEntityPresenceResponseDto = z.object({ present: z.record(z.string(), z.boolean()).describe("") });
27673
27676
  const zTransactionOperationDto = z.object({
27674
27677
  op: z.enum([
27675
27678
  "create",
@@ -27709,6 +27712,10 @@ const zSyncPriorityBootstrapV1Data = z.object({
27709
27712
  url: z.literal("/v1/sync/priority-bootstrap")
27710
27713
  });
27711
27714
  const zSyncSchemaVersionsV1Data = z.object({ url: z.literal("/v1/sync/schema-versions") });
27715
+ const zSyncEntityPresenceV1Data = z.object({
27716
+ body: zEntityPresenceRequestDto,
27717
+ url: z.literal("/v1/sync/entity-presence")
27718
+ });
27712
27719
  const zSyncProcessBulkTransactionsV1Data = z.object({
27713
27720
  body: zBulkTransactionRequestDto,
27714
27721
  url: z.literal("/v1/sync/transactions")
@@ -28093,6 +28100,17 @@ const zTestResponseDto = z.object({
28093
28100
  "yaml"
28094
28101
  ]).nullable().optional().describe(""),
28095
28102
  to_automate: z.boolean().optional().describe(""),
28103
+ automation_status: z.enum([
28104
+ "not_automated",
28105
+ "to_automate",
28106
+ "automated"
28107
+ ]).optional().describe(""),
28108
+ automation_type: z.enum([
28109
+ "manual",
28110
+ "check",
28111
+ "automated",
28112
+ "agentic"
28113
+ ]).optional().describe(""),
28096
28114
  origin: z.string().optional().describe(""),
28097
28115
  origin_detail: z.string().nullable().optional().describe(""),
28098
28116
  origin_model: z.string().nullable().optional().describe(""),
@@ -28165,6 +28183,17 @@ const zCreateTestDto = z.object({
28165
28183
  "yaml"
28166
28184
  ]).nullable().optional().describe(""),
28167
28185
  to_automate: z.boolean().optional().describe(""),
28186
+ automation_status: z.enum([
28187
+ "not_automated",
28188
+ "to_automate",
28189
+ "automated"
28190
+ ]).optional().describe(""),
28191
+ automation_type: z.enum([
28192
+ "manual",
28193
+ "check",
28194
+ "automated",
28195
+ "agentic"
28196
+ ]).optional().describe(""),
28168
28197
  origin: z.string().optional().describe(""),
28169
28198
  origin_detail: z.string().nullable().optional().describe(""),
28170
28199
  case_type_id: z.string().nullable().optional().describe(""),
@@ -28185,6 +28214,17 @@ const zCreateTestDto = z.object({
28185
28214
  });
28186
28215
  const zUpdateTestDto = z.object({
28187
28216
  name: z.string().optional(),
28217
+ automation_status: z.enum([
28218
+ "not_automated",
28219
+ "to_automate",
28220
+ "automated"
28221
+ ]).optional(),
28222
+ automation_type: z.enum([
28223
+ "manual",
28224
+ "check",
28225
+ "automated",
28226
+ "agentic"
28227
+ ]).optional(),
28188
28228
  is_automated: z.boolean().optional(),
28189
28229
  to_automate: z.boolean().optional(),
28190
28230
  state_mask: z.number().optional(),
@@ -28287,10 +28327,9 @@ const zTestFindAllV1Data = z.object({
28287
28327
  "filter.key": z.array(z.string()).optional(),
28288
28328
  "filter.name": z.array(z.string()).optional(),
28289
28329
  "filter.priority": z.array(z.string()).optional(),
28290
- "filter.test_type": z.array(z.string()).optional(),
28291
28330
  "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(),
28331
+ "filter.automation_status": z.array(z.string()).optional(),
28332
+ "filter.automation_type": z.array(z.string()).optional(),
28294
28333
  "filter.state_mask": z.array(z.string()).optional(),
28295
28334
  "filter.assignee_id": z.array(z.string()).optional(),
28296
28335
  "filter.created_at": z.array(z.string()).optional(),
@@ -28315,10 +28354,10 @@ const zTestFindAllV1Data = z.object({
28315
28354
  "updated_by:DESC",
28316
28355
  "priority:ASC",
28317
28356
  "priority:DESC",
28318
- "is_automated:ASC",
28319
- "is_automated:DESC",
28320
- "to_automate:ASC",
28321
- "to_automate:DESC"
28357
+ "automation_status:ASC",
28358
+ "automation_status:DESC",
28359
+ "automation_type:ASC",
28360
+ "automation_type:DESC"
28322
28361
  ])).optional(),
28323
28362
  "search": z.string().optional(),
28324
28363
  "searchBy": z.array(z.string()).optional()
@@ -28532,12 +28571,12 @@ const zPreviewImportResponseDto = z.object({
28532
28571
  "folder_name",
28533
28572
  "test_name",
28534
28573
  "test_description",
28535
- "test_type",
28574
+ "automation_status",
28575
+ "automation_type",
28536
28576
  "case_type_id",
28537
28577
  "case_type_name",
28538
28578
  "test_priority",
28539
28579
  "estimate",
28540
- "is_automated",
28541
28580
  "assignee_email",
28542
28581
  "labels",
28543
28582
  "teams",
@@ -28590,12 +28629,12 @@ const zPreviewImportResponseDto = z.object({
28590
28629
  "folder_name",
28591
28630
  "test_name",
28592
28631
  "test_description",
28593
- "test_type",
28632
+ "automation_status",
28633
+ "automation_type",
28594
28634
  "case_type_id",
28595
28635
  "case_type_name",
28596
28636
  "test_priority",
28597
28637
  "estimate",
28598
- "is_automated",
28599
28638
  "assignee_email",
28600
28639
  "labels",
28601
28640
  "teams",
@@ -28649,12 +28688,12 @@ const zCommitImportDto = z.object({
28649
28688
  "folder_name",
28650
28689
  "test_name",
28651
28690
  "test_description",
28652
- "test_type",
28691
+ "automation_status",
28692
+ "automation_type",
28653
28693
  "case_type_id",
28654
28694
  "case_type_name",
28655
28695
  "test_priority",
28656
28696
  "estimate",
28657
- "is_automated",
28658
28697
  "assignee_email",
28659
28698
  "labels",
28660
28699
  "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-7Yu4mQLM.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-7Yu4mQLM.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.1",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",