@levr-one/cli 0.6.10 → 0.6.12
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-BUofpdQ6.js → importHandler-D43Q8Jey.js} +2 -2
- package/dist/{listHandler-BRRvafbH.js → listHandler-jEyTQhBk.js} +1 -1
- package/dist/{loginHandler-B-lh7NDe.js → loginHandler-BE8MQq83.js} +2 -2
- package/dist/{pushHandler-DBnp5usi.js → pushHandler-Bf1F1Ltk.js} +2 -2
- package/dist/{resolve-workspace-CyEtkuxy.js → resolve-workspace-DfEX0LDh.js} +1 -1
- package/dist/{sdk-client-CZ-HOnWP.js → sdk-client-DKifoBwD.js} +150 -4
- package/dist/{selectHandler-DYKtnsbW.js → selectHandler-KNiDUd9H.js} +1 -1
- package/dist/{statusHandler-B_QEiFPi.js → statusHandler-C2_XOUal.js} +1 -1
- package/package.json +1 -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-BE8MQq83.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-C2_XOUal.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-
|
|
334
|
+
const { pushHandler } = await import("./pushHandler-Bf1F1Ltk.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-
|
|
446
|
+
const { importHandler } = await import("./importHandler-D43Q8Jey.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-
|
|
467
|
+
const { listHandler } = await import("./listHandler-jEyTQhBk.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-
|
|
500
|
+
const { selectHandler } = await import("./selectHandler-KNiDUd9H.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.
|
|
524
|
+
var version = "0.6.12";
|
|
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-
|
|
2
|
+
import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-DKifoBwD.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-DfEX0LDh.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-DKifoBwD.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-DKifoBwD.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { autoSelectWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { autoSelectWorkspace } from "./resolve-workspace-DfEX0LDh.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-DKifoBwD.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-DfEX0LDh.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";
|
|
@@ -12981,6 +12981,35 @@ const zFindingObservationBulkOperationV1Data = z.object({
|
|
|
12981
12981
|
url: z.literal("/v1/finding-observation/bulk")
|
|
12982
12982
|
});
|
|
12983
12983
|
|
|
12984
|
+
//#endregion
|
|
12985
|
+
//#region ../sdk/dist/gen/first-run/zod.js
|
|
12986
|
+
const zFirstRunStatusDto = z.object({
|
|
12987
|
+
state: z.enum([
|
|
12988
|
+
"welcome",
|
|
12989
|
+
"reminder",
|
|
12990
|
+
"hidden"
|
|
12991
|
+
]),
|
|
12992
|
+
mcpUrl: z.string(),
|
|
12993
|
+
cliCommand: z.string(),
|
|
12994
|
+
connected: z.array(z.object({
|
|
12995
|
+
id: z.string(),
|
|
12996
|
+
label: z.string(),
|
|
12997
|
+
grantedAt: z.string().nullable()
|
|
12998
|
+
})),
|
|
12999
|
+
harnesses: z.array(z.object({
|
|
13000
|
+
id: z.string(),
|
|
13001
|
+
label: z.string(),
|
|
13002
|
+
installKind: z.enum(["config-file", "cli-command"]),
|
|
13003
|
+
snippet: z.string(),
|
|
13004
|
+
docsUrl: z.string(),
|
|
13005
|
+
comingSoon: z.boolean()
|
|
13006
|
+
}))
|
|
13007
|
+
});
|
|
13008
|
+
const zFirstRunGetStatusV1Data = z.object({ url: z.literal("/v1/first-run/mcp") });
|
|
13009
|
+
const zFirstRunMarkSeenV1Data = z.object({ url: z.literal("/v1/first-run/mcp/seen") });
|
|
13010
|
+
const zFirstRunDeclineV1Data = z.object({ url: z.literal("/v1/first-run/mcp/decline") });
|
|
13011
|
+
const zFirstRunHideReminderV1Data = z.object({ url: z.literal("/v1/first-run/mcp/hide-reminder") });
|
|
13012
|
+
|
|
12984
13013
|
//#endregion
|
|
12985
13014
|
//#region ../sdk/dist/gen/folder/zod.js
|
|
12986
13015
|
const zFolderWithChildrenDto = z.object({
|
|
@@ -13285,7 +13314,8 @@ const zBulkFolderOperationDto = z.object({
|
|
|
13285
13314
|
sequence: z.string().optional(),
|
|
13286
13315
|
labels: z.array(z.string()).optional(),
|
|
13287
13316
|
origin: z.enum(["authored", "automation"]).optional(),
|
|
13288
|
-
entity_type: z.enum(["test", "run"]).optional()
|
|
13317
|
+
entity_type: z.enum(["test", "run"]).optional(),
|
|
13318
|
+
is_root: z.unknown()
|
|
13289
13319
|
}), z.object({
|
|
13290
13320
|
name: z.string().optional(),
|
|
13291
13321
|
description: z.string().optional(),
|
|
@@ -13294,7 +13324,8 @@ const zBulkFolderOperationDto = z.object({
|
|
|
13294
13324
|
parent_id: z.string().nullable().optional(),
|
|
13295
13325
|
sequence: z.string().optional(),
|
|
13296
13326
|
add_labels: z.array(z.string()).optional(),
|
|
13297
|
-
remove_labels: z.array(z.string()).optional()
|
|
13327
|
+
remove_labels: z.array(z.string()).optional(),
|
|
13328
|
+
is_root: z.unknown()
|
|
13298
13329
|
})]).optional().describe(""),
|
|
13299
13330
|
tx_id: z.string().describe("")
|
|
13300
13331
|
});
|
|
@@ -13337,7 +13368,8 @@ const zCreateFolderDto = z.object({
|
|
|
13337
13368
|
sequence: z.string().optional(),
|
|
13338
13369
|
labels: z.array(z.string()).optional(),
|
|
13339
13370
|
origin: z.enum(["authored", "automation"]).optional(),
|
|
13340
|
-
entity_type: z.enum(["test", "run"]).optional()
|
|
13371
|
+
entity_type: z.enum(["test", "run"]).optional(),
|
|
13372
|
+
is_root: z.unknown()
|
|
13341
13373
|
});
|
|
13342
13374
|
const zUpdateFolderDto = z.object({
|
|
13343
13375
|
name: z.string().optional(),
|
|
@@ -13347,7 +13379,8 @@ const zUpdateFolderDto = z.object({
|
|
|
13347
13379
|
parent_id: z.string().nullable().optional(),
|
|
13348
13380
|
sequence: z.string().optional(),
|
|
13349
13381
|
add_labels: z.array(z.string()).optional(),
|
|
13350
|
-
remove_labels: z.array(z.string()).optional()
|
|
13382
|
+
remove_labels: z.array(z.string()).optional(),
|
|
13383
|
+
is_root: z.unknown()
|
|
13351
13384
|
});
|
|
13352
13385
|
const zFolderFindAllV1Data = z.object({
|
|
13353
13386
|
query: z.object({
|
|
@@ -29964,6 +29997,119 @@ const zUserAccountRestoreV1Data = z.object({
|
|
|
29964
29997
|
url: z.literal("/v1/user-account/{id}/restore")
|
|
29965
29998
|
});
|
|
29966
29999
|
|
|
30000
|
+
//#endregion
|
|
30001
|
+
//#region ../sdk/dist/gen/user-preference/zod.js
|
|
30002
|
+
const zCreateUserPreferenceDto = z.object({
|
|
30003
|
+
id: z.string().optional().describe(""),
|
|
30004
|
+
auto_assign_on_start: z.boolean().nullable().optional().describe(""),
|
|
30005
|
+
auto_assign_on_result: z.boolean().nullable().optional().describe(""),
|
|
30006
|
+
user_id: z.string()
|
|
30007
|
+
});
|
|
30008
|
+
const zResponseUserPreferenceDto = z.object({
|
|
30009
|
+
id: z.string().describe(""),
|
|
30010
|
+
auto_assign_on_start: z.boolean().nullable().optional().describe(""),
|
|
30011
|
+
auto_assign_on_result: z.boolean().nullable().optional().describe(""),
|
|
30012
|
+
user_id: z.string(),
|
|
30013
|
+
created_at: z.unknown().describe(""),
|
|
30014
|
+
updated_at: z.unknown().describe(""),
|
|
30015
|
+
epoch: z.number().describe(""),
|
|
30016
|
+
created_by: z.string().describe(""),
|
|
30017
|
+
updated_by: z.string().describe(""),
|
|
30018
|
+
workspace_id: z.string().describe(""),
|
|
30019
|
+
deleted_at: z.unknown().describe(""),
|
|
30020
|
+
deleted_by: z.string().nullable().describe("")
|
|
30021
|
+
});
|
|
30022
|
+
const zUpdateUserPreferenceDto = z.object({
|
|
30023
|
+
id: z.string().optional().describe(""),
|
|
30024
|
+
auto_assign_on_start: z.boolean().nullable().optional().describe(""),
|
|
30025
|
+
auto_assign_on_result: z.boolean().nullable().optional().describe(""),
|
|
30026
|
+
user_id: z.string().optional()
|
|
30027
|
+
});
|
|
30028
|
+
const zUserPreferenceBulkOperationDto = z.object({
|
|
30029
|
+
op: z.enum([
|
|
30030
|
+
"create",
|
|
30031
|
+
"update",
|
|
30032
|
+
"delete"
|
|
30033
|
+
]).describe(""),
|
|
30034
|
+
id: z.string().optional().describe(""),
|
|
30035
|
+
data: z.union([zCreateUserPreferenceDto, zUpdateUserPreferenceDto]).optional().describe(""),
|
|
30036
|
+
tx_id: z.string().describe("")
|
|
30037
|
+
});
|
|
30038
|
+
const zBulkUserPreferenceRequestDto = z.object({ operations: z.array(zUserPreferenceBulkOperationDto).describe("") });
|
|
30039
|
+
const zBulkUserPreferenceOperationResultDto = z.object({
|
|
30040
|
+
index: z.number().describe(""),
|
|
30041
|
+
tx_id: z.string().describe(""),
|
|
30042
|
+
status: z.number().describe(""),
|
|
30043
|
+
error: z.object({
|
|
30044
|
+
message: z.string().optional(),
|
|
30045
|
+
code: z.string().optional(),
|
|
30046
|
+
details: z.unknown().optional()
|
|
30047
|
+
}).optional().describe(""),
|
|
30048
|
+
response: zResponseUserPreferenceDto.optional().describe("")
|
|
30049
|
+
});
|
|
30050
|
+
const zBulkUserPreferenceResponseDto = z.object({
|
|
30051
|
+
results: z.array(zBulkUserPreferenceOperationResultDto).describe(""),
|
|
30052
|
+
summary: z.object({
|
|
30053
|
+
total: z.number().describe(""),
|
|
30054
|
+
successful: z.number().describe(""),
|
|
30055
|
+
failed: z.number().describe(""),
|
|
30056
|
+
savepoints_used: z.number().describe("")
|
|
30057
|
+
}).describe("")
|
|
30058
|
+
});
|
|
30059
|
+
const zUserPreferenceCreateV1Data = z.object({
|
|
30060
|
+
body: zCreateUserPreferenceDto,
|
|
30061
|
+
url: z.literal("/v1/user-preference")
|
|
30062
|
+
});
|
|
30063
|
+
const zUserPreferenceFindAllV1Data = z.object({
|
|
30064
|
+
query: z.object({
|
|
30065
|
+
"_with": z.string().optional(),
|
|
30066
|
+
"page": z.number().optional(),
|
|
30067
|
+
"limit": z.number().optional(),
|
|
30068
|
+
"filter.id": z.array(z.string()).optional(),
|
|
30069
|
+
"filter.auto_assign_on_start": z.array(z.string()).optional(),
|
|
30070
|
+
"filter.auto_assign_on_result": z.array(z.string()).optional(),
|
|
30071
|
+
"filter.user_id": z.array(z.string()).optional(),
|
|
30072
|
+
"filter.created_at": z.array(z.string()).optional(),
|
|
30073
|
+
"filter.updated_at": z.array(z.string()).optional(),
|
|
30074
|
+
"filter.deleted_at": z.array(z.string()).optional(),
|
|
30075
|
+
"sortBy": z.array(z.enum([
|
|
30076
|
+
"id:ASC",
|
|
30077
|
+
"id:DESC",
|
|
30078
|
+
"created_at:ASC",
|
|
30079
|
+
"created_at:DESC",
|
|
30080
|
+
"updated_at:ASC",
|
|
30081
|
+
"updated_at:DESC",
|
|
30082
|
+
"deleted_at:ASC",
|
|
30083
|
+
"deleted_at:DESC"
|
|
30084
|
+
])).optional(),
|
|
30085
|
+
"search": z.string().optional(),
|
|
30086
|
+
"searchBy": z.array(z.string()).optional()
|
|
30087
|
+
}).optional(),
|
|
30088
|
+
url: z.literal("/v1/user-preference")
|
|
30089
|
+
});
|
|
30090
|
+
const zUserPreferenceFindRecentlyDeletedV1Data = z.object({ url: z.literal("/v1/user-preference/recently-deleted") });
|
|
30091
|
+
const zUserPreferenceFindOneV1Data = z.object({
|
|
30092
|
+
path: z.object({ "id": z.string() }),
|
|
30093
|
+
url: z.literal("/v1/user-preference/{id}")
|
|
30094
|
+
});
|
|
30095
|
+
const zUserPreferenceUpdateV1Data = z.object({
|
|
30096
|
+
body: zUpdateUserPreferenceDto,
|
|
30097
|
+
path: z.object({ "id": z.string() }),
|
|
30098
|
+
url: z.literal("/v1/user-preference/{id}")
|
|
30099
|
+
});
|
|
30100
|
+
const zUserPreferenceRemoveV1Data = z.object({
|
|
30101
|
+
path: z.object({ "id": z.string() }),
|
|
30102
|
+
url: z.literal("/v1/user-preference/{id}")
|
|
30103
|
+
});
|
|
30104
|
+
const zUserPreferenceBulkOperationV1Data = z.object({
|
|
30105
|
+
body: zBulkUserPreferenceRequestDto,
|
|
30106
|
+
url: z.literal("/v1/user-preference/bulk")
|
|
30107
|
+
});
|
|
30108
|
+
const zUserPreferenceRestoreV1Data = z.object({
|
|
30109
|
+
path: z.object({ "id": z.string() }),
|
|
30110
|
+
url: z.literal("/v1/user-preference/{id}/restore")
|
|
30111
|
+
});
|
|
30112
|
+
|
|
29967
30113
|
//#endregion
|
|
29968
30114
|
//#region ../sdk/dist/gen/virtual/zod.js
|
|
29969
30115
|
const zCreateVirtualDto = z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-DKifoBwD.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-DKifoBwD.js";
|
|
3
3
|
import { isTokenExpired } from "./token-refresh-Cu5RpkLJ.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
|