@paklo/core 0.13.0 → 0.14.1

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.
@@ -1,5 +1,4 @@
1
- import { Ft as DependabotExistingPr, G as DependabotUpdatePullRequest, Nt as DependabotExistingGroupPr, Sn as DependabotConfig, Zt as DependabotPersistedPr, p as DependabotCreatePullRequest, qn as VariableFinderFn } from "../index-CviS_2Dy.mjs";
2
- import "../index-BKTxy7XU.mjs";
1
+ import { Ft as DependabotExistingPr, G as DependabotUpdatePullRequest, Nt as DependabotExistingGroupPr, Sn as DependabotConfig, Zt as DependabotPersistedPr, p as DependabotCreatePullRequest, qn as VariableFinderFn } from "../utils-BzO7b5Ke.mjs";
3
2
  import { z } from "zod";
4
3
  import { KyInstance } from "ky";
5
4
 
@@ -58,21 +57,21 @@ declare class BaseAzureDevOpsClient {
58
57
  //#endregion
59
58
  //#region src/azure/client/types.d.ts
60
59
  declare const AzdoVersionControlChangeTypeSchema: z.ZodEnum<{
61
- all: "all";
62
- branch: "branch";
63
- delete: "delete";
64
60
  none: "none";
65
61
  add: "add";
66
62
  edit: "edit";
67
63
  encoding: "encoding";
68
64
  rename: "rename";
65
+ delete: "delete";
69
66
  undelete: "undelete";
67
+ branch: "branch";
70
68
  merge: "merge";
71
69
  lock: "lock";
72
70
  rollback: "rollback";
73
71
  sourceRename: "sourceRename";
74
72
  targetRename: "targetRename";
75
73
  property: "property";
74
+ all: "all";
76
75
  }>;
77
76
  type AzdoVersionControlChangeType = z.infer<typeof AzdoVersionControlChangeTypeSchema>;
78
77
  declare const AZDO_PULL_REQUEST_MERGE_STRATEGIES: readonly ["noFastForward", "squash", "rebase", "rebaseMerge"];
@@ -235,21 +234,21 @@ declare const AzdoGitRefUpdateResultSchema: z.ZodObject<{
235
234
  type AzdoGitRefUpdateResult = z.infer<typeof AzdoGitRefUpdateResultSchema>;
236
235
  declare const AzdoGitChangeSchema: z.ZodObject<{
237
236
  changeType: z.ZodEnum<{
238
- all: "all";
239
- branch: "branch";
240
- delete: "delete";
241
237
  none: "none";
242
238
  add: "add";
243
239
  edit: "edit";
244
240
  encoding: "encoding";
245
241
  rename: "rename";
242
+ delete: "delete";
246
243
  undelete: "undelete";
244
+ branch: "branch";
247
245
  merge: "merge";
248
246
  lock: "lock";
249
247
  rollback: "rollback";
250
248
  sourceRename: "sourceRename";
251
249
  targetRename: "targetRename";
252
250
  property: "property";
251
+ all: "all";
253
252
  }>;
254
253
  item: z.ZodOptional<z.ZodObject<{
255
254
  path: z.ZodString;
@@ -278,21 +277,21 @@ declare const AzdoGitCommitRefSchema: z.ZodObject<{
278
277
  }, z.core.$strip>>;
279
278
  changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
280
279
  changeType: z.ZodEnum<{
281
- all: "all";
282
- branch: "branch";
283
- delete: "delete";
284
280
  none: "none";
285
281
  add: "add";
286
282
  edit: "edit";
287
283
  encoding: "encoding";
288
284
  rename: "rename";
285
+ delete: "delete";
289
286
  undelete: "undelete";
287
+ branch: "branch";
290
288
  merge: "merge";
291
289
  lock: "lock";
292
290
  rollback: "rollback";
293
291
  sourceRename: "sourceRename";
294
292
  targetRename: "targetRename";
295
293
  property: "property";
294
+ all: "all";
296
295
  }>;
297
296
  item: z.ZodOptional<z.ZodObject<{
298
297
  path: z.ZodString;
@@ -323,21 +322,21 @@ declare const AzdoGitPushSchema: z.ZodObject<{
323
322
  }, z.core.$strip>>;
324
323
  changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
325
324
  changeType: z.ZodEnum<{
326
- all: "all";
327
- branch: "branch";
328
- delete: "delete";
329
325
  none: "none";
330
326
  add: "add";
331
327
  edit: "edit";
332
328
  encoding: "encoding";
333
329
  rename: "rename";
330
+ delete: "delete";
334
331
  undelete: "undelete";
332
+ branch: "branch";
335
333
  merge: "merge";
336
334
  lock: "lock";
337
335
  rollback: "rollback";
338
336
  sourceRename: "sourceRename";
339
337
  targetRename: "targetRename";
340
338
  property: "property";
339
+ all: "all";
341
340
  }>;
342
341
  item: z.ZodOptional<z.ZodObject<{
343
342
  path: z.ZodString;
@@ -382,21 +381,21 @@ declare const AzdoGitPushCreateSchema: z.ZodObject<{
382
381
  }, z.core.$strip>>;
383
382
  changes: z.ZodArray<z.ZodObject<{
384
383
  changeType: z.ZodEnum<{
385
- all: "all";
386
- branch: "branch";
387
- delete: "delete";
388
384
  none: "none";
389
385
  add: "add";
390
386
  edit: "edit";
391
387
  encoding: "encoding";
392
388
  rename: "rename";
389
+ delete: "delete";
393
390
  undelete: "undelete";
391
+ branch: "branch";
394
392
  merge: "merge";
395
393
  lock: "lock";
396
394
  rollback: "rollback";
397
395
  sourceRename: "sourceRename";
398
396
  targetRename: "targetRename";
399
397
  property: "property";
398
+ all: "all";
400
399
  }>;
401
400
  item: z.ZodOptional<z.ZodObject<{
402
401
  path: z.ZodString;
@@ -423,21 +422,21 @@ declare const AzdoGitCommitDiffsSchema: z.ZodObject<{
423
422
  baseCommit: z.ZodString;
424
423
  changes: z.ZodArray<z.ZodObject<{
425
424
  changeType: z.ZodEnum<{
426
- all: "all";
427
- branch: "branch";
428
- delete: "delete";
429
425
  none: "none";
430
426
  add: "add";
431
427
  edit: "edit";
432
428
  encoding: "encoding";
433
429
  rename: "rename";
430
+ delete: "delete";
434
431
  undelete: "undelete";
432
+ branch: "branch";
435
433
  merge: "merge";
436
434
  lock: "lock";
437
435
  rollback: "rollback";
438
436
  sourceRename: "sourceRename";
439
437
  targetRename: "targetRename";
440
438
  property: "property";
439
+ all: "all";
441
440
  }>;
442
441
  item: z.ZodOptional<z.ZodObject<{
443
442
  path: z.ZodString;
@@ -469,21 +468,21 @@ declare const AzdoRepositoryItemSchema: z.ZodObject<{
469
468
  }, z.core.$strip>>;
470
469
  changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
471
470
  changeType: z.ZodEnum<{
472
- all: "all";
473
- branch: "branch";
474
- delete: "delete";
475
471
  none: "none";
476
472
  add: "add";
477
473
  edit: "edit";
478
474
  encoding: "encoding";
479
475
  rename: "rename";
476
+ delete: "delete";
480
477
  undelete: "undelete";
478
+ branch: "branch";
481
479
  merge: "merge";
482
480
  lock: "lock";
483
481
  rollback: "rollback";
484
482
  sourceRename: "sourceRename";
485
483
  targetRename: "targetRename";
486
484
  property: "property";
485
+ all: "all";
487
486
  }>;
488
487
  item: z.ZodOptional<z.ZodObject<{
489
488
  path: z.ZodString;
@@ -538,21 +537,21 @@ declare const AzdoPullRequestSchema: z.ZodObject<{
538
537
  }, z.core.$strip>>;
539
538
  changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
540
539
  changeType: z.ZodEnum<{
541
- all: "all";
542
- branch: "branch";
543
- delete: "delete";
544
540
  none: "none";
545
541
  add: "add";
546
542
  edit: "edit";
547
543
  encoding: "encoding";
548
544
  rename: "rename";
545
+ delete: "delete";
549
546
  undelete: "undelete";
547
+ branch: "branch";
550
548
  merge: "merge";
551
549
  lock: "lock";
552
550
  rollback: "rollback";
553
551
  sourceRename: "sourceRename";
554
552
  targetRename: "targetRename";
555
553
  property: "property";
554
+ all: "all";
556
555
  }>;
557
556
  item: z.ZodOptional<z.ZodObject<{
558
557
  path: z.ZodString;
@@ -581,21 +580,21 @@ declare const AzdoPullRequestSchema: z.ZodObject<{
581
580
  }, z.core.$strip>>;
582
581
  changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
583
582
  changeType: z.ZodEnum<{
584
- all: "all";
585
- branch: "branch";
586
- delete: "delete";
587
583
  none: "none";
588
584
  add: "add";
589
585
  edit: "edit";
590
586
  encoding: "encoding";
591
587
  rename: "rename";
588
+ delete: "delete";
592
589
  undelete: "undelete";
590
+ branch: "branch";
593
591
  merge: "merge";
594
592
  lock: "lock";
595
593
  rollback: "rollback";
596
594
  sourceRename: "sourceRename";
597
595
  targetRename: "targetRename";
598
596
  property: "property";
597
+ all: "all";
599
598
  }>;
600
599
  item: z.ZodOptional<z.ZodObject<{
601
600
  path: z.ZodString;
@@ -950,7 +949,7 @@ declare function parsePullRequestProps(pr: AzdoPrExtractedWithProperties): Depen
950
949
  declare function parsePullRequestProperties(pullRequests: AzdoPrExtractedWithProperties[], packageManager: string): (DependabotExistingPr | DependabotExistingGroupPr)[];
951
950
  declare function getPullRequestForDependencyNames(existingPullRequests: AzdoPrExtractedWithProperties[], packageManager: string, dependencyNames: string[], dependencyGroupName?: string | null): AzdoPrExtractedWithProperties | undefined;
952
951
  declare function getPullRequestChangedFiles(data: DependabotCreatePullRequest | DependabotUpdatePullRequest): {
953
- changeType: "delete" | "add" | "edit";
952
+ changeType: "add" | "edit" | "delete";
954
953
  path: string;
955
954
  content: string | undefined;
956
955
  encoding: "utf-8" | "base64";
@@ -1230,21 +1229,21 @@ declare const AzdoEventCodePushResourceSchema: z.ZodObject<{
1230
1229
  }, z.core.$strip>>;
1231
1230
  changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1232
1231
  changeType: z.ZodEnum<{
1233
- all: "all";
1234
- branch: "branch";
1235
- delete: "delete";
1236
1232
  none: "none";
1237
1233
  add: "add";
1238
1234
  edit: "edit";
1239
1235
  encoding: "encoding";
1240
1236
  rename: "rename";
1237
+ delete: "delete";
1241
1238
  undelete: "undelete";
1239
+ branch: "branch";
1242
1240
  merge: "merge";
1243
1241
  lock: "lock";
1244
1242
  rollback: "rollback";
1245
1243
  sourceRename: "sourceRename";
1246
1244
  targetRename: "targetRename";
1247
1245
  property: "property";
1246
+ all: "all";
1248
1247
  }>;
1249
1248
  item: z.ZodOptional<z.ZodObject<{
1250
1249
  path: z.ZodString;
@@ -1465,21 +1464,21 @@ declare const AzdoEventSchema: z.ZodIntersection<z.ZodObject<{
1465
1464
  }, z.core.$strip>>;
1466
1465
  changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1467
1466
  changeType: z.ZodEnum<{
1468
- all: "all";
1469
- branch: "branch";
1470
- delete: "delete";
1471
1467
  none: "none";
1472
1468
  add: "add";
1473
1469
  edit: "edit";
1474
1470
  encoding: "encoding";
1475
1471
  rename: "rename";
1472
+ delete: "delete";
1476
1473
  undelete: "undelete";
1474
+ branch: "branch";
1477
1475
  merge: "merge";
1478
1476
  lock: "lock";
1479
1477
  rollback: "rollback";
1480
1478
  sourceRename: "sourceRename";
1481
1479
  targetRename: "targetRename";
1482
1480
  property: "property";
1481
+ all: "all";
1483
1482
  }>;
1484
1483
  item: z.ZodOptional<z.ZodObject<{
1485
1484
  path: z.ZodString;
@@ -1,6 +1,6 @@
1
- import { n as logger } from "../logger-BV4N2wBl.mjs";
2
- import { D as CONFIG_FILE_PATHS_AZURE, V as parseDependabotConfig, u as DependabotExistingPrDependencySchema, v as DependabotPersistedPrSchema } from "../job-CNRfJDsF.mjs";
3
- import { n as getDependencyNames, o as normalizeBranchName, s as normalizeFilePath, t as areEqual } from "../dependabot-Epqz07Sy.mjs";
1
+ import { logger } from "../logger.mjs";
2
+ import { D as CONFIG_FILE_PATHS_AZURE, V as parseDependabotConfig, u as DependabotExistingPrDependencySchema, v as DependabotPersistedPrSchema } from "../job-Bb9WiMwE.mjs";
3
+ import { n as getDependencyNames, o as normalizeBranchName, s as normalizeFilePath, t as areEqual } from "../utils-CAR7z1qU.mjs";
4
4
  import { z } from "zod";
5
5
  import ky, { isHTTPError } from "ky";
6
6
  import * as path from "node:path";
@@ -1,3 +1,2 @@
1
- import { $ as createApiServerApp, $t as DependabotProxyConfig, A as DependabotMetricSchema, An as DependabotMultiEcosystemGroup, At as DependabotCredentialSchema, B as DependabotRecordUpdateJobUnknownErrorSchema, Bn as PackageEcosystemSchema, Bt as DependabotExperimentsSchema, C as DependabotIncrementMetric, Cn as DependabotConfigSchema, Ct as DependabotCommand, D as DependabotMarkAsProcessed, Dn as DependabotGroupSchema, Dt as DependabotCondition, E as DependabotJobErrorSchema, En as DependabotGroup, Et as DependabotCommitOptionsSchema, F as DependabotRecordEcosystemVersions, Fn as DependabotSchedule, Ft as DependabotExistingPr, G as DependabotUpdatePullRequest, Gn as parseUpdates, Gt as DependabotJobConfig, H as DependabotRecordUpdateJobWarningSchema, Hn as VersioningStrategySchema, Ht as DependabotGroupJobSchema, I as DependabotRecordEcosystemVersionsSchema, In as DependabotScheduleSchema, It as DependabotExistingPrDependency, J as DependabotRequest, Jn as convertPlaceholder, Jt as DependabotJobFileSchema, K as DependabotUpdatePullRequestSchema, Kn as validateConfiguration, Kt as DependabotJobConfigSchema, L as DependabotRecordUpdateJobError, Ln as DependabotUpdate, Lt as DependabotExistingPrDependencySchema, M as DependabotRecordCooldownMetaSchema, Mn as DependabotPullRequestBranchName, Mt as DependabotDependencySchema, N as DependabotRecordEcosystemMeta, Nn as DependabotRegistry, Nt as DependabotExistingGroupPr, O as DependabotMarkAsProcessedSchema, On as DependabotIgnoreCondition, Ot as DependabotConditionSchema, P as DependabotRecordEcosystemMetaSchema, Pn as DependabotRegistrySchema, Pt as DependabotExistingGroupPrSchema, Q as DependabotTokenType, Qn as GitAuthor, Qt as DependabotPersistedPrSchema, R as DependabotRecordUpdateJobErrorSchema, Rn as DependabotUpdateSchema, Rt as DependabotExistingPrSchema, S as DependabotEcosystemVersionManagerSchema, Sn as DependabotConfig, St as DependabotAllowedSchema, T as DependabotJobError, Tn as DependabotCooldownSchema, Tt as DependabotCommitOptions, U as DependabotUpdateDependencyList, Un as parseDependabotConfig, Ut as DependabotGroupRuleJob, V as DependabotRecordUpdateJobWarning, Vn as VersioningStrategy, Vt as DependabotGroupJob, W as DependabotUpdateDependencyListSchema, Wn as parseRegistries, Wt as DependabotGroupRuleJobSchema, X as DependabotRequestType, Xn as DEPENDABOT_DEFAULT_AUTHOR_EMAIL, Xt as DependabotPackageManagerSchema, Y as DependabotRequestSchema, Yn as extractPlaceholder, Yt as DependabotPackageManager, Z as DependabotRequestTypeSchema, Zn as DEPENDABOT_DEFAULT_AUTHOR_NAME, Zt as DependabotPersistedPr, _ as DependabotDependencySubmission, _n as CONFIG_FILE_PATHS_GITHUB, _t as sanitizeRef, a as getPullRequestDescription, an as DependabotSecurityAdvisory, at as mapExperiments, b as DependabotEcosystemMetaSchema, bn as DependabotCommitMessage, bt as DEPENDABOT_COMMANDS, c as shouldSupersede, cn as DependabotSourceProvider, ct as mapPackageEcosystemToPackageManager, d as DependabotClosePullRequestReasonEnum, dn as FetchedFiles, dt as mapVersionStrategyToRequirementsUpdateStrategy, en as DependabotProxyConfigSchema, et as DependabotJobBuilder, f as DependabotClosePullRequestSchema, fn as FileFetcherInput, ft as DEFAULT_EXPERIMENTS, g as DependabotDependencyFileSchema, gn as CONFIG_FILE_PATHS_AZURE, gt as getBranchNameForUpdate, h as DependabotDependencyFile, hn as CONFIG_FILE_NAMES, ht as makeDirectoryKey, i as getPullRequestCloseReason, in as DependabotRequirementSourceSchema, it as mapCredentials, j as DependabotRecordCooldownMeta, jn as DependabotMultiEcosystemGroupSchema, jt as DependabotDependency, k as DependabotMetric, kn as DependabotIgnoreConditionSchema, kt as DependabotCredential, l as DependabotClosePullRequest, ln as DependabotSourceProviderSchema, lt as mapSecurityAdvisories, m as DependabotCreatePullRequestSchema, mn as BETA_ECOSYSTEMS, mt as setExperiment, n as getDependencyNames, nn as DependabotRequirementSchema, nt as DependabotSourceInfo, o as normalizeBranchName, on as DependabotSecurityAdvisorySchema, ot as mapGroupsFromDependabotConfigToJobConfig, p as DependabotCreatePullRequest, pn as FileUpdaterInput, pt as parseExperiments, q as CreateApiServerAppOptions, qn as VariableFinderFn, qt as DependabotJobFile, r as getPersistedPr, rn as DependabotRequirementSource, rt as mapAllowedUpdatesFromDependabotConfigToJobConfig, s as normalizeFilePath, sn as DependabotSource, st as mapIgnoreConditionsFromDependabotConfigToJobConfig, t as areEqual, tn as DependabotRequirement, tt as DependabotJobBuilderOutput, u as DependabotClosePullRequestReason, un as DependabotSourceSchema, ut as mapSourceFromDependabotConfigToJobConfig, v as DependabotDependencySubmissionSchema, vn as DependabotAllowCondition, vt as CertificateAuthority, w as DependabotIncrementMetricSchema, wn as DependabotCooldown, wt as DependabotCommandSchema, x as DependabotEcosystemVersionManager, xn as DependabotCommitMessageSchema, xt as DependabotAllowed, y as DependabotEcosystemMeta, yn as DependabotAllowConditionSchema, yt as CertificateAuthoritySchema, z as DependabotRecordUpdateJobUnknownError, zn as PackageEcosystem, zt as DependabotExperiments } from "../index-CviS_2Dy.mjs";
2
- import "../index-BKTxy7XU.mjs";
1
+ import { $ as createApiServerApp, $t as DependabotProxyConfig, A as DependabotMetricSchema, An as DependabotMultiEcosystemGroup, At as DependabotCredentialSchema, B as DependabotRecordUpdateJobUnknownErrorSchema, Bn as PackageEcosystemSchema, Bt as DependabotExperimentsSchema, C as DependabotIncrementMetric, Cn as DependabotConfigSchema, Ct as DependabotCommand, D as DependabotMarkAsProcessed, Dn as DependabotGroupSchema, Dt as DependabotCondition, E as DependabotJobErrorSchema, En as DependabotGroup, Et as DependabotCommitOptionsSchema, F as DependabotRecordEcosystemVersions, Fn as DependabotSchedule, Ft as DependabotExistingPr, G as DependabotUpdatePullRequest, Gn as parseUpdates, Gt as DependabotJobConfig, H as DependabotRecordUpdateJobWarningSchema, Hn as VersioningStrategySchema, Ht as DependabotGroupJobSchema, I as DependabotRecordEcosystemVersionsSchema, In as DependabotScheduleSchema, It as DependabotExistingPrDependency, J as DependabotRequest, Jn as convertPlaceholder, Jt as DependabotJobFileSchema, K as DependabotUpdatePullRequestSchema, Kn as validateConfiguration, Kt as DependabotJobConfigSchema, L as DependabotRecordUpdateJobError, Ln as DependabotUpdate, Lt as DependabotExistingPrDependencySchema, M as DependabotRecordCooldownMetaSchema, Mn as DependabotPullRequestBranchName, Mt as DependabotDependencySchema, N as DependabotRecordEcosystemMeta, Nn as DependabotRegistry, Nt as DependabotExistingGroupPr, O as DependabotMarkAsProcessedSchema, On as DependabotIgnoreCondition, Ot as DependabotConditionSchema, P as DependabotRecordEcosystemMetaSchema, Pn as DependabotRegistrySchema, Pt as DependabotExistingGroupPrSchema, Q as DependabotTokenType, Qn as GitAuthor, Qt as DependabotPersistedPrSchema, R as DependabotRecordUpdateJobErrorSchema, Rn as DependabotUpdateSchema, Rt as DependabotExistingPrSchema, S as DependabotEcosystemVersionManagerSchema, Sn as DependabotConfig, St as DependabotAllowedSchema, T as DependabotJobError, Tn as DependabotCooldownSchema, Tt as DependabotCommitOptions, U as DependabotUpdateDependencyList, Un as parseDependabotConfig, Ut as DependabotGroupRuleJob, V as DependabotRecordUpdateJobWarning, Vn as VersioningStrategy, Vt as DependabotGroupJob, W as DependabotUpdateDependencyListSchema, Wn as parseRegistries, Wt as DependabotGroupRuleJobSchema, X as DependabotRequestType, Xn as DEPENDABOT_DEFAULT_AUTHOR_EMAIL, Xt as DependabotPackageManagerSchema, Y as DependabotRequestSchema, Yn as extractPlaceholder, Yt as DependabotPackageManager, Z as DependabotRequestTypeSchema, Zn as DEPENDABOT_DEFAULT_AUTHOR_NAME, Zt as DependabotPersistedPr, _ as DependabotDependencySubmission, _n as CONFIG_FILE_PATHS_GITHUB, _t as sanitizeRef, a as getPullRequestDescription, an as DependabotSecurityAdvisory, at as mapExperiments, b as DependabotEcosystemMetaSchema, bn as DependabotCommitMessage, bt as DEPENDABOT_COMMANDS, c as shouldSupersede, cn as DependabotSourceProvider, ct as mapPackageEcosystemToPackageManager, d as DependabotClosePullRequestReasonEnum, dn as FetchedFiles, dt as mapVersionStrategyToRequirementsUpdateStrategy, en as DependabotProxyConfigSchema, et as DependabotJobBuilder, f as DependabotClosePullRequestSchema, fn as FileFetcherInput, ft as DEFAULT_EXPERIMENTS, g as DependabotDependencyFileSchema, gn as CONFIG_FILE_PATHS_AZURE, gt as getBranchNameForUpdate, h as DependabotDependencyFile, hn as CONFIG_FILE_NAMES, ht as makeDirectoryKey, i as getPullRequestCloseReason, in as DependabotRequirementSourceSchema, it as mapCredentials, j as DependabotRecordCooldownMeta, jn as DependabotMultiEcosystemGroupSchema, jt as DependabotDependency, k as DependabotMetric, kn as DependabotIgnoreConditionSchema, kt as DependabotCredential, l as DependabotClosePullRequest, ln as DependabotSourceProviderSchema, lt as mapSecurityAdvisories, m as DependabotCreatePullRequestSchema, mn as BETA_ECOSYSTEMS, mt as setExperiment, n as getDependencyNames, nn as DependabotRequirementSchema, nt as DependabotSourceInfo, o as normalizeBranchName, on as DependabotSecurityAdvisorySchema, ot as mapGroupsFromDependabotConfigToJobConfig, p as DependabotCreatePullRequest, pn as FileUpdaterInput, pt as parseExperiments, q as CreateApiServerAppOptions, qn as VariableFinderFn, qt as DependabotJobFile, r as getPersistedPr, rn as DependabotRequirementSource, rt as mapAllowedUpdatesFromDependabotConfigToJobConfig, s as normalizeFilePath, sn as DependabotSource, st as mapIgnoreConditionsFromDependabotConfigToJobConfig, t as areEqual, tn as DependabotRequirement, tt as DependabotJobBuilderOutput, u as DependabotClosePullRequestReason, un as DependabotSourceSchema, ut as mapSourceFromDependabotConfigToJobConfig, v as DependabotDependencySubmissionSchema, vn as DependabotAllowCondition, vt as CertificateAuthority, w as DependabotIncrementMetricSchema, wn as DependabotCooldown, wt as DependabotCommandSchema, x as DependabotEcosystemVersionManager, xn as DependabotCommitMessageSchema, xt as DependabotAllowed, y as DependabotEcosystemMeta, yn as DependabotAllowConditionSchema, yt as CertificateAuthoritySchema, z as DependabotRecordUpdateJobUnknownError, zn as PackageEcosystem, zt as DependabotExperiments } from "../utils-BzO7b5Ke.mjs";
3
2
  export { BETA_ECOSYSTEMS, CONFIG_FILE_NAMES, CONFIG_FILE_PATHS_AZURE, CONFIG_FILE_PATHS_GITHUB, CertificateAuthority, CertificateAuthoritySchema, CreateApiServerAppOptions, DEFAULT_EXPERIMENTS, DEPENDABOT_COMMANDS, DEPENDABOT_DEFAULT_AUTHOR_EMAIL, DEPENDABOT_DEFAULT_AUTHOR_NAME, DependabotAllowCondition, DependabotAllowConditionSchema, DependabotAllowed, DependabotAllowedSchema, DependabotClosePullRequest, DependabotClosePullRequestReason, DependabotClosePullRequestReasonEnum, DependabotClosePullRequestSchema, DependabotCommand, DependabotCommandSchema, DependabotCommitMessage, DependabotCommitMessageSchema, DependabotCommitOptions, DependabotCommitOptionsSchema, DependabotCondition, DependabotConditionSchema, DependabotConfig, DependabotConfigSchema, DependabotCooldown, DependabotCooldownSchema, DependabotCreatePullRequest, DependabotCreatePullRequestSchema, DependabotCredential, DependabotCredentialSchema, DependabotDependency, DependabotDependencyFile, DependabotDependencyFileSchema, DependabotDependencySchema, DependabotDependencySubmission, DependabotDependencySubmissionSchema, DependabotEcosystemMeta, DependabotEcosystemMetaSchema, DependabotEcosystemVersionManager, DependabotEcosystemVersionManagerSchema, DependabotExistingGroupPr, DependabotExistingGroupPrSchema, DependabotExistingPr, DependabotExistingPrDependency, DependabotExistingPrDependencySchema, DependabotExistingPrSchema, DependabotExperiments, DependabotExperimentsSchema, DependabotGroup, DependabotGroupJob, DependabotGroupJobSchema, DependabotGroupRuleJob, DependabotGroupRuleJobSchema, DependabotGroupSchema, DependabotIgnoreCondition, DependabotIgnoreConditionSchema, DependabotIncrementMetric, DependabotIncrementMetricSchema, DependabotJobBuilder, DependabotJobBuilderOutput, DependabotJobConfig, DependabotJobConfigSchema, DependabotJobError, DependabotJobErrorSchema, DependabotJobFile, DependabotJobFileSchema, DependabotMarkAsProcessed, DependabotMarkAsProcessedSchema, DependabotMetric, DependabotMetricSchema, DependabotMultiEcosystemGroup, DependabotMultiEcosystemGroupSchema, DependabotPackageManager, DependabotPackageManagerSchema, DependabotPersistedPr, DependabotPersistedPrSchema, DependabotProxyConfig, DependabotProxyConfigSchema, DependabotPullRequestBranchName, DependabotRecordCooldownMeta, DependabotRecordCooldownMetaSchema, DependabotRecordEcosystemMeta, DependabotRecordEcosystemMetaSchema, DependabotRecordEcosystemVersions, DependabotRecordEcosystemVersionsSchema, DependabotRecordUpdateJobError, DependabotRecordUpdateJobErrorSchema, DependabotRecordUpdateJobUnknownError, DependabotRecordUpdateJobUnknownErrorSchema, DependabotRecordUpdateJobWarning, DependabotRecordUpdateJobWarningSchema, DependabotRegistry, DependabotRegistrySchema, DependabotRequest, DependabotRequestSchema, DependabotRequestType, DependabotRequestTypeSchema, DependabotRequirement, DependabotRequirementSchema, DependabotRequirementSource, DependabotRequirementSourceSchema, DependabotSchedule, DependabotScheduleSchema, DependabotSecurityAdvisory, DependabotSecurityAdvisorySchema, DependabotSource, DependabotSourceInfo, DependabotSourceProvider, DependabotSourceProviderSchema, DependabotSourceSchema, DependabotTokenType, DependabotUpdate, DependabotUpdateDependencyList, DependabotUpdateDependencyListSchema, DependabotUpdatePullRequest, DependabotUpdatePullRequestSchema, DependabotUpdateSchema, FetchedFiles, FileFetcherInput, FileUpdaterInput, GitAuthor, PackageEcosystem, PackageEcosystemSchema, VariableFinderFn, VersioningStrategy, VersioningStrategySchema, areEqual, convertPlaceholder, createApiServerApp, extractPlaceholder, getBranchNameForUpdate, getDependencyNames, getPersistedPr, getPullRequestCloseReason, getPullRequestDescription, makeDirectoryKey, mapAllowedUpdatesFromDependabotConfigToJobConfig, mapCredentials, mapExperiments, mapGroupsFromDependabotConfigToJobConfig, mapIgnoreConditionsFromDependabotConfigToJobConfig, mapPackageEcosystemToPackageManager, mapSecurityAdvisories, mapSourceFromDependabotConfigToJobConfig, mapVersionStrategyToRequirementsUpdateStrategy, normalizeBranchName, normalizeFilePath, parseDependabotConfig, parseExperiments, parseRegistries, parseUpdates, sanitizeRef, setExperiment, shouldSupersede, validateConfiguration };
@@ -1,4 +1,4 @@
1
- import { A as DependabotCommitMessageSchema, B as VersioningStrategySchema, C as DependabotSourceProviderSchema, D as CONFIG_FILE_PATHS_AZURE, E as CONFIG_FILE_NAMES, F as DependabotMultiEcosystemGroupSchema, G as convertPlaceholder, H as parseRegistries, I as DependabotRegistrySchema, K as extractPlaceholder, L as DependabotScheduleSchema, M as DependabotCooldownSchema, N as DependabotGroupSchema, O as CONFIG_FILE_PATHS_GITHUB, P as DependabotIgnoreConditionSchema, R as DependabotUpdateSchema, S as DependabotSecurityAdvisorySchema, T as BETA_ECOSYSTEMS, U as parseUpdates, V as parseDependabotConfig, W as validateConfiguration, _ as DependabotPackageManagerSchema, a as DependabotCommitOptionsSchema, b as DependabotRequirementSchema, c as DependabotDependencySchema, d as DependabotExistingPrSchema, f as DependabotExperimentsSchema, g as DependabotJobFileSchema, h as DependabotJobConfigSchema, i as DependabotCommandSchema, j as DependabotConfigSchema, k as DependabotAllowConditionSchema, l as DependabotExistingGroupPrSchema, m as DependabotGroupRuleJobSchema, n as DEPENDABOT_COMMANDS, o as DependabotConditionSchema, p as DependabotGroupJobSchema, q as makeDirectoryKey, r as DependabotAllowedSchema, s as DependabotCredentialSchema, t as CertificateAuthoritySchema, u as DependabotExistingPrDependencySchema, v as DependabotPersistedPrSchema, w as DependabotSourceSchema, x as DependabotRequirementSourceSchema, y as DependabotProxyConfigSchema, z as PackageEcosystemSchema } from "../job-CNRfJDsF.mjs";
2
- import { A as DependabotUpdatePullRequestSchema, B as mapVersionStrategyToRequirementsUpdateStrategy, C as DependabotRecordCooldownMetaSchema, D as DependabotRecordUpdateJobUnknownErrorSchema, E as DependabotRecordUpdateJobErrorSchema, F as mapGroupsFromDependabotConfigToJobConfig, G as sanitizeRef, H as parseExperiments, I as mapIgnoreConditionsFromDependabotConfigToJobConfig, K as DEPENDABOT_DEFAULT_AUTHOR_EMAIL, L as mapPackageEcosystemToPackageManager, M as mapAllowedUpdatesFromDependabotConfigToJobConfig, N as mapCredentials, O as DependabotRecordUpdateJobWarningSchema, P as mapExperiments, R as mapSecurityAdvisories, S as DependabotMetricSchema, T as DependabotRecordEcosystemVersionsSchema, U as setExperiment, V as DEFAULT_EXPERIMENTS, W as getBranchNameForUpdate, _ as DependabotEcosystemMetaSchema, a as getPullRequestDescription, b as DependabotJobErrorSchema, c as shouldSupersede, d as createApiServerApp, f as DependabotClosePullRequestReasonEnum, g as DependabotDependencySubmissionSchema, h as DependabotDependencyFileSchema, i as getPullRequestCloseReason, j as DependabotJobBuilder, k as DependabotUpdateDependencyListSchema, l as DependabotRequestSchema, m as DependabotCreatePullRequestSchema, n as getDependencyNames, o as normalizeBranchName, p as DependabotClosePullRequestSchema, q as DEPENDABOT_DEFAULT_AUTHOR_NAME, r as getPersistedPr, s as normalizeFilePath, t as areEqual, u as DependabotRequestTypeSchema, v as DependabotEcosystemVersionManagerSchema, w as DependabotRecordEcosystemMetaSchema, x as DependabotMarkAsProcessedSchema, y as DependabotIncrementMetricSchema, z as mapSourceFromDependabotConfigToJobConfig } from "../dependabot-Epqz07Sy.mjs";
1
+ import { A as DependabotCommitMessageSchema, B as VersioningStrategySchema, C as DependabotSourceProviderSchema, D as CONFIG_FILE_PATHS_AZURE, E as CONFIG_FILE_NAMES, F as DependabotMultiEcosystemGroupSchema, G as convertPlaceholder, H as parseRegistries, I as DependabotRegistrySchema, K as extractPlaceholder, L as DependabotScheduleSchema, M as DependabotCooldownSchema, N as DependabotGroupSchema, O as CONFIG_FILE_PATHS_GITHUB, P as DependabotIgnoreConditionSchema, R as DependabotUpdateSchema, S as DependabotSecurityAdvisorySchema, T as BETA_ECOSYSTEMS, U as parseUpdates, V as parseDependabotConfig, W as validateConfiguration, _ as DependabotPackageManagerSchema, a as DependabotCommitOptionsSchema, b as DependabotRequirementSchema, c as DependabotDependencySchema, d as DependabotExistingPrSchema, f as DependabotExperimentsSchema, g as DependabotJobFileSchema, h as DependabotJobConfigSchema, i as DependabotCommandSchema, j as DependabotConfigSchema, k as DependabotAllowConditionSchema, l as DependabotExistingGroupPrSchema, m as DependabotGroupRuleJobSchema, n as DEPENDABOT_COMMANDS, o as DependabotConditionSchema, p as DependabotGroupJobSchema, q as makeDirectoryKey, r as DependabotAllowedSchema, s as DependabotCredentialSchema, t as CertificateAuthoritySchema, u as DependabotExistingPrDependencySchema, v as DependabotPersistedPrSchema, w as DependabotSourceSchema, x as DependabotRequirementSourceSchema, y as DependabotProxyConfigSchema, z as PackageEcosystemSchema } from "../job-Bb9WiMwE.mjs";
2
+ import { A as DependabotUpdatePullRequestSchema, B as mapVersionStrategyToRequirementsUpdateStrategy, C as DependabotRecordCooldownMetaSchema, D as DependabotRecordUpdateJobUnknownErrorSchema, E as DependabotRecordUpdateJobErrorSchema, F as mapGroupsFromDependabotConfigToJobConfig, G as sanitizeRef, H as parseExperiments, I as mapIgnoreConditionsFromDependabotConfigToJobConfig, K as DEPENDABOT_DEFAULT_AUTHOR_EMAIL, L as mapPackageEcosystemToPackageManager, M as mapAllowedUpdatesFromDependabotConfigToJobConfig, N as mapCredentials, O as DependabotRecordUpdateJobWarningSchema, P as mapExperiments, R as mapSecurityAdvisories, S as DependabotMetricSchema, T as DependabotRecordEcosystemVersionsSchema, U as setExperiment, V as DEFAULT_EXPERIMENTS, W as getBranchNameForUpdate, _ as DependabotEcosystemMetaSchema, a as getPullRequestDescription, b as DependabotJobErrorSchema, c as shouldSupersede, d as createApiServerApp, f as DependabotClosePullRequestReasonEnum, g as DependabotDependencySubmissionSchema, h as DependabotDependencyFileSchema, i as getPullRequestCloseReason, j as DependabotJobBuilder, k as DependabotUpdateDependencyListSchema, l as DependabotRequestSchema, m as DependabotCreatePullRequestSchema, n as getDependencyNames, o as normalizeBranchName, p as DependabotClosePullRequestSchema, q as DEPENDABOT_DEFAULT_AUTHOR_NAME, r as getPersistedPr, s as normalizeFilePath, t as areEqual, u as DependabotRequestTypeSchema, v as DependabotEcosystemVersionManagerSchema, w as DependabotRecordEcosystemMetaSchema, x as DependabotMarkAsProcessedSchema, y as DependabotIncrementMetricSchema, z as mapSourceFromDependabotConfigToJobConfig } from "../utils-CAR7z1qU.mjs";
3
3
 
4
4
  export { BETA_ECOSYSTEMS, CONFIG_FILE_NAMES, CONFIG_FILE_PATHS_AZURE, CONFIG_FILE_PATHS_GITHUB, CertificateAuthoritySchema, DEFAULT_EXPERIMENTS, DEPENDABOT_COMMANDS, DEPENDABOT_DEFAULT_AUTHOR_EMAIL, DEPENDABOT_DEFAULT_AUTHOR_NAME, DependabotAllowConditionSchema, DependabotAllowedSchema, DependabotClosePullRequestReasonEnum, DependabotClosePullRequestSchema, DependabotCommandSchema, DependabotCommitMessageSchema, DependabotCommitOptionsSchema, DependabotConditionSchema, DependabotConfigSchema, DependabotCooldownSchema, DependabotCreatePullRequestSchema, DependabotCredentialSchema, DependabotDependencyFileSchema, DependabotDependencySchema, DependabotDependencySubmissionSchema, DependabotEcosystemMetaSchema, DependabotEcosystemVersionManagerSchema, DependabotExistingGroupPrSchema, DependabotExistingPrDependencySchema, DependabotExistingPrSchema, DependabotExperimentsSchema, DependabotGroupJobSchema, DependabotGroupRuleJobSchema, DependabotGroupSchema, DependabotIgnoreConditionSchema, DependabotIncrementMetricSchema, DependabotJobBuilder, DependabotJobConfigSchema, DependabotJobErrorSchema, DependabotJobFileSchema, DependabotMarkAsProcessedSchema, DependabotMetricSchema, DependabotMultiEcosystemGroupSchema, DependabotPackageManagerSchema, DependabotPersistedPrSchema, DependabotProxyConfigSchema, DependabotRecordCooldownMetaSchema, DependabotRecordEcosystemMetaSchema, DependabotRecordEcosystemVersionsSchema, DependabotRecordUpdateJobErrorSchema, DependabotRecordUpdateJobUnknownErrorSchema, DependabotRecordUpdateJobWarningSchema, DependabotRegistrySchema, DependabotRequestSchema, DependabotRequestTypeSchema, DependabotRequirementSchema, DependabotRequirementSourceSchema, DependabotScheduleSchema, DependabotSecurityAdvisorySchema, DependabotSourceProviderSchema, DependabotSourceSchema, DependabotUpdateDependencyListSchema, DependabotUpdatePullRequestSchema, DependabotUpdateSchema, PackageEcosystemSchema, VersioningStrategySchema, areEqual, convertPlaceholder, createApiServerApp, extractPlaceholder, getBranchNameForUpdate, getDependencyNames, getPersistedPr, getPullRequestCloseReason, getPullRequestDescription, makeDirectoryKey, mapAllowedUpdatesFromDependabotConfigToJobConfig, mapCredentials, mapExperiments, mapGroupsFromDependabotConfigToJobConfig, mapIgnoreConditionsFromDependabotConfigToJobConfig, mapPackageEcosystemToPackageManager, mapSecurityAdvisories, mapSourceFromDependabotConfigToJobConfig, mapVersionStrategyToRequirementsUpdateStrategy, normalizeBranchName, normalizeFilePath, parseDependabotConfig, parseExperiments, parseRegistries, parseUpdates, sanitizeRef, setExperiment, shouldSupersede, validateConfiguration };
@@ -165,4 +165,4 @@ declare class GitHubSecurityAdvisoryClient {
165
165
  declare function filterVulnerabilities(securityVulnerabilities: SecurityVulnerability[]): SecurityVulnerability[];
166
166
  //#endregion
167
167
  export { createGitHubClient as _, PackageEcosystemSchema as a, SecurityAdvisoryIdentifierSchema as c, SecurityAdvisorySeverity as d, SecurityAdvisorySeveritySchema as f, getGhsaPackageEcosystemFromDependabotPackageManager as g, filterVulnerabilities as h, PackageEcosystem as i, SecurityAdvisoryIdentifierType as l, SecurityVulnerabilitySchema as m, GitHubSecurityAdvisoryClient as n, PackageSchema as o, SecurityVulnerability as p, Package as r, SecurityAdvisory as s, FirstPatchedVersion as t, SecurityAdvisorySchema as u };
168
- //# sourceMappingURL=index-BKTxy7XU.d.mts.map
168
+ //# sourceMappingURL=ghsa-CqXOLQSp.d.mts.map
@@ -1,2 +1,2 @@
1
- import { _ as createGitHubClient, a as PackageEcosystemSchema, c as SecurityAdvisoryIdentifierSchema, d as SecurityAdvisorySeverity, f as SecurityAdvisorySeveritySchema, g as getGhsaPackageEcosystemFromDependabotPackageManager, h as filterVulnerabilities, i as PackageEcosystem, l as SecurityAdvisoryIdentifierType, m as SecurityVulnerabilitySchema, n as GitHubSecurityAdvisoryClient, o as PackageSchema, p as SecurityVulnerability, r as Package, s as SecurityAdvisory, t as FirstPatchedVersion, u as SecurityAdvisorySchema } from "../index-BKTxy7XU.mjs";
1
+ import { _ as createGitHubClient, a as PackageEcosystemSchema, c as SecurityAdvisoryIdentifierSchema, d as SecurityAdvisorySeverity, f as SecurityAdvisorySeveritySchema, g as getGhsaPackageEcosystemFromDependabotPackageManager, h as filterVulnerabilities, i as PackageEcosystem, l as SecurityAdvisoryIdentifierType, m as SecurityVulnerabilitySchema, n as GitHubSecurityAdvisoryClient, o as PackageSchema, p as SecurityVulnerability, r as Package, s as SecurityAdvisory, t as FirstPatchedVersion, u as SecurityAdvisorySchema } from "../ghsa-CqXOLQSp.mjs";
2
2
  export { FirstPatchedVersion, GitHubSecurityAdvisoryClient, Package, PackageEcosystem, PackageEcosystemSchema, PackageSchema, SecurityAdvisory, SecurityAdvisoryIdentifierSchema, SecurityAdvisoryIdentifierType, SecurityAdvisorySchema, SecurityAdvisorySeverity, SecurityAdvisorySeveritySchema, SecurityVulnerability, SecurityVulnerabilitySchema, createGitHubClient, filterVulnerabilities, getGhsaPackageEcosystemFromDependabotPackageManager };
@@ -1,4 +1,4 @@
1
- import { n as logger } from "../logger-BV4N2wBl.mjs";
1
+ import { logger } from "../logger.mjs";
2
2
  import { z } from "zod";
3
3
  import { Octokit } from "octokit";
4
4
  import * as semver from "semver";
@@ -216,6 +216,7 @@ const PackageEcosystemSchema = z.enum([
216
216
  "pip",
217
217
  "pip-compile",
218
218
  "pipenv",
219
+ "pre-commit",
219
220
  "pnpm",
220
221
  "poetry",
221
222
  "pub",
@@ -273,7 +274,7 @@ const DependabotMultiEcosystemGroupSchema = z.object({
273
274
  "commit-message": DependabotCommitMessageSchema.optional(),
274
275
  "pull-request-branch-name": DependabotPullRequestBranchNameSchema.optional()
275
276
  });
276
- const BETA_ECOSYSTEMS = [];
277
+ const BETA_ECOSYSTEMS = ["pre-commit"];
277
278
  /**
278
279
  * Represents the dependabot.yaml configuration file options.
279
280
  * See: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#configuration-options-for-dependabotyml
@@ -509,7 +510,8 @@ const DependabotPackageManagerSchema = z.enum([
509
510
  "helm",
510
511
  "julia",
511
512
  "bazel",
512
- "opentofu"
513
+ "opentofu",
514
+ "pre_commit"
513
515
  ]);
514
516
  const DEPENDABOT_COMMANDS = [
515
517
  "update",
@@ -555,4 +557,4 @@ const DependabotPersistedPrSchema = DependabotExistingGroupPrSchema.omit({ "pr-n
555
557
 
556
558
  //#endregion
557
559
  export { DependabotCommitMessageSchema as A, VersioningStrategySchema as B, DependabotSourceProviderSchema as C, CONFIG_FILE_PATHS_AZURE as D, CONFIG_FILE_NAMES as E, DependabotMultiEcosystemGroupSchema as F, convertPlaceholder as G, parseRegistries as H, DependabotRegistrySchema as I, extractPlaceholder as K, DependabotScheduleSchema as L, DependabotCooldownSchema as M, DependabotGroupSchema as N, CONFIG_FILE_PATHS_GITHUB as O, DependabotIgnoreConditionSchema as P, DependabotUpdateSchema as R, DependabotSecurityAdvisorySchema as S, BETA_ECOSYSTEMS as T, parseUpdates as U, parseDependabotConfig as V, validateConfiguration as W, DependabotPackageManagerSchema as _, DependabotCommitOptionsSchema as a, DependabotRequirementSchema as b, DependabotDependencySchema as c, DependabotExistingPrSchema as d, DependabotExperimentsSchema as f, DependabotJobFileSchema as g, DependabotJobConfigSchema as h, DependabotCommandSchema as i, DependabotConfigSchema as j, DependabotAllowConditionSchema as k, DependabotExistingGroupPrSchema as l, DependabotGroupRuleJobSchema as m, DEPENDABOT_COMMANDS as n, DependabotConditionSchema as o, DependabotGroupJobSchema as p, makeDirectoryKey as q, DependabotAllowedSchema as r, DependabotCredentialSchema as s, CertificateAuthoritySchema as t, DependabotExistingPrDependencySchema as u, DependabotPersistedPrSchema as v, DependabotSourceSchema as w, DependabotRequirementSourceSchema as x, DependabotProxyConfigSchema as y, PackageEcosystemSchema as z };
558
- //# sourceMappingURL=job-CNRfJDsF.mjs.map
560
+ //# sourceMappingURL=job-Bb9WiMwE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-Bb9WiMwE.mjs","names":[],"sources":["../src/dependabot/directory-key.ts","../src/dependabot/placeholder.ts","../src/dependabot/config.ts","../src/dependabot/job.ts"],"sourcesContent":["/**\n * Options for creating a directory key that supports both naming conventions:\n * - `ecosystem` (standard format)\n * - `package-ecosystem` (alternative format for compatibility)\n *\n * Either a single `directory` or multiple `directories` can be specified.\n */\ntype MakeDirectoryKeyOptions =\n | {\n /** The package ecosystem (e.g., 'npm', 'pip', 'bundler') */\n ecosystem: string;\n /** Single directory path (optional if directories is provided) */\n directory?: string | null;\n /** Multiple directory paths (optional if directory is provided) */\n directories?: string[];\n }\n | {\n /** The package ecosystem using alternative naming convention */\n 'package-ecosystem': string;\n /** Single directory path (optional if directories is provided) */\n directory?: string | null;\n /** Multiple directory paths (optional if directory is provided) */\n directories?: string[];\n };\n\n/**\n * Creates a unique directory key by combining the ecosystem and directory information.\n *\n * The key format is: `{ecosystem}::{directory_info}`\n * - For single directory: `npm::/src/frontend`\n * - For multiple directories: `npm::/src/frontend,/src/backend`\n *\n * @param options - Configuration object containing ecosystem and directory information\n * @returns A unique string key in the format `{ecosystem}::{directories}`\n *\n * @example\n * ```typescript\n * // Single directory\n * const key1 = makeDirectoryKey({ ecosystem: 'npm', directory: '/src' });\n * // Returns: \"npm::/src\"\n *\n * // Multiple directories\n * const key2 = makeDirectoryKey({\n * ecosystem: 'pip',\n * directories: ['/backend', '/scripts']\n * });\n * // Returns: \"pip::/backend,/scripts\"\n *\n * // Using alternative naming convention\n * const key3 = makeDirectoryKey({\n * 'package-ecosystem': 'bundler',\n * directory: '/app'\n * });\n * // Returns: \"bundler::/app\"\n * ```\n */\nexport function makeDirectoryKey(options: MakeDirectoryKeyOptions): string {\n // Extract ecosystem name from either naming convention\n const ecosystem = 'ecosystem' in options ? options.ecosystem : options['package-ecosystem'];\n\n // Use single directory if provided, otherwise join multiple directories with comma\n const directoryPart = options.directory ?? options.directories!.join(',');\n\n return `${ecosystem}::${directoryPart}`;\n}\n","export type VariableFinderFn = (name: string) => string | undefined | Promise<string | undefined>;\n\nasync function convertPlaceholder({\n input,\n variableFinder,\n}: {\n input?: string;\n variableFinder: VariableFinderFn;\n}): Promise<string | undefined> {\n if (!input) return undefined;\n\n const matches: RegExpExecArray[] = extractPlaceholder(input);\n let result = input;\n for (const match of matches) {\n const placeholder = match[0];\n const name = match[1]!;\n const value = (await variableFinder(name)) ?? placeholder;\n result = result.replace(placeholder, value);\n }\n return result;\n}\n\nfunction extractPlaceholder(input: string) {\n const matches: RegExpExecArray[] = [];\n const regexp: RegExp = /\\$\\{\\{\\s{0,10}([a-zA-Z_][a-zA-Z0-9._-]{0,99})\\s{0,10}\\}\\}/;\n\n let searchInput = input;\n let offset = 0;\n\n while (searchInput.length > 0) {\n const match = searchInput.match(regexp);\n if (!match || match.index === undefined) break;\n\n // Adjust match index to account for previous slices\n const adjustedMatch = Object.assign([...match], {\n index: match.index + offset,\n input: input,\n groups: match.groups,\n }) as RegExpExecArray;\n\n matches.push(adjustedMatch);\n\n // Move past this match\n const nextStart = match.index + match[0].length;\n offset += nextStart;\n searchInput = searchInput.slice(nextStart);\n }\n\n return matches;\n}\n\nexport { convertPlaceholder, extractPlaceholder };\n","import * as yaml from 'js-yaml';\nimport { z } from 'zod';\n\nimport { makeDirectoryKey } from './directory-key';\nimport { convertPlaceholder, type VariableFinderFn } from './placeholder';\n\nexport const DependabotRegistrySchema = z\n .object({\n type: z.enum([\n // order matches\n // https://docs.github.com/en/enterprise-cloud@latest/code-security/dependabot/working-with-dependabot/configuring-access-to-private-registries-for-dependabot#supported-private-registries\n\n 'cargo-registry',\n 'composer-repository',\n 'docker-registry',\n 'git',\n 'goproxy-server',\n 'helm-registry',\n 'hex-organization',\n 'hex-repository',\n 'maven-repository',\n 'npm-registry',\n 'nuget-feed',\n 'pub-repository',\n 'python-index',\n 'rubygems-server',\n 'terraform-registry',\n ]),\n url: z.string().optional(),\n username: z.string().optional(),\n password: z.string().optional(),\n key: z.string().optional(),\n token: z.string().optional(),\n 'replaces-base': z.boolean().optional(),\n host: z.string().optional(), // for terraform and composer only\n registry: z.string().optional(), // for npm only\n organization: z.string().optional(), // for hex-organization only\n repo: z.string().optional(), // for hex-repository only\n 'public-key-fingerprint': z.string().optional(), // for hex-repository only\n 'index-url': z.string().optional(), // for python-index only\n 'auth-key': z.string().optional(), // used by composer-repository, docker-registry, etc\n 'tenant-id': z.string().optional(), // can only be for azure related stuff, not sure\n 'client-id': z.string().optional(), // can only be for azure related stuff, not sure\n })\n // change underscore to dash in the registry key/type\n .transform((value) => ({ ...value, type: value.type.replace('-', '_') }));\nexport type DependabotRegistry = z.infer<typeof DependabotRegistrySchema>;\n\nexport const DependabotGroupSchema = z.object({\n // Define an identifier for the group to use in branch names and pull request titles.\n // This must start and end with a letter, and can contain letters, pipes |, underscores _, or hyphens -.\n IDENTIFIER: z\n .string()\n .check(\n z.regex(/^[a-zA-Z][a-zA-Z0-9|_-]*[a-zA-Z]$/, {\n message:\n 'Group identifier must start and end with a letter, and can contain letters, pipes |, underscores _, or hyphens -.',\n }),\n )\n .optional(),\n 'applies-to': z.enum(['version-updates', 'security-updates']).optional(),\n 'dependency-type': z.enum(['development', 'production']).optional(),\n patterns: z.string().array().optional(),\n 'exclude-patterns': z.string().array().optional(),\n 'update-types': z.enum(['major', 'minor', 'patch']).array().optional(),\n});\nexport type DependabotGroup = z.infer<typeof DependabotGroupSchema>;\n\nexport const DependabotAllowConditionSchema = z.object({\n 'dependency-name': z.string().optional(),\n 'dependency-type': z.enum(['direct', 'indirect', 'all', 'production', 'development']).optional(),\n 'update-type': z.enum(['all', 'security']).optional(),\n});\nexport type DependabotAllowCondition = z.infer<typeof DependabotAllowConditionSchema>;\n\nexport const DependabotIgnoreConditionSchema = z\n .object({\n 'dependency-name': z.string().optional(),\n versions: z.string().array().or(z.string()).optional(),\n 'update-types': z\n .enum(['version-update:semver-major', 'version-update:semver-minor', 'version-update:semver-patch'])\n .array()\n .optional(),\n })\n .and(z.record(z.string(), z.any()));\nexport type DependabotIgnoreCondition = z.infer<typeof DependabotIgnoreConditionSchema>;\n\nexport const DependabotScheduleSchema = z\n .object({\n interval: z.enum(['daily', 'weekly', 'monthly', 'quarterly', 'semiannually', 'yearly', 'cron']),\n\n day: z\n .enum(['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'])\n .optional()\n .default('monday'),\n\n time: z\n .string()\n .default('02:00')\n .check(z.regex(/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/, { message: 'Time must be in HH:MM format' }))\n .optional(),\n\n timezone: z\n .string()\n .optional()\n .default('Etc/UTC')\n .refine(\n (value) => {\n try {\n // If tz is not a valid IANA name, this throws a RangeError\n Intl.DateTimeFormat(undefined, { timeZone: value });\n return true;\n } catch {\n return false;\n }\n },\n { message: 'Invalid IANA time zone' },\n ),\n cronjob: z\n .string()\n .check(z.regex(/^\\S+ \\S+ \\S+ \\S+ \\S+$/, { message: 'Cronjob must be in standard cron format' }))\n .optional(),\n })\n .transform((value, { addIssue }) => {\n // if interval is 'cron', cronjob must be specified\n if (value.interval === 'cron' && !value.cronjob) {\n addIssue(\"The 'cronjob' field must be specified when the interval is set to 'cron'.\");\n }\n\n return value;\n });\nexport type DependabotSchedule = z.infer<typeof DependabotScheduleSchema>;\n\nexport const DependabotCommitMessageSchema = z.object({\n prefix: z.string().optional(),\n 'prefix-development': z.string().optional(),\n include: z.string().optional(),\n});\nexport type DependabotCommitMessage = z.infer<typeof DependabotCommitMessageSchema>;\n\nexport const DependabotCooldownSchema = z.object({\n 'default-days': z.number().optional(),\n 'semver-major-days': z.number().optional(),\n 'semver-minor-days': z.number().optional(),\n 'semver-patch-days': z.number().optional(),\n include: z.string().array().optional(),\n exclude: z.string().array().optional(),\n});\nexport type DependabotCooldown = z.infer<typeof DependabotCooldownSchema>;\n\nconst DependabotPullRequestBranchNameSchema = z.object({\n separator: z.string().optional(),\n});\nexport type DependabotPullRequestBranchName = z.infer<typeof DependabotPullRequestBranchNameSchema>;\n\nexport const PackageEcosystemSchema = z.enum([\n // order matches\n // https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#package-ecosystem-\n\n 'bazel',\n 'bun',\n 'bundler',\n 'cargo',\n 'composer',\n 'conda',\n 'devcontainers',\n 'docker',\n 'docker-compose',\n 'dotnet-sdk',\n 'helm',\n 'mix',\n 'elm',\n 'gitsubmodule',\n 'github-actions',\n 'gomod',\n 'gradle',\n 'julia',\n 'maven',\n 'npm',\n 'nuget',\n 'opentofu',\n 'pip',\n 'pip-compile', // alias mapped to 'pip'\n 'pipenv', // alias mapped to 'pip'\n 'pre-commit',\n 'pnpm', // alias mapped to 'npm'\n 'poetry', // alias mapped to 'pip'\n 'pub',\n 'rust-toolchain',\n 'swift',\n 'terraform',\n 'uv',\n 'vcpkg',\n 'yarn', // alias mapped to 'npm'\n]);\nexport type PackageEcosystem = z.infer<typeof PackageEcosystemSchema>;\n\nexport const VersioningStrategySchema = z.enum(['auto', 'increase', 'increase-if-necessary', 'lockfile-only', 'widen']);\nexport type VersioningStrategy = z.infer<typeof VersioningStrategySchema>;\n\nexport const DependabotUpdateSchema = z\n .object({\n 'package-ecosystem': PackageEcosystemSchema,\n directory: z.string().optional(),\n directories: z.string().array().optional(),\n 'exclude-paths': z.string().array().optional(),\n allow: DependabotAllowConditionSchema.array().optional(),\n assignees: z.string().array().optional(),\n 'commit-message': DependabotCommitMessageSchema.optional(),\n cooldown: DependabotCooldownSchema.optional(),\n groups: z.record(z.string(), DependabotGroupSchema).optional(),\n ignore: DependabotIgnoreConditionSchema.array().optional(),\n 'insecure-external-code-execution': z.enum(['allow', 'deny']).optional(),\n labels: z.string().array().optional(),\n milestone: z.coerce.string().optional(),\n 'open-pull-requests-limit': z.number().check(z.int(), z.gte(0)).optional(),\n 'pull-request-branch-name': DependabotPullRequestBranchNameSchema.optional(),\n 'rebase-strategy': z.string().optional(),\n registries: z.string().array().optional(),\n schedule: DependabotScheduleSchema,\n 'target-branch': z.string().optional(),\n vendor: z.boolean().optional(),\n 'versioning-strategy': VersioningStrategySchema.optional(),\n patterns: z.string().array().optional(),\n 'multi-ecosystem-group': z.string().optional(),\n })\n .transform((value, { addIssue }) => {\n // either 'directory' or 'directories' must be specified\n if (!value.directory && (!value.directories || value.directories.length === 0)) {\n addIssue(\"Either 'directory' or 'directories' must be specified in the dependency update configuration.\");\n }\n\n // validate that 'directory' does not contain glob patterns\n if (value.directory && /[*?[\\]{}]/.test(value.directory)) {\n addIssue(\"The 'directory' field must not include glob pattern.\");\n }\n\n value['open-pull-requests-limit'] ??= 5; // default to 5 if not specified\n\n // The patterns key is required when using multi-ecosystem-group.\n // You can specify dependency patterns to include only certain dependencies in the group,\n // or use [\"*\"] to include all dependencies.\n if (value['multi-ecosystem-group'] && (!value.patterns || value.patterns.length === 0)) {\n addIssue(\n \"The 'patterns' field must be specified and contain at least one pattern when using 'multi-ecosystem-group'.\",\n );\n }\n\n return value;\n });\nexport type DependabotUpdate = z.infer<typeof DependabotUpdateSchema>;\n\nexport const DependabotMultiEcosystemGroupSchema = z.object({\n schedule: DependabotScheduleSchema,\n labels: z.string().array().optional(), // behaviour: additive\n milestone: z.coerce.string().optional(), // behaviour: group-only\n assignees: z.string().array().optional(), // behaviour: additive\n 'target-branch': z.string().optional(), // behaviour: group-only\n 'commit-message': DependabotCommitMessageSchema.optional(), // behaviour: group-only\n 'pull-request-branch-name': DependabotPullRequestBranchNameSchema.optional(), // behaviour: group-only\n});\nexport type DependabotMultiEcosystemGroup = z.infer<typeof DependabotMultiEcosystemGroupSchema>;\n\n/* Ecosystems that are currently in beta */\nexport const BETA_ECOSYSTEMS: PackageEcosystem[] = ['pre-commit'];\n\n/**\n * Represents the dependabot.yaml configuration file options.\n * See: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#configuration-options-for-dependabotyml\n */\nexport const DependabotConfigSchema = z\n .object({\n /**\n * Mandatory. configuration file version.\n **/\n version: z.number().refine((v) => v === 2, { message: 'Only version 2 of dependabot is supported' }),\n\n /**\n * Optional. Configure groups of ecosystems to update together in a single pull request.\n */\n 'multi-ecosystem-groups': z.record(z.string(), DependabotMultiEcosystemGroupSchema).optional(),\n\n /**\n * Mandatory. Configure how Dependabot updates the versions or project dependencies.\n * Each entry configures the update settings for a particular package manager.\n */\n updates: DependabotUpdateSchema.array().check(\n z.minLength(1, { message: 'At least one update configuration is required' }),\n ),\n\n /**\n * Optional.\n * Specify authentication details to access private package registries.\n */\n registries: z.record(z.string(), DependabotRegistrySchema).optional(),\n\n /**\n * Optional. Enables updates for ecosystems that are not yet generally available.\n * https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#enable-beta-ecosystems-\n */\n 'enable-beta-ecosystems': z.boolean().optional(),\n })\n .transform((value, { addIssue }) => {\n // If you attempt to set group-only keys at the ecosystem level (in updates entries),\n // Dependabot will throw a configuration error and fail to process your dependabot.yml file.\n // These keys must only be specified in the multi-ecosystem-groups section.\n // https://docs.github.com/en/code-security/dependabot/working-with-dependabot/configuring-multi-ecosystem-updates#group-only-keys\n const groupOnlyKeys = ['milestone', 'target-branch', 'commit-message', 'pull-request-branch-name'] as const;\n if (value['multi-ecosystem-groups']) {\n for (const update of value.updates) {\n for (const key of groupOnlyKeys) {\n if (key in update) {\n addIssue(\n `The '${key}' field must not be specified in the 'updates' section when using 'multi-ecosystem-groups'. It is a group-only field.`,\n );\n }\n }\n }\n }\n\n // ensure there is no update with the same package-ecosystem and directory/directories combination\n const seen = new Set<string>();\n for (const update of value.updates) {\n const key = makeDirectoryKey(update);\n if (seen.has(key)) {\n addIssue(\n `Duplicate update configuration found for '${update['package-ecosystem']}' and directory: '${update.directory ?? update.directories?.join(',')}'`,\n );\n }\n seen.add(key);\n }\n\n // ensure that the ecosystems in beta are only used when 'enable-beta-ecosystems' is true\n if (!value['enable-beta-ecosystems']) {\n for (const update of value.updates) {\n if (BETA_ECOSYSTEMS.includes(update['package-ecosystem'])) {\n addIssue(\n `The package ecosystem '${update['package-ecosystem']}' is currently in beta. To use it, set 'enable-beta-ecosystems' to true in the dependabot configuration.`,\n );\n }\n }\n }\n\n return value;\n });\n\nexport type DependabotConfig = z.infer<typeof DependabotConfigSchema>;\n\nexport function parseUpdates(config: DependabotConfig, configPath: string): DependabotUpdate[] {\n const updates: DependabotUpdate[] = [];\n\n // Parse the value of each of the updates obtained from the file\n for (const update of config.updates) {\n // populate the 'ignore' conditions 'source' and 'updated-at' properties, if missing\n // NOTE: 'source' and 'updated-at' are not documented in the dependabot.yml config docs, but are defined in the dependabot-core and dependabot-cli models.\n // Currently they don't appear to add much value to the update process, but are populated here for completeness.\n if (update.ignore) {\n for (const condition of update.ignore) {\n condition.source ??= configPath;\n // we don't know the last updated time, so we use the current time\n condition['updated-at'] ??= new Date().toISOString();\n }\n }\n\n updates.push(update);\n }\n return updates;\n}\n\nexport async function parseRegistries(\n config: DependabotConfig,\n variableFinder: VariableFinderFn,\n): Promise<Record<string, DependabotRegistry>> {\n // Parse the value of each of the registries obtained from the config\n const registries: Record<string, DependabotRegistry> = {};\n for (const [key, registry] of Object.entries(config.registries || {})) {\n const updated = { ...registry };\n const { type } = updated;\n\n // handle special fields for 'hex-organization' types\n if (type === 'hex_organization' && !updated.organization) {\n throw new Error(`The value 'organization' in dependency registry config '${type}' is missing`);\n }\n\n // handle special fields for 'hex-repository' types\n if (type === 'hex_repository' && !updated.repo) {\n throw new Error(`The value 'repo' in dependency registry config '${key}' is missing`);\n }\n\n // parse username, password, key, and token while replacing tokens where necessary\n updated.username = await convertPlaceholder({ input: updated.username, variableFinder: variableFinder });\n updated.password = await convertPlaceholder({ input: updated.password, variableFinder: variableFinder });\n updated.key = await convertPlaceholder({ input: updated.key, variableFinder: variableFinder });\n updated.token = await convertPlaceholder({ input: updated.token, variableFinder: variableFinder });\n\n // TODO: include sources for this logic, otherwise it looks like magic.\n // Initially, this was based on reading through the dependabot-core logic\n // but much has since changed.\n\n // parse the url\n const url = updated.url;\n if (!url && type !== 'hex_organization') {\n throw new Error(`The value 'url' in dependency registry config '${key}' is missing`);\n }\n if (url) {\n /*\n * Some credentials do not use the 'url' property in the Ruby updater.\n * The 'host' and 'registry' properties are derived from the given URL.\n * The 'registry' property is derived from the 'url' by stripping off the scheme.\n * The 'host' property is derived from the hostname of the 'url'.\n *\n * 'npm_registry' and 'docker_registry' use 'registry' only.\n * 'terraform_registry' uses 'host' only.\n * 'composer_repository' uses both 'url' and 'host'.\n * 'python_index' uses 'index-url' instead of 'url'.\n */\n\n if (URL.canParse(url)) {\n const parsedUrl = new URL(url);\n\n const addRegistry = type === 'docker_registry' || type === 'npm_registry';\n if (addRegistry) updated.registry = url.replace('https://', '').replace('http://', '');\n\n const addHost = type === 'composer_repository' || type === 'terraform_registry';\n if (addHost) updated.host = parsedUrl.hostname;\n }\n\n if (type === 'python_index') updated['index-url'] = url;\n\n const removeUrl =\n type === 'docker_registry' ||\n type === 'npm_registry' ||\n type === 'terraform_registry' ||\n type === 'python_index';\n if (removeUrl) delete updated.url; // remove the url if not needed\n }\n\n // add to list\n registries[key] = updated;\n }\n return registries;\n}\n\nexport function validateConfiguration(updates: DependabotUpdate[], registries: Record<string, DependabotRegistry>) {\n const configured = Object.keys(registries);\n const referenced: string[] = [];\n for (const u of updates) referenced.push(...(u.registries ?? []));\n\n // ensure there are no configured registries that have not been referenced\n const missingConfiguration = referenced.filter((el) => !configured.includes(el));\n if (missingConfiguration.length > 0) {\n throw new Error(\n `Referenced registries: '${missingConfiguration.join(',')}' have not been configured in the root of dependabot.yml`,\n );\n }\n\n // ensure there are no registries referenced but not configured\n const missingReferences = configured.filter((el) => !referenced.includes(el));\n if (missingReferences.length > 0) {\n throw new Error(`Registries: '${missingReferences.join(',')}' have not been referenced by any update`);\n }\n}\n\n/** Possible paths to the dependabot config file for GitHub. */\nexport const CONFIG_FILE_NAMES = ['dependabot.yaml', 'dependabot.yml'];\nexport const CONFIG_FILE_PATHS_GITHUB = CONFIG_FILE_NAMES.map((name) => `.github/${name}`);\n/** Possible paths to the dependabot config file for Azure. */\nexport const CONFIG_FILE_PATHS_AZURE = [\n ...CONFIG_FILE_NAMES.map((name) => `.azuredevops/${name}`),\n ...CONFIG_FILE_PATHS_GITHUB,\n];\n\n/**\n * Parse the contents of a dependabot config YAML file\n * @returns {DependabotConfig} config - the dependabot configuration\n */\nexport async function parseDependabotConfig({\n configContents,\n configPath,\n variableFinder,\n}: {\n configContents: string;\n configPath: string;\n variableFinder: VariableFinderFn;\n}): Promise<DependabotConfig> {\n // Load the config\n const loadedConfig = yaml.load(configContents);\n if (loadedConfig === null || typeof loadedConfig !== 'object') {\n throw new Error('Invalid dependabot config object');\n }\n\n // Parse the config\n const config = await DependabotConfigSchema.parseAsync(loadedConfig);\n const updates = parseUpdates(config, configPath);\n const registries = await parseRegistries(config, variableFinder);\n validateConfiguration(updates, registries);\n\n return { ...config, updates, registries };\n}\n","import { z } from 'zod';\nimport { DependabotCooldownSchema } from './config';\n\n// we use nullish() because it does optional() and allows the value to be set to null\n\nexport const DependabotCredentialSchema = z.record(z.string(), z.any());\nexport type DependabotCredential = z.infer<typeof DependabotCredentialSchema>;\n\nexport const CertificateAuthoritySchema = z.object({\n cert: z.string(),\n key: z.string(),\n});\nexport type CertificateAuthority = z.infer<typeof CertificateAuthoritySchema>;\n\nexport const DependabotProxyConfigSchema = z.object({\n all_credentials: DependabotCredentialSchema.array(),\n ca: CertificateAuthoritySchema,\n});\nexport type DependabotProxyConfig = z.infer<typeof DependabotProxyConfigSchema>;\n\nexport const DependabotSourceProviderSchema = z.enum(['azure', 'bitbucket', 'gitlab']);\nexport type DependabotSourceProvider = z.infer<typeof DependabotSourceProviderSchema>;\n\nexport const DependabotSourceSchema = z.object({\n provider: DependabotSourceProviderSchema,\n repo: z.string(),\n directory: z.string().nullish(),\n directories: z.string().array().nullish(),\n branch: z.string().nullish(),\n commit: z.string().nullish(),\n hostname: z.string().nullish(), // Must be provided if api-endpoint is\n 'api-endpoint': z.string().nullish(), // Must be provided if hostname is\n});\nexport type DependabotSource = z.infer<typeof DependabotSourceSchema>;\n\nexport const DependabotExistingPrDependencySchema = z.object({\n 'dependency-name': z.string(),\n 'dependency-version': z.string().nullish(),\n directory: z.string().nullish(),\n removed: z.boolean().nullish(),\n});\nexport type DependabotExistingPrDependency = z.infer<typeof DependabotExistingPrDependencySchema>;\n\nexport const DependabotExistingPrSchema = z.object({\n 'pr-number': z.number(),\n dependencies: DependabotExistingPrDependencySchema.array(),\n});\nexport type DependabotExistingPr = z.infer<typeof DependabotExistingPrSchema>;\n\nexport const DependabotExistingGroupPrSchema = DependabotExistingPrSchema.extend({\n 'dependency-group-name': z.string(),\n dependencies: DependabotExistingPrDependencySchema.array(),\n});\nexport type DependabotExistingGroupPr = z.infer<typeof DependabotExistingGroupPrSchema>;\n\nexport const DependabotAllowedSchema = z.object({\n 'dependency-name': z.string().nullish(),\n 'dependency-type': z.string().nullish(),\n 'update-type': z.enum(['all', 'security']).optional(),\n});\nexport type DependabotAllowed = z.infer<typeof DependabotAllowedSchema>;\n\nexport const DependabotGroupRuleJobSchema = z.object({\n patterns: z.string().array().nullish(),\n 'exclude-patterns': z.string().array().nullish(),\n 'dependency-type': z.string().nullish(),\n 'update-types': z.string().array().nullish(),\n});\nexport type DependabotGroupRuleJob = z.infer<typeof DependabotGroupRuleJobSchema>;\n\nexport const DependabotGroupJobSchema = z.object({\n name: z.string(),\n 'applies-to': z.string().nullish(),\n rules: DependabotGroupRuleJobSchema,\n});\nexport type DependabotGroupJob = z.infer<typeof DependabotGroupJobSchema>;\n\nexport const DependabotConditionSchema = z.object({\n 'dependency-name': z.string(),\n source: z.string().nullish(),\n 'update-types': z.string().array().nullish(),\n 'updated-at': z.coerce.string().nullish(),\n 'version-requirement': z.string().nullish(),\n});\nexport type DependabotCondition = z.infer<typeof DependabotConditionSchema>;\n\nexport const DependabotSecurityAdvisorySchema = z.object({\n 'dependency-name': z.string(),\n 'affected-versions': z.string().array(),\n 'patched-versions': z.string().array().nullish(), // may not be patched as of yet\n 'unaffected-versions': z.string().array(),\n});\nexport type DependabotSecurityAdvisory = z.infer<typeof DependabotSecurityAdvisorySchema>;\n\nexport const DependabotRequirementSourceSchema = z.record(z.string(), z.any());\nexport type DependabotRequirementSource = z.infer<typeof DependabotRequirementSourceSchema>;\n\nexport const DependabotRequirementSchema = z.object({\n file: z.string().nullish(), // e.g. 'requirements.txt' or '/Root.csproj'\n groups: z.string().array().nullish(), // e.g. ['dependencies']\n metadata: z.record(z.string(), z.any()).nullish(),\n requirement: z.string().nullish(), // e.g. '==3.2.0' or '8.1.0'\n source: DependabotRequirementSourceSchema.nullish(),\n version: z.string().nullish(),\n 'previous-version': z.string().nullish(),\n});\nexport type DependabotRequirement = z.infer<typeof DependabotRequirementSchema>;\n\nexport const DependabotDependencySchema = z.object({\n name: z.string(), // e.g. 'django' or 'GraphQL.Server.Ui.Voyager'\n 'previous-requirements': DependabotRequirementSchema.array().nullish(),\n 'previous-version': z.string().nullish(),\n version: z.string().nullish(), // e.g. '5.0.1' or '8.1.0'\n requirements: DependabotRequirementSchema.array().nullish(),\n removed: z.boolean().nullish(),\n directory: z.string().nullish(),\n});\nexport type DependabotDependency = z.infer<typeof DependabotDependencySchema>;\n\nexport const DependabotCommitOptionsSchema = z.object({\n prefix: z.string().nullish(),\n 'prefix-development': z.string().nullish(),\n 'include-scope': z.boolean().nullish(),\n});\nexport type DependabotCommitOptions = z.infer<typeof DependabotCommitOptionsSchema>;\n\nexport const DependabotExperimentsSchema = z.record(z.string(), z.union([z.string(), z.boolean()]));\nexport type DependabotExperiments = z.infer<typeof DependabotExperimentsSchema>;\n\nexport const DependabotPackageManagerSchema = z.enum([\n 'bundler',\n 'cargo',\n 'composer',\n 'conda',\n 'pub',\n 'docker',\n 'elm',\n 'github_actions', // ecosystem(s): 'github-actions'\n 'submodules', // ecosystem(s): 'gitsubmodule'\n 'go_modules', // ecosystem(s): 'gomod'\n 'gradle',\n 'maven',\n 'hex', // ecosystem(s): 'mix'\n 'nuget',\n 'npm_and_yarn', // ecosystem(s): 'npm', 'pnpm', 'yarn'\n 'pip', // ecosystem(s): 'pipenv', 'pip-compile', 'poetry'\n 'rust_toolchain', // ecosystem(s): 'rust-toolchain'\n 'swift',\n 'terraform',\n 'devcontainers',\n 'dotnet_sdk', // ecosystem(s): 'dotnet-sdk'\n 'bun',\n 'docker_compose', // // ecosystem(s): 'docker-compose',\n 'uv',\n 'vcpkg',\n 'helm',\n 'julia',\n 'bazel',\n 'opentofu',\n 'pre_commit',\n]);\nexport type DependabotPackageManager = z.infer<typeof DependabotPackageManagerSchema>;\n\nexport const DEPENDABOT_COMMANDS = [\n 'update',\n 'version',\n 'recreate',\n // 'security',\n 'graph',\n] as const;\nexport const DependabotCommandSchema = z.enum(DEPENDABOT_COMMANDS);\nexport type DependabotCommand = z.infer<typeof DependabotCommandSchema>;\n\n// See: https://github.com/dependabot/cli/blob/main/internal/model/job.go\n// https://github.com/dependabot/dependabot-core/blob/main/updater/lib/dependabot/job.rb\nexport const DependabotJobConfigSchema = z.object({\n id: z.string(),\n command: DependabotCommandSchema.optional(),\n 'package-manager': DependabotPackageManagerSchema,\n 'allowed-updates': DependabotAllowedSchema.array(),\n debug: z.boolean().nullable(),\n 'dependency-groups': DependabotGroupJobSchema.array().nullish(),\n dependencies: z.string().array().nullable(),\n 'dependency-group-to-refresh': z.string().nullish(),\n 'existing-pull-requests': DependabotExistingPrSchema.array(),\n 'existing-group-pull-requests': DependabotExistingGroupPrSchema.array(),\n experiments: DependabotExperimentsSchema,\n 'ignore-conditions': DependabotConditionSchema.array(),\n 'lockfile-only': z.boolean(),\n 'requirements-update-strategy': z.string().nullable(),\n 'security-advisories': DependabotSecurityAdvisorySchema.array(),\n 'security-updates-only': z.boolean(),\n source: DependabotSourceSchema,\n 'update-subdependencies': z.boolean(),\n 'updating-a-pull-request': z.boolean(),\n 'vendor-dependencies': z.boolean(),\n 'reject-external-code': z.boolean().nullish(),\n 'repo-private': z.boolean(),\n 'commit-message-options': DependabotCommitOptionsSchema,\n 'credentials-metadata': DependabotCredentialSchema.array().nullish(),\n 'max-updater-run-time': z.int().nullish(),\n cooldown: DependabotCooldownSchema.nullish(),\n 'proxy-log-response-body-on-auth-failure': z.boolean().nullish(),\n 'enable-beta-ecosystems': z.boolean().nullish(),\n 'multi-ecosystem-update': z.boolean().nullish(),\n 'exclude-paths': z.string().array().optional(),\n});\nexport type DependabotJobConfig = z.infer<typeof DependabotJobConfigSchema>;\n\nexport const DependabotJobFileSchema = z.object({\n job: DependabotJobConfigSchema,\n});\nexport type DependabotJobFile = z.infer<typeof DependabotJobFileSchema>;\n\n// Code below is borrowed and adapted from dependabot-action\n\n// biome-ignore-start lint/suspicious/noExplicitAny: generic\nexport type FetchedFiles = {\n base_commit_sha: string;\n dependency_files: any[];\n base64_dependency_files: any[];\n};\n// biome-ignore-end lint/suspicious/noExplicitAny: generic\n\nexport type FileFetcherInput = {\n job: DependabotJobConfig;\n};\n\nexport type FileUpdaterInput = FetchedFiles & {\n job: DependabotJobConfig;\n};\n\nexport const DependabotPersistedPrSchema = DependabotExistingGroupPrSchema.omit({ 'pr-number': true }).extend({\n 'dependency-group-name': z.string().nullish(),\n});\nexport type DependabotPersistedPr = z.infer<typeof DependabotPersistedPrSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,SAAgB,iBAAiB,SAA0C;AAOzE,QAAO,GALW,eAAe,UAAU,QAAQ,YAAY,QAAQ,qBAKnD,IAFE,QAAQ,aAAa,QAAQ,YAAa,KAAK,IAAI;;;;;AC3D3E,eAAe,mBAAmB,EAChC,OACA,kBAI8B;AAC9B,KAAI,CAAC,MAAO,QAAO;CAEnB,MAAM,UAA6B,mBAAmB,MAAM;CAC5D,IAAI,SAAS;AACb,MAAK,MAAM,SAAS,SAAS;EAC3B,MAAM,cAAc,MAAM;EAC1B,MAAM,OAAO,MAAM;EACnB,MAAM,QAAS,MAAM,eAAe,KAAK,IAAK;AAC9C,WAAS,OAAO,QAAQ,aAAa,MAAM;;AAE7C,QAAO;;AAGT,SAAS,mBAAmB,OAAe;CACzC,MAAM,UAA6B,EAAE;CACrC,MAAM,SAAiB;CAEvB,IAAI,cAAc;CAClB,IAAI,SAAS;AAEb,QAAO,YAAY,SAAS,GAAG;EAC7B,MAAM,QAAQ,YAAY,MAAM,OAAO;AACvC,MAAI,CAAC,SAAS,MAAM,UAAU,OAAW;EAGzC,MAAM,gBAAgB,OAAO,OAAO,CAAC,GAAG,MAAM,EAAE;GAC9C,OAAO,MAAM,QAAQ;GACd;GACP,QAAQ,MAAM;GACf,CAAC;AAEF,UAAQ,KAAK,cAAc;EAG3B,MAAM,Y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,gCAAgC,OAAO;CACvE,aAAa;CACb,qBAAqB,0BAA0B,OAAO;CACtD,iBAAiB,EAAE,SAAS;CAC5B,gCAAgC,EAAE,QAAQ,CAAC,UAAU;CACrD,uBAAuB,iCAAiC,OAAO;CAC/D,yBAAyB,EAAE,SAAS;CACpC,QAAQ;CACR,0BAA0B,EAAE,SAAS;CACrC,2BAA2B,EAAE,SAAS;CACtC,uBAAuB,EAAE,SAAS;CAClC,wBAAwB,EAAE,SAAS,CAAC,SAAS;CAC7C,gBAAgB,EAAE,SAAS;CAC3B,0BAA0B;CAC1B,wBAAwB,2BAA2B,OAAO,CAAC,SAAS;CACpE,wBAAwB,EAAE,KAAK,CAAC,SAAS;CACzC,UAAU,yBAAyB,SAAS;CAC5C,2CAA2C,EAAE,SAAS,CAAC,SAAS;CAChE,0BAA0B,EAAE,SAAS,CAAC,SAAS;CAC/C,0BAA0B,EAAE,SAAS,CAAC,SAAS;CAC/C,iBAAiB,EAAE,QAAQ,CAAC,OAAO,CAAC,UAAU;CAC/C,CAAC;AAGF,MAAa,0BAA0B,EAAE,OAAO,EAC9C,KAAK,2BACN,CAAC;AAqBF,MAAa,8BAA8B,gCAAgC,KAAK,EAAE,aAAa,MAAM,CAAC,CAAC,OAAO,EAC5G,yBAAyB,EAAE,QAAQ,CAAC,SAAS,EAC9C,CAAC"}
package/dist/logger.mjs CHANGED
@@ -1,3 +1,42 @@
1
- import { n as logger, t as create } from "./logger-BV4N2wBl.mjs";
1
+ import pino from "pino";
2
+ import pretty from "pino-pretty";
2
3
 
3
- export { create, logger };
4
+ //#region src/logger.ts
5
+ /**
6
+ * Creates a new logger with the given options.
7
+ * @param options - Logger creation options
8
+ * @returns A logger instance
9
+ */
10
+ function create(options = {}) {
11
+ const { level, timestamp = false, pretty: { enable: prettyEnable = true, colorize: prettyColorize = true, includeLevel: prettyIncludeLevel = false } = {}, streams = [] } = options;
12
+ const prettyStream = prettyEnable ? pretty({
13
+ colorize: prettyColorize,
14
+ ignore: "pid,hostname",
15
+ customPrettifiers: prettyIncludeLevel ? {} : { level: () => "" },
16
+ customColors: {
17
+ trace: "grey",
18
+ debug: "grey",
19
+ info: "white",
20
+ warn: "yellow",
21
+ error: "red",
22
+ fatal: "magenta"
23
+ }
24
+ }) : void 0;
25
+ const resolvedLevel = level || process.env.LOG_LEVEL || (process.env.NODE_ENV === "production" ? "warn" : "debug");
26
+ return pino({
27
+ level: resolvedLevel,
28
+ timestamp
29
+ }, pino.multistream([...prettyStream ? [{
30
+ level: resolvedLevel,
31
+ stream: prettyStream
32
+ }] : [], ...streams.map((stream) => ({
33
+ level: resolvedLevel,
34
+ stream
35
+ }))]));
36
+ }
37
+ /** Default logger instance */
38
+ const logger = create();
39
+
40
+ //#endregion
41
+ export { create, logger };
42
+ //# sourceMappingURL=logger.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.mjs","names":[],"sources":["../src/logger.ts"],"sourcesContent":["import pino, { type DestinationStream, type Level } from 'pino';\nimport pretty from 'pino-pretty';\n\nexport type LoggerCreateOptions = {\n /**\n * Log level\n * Only set this if you must override the default log level logic from env variables\n */\n level?: Level;\n\n /**\n * Whether to include time stamps in log entries\n * @default false\n */\n timestamp?: boolean;\n\n /** Options for pretty printing */\n pretty?: {\n /**\n * Whether to enable pretty printing\n * @default true\n */\n enable?: boolean;\n\n /**\n * Whether to colorize the pretty printed output\n * @default true\n */\n colorize?: boolean;\n\n /**\n * Whether to include the log level in pretty printed output\n * @default false\n */\n includeLevel?: boolean;\n };\n\n /**\n * Additional streams, if any, to write logs to.\n * This is in addition to any pretty printing stream configured.\n * Useful for adding things like OpenTelemetry streams.\n */\n streams?: DestinationStream[];\n};\n\n/**\n * Creates a new logger with the given options.\n * @param options - Logger creation options\n * @returns A logger instance\n */\nexport function create(options: LoggerCreateOptions = {}) {\n const {\n level,\n timestamp = false,\n pretty: {\n // options for pretty printing\n enable: prettyEnable = true,\n colorize: prettyColorize = true,\n includeLevel: prettyIncludeLevel = false,\n } = {},\n streams = [],\n } = options;\n\n // configure pretty printing stream, if enabled\n const prettyStream = prettyEnable\n ? pretty({\n colorize: prettyColorize,\n ignore: 'pid,hostname',\n customPrettifiers: prettyIncludeLevel ? {} : { level: () => '' },\n // these colors only apply to the log level which we may be hiding above\n // support for custom colors in the message itself is not yet supported\n // https://github.com/pinojs/pino-pretty/issues/430\n // https://github.com/pinojs/pino-pretty/issues/524\n // https://github.com/pinojs/pino-pretty/pull/611\n customColors: {\n trace: 'grey',\n debug: 'grey',\n info: 'white',\n warn: 'yellow',\n error: 'red',\n fatal: 'magenta',\n } satisfies Record<Level, string>,\n })\n : undefined;\n\n // create and return the logger\n const resolvedLevel = level || process.env.LOG_LEVEL || (process.env.NODE_ENV === 'production' ? 'warn' : 'debug');\n return pino(\n { level: resolvedLevel, timestamp },\n pino.multistream([\n // add streams conditionally\n // without setting the level on each stream, some logs seem to be skipped\n ...(prettyStream ? [{ level: resolvedLevel, stream: prettyStream }] : []),\n ...streams.map((stream) => ({ level: resolvedLevel, stream })),\n ]),\n );\n}\n\n/** Default logger instance */\nexport const logger = create();\n"],"mappings":";;;;;;;;;AAkDA,SAAgB,OAAO,UAA+B,EAAE,EAAE;CACxD,MAAM,EACJ,OACA,YAAY,OACZ,QAAQ,EAEN,QAAQ,eAAe,MACvB,UAAU,iBAAiB,MAC3B,cAAc,qBAAqB,UACjC,EAAE,EACN,UAAU,EAAE,KACV;CAGJ,MAAM,eAAe,eACjB,OAAO;EACL,UAAU;EACV,QAAQ;EACR,mBAAmB,qBAAqB,EAAE,GAAG,EAAE,aAAa,IAAI;EAMhE,cAAc;GACZ,OAAO;GACP,OAAO;GACP,MAAM;GACN,MAAM;GACN,OAAO;GACP,OAAO;GACR;EACF,CAAC,GACF;CAGJ,MAAM,gBAAgB,SAAS,QAAQ,IAAI,cAAc,QAAQ,IAAI,aAAa,eAAe,SAAS;AAC1G,QAAO,KACL;EAAE,OAAO;EAAe;EAAW,EACnC,KAAK,YAAY,CAGf,GAAI,eAAe,CAAC;EAAE,OAAO;EAAe,QAAQ;EAAc,CAAC,GAAG,EAAE,EACxE,GAAG,QAAQ,KAAK,YAAY;EAAE,OAAO;EAAe;EAAQ,EAAE,CAC/D,CAAC,CACH;;;AAIH,MAAa,SAAS,QAAQ"}
package/dist/usage.d.mts CHANGED
@@ -77,6 +77,7 @@ declare const UsageTelemetryRequestDataSchema: z.ZodObject<{
77
77
  julia: "julia";
78
78
  bazel: "bazel";
79
79
  opentofu: "opentofu";
80
+ pre_commit: "pre_commit";
80
81
  }>;
81
82
  id: z.ZodString;
82
83
  started: z.ZodCoercedDate<unknown>;
package/dist/usage.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as DependabotSourceProviderSchema, _ as DependabotPackageManagerSchema } from "./job-CNRfJDsF.mjs";
1
+ import { C as DependabotSourceProviderSchema, _ as DependabotPackageManagerSchema } from "./job-Bb9WiMwE.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/usage.ts