@levr-one/cli 0.5.4 → 0.5.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-BR3xbfV7.js");
183
+ const { loginHandler } = await import("./loginHandler-CM1gBvrN.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-BplYN4qp.js");
222
+ const { statusHandler } = await import("./statusHandler-BtBFZYxW.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-BPyTNCFi.js");
333
+ const { pushHandler } = await import("./pushHandler-REuoBBGu.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-IOGyxFu_.js");
445
+ const { importHandler } = await import("./importHandler-C7BH1gNa.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-B2zN3vH3.js");
466
+ const { listHandler } = await import("./listHandler-CxsG1ouN.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-49fmV3mF.js");
499
+ const { selectHandler } = await import("./selectHandler-mAabX0wm.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.4";
523
+ var version = "0.5.6";
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-BcAHiWH_.js";
2
+ import { configureClient, testCaseImportCommitV1, testCaseImportPreviewV1 } from "./sdk-client-2oow-cNW.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-DRqFB25C.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-51yAO0RD.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-BcAHiWH_.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-2oow-cNW.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-BcAHiWH_.js";
2
+ import { configureClient } from "./sdk-client-2oow-cNW.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { autoSelectWorkspace } from "./resolve-workspace-DRqFB25C.js";
4
+ import { autoSelectWorkspace } from "./resolve-workspace-51yAO0RD.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-BcAHiWH_.js";
2
+ import { client, configureClient, uploadAutomationIngest, uploadImport } from "./sdk-client-2oow-cNW.js";
3
3
  import "./workspace-store-DDOxnut1.js";
4
- import { resolveWorkspace } from "./resolve-workspace-DRqFB25C.js";
4
+ import { resolveWorkspace } from "./resolve-workspace-51yAO0RD.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-BcAHiWH_.js";
1
+ import { authGetSitesV1 } from "./sdk-client-2oow-cNW.js";
2
2
  import { clearWorkspace, loadWorkspace, saveWorkspace } from "./workspace-store-DDOxnut1.js";
3
3
 
4
4
  //#region src/workspace/resolve-workspace.ts
@@ -2435,7 +2435,8 @@ const zArchiveListResponseDto = z.object({
2435
2435
  deleted_at: z.string().nullable().optional(),
2436
2436
  created_at: z.string(),
2437
2437
  created_by: z.string(),
2438
- deleted_by: z.string().nullable().optional()
2438
+ deleted_by: z.string().nullable().optional(),
2439
+ archived_by: z.string().nullable().optional()
2439
2440
  })),
