@levr-one/cli 0.6.6 → 0.6.8

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
@@ -180,7 +180,7 @@ Examples:
180
180
  aliases: { d: "device-code" }
181
181
  },
182
182
  loader: async () => {
183
- const { loginHandler } = await import("./loginHandler-CSWf1qIz.js");
183
+ const { loginHandler } = await import("./loginHandler-DOQJYqGM.js");
184
184
  return loginHandler;
185
185
  }
186
186
  });
@@ -219,7 +219,7 @@ Examples:
219
219
  },
220
220
  parameters: {},
221
221
  loader: async () => {
222
- const { statusHandler } = await import("./statusHandler-qJAwarJj.js");
222
+ const { statusHandler } = await import("./statusHandler-CSbV2PU-.js");
223
223
  return statusHandler;
224
224
  }
225
225
  });
@@ -331,7 +331,7 @@ Examples:
331
331
  }
332
332
  },
333
333
  loader: async () => {
334
- const { pushHandler } = await import("./pushHandler-BUm8W-10.js");
334
+ const { pushHandler } = await import("./pushHandler-D4mikuSy.js");
335
335
  return pushHandler;
336
336
  }
337
337
  });
@@ -443,7 +443,7 @@ Examples:
443
443
  }
444
444
  },
445
445
  loader: async () => {
446
- const { importHandler } = await import("./importHandler-ClNFk6YZ.js");
446
+ const { importHandler } = await import("./importHandler-fy1_wIyG.js");
447
447
  return importHandler;
448
448
  }
449
449
  });
@@ -464,7 +464,7 @@ Examples:
464
464
  },
465
465
  parameters: {},
466
466
  loader: async () => {
467
- const { listHandler } = await import("./listHandler-H0U8GXmX.js");
467
+ const { listHandler } = await import("./listHandler-a_EoPh8P.js");
468
468
  return listHandler;
469
469
  }
470
470
  });
@@ -497,7 +497,7 @@ Examples:
497
497
  flags: {}
498
498
  },
499
499
  loader: async () => {
500
- const { selectHandler } = await import("./selectHandler-B82VXtDN.js");
500
+ const { selectHandler } = await import("./selectHandler-Clt_7r-L.js");
501
501
  return selectHandler;
502
502
  }
503
503
  });
@@ -521,7 +521,7 @@ Examples:
521
521
 
522
522
  //#endregion
523
523
  //#region package.json
524
- var version = "0.6.6";
524
+ var version = "0.6.8";
525
525
 
526
526
  //#endregion
527
527
  //#region src/app.ts
@@ -1,7 +1,7 @@
1
1
  import { getApiUrl } from "./env-CHeKHu5S.js";
2
- import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-BEKRw7tC.js";
2
+ import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-GQ-qNUDp.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-D95CN6FK.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-CBZV7ob9.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-BEKRw7tC.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-GQ-qNUDp.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-BEKRw7tC.js";
2
+ import { configureClient } from "./sdk-client-GQ-qNUDp.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-D95CN6FK.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-CBZV7ob9.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-BEKRw7tC.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-GQ-qNUDp.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-D95CN6FK.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-CBZV7ob9.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-BEKRw7tC.js";
1
+ import { authGetSitesV1 } from "./sdk-client-GQ-qNUDp.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -139,6 +139,7 @@ const zResponseWorkspaceDto = z.object({
139
139
  url_key: z.string().describe(""),
140
140
  ai_budget_daily_usd: z.number().nullable().optional().describe(""),
141
141
  ai_budget_monthly_usd: z.number().nullable().optional().describe(""),
142
+ qinetic_enabled: z.boolean().optional().describe(""),
142
143
  created_at: z.unknown().describe(""),
143
144
  updated_at: z.unknown().describe(""),
144
145
  epoch: z.number().describe(""),
@@ -12995,7 +12996,6 @@ const zFolderWithChildrenDto = z.object({
12995
12996
  updated_by: z.string(),
12996
12997
  epoch: z.number(),
12997
12998
  virtual: z.unknown().optional(),
12998
- is_root: z.boolean().optional(),
12999
12999
  assignee_id: z.string().optional(),
13000
13000
  folder_path: z.string().optional(),
13001
13001
  children: z.array(z.union([
@@ -13012,7 +13012,6 @@ const zFolderWithChildrenDto = z.object({
13012
13012
  updated_by: z.string(),
13013
13013
  epoch: z.number(),
13014
13014
  virtual: z.unknown().optional(),
13015
- is_root: z.boolean().optional(),
13016
13015
  assignee_id: z.string().optional(),
13017
13016
  folder_path: z.string().optional()
13018
13017
  }),
@@ -13078,6 +13077,91 @@ const zFolderWithChildrenDto = z.object({
13078
13077
  })
13079
13078
  ]))
13080
13079
  });
