@levr-one/cli 0.6.4 → 0.6.6

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-DRD6xDGX.js");
183
+ const { loginHandler } = await import("./loginHandler-CSWf1qIz.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-n94OcL1K.js");
222
+ const { statusHandler } = await import("./statusHandler-qJAwarJj.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-bru5EsMy.js");
334
+ const { pushHandler } = await import("./pushHandler-BUm8W-10.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-DaGGp34z.js");
446
+ const { importHandler } = await import("./importHandler-ClNFk6YZ.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-B73q4Uu1.js");
467
+ const { listHandler } = await import("./listHandler-H0U8GXmX.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-NjaLQgHP.js");
500
+ const { selectHandler } = await import("./selectHandler-B82VXtDN.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.4";
524
+ var version = "0.6.6";
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-BOrhy5fg.js";
2
+ import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-BEKRw7tC.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-DFSer9TZ.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-D95CN6FK.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-BOrhy5fg.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-BEKRw7tC.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-BOrhy5fg.js";
2
+ import { configureClient } from "./sdk-client-BEKRw7tC.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-DFSer9TZ.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-D95CN6FK.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-BOrhy5fg.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-BEKRw7tC.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-DFSer9TZ.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-D95CN6FK.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-BOrhy5fg.js";
1
+ import { authGetSitesV1 } from "./sdk-client-BEKRw7tC.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -2218,15 +2218,6 @@ const zAgentsGetFollowUpSuggestionsV1Data = z.object({
2218
2218
  path: z.object({ "agent": z.string() }),
2219
2219
  url: z.literal("/v1/agents/follow-up/{agent}")
2220
2220
  });
2221
- const zAgentsGetAgentStatsV1Data = z.object({
2222
- query: z.object({ "daysBack": z.number().optional() }).optional(),
2223
- url: z.literal("/v1/agents/analytics/stats")
2224
- });
2225
- const zAgentsGetMyPatternsV1Data = z.object({
2226
- query: z.object({ "daysBack": z.number().optional() }).optional(),
2227
- url: z.literal("/v1/agents/analytics/my-patterns")
2228
- });
2229
- const zAgentsGetTrendingAgentsV1Data = z.object({ url: z.literal("/v1/agents/analytics/trending") });
2230
2221
  const zAgentsGetConfigV1Data = z.object({ url: z.literal("/v1/agents/config") });