2440
2441
  meta: z.object({
2441
2442
  itemsPerPage: z.number(),
@@ -13171,6 +13172,175 @@ const zFolderBulkOperationV1Data = z.object({
13171
13172
  url: z.literal("/v1/folder/bulk")
13172
13173
  });
13173
13174
 
13175
+ //#endregion
13176
+ //#region ../sdk/dist/gen/forecast/zod.js
13177
+ const zForecastResultDto = z.object({
13178
+ targetKind: z.enum([
13179
+ "project",
13180
+ "initiative",
13181
+ "issue",
13182
+ "team"
13183
+ ]),
13184
+ targetId: z.string(),
13185
+ remainingItems: z.number(),
13186
+ source: z.enum([
13187
+ "scope",
13188
+ "reference",
13189
+ "none"
13190
+ ]),
13191
+ referenceClassSize: z.number(),
13192
+ p50: z.string().nullable(),
13193
+ p75: z.string().nullable(),
13194
+ p85: z.string().nullable(),
13195
+ p95: z.string().nullable(),
13196
+ weeksToP50: z.number().nullable(),
13197
+ weeksToP75: z.number().nullable(),
13198
+ weeksToP85: z.number().nullable(),
13199
+ weeksToP95: z.number().nullable(),
13200
+ completionRatePerWeek: z.number(),
13201
+ arrivalRatePerWeek: z.number(),
13202
+ netFlowPerWeek: z.number(),
13203
+ scopeTrend: z.enum([
13204
+ "shrinking",
13205
+ "flat",
13206
+ "growing"
13207
+ ]),
13208
+ converges: z.boolean(),
13209
+ convergedFraction: z.number(),
13210
+ inflowP50: z.string().nullable(),
13211
+ inflowP75: z.string().nullable(),
13212
+ inflowP85: z.string().nullable(),
13213
+ inflowP95: z.string().nullable(),
13214
+ inflowWeeksToP50: z.number().nullable(),
13215
+ inflowWeeksToP75: z.number().nullable(),
13216
+ inflowWeeksToP85: z.number().nullable(),
13217
+ inflowWeeksToP95: z.number().nullable(),
13218
+ confidence: z.enum([
13219
+ "High",
13220
+ "Medium",
13221
+ "Low"
13222
+ ]),
13223
+ totalCompleted: z.number(),
13224
+ totalItems: z.number(),
13225
+ completedItems: z.number(),
13226
+ startedItems: z.number(),
13227
+ windowWeeks: z.number(),
13228
+ explanation: z.string(),
13229
+ computedAt: z.string(),
13230
+ weekStarts: z.array(z.string()),
13231
+ weeklyThroughput: z.array(z.number()),
13232
+ weeklyArrivals: z.array(z.number())
13233
+ });
13234
+ const zForecastBatchDto = z.object({
13235
+ targets: z.array(z.object({
13236
+ target_type: z.enum([
13237
+ "project",
13238
+ "initiative",
13239
+ "issue",
13240
+ "team"
13241
+ ]),
13242
+ target_id: z.string()
13243
+ })),
13244
+ window_weeks: z.union([
13245
+ z.number(),
13246
+ z.number(),
13247
+ z.number(),
13248
+ z.number()
13249
+ ]).optional().describe("")
13250
+ });
13251
+ const zForecastBatchResponseDto = z.object({ results: z.array(z.object({
13252
+ target_type: z.enum([
13253
+ "project",
13254
+ "initiative",
13255
+ "issue",
13256
+ "team"
13257
+ ]),
13258
+ target_id: z.string(),
13259
+ result: z.object({
13260
+ targetKind: z.enum([
13261
+ "project",
13262
+ "initiative",
13263
+ "issue",
13264
+ "team"
13265
+ ]),
13266
+ targetId: z.string(),
13267
+ remainingItems: z.number(),
13268
+ source: z.enum([
13269
+ "scope",
13270
+ "reference",
13271
+ "none"
13272
+ ]),
13273
+ referenceClassSize: z.number(),
13274
+ p50: z.string().nullable(),
13275
+ p75: z.string().nullable(),
13276
+ p85: z.string().nullable(),
13277
+ p95: z.string().nullable(),
13278
+ weeksToP50: z.number().nullable(),
13279
+ weeksToP75: z.number().nullable(),
13280
+ weeksToP85: z.number().nullable(),
13281
+ weeksToP95: z.number().nullable(),
13282
+ completionRatePerWeek: z.number(),
13283
+ arrivalRatePerWeek: z.number(),
13284
+ netFlowPerWeek: z.number(),
13285
+ scopeTrend: z.enum([
13286
+ "shrinking",
13287
+ "flat",
13288
+ "growing"
13289
+ ]),
13290
+ converges: z.boolean(),
13291
+ convergedFraction: z.number(),
13292
+ inflowP50: z.string().nullable(),
13293
+ inflowP75: z.string().nullable(),
13294
+ inflowP85: z.string().nullable(),
13295
+ inflowP95: z.string().nullable(),
13296
+ inflowWeeksToP50: z.number().nullable(),
13297
+ inflowWeeksToP75: z.number().nullable(),
13298
+ inflowWeeksToP85: z.number().nullable(),
13299
+ inflowWeeksToP95: z.number().nullable(),
13300
+ confidence: z.enum([
13301
+ "High",
13302
+ "Medium",
13303
+ "Low"
13304
+ ]),
13305
+ totalCompleted: z.number(),
13306
+ totalItems: z.number(),
13307
+ completedItems: z.number(),
13308
+ startedItems: z.number(),
13309
+ windowWeeks: z.number(),
13310
+ explanation: z.string(),
13311
+ computedAt: z.string(),
13312
+ weekStarts: z.array(z.string()),
13313
+ weeklyThroughput: z.array(z.number()),
13314
+ weeklyArrivals: z.array(z.number())
13315
+ }).nullable(),
13316
+ error: z.object({
13317
+ status: z.number(),
13318
+ message: z.string()
13319
+ }).nullable()
13320
+ })) });
13321
+ const zForecastGetForecastV1Data = z.object({
13322
+ query: z.object({
13323
+ "target_type": z.enum([
13324
+ "project",
13325
+ "initiative",
13326
+ "issue",
13327
+ "team"
13328
+ ]),
13329
+ "target_id": z.string(),
13330
+ "window_weeks": z.union([
13331
+ z.number(),
13332
+ z.number(),
13333
+ z.number(),
13334
+ z.number()
13335
+ ]).optional()
13336
+ }).optional(),
13337
+ url: z.literal("/v1/forecast")
13338
+ });
13339
+ const zForecastGetForecastBatchV1Data = z.object({
13340
+ body: zForecastBatchDto,
13341
+ url: z.literal("/v1/forecast/batch")
13342
+ });
13343
+
13174
13344
  //#endregion
13175
13345
  //#region ../sdk/dist/gen/gate/zod.js
13176
13346
  const zGateResolveGateSetV1Data = z.object({
@@ -1,5 +1,5 @@
1
1
  import "./env-CHeKHu5S.js";
2
- import { authGetSitesV1, configureClient } from "./sdk-client-BcAHiWH_.js";
2
+ import { authGetSitesV1, configureClient } from "./sdk-client-2oow-cNW.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-BcAHiWH_.js";
2
+ import { authGetProfileV1, configureClient } from "./sdk-client-2oow-cNW.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.4",
3
+ "version": "0.5.6",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",