@levr-one/cli 0.5.12 → 0.6.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/README.md +1 -1
- package/dist/cli.js +9 -8
- package/dist/{importHandler-Bnyx-U3z.js → importHandler-wY3tFusK.js} +2 -2
- package/dist/{listHandler-Bsv-WRO5.js → listHandler-CovRX35T.js} +1 -1
- package/dist/{loginHandler-CJK-EvQR.js → loginHandler-CkgLWdHW.js} +2 -2
- package/dist/{pushHandler-DqwTndrh.js → pushHandler-A0jjDZFJ.js} +2 -2
- package/dist/{resolve-workspace-CBBAbNqF.js → resolve-workspace-2DsYymDv.js} +1 -1
- package/dist/{sdk-client-C5-tPv06.js → sdk-client-DpLn8Vau.js} +12 -9
- package/dist/{selectHandler-sCE63-w3.js → selectHandler-rPxNjupR.js} +1 -1
- package/dist/{statusHandler-CFwH9bOl.js → statusHandler-BeJPCp_P.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -147,7 +147,7 @@ levr push ./results.xml --source "backend-unit-tests" --run-name "nightly"
|
|
|
147
147
|
| `--team-id <uuid>` | `-t` | Team ID (optional; server resolves default if omitted. Or set `LEVR_TEAM_ID`) |
|
|
148
148
|
| `--source <name>` | `-s` | Automation source name — groups recurring imports and remembers team (auto-detected in CI) |
|
|
149
149
|
| `--run-name <name>` | `-r` | Name for the test run |
|
|
150
|
-
| `--format <type>` | `-f` | File format: `junit`, `gherkin`, `cucumber-json` (auto-detected if omitted)
|
|
150
|
+
| `--format <type>` | `-f` | File format: `junit`, `gherkin`, `cucumber-json`, `ctrf-json` (auto-detected if omitted) |
|
|
151
151
|
| `--parent-folder-id <uuid>` | | Destination folder ID |
|
|
152
152
|
| `--create-run` | | Force run creation for structure-only imports |
|
|
153
153
|
| `--update-mode <mode>` | | `update` (default) or `create_new` |
|
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-
|
|
183
|
+
const { loginHandler } = await import("./loginHandler-CkgLWdHW.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-
|
|
222
|
+
const { statusHandler } = await import("./statusHandler-BeJPCp_P.js");
|
|
223
223
|
return statusHandler;
|
|
224
224
|
}
|
|
225
225
|
});
|
|
@@ -295,7 +295,8 @@ Examples:
|
|
|
295
295
|
values: [
|
|
296
296
|
"junit",
|
|
297
297
|
"gherkin",
|
|
298
|
-
"cucumber-json"
|
|
298
|
+
"cucumber-json",
|
|
299
|
+
"ctrf-json"
|
|
299
300
|
],
|
|
300
301
|
brief: "File format (auto-detected if omitted)",
|
|
301
302
|
optional: true
|
|
@@ -330,7 +331,7 @@ Examples:
|
|
|
330
331
|
}
|
|
331
332
|
},
|
|
332
333
|
loader: async () => {
|
|
333
|
-
const { pushHandler } = await import("./pushHandler-
|
|
334
|
+
const { pushHandler } = await import("./pushHandler-A0jjDZFJ.js");
|
|
334
335
|
return pushHandler;
|
|
335
336
|
}
|
|
336
337
|
});
|
|
@@ -442,7 +443,7 @@ Examples:
|
|
|
442
443
|
}
|
|
443
444
|
},
|
|
444
445
|
loader: async () => {
|
|
445
|
-
const { importHandler } = await import("./importHandler-
|
|
446
|
+
const { importHandler } = await import("./importHandler-wY3tFusK.js");
|
|
446
447
|
return importHandler;
|
|
447
448
|
}
|
|
448
449
|
});
|
|
@@ -463,7 +464,7 @@ Examples:
|
|
|
463
464
|
},
|
|
464
465
|
parameters: {},
|
|
465
466
|
loader: async () => {
|
|
466
|
-
const { listHandler } = await import("./listHandler-
|
|
467
|
+
const { listHandler } = await import("./listHandler-CovRX35T.js");
|
|
467
468
|
return listHandler;
|
|
468
469
|
}
|
|
469
470
|
});
|
|
@@ -496,7 +497,7 @@ Examples:
|
|
|
496
497
|
flags: {}
|
|
497
498
|
},
|
|
498
499
|
loader: async () => {
|
|
499
|
-
const { selectHandler } = await import("./selectHandler-
|
|
500
|
+
const { selectHandler } = await import("./selectHandler-rPxNjupR.js");
|
|
500
501
|
return selectHandler;
|
|
501
502
|
}
|
|
502
503
|
});
|
|
@@ -520,7 +521,7 @@ Examples:
|
|
|
520
521
|
|
|
521
522
|
//#endregion
|
|
522
523
|
//#region package.json
|
|
523
|
-
var version = "0.
|
|
524
|
+
var version = "0.6.0";
|
|
524
525
|
|
|
525
526
|
//#endregion
|
|
526
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-
|
|
2
|
+
import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-DpLn8Vau.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-2DsYymDv.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-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-DpLn8Vau.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-
|
|
2
|
+
import { configureClient } from "./sdk-client-DpLn8Vau.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { autoSelectWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { autoSelectWorkspace } from "./resolve-workspace-2DsYymDv.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-
|
|
2
|
+
import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-DpLn8Vau.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-2DsYymDv.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";
|
|
@@ -3425,8 +3425,6 @@ const zAutomationRunResultFindAllV1Data = z.object({
|
|
|
3425
3425
|
"filter.trace": z.array(z.string()).optional(),
|
|
3426
3426
|
"filter.snippet": z.array(z.string()).optional(),
|
|
3427
3427
|
"filter.failure_type": z.array(z.string()).optional(),
|
|
3428
|
-
"filter.stdout": z.array(z.string()).optional(),
|
|
3429
|
-
"filter.stderr": z.array(z.string()).optional(),
|
|
3430
3428
|
"filter.stdout_truncated": z.array(z.string()).optional(),
|
|
3431
3429
|
"filter.stderr_truncated": z.array(z.string()).optional(),
|
|
3432
3430
|
"filter.source_locator": z.array(z.string()).optional(),
|
|
@@ -3462,10 +3460,6 @@ const zAutomationRunResultFindAllV1Data = z.object({
|
|
|
3462
3460
|
"snippet:DESC",
|
|
3463
3461
|
"failure_type:ASC",
|
|
3464
3462
|
"failure_type:DESC",
|
|
3465
|
-
"stdout:ASC",
|
|
3466
|
-
"stdout:DESC",
|
|
3467
|
-
"stderr:ASC",
|
|
3468
|
-
"stderr:DESC",
|
|
3469
3463
|
"source_locator:ASC",
|
|
3470
3464
|
"source_locator:DESC",
|
|
3471
3465
|
"automation_suite_id:ASC",
|
|
@@ -3520,6 +3514,13 @@ const zAutomationRunResultUnarchiveV1Data = z.object({
|
|
|
3520
3514
|
url: z.literal("/v1/automation-run-result/{id}/unarchive")
|
|
3521
3515
|
});
|
|
3522
3516
|
|
|
3517
|
+
//#endregion
|
|
3518
|
+
//#region ../sdk/dist/gen/automation-run-result-console/zod.js
|
|
3519
|
+
const zAutomationRunResultConsoleGetConsoleV1Data = z.object({
|
|
3520
|
+
path: z.object({ "id": z.string() }),
|
|
3521
|
+
url: z.literal("/v1/automation-run-result/{id}/console")
|
|
3522
|
+
});
|
|
3523
|
+
|
|
3523
3524
|
//#endregion
|
|
3524
3525
|
//#region ../sdk/dist/gen/automation-setting/zod.js
|
|
3525
3526
|
const zCreateAutomationSettingDto = z.object({
|
|
@@ -14827,7 +14828,8 @@ const zImportCreateV1Body = z.object({
|
|
|
14827
14828
|
format: z.enum([
|
|
14828
14829
|
"junit",
|
|
14829
14830
|
"gherkin",
|
|
14830
|
-
"cucumber-json"
|
|
14831
|
+
"cucumber-json",
|
|
14832
|
+
"ctrf-json"
|
|
14831
14833
|
]).optional().describe(""),
|
|
14832
14834
|
parent_folder_id: z.string().optional().describe(""),
|
|
14833
14835
|
run_name: z.string().optional().describe(""),
|
|
@@ -14847,7 +14849,8 @@ const zImportResponseDto = z.object({
|
|
|
14847
14849
|
format: z.enum([
|
|
14848
14850
|
"junit",
|
|
14849
14851
|
"gherkin",
|
|
14850
|
-
"cucumber-json"
|
|
14852
|
+
"cucumber-json",
|
|
14853
|
+
"ctrf-json"
|
|
14851
14854
|
]).describe(""),
|
|
14852
14855
|
created_at: z.string().describe(""),
|
|
14853
14856
|
completed_at: z.string().describe(""),
|
|
@@ -26739,7 +26742,7 @@ const zPushResultsDto = z.object({ results: z.array(z.object({
|
|
|
26739
26742
|
column_number: z.number().optional(),
|
|
26740
26743
|
is_assertion: z.boolean().optional()
|
|
26741
26744
|
})).optional(),
|
|
26742
|
-
retry_count: z.
|
|
26745
|
+
retry_count: z.unknown().optional(),
|
|
26743
26746
|
flaky: z.boolean().optional(),
|
|
26744
26747
|
tags: z.array(z.string()).optional(),
|
|
26745
26748
|
line: z.number().optional(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-DpLn8Vau.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-
|
|
2
|
+
import { authGetProfileV1, configureClient } from "./sdk-client-DpLn8Vau.js";
|
|
3
3
|
import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
|