13080
+ const zRootLevelResponseDto = z.object({
13081
+ type: z.enum(["root"]),
13082
+ entity_type: z.enum(["test", "run"]),
13083
+ folders: z.array(z.object({
13084
+ type: z.enum(["folder"]),
13085
+ id: z.string(),
13086
+ name: z.string(),
13087
+ description: z.string().optional(),
13088
+ sequence: z.string().optional(),
13089
+ labels: z.array(z.string()),
13090
+ created_at: z.unknown(),
13091
+ updated_at: z.unknown(),
13092
+ created_by: z.string(),
13093
+ updated_by: z.string(),
13094
+ epoch: z.number(),
13095
+ virtual: z.unknown().optional(),
13096
+ assignee_id: z.string().optional(),
13097
+ folder_path: z.string().optional()
13098
+ })),
13099
+ entities: z.array(z.union([z.object({
13100
+ type: z.enum(["test"]),
13101
+ id: z.string(),
13102
+ folder_id: z.string().nullable(),
13103
+ name: z.string(),
13104
+ data: z.record(z.string(), z.unknown()).optional(),
13105
+ sequence: z.string(),
13106
+ labels: z.array(z.string()),
13107
+ is_automated: z.boolean(),
13108
+ priority: z.number(),
13109
+ created_at: z.unknown(),
13110
+ updated_at: z.unknown(),
13111
+ created_by: z.string(),
13112
+ updated_by: z.string(),
13113
+ epoch: z.number(),
13114
+ key: z.number(),
13115
+ assignee_id: z.string().optional(),
13116
+ estimate: z.number().optional(),
13117
+ test_type: z.enum([
13118
+ "manual",
13119
+ "text",
13120
+ "prometheus",
13121
+ "gherkin",
13122
+ "generic_automation",
13123
+ "yaml"
13124
+ ]).nullable(),
13125
+ to_automate: z.boolean()
13126
+ }), z.object({
13127
+ type: z.enum(["run"]),
13128
+ id: z.string(),
13129
+ folder_id: z.string().nullable(),
13130
+ name: z.string(),
13131
+ sequence: z.string(),
13132
+ labels: z.array(z.string()),
13133
+ key: z.number(),
13134
+ run_type: z.string(),
13135
+ triggered_by: z.string(),
13136
+ status_type: z.enum([
13137
+ "Unstarted",
13138
+ "Pass",
13139
+ "Fail",
13140
+ "Cancelled"
13141
+ ]),
13142
+ total_results: z.number(),
13143
+ pass_count: z.number(),
13144
+ fail_count: z.number(),
13145
+ unstarted_count: z.number(),
13146
+ cancelled_count: z.number(),
13147
+ is_complete: z.boolean(),
13148
+ is_automated: z.boolean(),
13149
+ started_at: z.unknown(),
13150
+ ended_at: z.unknown(),
13151
+ total_duration_ms: z.number().nullable(),
13152
+ created_at: z.unknown(),
13153
+ updated_at: z.unknown(),
13154
+ created_by: z.string(),
13155
+ updated_by: z.string(),
13156
+ epoch: z.number()
13157
+ })])),
13158
+ meta: z.object({
13159
+ total_entities: z.number(),
13160
+ page: z.number(),
13161
+ limit: z.number(),
13162
+ total_pages: z.number()
13163
+ })
13164
+ });
13081
13165
  const zFolderNodeDto = z.object({
13082
13166
  type: z.enum(["folder"]),
13083
13167
  id: z.string(),
@@ -13091,7 +13175,6 @@ const zFolderNodeDto = z.object({
13091
13175
  updated_by: z.string(),
13092
13176
  epoch: z.number(),
13093
13177
  virtual: z.unknown(),
13094
- is_root: z.boolean().nullable(),
13095
13178
  assignee_id: z.string().nullable(),
13096
13179
  folder_path: z.string().optional()
13097
13180
  });
@@ -13110,7 +13193,6 @@ const zFolderChildrenResponseDto = z.object({
13110
13193
  updated_by: z.string(),
13111
13194
  epoch: z.number(),
13112
13195
  virtual: z.unknown(),
13113
- is_root: z.boolean().nullable(),
13114
13196
  assignee_id: z.string().nullable(),
13115
13197
  folder_path: z.string().optional()
13116
13198
  }),
@@ -13199,7 +13281,7 @@ const zBulkFolderOperationDto = z.object({
13199
13281
  description: z.string().optional(),
13200
13282
  virtual: z.unknown().optional(),
13201
13283
  assignee_id: z.string().optional(),
13202
- parent_id: z.string().optional(),
13284
+ parent_id: z.string().nullable().optional(),
13203
13285
  sequence: z.string().optional(),
13204
13286
  labels: z.array(z.string()).optional(),
13205
13287
  origin: z.enum(["authored", "automation"]).optional(),
@@ -13209,7 +13291,7 @@ const zBulkFolderOperationDto = z.object({
13209
13291
  description: z.string().optional(),
13210
13292
  virtual: z.unknown().optional(),
13211
13293
  assignee_id: z.string().optional(),
13212
- parent_id: z.string().optional(),
13294
+ parent_id: z.string().nullable().optional(),
13213
13295
  sequence: z.string().optional(),
13214
13296
  add_labels: z.array(z.string()).optional(),
13215
13297
  remove_labels: z.array(z.string()).optional()
@@ -13233,7 +13315,6 @@ const zBulkFolderResponseDto = z.object({
13233
13315
  updated_by: z.string(),
13234
13316
  epoch: z.number(),
13235
13317
  virtual: z.unknown(),
13236
- is_root: z.boolean().nullable(),
13237
13318
  assignee_id: z.string().nullable(),
13238
13319
  folder_path: z.string().optional()
13239
13320
  }).optional(),
@@ -13252,7 +13333,7 @@ const zCreateFolderDto = z.object({
13252
13333
  description: z.string().optional(),
13253
13334
  virtual: z.unknown().optional(),
13254
13335
  assignee_id: z.string().optional(),
13255
- parent_id: z.string().optional(),
13336
+ parent_id: z.string().nullable().optional(),
13256
13337
  sequence: z.string().optional(),
13257
13338
  labels: z.array(z.string()).optional(),
13258
13339
  origin: z.enum(["authored", "automation"]).optional(),
@@ -13263,7 +13344,7 @@ const zUpdateFolderDto = z.object({
13263
13344
  description: z.string().optional(),
13264
13345
  virtual: z.unknown().optional(),
13265
13346
  assignee_id: z.string().optional(),
13266
- parent_id: z.string().optional(),
13347
+ parent_id: z.string().nullable().optional(),
13267
13348
  sequence: z.string().optional(),
13268
13349
  add_labels: z.array(z.string()).optional(),
13269
13350
  remove_labels: z.array(z.string()).optional()
@@ -13280,7 +13361,7 @@ const zFolderFindAllV1Data = z.object({
13280
13361
  "filter.created_by": z.array(z.string()).optional(),
13281
13362
  "filter.updated_at": z.array(z.string()).optional(),
13282
13363
  "filter.updated_by": z.array(z.string()).optional(),
13283
- "filter.is_root": z.array(z.string()).optional(),
13364
+ "filter.parent_id": z.array(z.string()).optional(),
13284
13365
  "filter.assignee_id": z.array(z.string()).optional(),
13285
13366
  "filter.folder_path": z.array(z.string()).optional(),
13286
13367
  "sortBy": z.array(z.enum([
@@ -13304,8 +13385,12 @@ const zFolderFindAllV1Data = z.object({
13304
13385
  }).optional(),
13305
13386
  url: z.literal("/v1/folder")
13306
13387
  });
13307
- const zFolderFindRootFolderV1Data = z.object({
13308
- query: z.object({ "entity_type": z.enum(["test", "run"]).optional() }).optional(),
13388
+ const zFolderGetRootLevelV1Data = z.object({
13389
+ query: z.object({
13390
+ "entity_type": z.enum(["test", "run"]).optional(),
13391
+ "page": z.string().optional(),
13392
+ "limit": z.string().optional()
13393
+ }).optional(),
13309
13394
  url: z.literal("/v1/folder/root")
13310
13395
  });
13311
13396
  const zFolderFindFolderByIdV1Data = z.object({
@@ -22137,6 +22222,13 @@ const zInternalResumeAgentV1Data = z.object({
22137
22222
  url: z.literal("/v1/qinetic/coordination/agents/{id}/resume")
22138
22223
  });
22139
22224
 
22225
+ //#endregion
22226
+ //#region ../sdk/dist/gen/qinetic-provisioning/zod.js
22227
+ const zInternalProvisioningEnableV1Data = z.object({
22228
+ path: z.object({ "id": z.string() }),
22229
+ url: z.literal("/v1/workspace/{id}/qinetic/enable")
22230
+ });
22231
+
22140
22232
  //#endregion
22141
22233
  //#region ../sdk/dist/gen/qinetic-rca-config/zod.js
22142
22234
  const zCreateInternalRcaConfigDto = z.object({
@@ -23952,7 +24044,7 @@ const zUpdateRunDto = z.object({
23952
24044
  is_complete: z.boolean().optional(),
23953
24045
  project_id: z.string().nullable(),
23954
24046
  cycle_id: z.string().nullable(),
23955
- folder_id: z.string().nullable(),
24047
+ folder_id: z.string().nullable().optional(),
23956
24048
  sequence: z.string().optional(),
23957
24049
  parent_run_id: z.unknown().optional()
23958
24050
  });
@@ -27763,7 +27855,7 @@ const zUpdateTestDto = z.object({
27763
27855
  }).optional(),
27764
27856
  priority: z.number().optional(),
27765
27857
  case_type_id: z.string().nullable().optional(),
27766
- folder_id: z.string().optional(),
27858
+ folder_id: z.string().nullable().optional(),
27767
27859
  shared_precondition: z.object({
27768
27860
  create: z.object({
27769
27861
  precondition: z.string().optional(),
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-BEKRw7tC.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-GQ-qNUDp.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-BEKRw7tC.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-GQ-qNUDp.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.6.6",
3
+ "version": "0.6.8",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",