2231
2222
  const zAgentsUpdateConfigV1Data = z.object({
2232
2223
  body: zAgentsUpdateConfigV1Body,
@@ -12849,18 +12840,6 @@ const zFilterRestoreV1Data = z.object({
12849
12840
 
12850
12841
  //#endregion
12851
12842
  //#region ../sdk/dist/gen/finding-observation/zod.js
12852
- const zCreateFindingObservationDto = z.object({
12853
- id: z.string().optional().describe(""),
12854
- source: z.string().describe(""),
12855
- model_version: z.string().nullable().optional().describe(""),
12856
- original_confidence: z.number().describe(""),
12857
- adjusted_confidence: z.number().nullable().optional().describe(""),
12858
- asserted_severity: z.string().nullable().optional().describe(""),
12859
- vote: z.string().nullable().optional().describe(""),
12860
- outcome: z.string().optional().describe(""),
12861
- outcome_kind: z.string().nullable().optional().describe(""),
12862
- finding_id: z.string()
12863
- });
12864
12843
  const zResponseFindingObservationDto = z.object({
12865
12844
  id: z.string().describe(""),
12866
12845
  source: z.string().describe(""),
@@ -12871,6 +12850,8 @@ const zResponseFindingObservationDto = z.object({
12871
12850
  vote: z.string().nullable().optional().describe(""),
12872
12851
  outcome: z.string().optional().describe(""),
12873
12852
  outcome_kind: z.string().nullable().optional().describe(""),
12853
+ explicit_provenance: z.string().nullable().optional().describe(""),
12854
+ resolved_at: z.unknown().optional().describe(""),
12874
12855
  finding_id: z.string(),
12875
12856
  created_at: z.unknown().describe(""),
12876
12857
  updated_at: z.unknown().describe(""),
@@ -12879,6 +12860,20 @@ const zResponseFindingObservationDto = z.object({
12879
12860
  updated_by: z.string().describe(""),
12880
12861
  workspace_id: z.string().describe("")
12881
12862
  });
12863
+ const zCreateFindingObservationDto = z.object({
12864
+ id: z.string().optional().describe(""),
12865
+ source: z.string().describe(""),
12866
+ model_version: z.string().nullable().optional().describe(""),
12867
+ original_confidence: z.number().describe(""),
12868
+ adjusted_confidence: z.number().nullable().optional().describe(""),
12869
+ asserted_severity: z.string().nullable().optional().describe(""),
12870
+ vote: z.string().nullable().optional().describe(""),
12871
+ outcome: z.string().optional().describe(""),
12872
+ outcome_kind: z.string().nullable().optional().describe(""),
12873
+ explicit_provenance: z.string().nullable().optional().describe(""),
12874
+ resolved_at: z.unknown().optional().describe(""),
12875
+ finding_id: z.string()
12876
+ });
12882
12877
  const zUpdateFindingObservationDto = z.object({
12883
12878
  id: z.string().optional().describe(""),
12884
12879
  source: z.string().optional().describe(""),
@@ -12889,6 +12884,8 @@ const zUpdateFindingObservationDto = z.object({
12889
12884
  vote: z.string().nullable().optional().describe(""),
12890
12885
  outcome: z.string().optional().describe(""),
12891
12886
  outcome_kind: z.string().nullable().optional().describe(""),
12887
+ explicit_provenance: z.string().nullable().optional().describe(""),
12888
+ resolved_at: z.unknown().optional().describe(""),
12892
12889
  finding_id: z.string().optional()
12893
12890
  });
12894
12891
  const zFindingObservationBulkOperationDto = z.object({
@@ -12922,10 +12919,6 @@ const zBulkFindingObservationResponseDto = z.object({
12922
12919
  savepoints_used: z.number().describe("")
12923
12920
  }).describe("")
12924
12921
  });
12925
- const zFindingObservationCreateV1Data = z.object({
12926
- body: zCreateFindingObservationDto,
12927
- url: z.literal("/v1/finding-observation")
12928
- });
12929
12922
  const zFindingObservationFindAllV1Data = z.object({
12930
12923
  query: z.object({
12931
12924
  "_with": z.string().optional(),
@@ -12940,6 +12933,8 @@ const zFindingObservationFindAllV1Data = z.object({
12940
12933
  "filter.vote": z.array(z.string()).optional(),
12941
12934
  "filter.outcome": z.array(z.string()).optional(),
12942
12935
  "filter.outcome_kind": z.array(z.string()).optional(),
12936
+ "filter.explicit_provenance": z.array(z.string()).optional(),
12937
+ "filter.resolved_at": z.array(z.string()).optional(),
12943
12938
  "filter.finding_id": z.array(z.string()).optional(),
12944
12939
  "filter.created_at": z.array(z.string()).optional(),
12945
12940
  "filter.updated_at": z.array(z.string()).optional(),
@@ -12962,6 +12957,10 @@ const zFindingObservationFindAllV1Data = z.object({
12962
12957
  "outcome:DESC",
12963
12958
  "outcome_kind:ASC",
12964
12959
  "outcome_kind:DESC",
12960
+ "explicit_provenance:ASC",
12961
+ "explicit_provenance:DESC",
12962
+ "resolved_at:ASC",
12963
+ "resolved_at:DESC",
12965
12964
  "created_at:ASC",
12966
12965
  "created_at:DESC",
12967
12966
  "updated_at:ASC",
@@ -12976,15 +12975,6 @@ const zFindingObservationFindOneV1Data = z.object({
12976
12975
  path: z.object({ "id": z.string() }),
12977
12976
  url: z.literal("/v1/finding-observation/{id}")
12978
12977
  });
12979
- const zFindingObservationUpdateV1Data = z.object({
12980
- body: zUpdateFindingObservationDto,
12981
- path: z.object({ "id": z.string() }),
12982
- url: z.literal("/v1/finding-observation/{id}")
12983
- });
12984
- const zFindingObservationRemoveV1Data = z.object({
12985
- path: z.object({ "id": z.string() }),
12986
- url: z.literal("/v1/finding-observation/{id}")
12987
- });
12988
12978
  const zFindingObservationBulkOperationV1Data = z.object({
12989
12979
  body: zBulkFindingObservationRequestDto,
12990
12980
  url: z.literal("/v1/finding-observation/bulk")
@@ -23470,6 +23460,147 @@ const zRetentionPolicyUpdatePolicyV1Data = z.object({
23470
23460
  url: z.literal("/v1/retention-policy")
23471
23461
  });
23472
23462
 
23463
+ //#endregion
23464
+ //#region ../sdk/dist/gen/review-health-snapshot/zod.js
23465
+ const zResponseReviewHealthSnapshotDto = z.object({
23466
+ id: z.string().describe(""),
23467
+ period_start: z.unknown().describe(""),
23468
+ scope: z.string().describe(""),
23469
+ sources_silent: z.number().optional().describe(""),
23470
+ tau_stalled_sources: z.number().optional().describe(""),
23471
+ disposition_backlog: z.number().optional().describe(""),
23472
+ disposition_oldest_days: z.number().optional().describe(""),
23473
+ stale_escape_requests: z.number().optional().describe(""),
23474
+ stale_guidance: z.number().optional().describe(""),
23475
+ tripwires_fired: z.number().optional().describe(""),
23476
+ metrics: z.unknown().optional().describe(""),
23477
+ github_repository_id: z.string().nullable().optional(),
23478
+ created_at: z.unknown().describe(""),
23479
+ updated_at: z.unknown().describe(""),
23480
+ epoch: z.number().describe(""),
23481
+ created_by: z.string().describe(""),
23482
+ updated_by: z.string().describe(""),
23483
+ workspace_id: z.string().describe("")
23484
+ });
23485
+ const zCreateReviewHealthSnapshotDto = z.object({
23486
+ id: z.string().optional().describe(""),
23487
+ period_start: z.unknown().describe(""),
23488
+ scope: z.string().describe(""),
23489
+ sources_silent: z.number().optional().describe(""),
23490
+ tau_stalled_sources: z.number().optional().describe(""),
23491
+ disposition_backlog: z.number().optional().describe(""),
23492
+ disposition_oldest_days: z.number().optional().describe(""),
23493
+ stale_escape_requests: z.number().optional().describe(""),
23494
+ stale_guidance: z.number().optional().describe(""),
23495
+ tripwires_fired: z.number().optional().describe(""),
23496
+ metrics: z.unknown().optional().describe(""),
23497
+ github_repository_id: z.string().nullable().optional()
23498
+ });
23499
+ const zUpdateReviewHealthSnapshotDto = z.object({
23500
+ id: z.string().optional().describe(""),
23501
+ period_start: z.unknown().optional().describe(""),
23502
+ scope: z.string().optional().describe(""),
23503
+ sources_silent: z.number().optional().describe(""),
23504
+ tau_stalled_sources: z.number().optional().describe(""),
23505
+ disposition_backlog: z.number().optional().describe(""),
23506
+ disposition_oldest_days: z.number().optional().describe(""),
23507
+ stale_escape_requests: z.number().optional().describe(""),
23508
+ stale_guidance: z.number().optional().describe(""),
23509
+ tripwires_fired: z.number().optional().describe(""),
23510
+ metrics: z.unknown().optional().describe(""),
23511
+ github_repository_id: z.string().nullable().optional()
23512
+ });
23513
+ const zReviewHealthSnapshotBulkOperationDto = z.object({
23514
+ op: z.enum([
23515
+ "create",
23516
+ "update",
23517
+ "delete"
23518
+ ]).describe(""),
23519
+ id: z.string().optional().describe(""),
23520
+ data: z.union([zCreateReviewHealthSnapshotDto, zUpdateReviewHealthSnapshotDto]).optional().describe(""),
23521
+ tx_id: z.string().describe("")
23522
+ });
23523
+ const zBulkReviewHealthSnapshotRequestDto = z.object({ operations: z.array(zReviewHealthSnapshotBulkOperationDto).describe("") });
23524
+ const zBulkReviewHealthSnapshotOperationResultDto = z.object({
23525
+ index: z.number().describe(""),
23526
+ tx_id: z.string().describe(""),
23527
+ status: z.number().describe(""),
23528
+ error: z.object({
23529
+ message: z.string().optional(),
23530
+ code: z.string().optional(),
23531
+ details: z.unknown().optional()
23532
+ }).optional().describe(""),
23533
+ response: zResponseReviewHealthSnapshotDto.optional().describe("")
23534
+ });
23535
+ const zBulkReviewHealthSnapshotResponseDto = z.object({
23536
+ results: z.array(zBulkReviewHealthSnapshotOperationResultDto).describe(""),
23537
+ summary: z.object({
23538
+ total: z.number().describe(""),
23539
+ successful: z.number().describe(""),
23540
+ failed: z.number().describe(""),
23541
+ savepoints_used: z.number().describe("")
23542
+ }).describe("")
23543
+ });
23544
+ const zReviewHealthSnapshotFindAllV1Data = z.object({
23545
+ query: z.object({
23546
+ "_with": z.string().optional(),
23547
+ "page": z.number().optional(),
23548
+ "limit": z.number().optional(),
23549
+ "filter.id": z.array(z.string()).optional(),
23550
+ "filter.period_start": z.array(z.string()).optional(),
23551
+ "filter.scope": z.array(z.string()).optional(),
23552
+ "filter.sources_silent": z.array(z.string()).optional(),
23553
+ "filter.tau_stalled_sources": z.array(z.string()).optional(),
23554
+ "filter.disposition_backlog": z.array(z.string()).optional(),
23555
+ "filter.disposition_oldest_days": z.array(z.string()).optional(),
23556
+ "filter.stale_escape_requests": z.array(z.string()).optional(),
23557
+ "filter.stale_guidance": z.array(z.string()).optional(),
23558
+ "filter.tripwires_fired": z.array(z.string()).optional(),
23559
+ "filter.github_repository_id": z.array(z.string()).optional(),
23560
+ "filter.created_at": z.array(z.string()).optional(),
23561
+ "filter.updated_at": z.array(z.string()).optional(),
23562
+ "sortBy": z.array(z.enum([
23563
+ "id:ASC",
23564
+ "id:DESC",
23565
+ "period_start:ASC",
23566
+ "period_start:DESC",
23567
+ "scope:ASC",
23568
+ "scope:DESC",
23569
+ "sources_silent:ASC",
23570
+ "sources_silent:DESC",
23571
+ "tau_stalled_sources:ASC",
23572
+ "tau_stalled_sources:DESC",
23573
+ "disposition_backlog:ASC",
23574
+ "disposition_backlog:DESC",
23575
+ "disposition_oldest_days:ASC",
23576
+ "disposition_oldest_days:DESC",
23577
+ "stale_escape_requests:ASC",
23578
+ "stale_escape_requests:DESC",
23579
+ "stale_guidance:ASC",
23580
+ "stale_guidance:DESC",
23581
+ "tripwires_fired:ASC",
23582
+ "tripwires_fired:DESC",
23583
+ "github_repository_id:ASC",
23584
+ "github_repository_id:DESC",
23585
+ "created_at:ASC",
23586
+ "created_at:DESC",
23587
+ "updated_at:ASC",
23588
+ "updated_at:DESC"
23589
+ ])).optional(),
23590
+ "search": z.string().optional(),
23591
+ "searchBy": z.array(z.string()).optional()
23592
+ }).optional(),
23593
+ url: z.literal("/v1/review-health-snapshot")
23594
+ });
23595
+ const zReviewHealthSnapshotFindOneV1Data = z.object({
23596
+ path: z.object({ "id": z.string() }),
23597
+ url: z.literal("/v1/review-health-snapshot/{id}")
23598
+ });
23599
+ const zReviewHealthSnapshotBulkOperationV1Data = z.object({
23600
+ body: zBulkReviewHealthSnapshotRequestDto,
23601
+ url: z.literal("/v1/review-health-snapshot/bulk")
23602
+ });
23603
+
23473
23604
  //#endregion
23474
23605
  //#region ../sdk/dist/gen/role/zod.js
23475
23606
  const zCreateRoleDto = z.object({
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-BOrhy5fg.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-BEKRw7tC.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-BOrhy5fg.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-BEKRw7tC.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.4",
3
+ "version": "0.6.6",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",