@levr-one/cli 0.7.8 → 0.8.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/dist/cli.js +102 -12
- package/dist/{importHandler--Odfz6sz.js → importHandler-zfgrGCyh.js} +184 -6
- package/dist/{listHandler-CBKYVX8A.js → listHandler-B5KqRcYG.js} +1 -1
- package/dist/loginHandler-BE9JX12M.js +388 -0
- package/dist/{pushHandler-BBzX09LW.js → pushHandler-BukCooiv.js} +2 -2
- package/dist/{resolve-workspace-Bk3y0q3v.js → resolve-workspace-NupdkCvd.js} +1 -1
- package/dist/{sdk-client-RgFjzRyG.js → sdk-client-CATjlmyX.js} +41 -14
- package/dist/{selectHandler-UrTpL_l1.js → selectHandler-CXwxIKL9.js} +1 -1
- package/dist/{statusHandler-BBTHpyog.js → statusHandler-CyhoTEEI.js} +1 -1
- package/package.json +2 -1
- package/dist/loginHandler-BOWFHzAn.js +0 -388
|
@@ -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-CATjlmyX.js";
|
|
3
3
|
import "./workspace-store-DDOxnut1.js";
|
|
4
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
4
|
+
import { resolveWorkspace } from "./resolve-workspace-NupdkCvd.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";
|
|
@@ -100,19 +100,6 @@ const zResponseLabelDto = z.object({
|
|
|
100
100
|
archived_at: z.unknown().describe(""),
|
|
101
101
|
archived_by: z.string().nullable().describe("")
|
|
102
102
|
});
|
|
103
|
-
const zProfileResponseDto = z.object({
|
|
104
|
-
id: z.string(),
|
|
105
|
-
profileName: z.string(),
|
|
106
|
-
providerType: z.number(),
|
|
107
|
-
providerName: z.string(),
|
|
108
|
-
modelName: z.string(),
|
|
109
|
-
temperature: z.number().optional(),
|
|
110
|
-
baseUrl: z.string().optional(),
|
|
111
|
-
isSystem: z.boolean(),
|
|
112
|
-
llmProviderId: z.string(),
|
|
113
|
-
createdAt: z.unknown(),
|
|
114
|
-
updatedAt: z.unknown()
|
|
115
|
-
});
|
|
116
103
|
const zUpdateProfileDto = z.object({
|
|
117
104
|
profileName: z.string().optional(),
|
|
118
105
|
providerType: z.number().optional(),
|
|
@@ -2616,6 +2603,17 @@ const zAuthClientWorkspaceResponseDto = z.object({
|
|
|
2616
2603
|
user: zLoginUserDto.describe(""),
|
|
2617
2604
|
invitation_accepted: z.boolean().optional()
|
|
2618
2605
|
});
|
|
2606
|
+
const zUserProfileResponseDto = z.object({
|
|
2607
|
+
id: z.string(),
|
|
2608
|
+
user_account_id: z.string().optional(),
|
|
2609
|
+
email: z.string().optional(),
|
|
2610
|
+
name: z.string().optional(),
|
|
2611
|
+
avatar_url: z.string().optional(),
|
|
2612
|
+
color: z.string().optional(),
|
|
2613
|
+
verified: z.boolean().optional(),
|
|
2614
|
+
workspace_id: z.string().optional(),
|
|
2615
|
+
active_team_id: z.string().nullable().optional()
|
|
2616
|
+
});
|
|
2619
2617
|
const zSitesResponseDto = z.object({
|
|
2620
2618
|
sites: z.array(z.object({
|
|
2621
2619
|
workspace_id: z.string().describe(""),
|
|
@@ -21204,6 +21202,19 @@ const zProfileListResponseDto = z.array(z.object({
|
|
|
21204
21202
|
createdAt: z.unknown(),
|
|
21205
21203
|
updatedAt: z.unknown()
|
|
21206
21204
|
}));
|
|
21205
|
+
const zProfileResponseDto = z.object({
|
|
21206
|
+
id: z.string(),
|
|
21207
|
+
profileName: z.string(),
|
|
21208
|
+
providerType: z.number(),
|
|
21209
|
+
providerName: z.string(),
|
|
21210
|
+
modelName: z.string(),
|
|
21211
|
+
temperature: z.number().optional(),
|
|
21212
|
+
baseUrl: z.string().optional(),
|
|
21213
|
+
isSystem: z.boolean(),
|
|
21214
|
+
llmProviderId: z.string(),
|
|
21215
|
+
createdAt: z.unknown(),
|
|
21216
|
+
updatedAt: z.unknown()
|
|
21217
|
+
});
|
|
21207
21218
|
const zUpdateProfileResponseDto = z.object({
|
|
21208
21219
|
profile: z.object({
|
|
21209
21220
|
id: z.string(),
|
|
@@ -27578,6 +27589,22 @@ const zSyncPullCursorV1Data = z.object({ url: z.literal("/v1/sync/pull-cursor")
|
|
|
27578
27589
|
const zSyncSnapshotV1Data = z.object({ url: z.literal("/v1/sync/snapshot") });
|
|
27579
27590
|
const zSyncMigrationsAppliedV1Data = z.object({ url: z.literal("/v1/sync/migrations-applied") });
|
|
27580
27591
|
|
|
27592
|
+
//#endregion
|
|
27593
|
+
//#region ../sdk/dist/gen/team/functions.js
|
|
27594
|
+
/**
|
|
27595
|
+
* Retrieve a paginated list of teams with optional filtering, sorting, and searching capabilities.
|
|
27596
|
+
*/
|
|
27597
|
+
const teamFindAllV1 = (options) => {
|
|
27598
|
+
return (options?.client ?? client).get({
|
|
27599
|
+
security: [{
|
|
27600
|
+
scheme: "bearer",
|
|
27601
|
+
type: "http"
|
|
27602
|
+
}],
|
|
27603
|
+
url: "/v1/team",
|
|
27604
|
+
...options
|
|
27605
|
+
});
|
|
27606
|
+
};
|
|
27607
|
+
|
|
27581
27608
|
//#endregion
|
|
27582
27609
|
//#region ../sdk/dist/gen/team/zod.js
|
|
27583
27610
|
const zCreateTeamDto = z.object({
|
|
@@ -31476,4 +31503,4 @@ function tryReadMessage(err) {
|
|
|
31476
31503
|
}
|
|
31477
31504
|
|
|
31478
31505
|
//#endregion
|
|
31479
|
-
export { authGetProfileV1, authGetSitesV1, client, configureClient, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAutomationIngest, uploadImport };
|
|
31506
|
+
export { authGetProfileV1, authGetSitesV1, client, configureClient, teamFindAllV1, testCaseImportCommitV1, testCaseImportPreviewV1, uploadAutomationIngest, uploadImport };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./env-CHeKHu5S.js";
|
|
2
|
-
import { authGetSitesV1, configureClient } from "./sdk-client-
|
|
2
|
+
import { authGetSitesV1, configureClient } from "./sdk-client-CATjlmyX.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-CATjlmyX.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.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "The command-line interface for Levr",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@clack/prompts": "^1.7.0",
|
|
28
28
|
"@stricli/core": "^1.2.0",
|
|
29
29
|
"chalk": "^5.6.2",
|
|
30
|
+
"dotenv": "^17.4.2",
|
|
30
31
|
"jsonc-parser": "^3.3.1",
|
|
31
32
|
"open": "^10.1.0",
|
|
32
33
|
"ora": "^9.0.0",
|