@levr-one/cli 0.5.2 → 0.5.4
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 +7 -7
- package/dist/{importHandler-vnrB51lr.js → importHandler-IOGyxFu_.js} +2 -2
- package/dist/{listHandler-CR5TqJLK.js → listHandler-B2zN3vH3.js} +1 -1
- package/dist/{loginHandler-D3szhgXj.js → loginHandler-BR3xbfV7.js} +2 -2
- package/dist/{pushHandler-BgKnW9th.js → pushHandler-BPyTNCFi.js} +2 -2
- package/dist/{resolve-workspace-iMf5dt8G.js → resolve-workspace-DRqFB25C.js} +1 -1
- package/dist/{sdk-client-C5qmnw6U.js → sdk-client-BcAHiWH_.js} +8 -1
- package/dist/{selectHandler-Dyms28ls.js → selectHandler-49fmV3mF.js} +1 -1
- package/dist/{statusHandler-BB5BTz0L.js → statusHandler-BplYN4qp.js} +1 -1
- package/package.json +13 -1
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-BR3xbfV7.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-BplYN4qp.js");
|
|
223
223
|
return statusHandler;
|
|
224
224
|
}
|
|
225
225
|
});
|
|
@@ -330,7 +330,7 @@ Examples:
|
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
loader: async () => {
|
|
333
|
-
const { pushHandler } = await import("./pushHandler-
|
|
333
|
+
const { pushHandler } = await import("./pushHandler-BPyTNCFi.js");
|
|
334
334
|
return pushHandler;
|
|
335
335
|
}
|
|
336
336
|
});
|
|
@@ -442,7 +442,7 @@ Examples:
|
|
|
442
442
|
}
|
|
443
443
|
},
|
|
444
444
|
loader: async () => {
|
|
445
|
-
const { importHandler } = await import("./importHandler-
|
|
445
|
+
const { importHandler } = await import("./importHandler-IOGyxFu_.js");
|
|
446
446
|
return importHandler;
|
|
447
447
|
}
|
|
448
448
|
});
|
|
@@ -463,7 +463,7 @@ Examples:
|
|
|
463
463
|
},
|
|
464
464
|
parameters: {},
|
|
465
465
|
loader: async () => {
|
|
466
|
-
const { listHandler } = await import("./listHandler-
|
|
466
|
+
const { listHandler } = await import("./listHandler-B2zN3vH3.js");
|
|
467
467
|
return listHandler;
|
|
468
468
|
}
|
|
469
469
|
});
|
|
@@ -496,7 +496,7 @@ Examples:
|
|
|
496
496
|
flags: {}
|
|
497
497
|
},
|
|
498
498
|
loader: async () => {
|
|
499
|
-
const { selectHandler } = await import("./selectHandler-
|
|
499
|
+
const { selectHandler } = await import("./selectHandler-49fmV3mF.js");
|
|
500
500
|
return selectHandler;
|
|
501
501
|
}
|
|
502
502
|
});
|
|
@@ -520,7 +520,7 @@ Examples:
|
|
|
520
520
|
|
|
521
521
|
//#endregion
|
|
522
522
|
//#region package.json
|
|
523
|
-
var version = "0.5.
|
|
523
|
+
var version = "0.5.4";
|
|
524
524
|
|
|
525
525
|
//#endregion
|
|
526
526
|
//#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-BcAHiWH_.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-DRqFB25C.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-BcAHiWH_.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-BcAHiWH_.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { autoSelectWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { autoSelectWorkspace } from "./resolve-workspace-DRqFB25C.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-BcAHiWH_.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-DRqFB25C.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";
|
|
@@ -11292,13 +11292,14 @@ const zEventsGetHistoryV1Data = z.object({
|
|
|
11292
11292
|
query: z.object({
|
|
11293
11293
|
"since": z.string().optional(),
|
|
11294
11294
|
"limit": z.number().optional(),
|
|
11295
|
-
"
|
|
11295
|
+
"cursor": z.string(),
|
|
11296
11296
|
"sources": z.array(z.string()).optional(),
|
|
11297
11297
|
"severities": z.array(z.string()).optional(),
|
|
11298
11298
|
"types": z.array(z.string()).optional()
|
|
11299
11299
|
}).optional(),
|
|
11300
11300
|
url: z.literal("/v1/events")
|
|
11301
11301
|
});
|
|
11302
|
+
const zEventsReportV1Data = z.object({ url: z.literal("/v1/events/report") });
|
|
11302
11303
|
const zEventsStreamData = z.object({ url: z.literal("/events/stream") });
|
|
11303
11304
|
const zEventsGetStatusV1Data = z.object({ url: z.literal("/v1/events/status") });
|
|
11304
11305
|
const zEventsGetJudgmentStatusV1Data = z.object({ url: z.literal("/v1/events/judgment/status") });
|
|
@@ -17301,6 +17302,7 @@ const zCreateJiraProjectTeamDto = z.object({
|
|
|
17301
17302
|
id: z.string().optional().describe(""),
|
|
17302
17303
|
is_primary: z.boolean().optional().describe(""),
|
|
17303
17304
|
link_source: z.string().optional().describe(""),
|
|
17305
|
+
inbound_type_label_id: z.string().nullable().optional().describe(""),
|
|
17304
17306
|
jira_project_id: z.string(),
|
|
17305
17307
|
team_id: z.string()
|
|
17306
17308
|
});
|
|
@@ -17308,6 +17310,7 @@ const zResponseJiraProjectTeamDto = z.object({
|
|
|
17308
17310
|
id: z.string().describe(""),
|
|
17309
17311
|
is_primary: z.boolean().optional().describe(""),
|
|
17310
17312
|
link_source: z.string().optional().describe(""),
|
|
17313
|
+
inbound_type_label_id: z.string().nullable().optional().describe(""),
|
|
17311
17314
|
jira_project_id: z.string(),
|
|
17312
17315
|
team_id: z.string(),
|
|
17313
17316
|
created_at: z.unknown().describe(""),
|
|
@@ -17321,6 +17324,7 @@ const zUpdateJiraProjectTeamDto = z.object({
|
|
|
17321
17324
|
id: z.string().optional().describe(""),
|
|
17322
17325
|
is_primary: z.boolean().optional().describe(""),
|
|
17323
17326
|
link_source: z.string().optional().describe(""),
|
|
17327
|
+
inbound_type_label_id: z.string().nullable().optional().describe(""),
|
|
17324
17328
|
jira_project_id: z.string().optional(),
|
|
17325
17329
|
team_id: z.string().optional()
|
|
17326
17330
|
});
|
|
@@ -17367,6 +17371,7 @@ const zJiraProjectTeamFindAllV1Data = z.object({
|
|
|
17367
17371
|
"filter.id": z.array(z.string()).optional(),
|
|
17368
17372
|
"filter.is_primary": z.array(z.string()).optional(),
|
|
17369
17373
|
"filter.link_source": z.array(z.string()).optional(),
|
|
17374
|
+
"filter.inbound_type_label_id": z.array(z.string()).optional(),
|
|
17370
17375
|
"filter.jira_project_id": z.array(z.string()).optional(),
|
|
17371
17376
|
"filter.team_id": z.array(z.string()).optional(),
|
|
17372
17377
|
"filter.created_at": z.array(z.string()).optional(),
|
|
@@ -17376,6 +17381,8 @@ const zJiraProjectTeamFindAllV1Data = z.object({
|
|
|
17376
17381
|
"id:DESC",
|
|
17377
17382
|
"link_source:ASC",
|
|
17378
17383
|
"link_source:DESC",
|
|
17384
|
+
"inbound_type_label_id:ASC",
|
|
17385
|
+
"inbound_type_label_id:DESC",
|
|
17379
17386
|
"created_at:ASC",
|
|
17380
17387
|
"created_at:DESC",
|
|
17381
17388
|
"updated_at:ASC",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-BcAHiWH_.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-BcAHiWH_.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.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "The command-line interface for Levr",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,6 +12,17 @@
|
|
|
12
12
|
"dist",
|
|
13
13
|
"README.md"
|
|
14
14
|
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsdown",
|
|
17
|
+
"dev": "tsdown --watch",
|
|
18
|
+
"clean": "rimraf dist",
|
|
19
|
+
"lint": "eslint src/**/*.ts --no-warn-ignored",
|
|
20
|
+
"format": "prettier --write src/**/*.ts",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:unit": "vitest run",
|
|
24
|
+
"test:watch": "vitest"
|
|
25
|
+
},
|
|
15
26
|
"dependencies": {
|
|
16
27
|
"@clack/prompts": "^1.7.0",
|
|
17
28
|
"@stricli/core": "^1.2.0",
|
|
@@ -26,6 +37,7 @@
|
|
|
26
37
|
"@types/node": "^20.10.0",
|
|
27
38
|
"eslint": "^9.18.0",
|
|
28
39
|
"eslint-config-prettier": "^10.0.1",
|
|
40
|
+
"eslint-plugin-import-x": "^4.17.1",
|
|
29
41
|
"eslint-plugin-prettier": "^5.2.2",
|
|
30
42
|
"globals": "^16.0.0",
|
|
31
43
|
"prettier": "^3.4.2",
|