@imenam/mcp-dependabot-tracker 1.0.18 → 1.0.19

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.
@@ -6,12 +6,11 @@ export type AlertSeverity = (typeof ALERT_SEVERITIES)[number];
6
6
  export declare const NPM_SEVERITIES: readonly ["critical", "high", "moderate", "low", "info"];
7
7
  export type NpmSeverity = (typeof NPM_SEVERITIES)[number];
8
8
  /** Actions que l'agent peut être autorisé à lancer sur un dépôt, par les outils MCP. */
9
- export declare const RIGHTS: readonly ["audit", "fix", "force", "push"];
9
+ export declare const RIGHTS: readonly ["audit", "fix", "push"];
10
10
  export type Right = (typeof RIGHTS)[number];
11
11
  export declare const RightsSchema: z.ZodObject<{
12
12
  audit: z.ZodBoolean;
13
13
  fix: z.ZodBoolean;
14
- force: z.ZodBoolean;
15
14
  push: z.ZodBoolean;
16
15
  }, z.core.$strip>;
17
16
  export type Rights = z.infer<typeof RightsSchema>;
@@ -99,7 +98,6 @@ export declare const RepoSchema: z.ZodObject<{
99
98
  rights: z.ZodObject<{
100
99
  audit: z.ZodBoolean;
101
100
  fix: z.ZodBoolean;
102
- force: z.ZodBoolean;
103
101
  push: z.ZodBoolean;
104
102
  }, z.core.$strip>;
105
103
  alerts: z.ZodArray<z.ZodObject<{
@@ -156,7 +154,6 @@ export declare const ReposFileSchema: z.ZodObject<{
156
154
  rights: z.ZodObject<{
157
155
  audit: z.ZodBoolean;
158
156
  fix: z.ZodBoolean;
159
- force: z.ZodBoolean;
160
157
  push: z.ZodBoolean;
161
158
  }, z.core.$strip>;
162
159
  alerts: z.ZodArray<z.ZodObject<{
@@ -204,19 +201,15 @@ export type OperationKind = (typeof OPERATION_KINDS)[number];
204
201
  /** Qui a lancé l'opération : l'utilisateur depuis la GUI, ou l'agent par un outil MCP. */
205
202
  export declare const ORIGINS: readonly ["user", "agent"];
206
203
  export type Origin = (typeof ORIGINS)[number];
207
- /**
208
- * `running` : une étape s'exécute ; `waiting_force`, `waiting_repair` et
209
- * `waiting_push` : l'utilisateur doit décider de la suite ; les trois derniers
210
- * états sont terminaux.
211
- */
212
- export declare const OPERATION_STATUSES: readonly ["running", "waiting_force", "waiting_repair", "waiting_push", "done", "failed", "cancelled"];
204
+ /** `running` : l'opération s'exécute ; les trois autres états sont terminaux. */
205
+ export declare const OPERATION_STATUSES: readonly ["running", "done", "failed", "cancelled"];
213
206
  export type OperationStatus = (typeof OPERATION_STATUSES)[number];
214
207
  export declare const ACTIVE_STATUSES: readonly OperationStatus[];
215
- export declare const STEP_NAMES: readonly ["clone", "audit", "fix", "analysis", "force", "repair", "push"];
208
+ export declare const STEP_NAMES: readonly ["clone", "audit", "fix", "repair", "push"];
216
209
  export type StepName = (typeof STEP_NAMES)[number];
217
210
  export declare const STEP_STATES: readonly ["pending", "running", "done", "skipped", "failed"];
218
211
  export type StepState = (typeof STEP_STATES)[number];
219
- /** Correction proposée par `npm audit` : aucune, dans les plages déclarées, ou par une version majeure (`--force`). */
212
+ /** Correction proposée par `npm audit` : aucune, dans les plages déclarées, ou par une version majeure. */
220
213
  export declare const FIX_KINDS: readonly ["none", "available", "major"];
221
214
  export type FixKind = (typeof FIX_KINDS)[number];
222
215
  /** Vulnérabilité d'un projet npm du dépôt ; `project` est le dossier du lockfile, `""` pour la racine. */
@@ -237,15 +230,6 @@ export declare const VulnerabilitySchema: z.ZodObject<{
237
230
  }>;
238
231
  }, z.core.$strip>;
239
232
  export type Vulnerability = z.infer<typeof VulnerabilitySchema>;
240
- /** Paquet que `npm audit fix --force` monterait d'une version majeure, et le nombre de vulnérabilités que cela corrige. */
241
- export declare const ForceCandidateSchema: z.ZodObject<{
242
- project: z.ZodString;
243
- name: z.ZodString;
244
- from: z.ZodNullable<z.ZodString>;
245
- to: z.ZodString;
246
- vulnerabilities: z.ZodNumber;
247
- }, z.core.$strip>;
248
- export type ForceCandidate = z.infer<typeof ForceCandidateSchema>;
249
233
  /** Paquet du lockfile dont la version a changé ; `from` null pour un ajout, `to` null pour un retrait. */
250
234
  export declare const ChangeSchema: z.ZodObject<{
251
235
  project: z.ZodString;
@@ -259,19 +243,6 @@ export declare const LogEntrySchema: z.ZodObject<{
259
243
  text: z.ZodString;
260
244
  }, z.core.$strip>;
261
245
  export type LogEntry = z.infer<typeof LogEntrySchema>;
262
- /** Rapport rendu par Claude à la fin d'une analyse : résumé, corrections urgentes à la main, avis sur `--force`. */
263
- export declare const AnalysisReportSchema: z.ZodObject<{
264
- summary: z.ZodString;
265
- urgent: z.ZodArray<z.ZodObject<{
266
- package: z.ZodString;
267
- reason: z.ZodString;
268
- }, z.core.$strip>>;
269
- force: z.ZodObject<{
270
- recommended: z.ZodBoolean;
271
- reason: z.ZodString;
272
- }, z.core.$strip>;
273
- }, z.core.$strip>;
274
- export type AnalysisReport = z.infer<typeof AnalysisReportSchema>;
275
246
  /** Résultat des tests lancés par Claude après ses corrections. */
276
247
  export declare const TEST_OUTCOMES: readonly ["passed", "failed", "not_run"];
277
248
  /**
@@ -297,8 +268,8 @@ export declare const RepairReportSchema: z.ZodObject<{
297
268
  export type RepairReport = z.infer<typeof RepairReportSchema>;
298
269
  /** Statuts d'une tâche de l'organizer. */
299
270
  export declare const TASK_STATUSES: readonly ["todo", "doing", "review", "done"];
300
- /** Tâche créée dans l'organizer par une analyse ; `url` ouvre la tâche sur le site, `status` est relu à chaque synchronisation. */
301
- export declare const AnalysisTaskSchema: z.ZodObject<{
271
+ /** Tâche de l'organizer ; `url` ouvre la tâche sur le site, `status` est relu à chaque synchronisation. */
272
+ export declare const OrganizerTaskSchema: z.ZodObject<{
302
273
  key: z.ZodString;
303
274
  title: z.ZodString;
304
275
  url: z.ZodString;
@@ -309,58 +280,38 @@ export declare const AnalysisTaskSchema: z.ZodObject<{
309
280
  todo: "todo";
310
281
  }>;
311
282
  }, z.core.$strip>;
312
- export type AnalysisTask = z.infer<typeof AnalysisTaskSchema>;
313
- /**
314
- * Analyse par Claude des vulnérabilités restantes après `npm audit fix`.
315
- * `turns` et `activity` (dernières actions de Claude) suivent la session en
316
- * cours ; `report` et `task` sont remplis à la fin, `error` en cas d'échec.
317
- */
318
- export declare const AnalysisSchema: z.ZodObject<{
319
- startedAt: z.ZodString;
320
- endedAt: z.ZodNullable<z.ZodString>;
321
- turns: z.ZodNumber;
322
- activity: z.ZodArray<z.ZodString>;
323
- report: z.ZodNullable<z.ZodObject<{
324
- summary: z.ZodString;
325
- urgent: z.ZodArray<z.ZodObject<{
326
- package: z.ZodString;
327
- reason: z.ZodString;
328
- }, z.core.$strip>>;
329
- force: z.ZodObject<{
330
- recommended: z.ZodBoolean;
331
- reason: z.ZodString;
332
- }, z.core.$strip>;
333
- }, z.core.$strip>>;
334
- task: z.ZodNullable<z.ZodObject<{
335
- key: z.ZodString;
336
- title: z.ZodString;
337
- url: z.ZodString;
338
- status: z.ZodEnum<{
339
- doing: "doing";
340
- done: "done";
341
- review: "review";
342
- todo: "todo";
343
- }>;
344
- }, z.core.$strip>>;
345
- error: z.ZodNullable<z.ZodString>;
283
+ export type OrganizerTask = z.infer<typeof OrganizerTaskSchema>;
284
+ /** Élément du déroulé d'une session de Claude : message (`text`) ou appel d'outil en clair (`tool`). */
285
+ export declare const SessionEventSchema: z.ZodObject<{
286
+ kind: z.ZodEnum<{
287
+ text: "text";
288
+ tool: "tool";
289
+ }>;
290
+ text: z.ZodString;
346
291
  }, z.core.$strip>;
347
- export type Analysis = z.infer<typeof AnalysisSchema>;
292
+ export type SessionEvent = z.infer<typeof SessionEventSchema>;
348
293
  /**
349
- * Corrections par Claude, d'après la tâche de l'analyse et les commentaires de
350
- * l'utilisateur. `base` est le commit sur lequel repose celui de Claude : le
294
+ * Corrections par Claude des vulnérabilités que `npm audit fix` laisse, en une
295
+ * session qui les analyse, les corrige et en rend compte dans une tâche de
296
+ * l'organizer. `base` est le commit sur lequel repose celui de Claude : le
351
297
  * commit de `npm audit fix` (`auditCommit`), ou le commit cloné quand
352
- * `npm audit fix` n'a rien changé et que `auditCommit` est null.
353
- * `commit` est le commit de Claude, null tant qu'il n'a rien modifié ; `task`
354
- * la sous-tâche « rapport de développement ». `turns` et `activity` suivent la
355
- * session en cours ; `error` est la raison de l'échec du dernier passage, les
356
- * résultats du passage précédent restant valables.
298
+ * `npm audit fix` n'a rien changé et que `auditCommit` est null. `commit` est
299
+ * le commit de Claude, null quand il n'a rien modifié ; `task` la tâche du
300
+ * rapport. `turns`, `activity` (dernières actions) et `events` (déroulé
301
+ * complet) suivent la session ; `error` est la raison de son échec.
357
302
  */
358
303
  export declare const RepairSchema: z.ZodObject<{
359
- runs: z.ZodNumber;
360
304
  startedAt: z.ZodString;
361
305
  endedAt: z.ZodNullable<z.ZodString>;
362
306
  turns: z.ZodNumber;
363
307
  activity: z.ZodArray<z.ZodString>;
308
+ events: z.ZodArray<z.ZodObject<{
309
+ kind: z.ZodEnum<{
310
+ text: "text";
311
+ tool: "tool";
312
+ }>;
313
+ text: z.ZodString;
314
+ }, z.core.$strip>>;
364
315
  base: z.ZodString;
365
316
  auditCommit: z.ZodNullable<z.ZodString>;
366
317
  commit: z.ZodNullable<z.ZodString>;
@@ -394,123 +345,13 @@ export declare const RepairSchema: z.ZodObject<{
394
345
  error: z.ZodNullable<z.ZodString>;
395
346
  }, z.core.$strip>;
396
347
  export type Repair = z.infer<typeof RepairSchema>;
397
- /** Commentaire d'une tâche organizer : son auteur, son texte et sa date. */
398
- export declare const RemarkSchema: z.ZodObject<{
399
- author: z.ZodString;
400
- body: z.ZodString;
401
- createdAt: z.ZodString;
402
- }, z.core.$strip>;
403
- export type Remark = z.infer<typeof RemarkSchema>;
404
- export declare const SESSION_KINDS: readonly ["analysis", "repair"];
405
- export type SessionKind = (typeof SESSION_KINDS)[number];
406
- export declare const SESSION_OUTCOMES: readonly ["running", "done", "failed", "cancelled"];
407
- export type SessionOutcome = (typeof SESSION_OUTCOMES)[number];
408
- /** Ce qu'une session a fait d'une tâche organizer : relue, créée ou mise à jour. */
409
- export declare const SESSION_TASK_ROLES: readonly ["read", "created", "updated"];
410
- export type SessionTaskRole = (typeof SESSION_TASK_ROLES)[number];
411
- /** Élément du déroulé d'une session : message de Claude (`text`) ou appel d'outil en clair (`tool`). */
412
- export declare const SessionEventSchema: z.ZodObject<{
413
- kind: z.ZodEnum<{
414
- text: "text";
415
- tool: "tool";
416
- }>;
417
- text: z.ZodString;
418
- }, z.core.$strip>;
419
- export type SessionEvent = z.infer<typeof SessionEventSchema>;
420
- /**
421
- * Session de Claude d'une opération, gardée pour l'historique : l'analyse, ou
422
- * un passage des corrections (`run`, 1 pour l'analyse). `remarks` sont les
423
- * commentaires de la tâche de l'analyse au lancement des corrections, `tasks`
424
- * les tâches organizer relues, créées ou mises à jour, `events` le déroulé de
425
- * la session. Le résultat est le rapport de l'analyse, ou celui des
426
- * corrections avec leur commit et les vulnérabilités restantes.
427
- */
428
- export declare const ClaudeSessionSchema: z.ZodObject<{
429
- kind: z.ZodEnum<{
430
- analysis: "analysis";
431
- repair: "repair";
432
- }>;
433
- run: z.ZodNumber;
434
- startedAt: z.ZodString;
435
- endedAt: z.ZodNullable<z.ZodString>;
436
- turns: z.ZodNumber;
437
- outcome: z.ZodEnum<{
438
- cancelled: "cancelled";
439
- done: "done";
440
- failed: "failed";
441
- running: "running";
442
- }>;
443
- error: z.ZodNullable<z.ZodString>;
444
- remarks: z.ZodArray<z.ZodObject<{
445
- author: z.ZodString;
446
- body: z.ZodString;
447
- createdAt: z.ZodString;
448
- }, z.core.$strip>>;
449
- tasks: z.ZodArray<z.ZodObject<{
450
- task: z.ZodObject<{
451
- key: z.ZodString;
452
- title: z.ZodString;
453
- url: z.ZodString;
454
- status: z.ZodEnum<{
455
- doing: "doing";
456
- done: "done";
457
- review: "review";
458
- todo: "todo";
459
- }>;
460
- }, z.core.$strip>;
461
- role: z.ZodEnum<{
462
- created: "created";
463
- read: "read";
464
- updated: "updated";
465
- }>;
466
- }, z.core.$strip>>;
467
- events: z.ZodArray<z.ZodObject<{
468
- kind: z.ZodEnum<{
469
- text: "text";
470
- tool: "tool";
471
- }>;
472
- text: z.ZodString;
473
- }, z.core.$strip>>;
474
- analysisReport: z.ZodNullable<z.ZodObject<{
475
- summary: z.ZodString;
476
- urgent: z.ZodArray<z.ZodObject<{
477
- package: z.ZodString;
478
- reason: z.ZodString;
479
- }, z.core.$strip>>;
480
- force: z.ZodObject<{
481
- recommended: z.ZodBoolean;
482
- reason: z.ZodString;
483
- }, z.core.$strip>;
484
- }, z.core.$strip>>;
485
- repairReport: z.ZodNullable<z.ZodObject<{
486
- summary: z.ZodString;
487
- changes: z.ZodArray<z.ZodObject<{
488
- file: z.ZodString;
489
- change: z.ZodString;
490
- }, z.core.$strip>>;
491
- commitMessage: z.ZodString;
492
- tests: z.ZodObject<{
493
- outcome: z.ZodEnum<{
494
- failed: "failed";
495
- not_run: "not_run";
496
- passed: "passed";
497
- }>;
498
- detail: z.ZodString;
499
- }, z.core.$strip>;
500
- }, z.core.$strip>>;
501
- commit: z.ZodNullable<z.ZodString>;
502
- remaining: z.ZodNullable<z.ZodNumber>;
503
- }, z.core.$strip>;
504
- export type ClaudeSession = z.infer<typeof ClaudeSessionSchema>;
505
348
  /**
506
349
  * Opération d'audit ou de correction sur un clone temporaire, limitée aux
507
350
  * dépendances de `scope`. `workDir` est le
508
351
  * clone, présent tant que l'opération n'est pas terminée ; `pid` est le processus
509
352
  * qui exécute l'étape en cours. `found` liste les vulnérabilités du premier
510
- * audit, `remaining` celles qui restent après la dernière étape. `analysis` est
511
- * l'analyse par Claude, null quand elle n'a pas été lancée ; `repair` ses
512
- * corrections, null tant qu'elles n'ont pas été lancées ; `sessions` chaque
513
- * session de Claude, dans l'ordre.
353
+ * audit, `remaining` celles qui restent après la dernière étape. `repair` est
354
+ * la session de corrections par Claude, null quand elle n'a pas été lancée.
514
355
  */
515
356
  export declare const OperationSchema: z.ZodObject<{
516
357
  id: z.ZodString;
@@ -532,9 +373,6 @@ export declare const OperationSchema: z.ZodObject<{
532
373
  done: "done";
533
374
  failed: "failed";
534
375
  running: "running";
535
- waiting_force: "waiting_force";
536
- waiting_push: "waiting_push";
537
- waiting_repair: "waiting_repair";
538
376
  }>;
539
377
  createdAt: z.ZodString;
540
378
  updatedAt: z.ZodString;
@@ -564,20 +402,6 @@ export declare const OperationSchema: z.ZodObject<{
564
402
  running: "running";
565
403
  skipped: "skipped";
566
404
  }>;
567
- analysis: z.ZodEnum<{
568
- done: "done";
569
- failed: "failed";
570
- pending: "pending";
571
- running: "running";
572
- skipped: "skipped";
573
- }>;
574
- force: z.ZodEnum<{
575
- done: "done";
576
- failed: "failed";
577
- pending: "pending";
578
- running: "running";
579
- skipped: "skipped";
580
- }>;
581
405
  repair: z.ZodEnum<{
582
406
  done: "done";
583
407
  failed: "failed";
@@ -597,7 +421,6 @@ export declare const OperationSchema: z.ZodObject<{
597
421
  counts: z.ZodObject<{
598
422
  initial: z.ZodNullable<z.ZodNumber>;
599
423
  afterFix: z.ZodNullable<z.ZodNumber>;
600
- afterForce: z.ZodNullable<z.ZodNumber>;
601
424
  afterRepair: z.ZodNullable<z.ZodNumber>;
602
425
  }, z.core.$strip>;
603
426
  found: z.ZodArray<z.ZodObject<{
@@ -632,13 +455,6 @@ export declare const OperationSchema: z.ZodObject<{
632
455
  none: "none";
633
456
  }>;
634
457
  }, z.core.$strip>>;
635
- forceCandidates: z.ZodArray<z.ZodObject<{
636
- project: z.ZodString;
637
- name: z.ZodString;
638
- from: z.ZodNullable<z.ZodString>;
639
- to: z.ZodString;
640
- vulnerabilities: z.ZodNumber;
641
- }, z.core.$strip>>;
642
458
  changes: z.ZodArray<z.ZodObject<{
643
459
  project: z.ZodString;
644
460
  name: z.ZodString;
@@ -651,41 +467,18 @@ export declare const OperationSchema: z.ZodObject<{
651
467
  number: z.ZodNumber;
652
468
  url: z.ZodString;
653
469
  }, z.core.$strip>>;
654
- analysis: z.ZodNullable<z.ZodObject<{
470
+ repair: z.ZodNullable<z.ZodObject<{
655
471
  startedAt: z.ZodString;
656
472
  endedAt: z.ZodNullable<z.ZodString>;
657
473
  turns: z.ZodNumber;
658
474
  activity: z.ZodArray<z.ZodString>;
659
- report: z.ZodNullable<z.ZodObject<{
660
- summary: z.ZodString;
661
- urgent: z.ZodArray<z.ZodObject<{
662
- package: z.ZodString;
663
- reason: z.ZodString;
664
- }, z.core.$strip>>;
665
- force: z.ZodObject<{
666
- recommended: z.ZodBoolean;
667
- reason: z.ZodString;
668
- }, z.core.$strip>;
669
- }, z.core.$strip>>;
670
- task: z.ZodNullable<z.ZodObject<{
671
- key: z.ZodString;
672
- title: z.ZodString;
673
- url: z.ZodString;
674
- status: z.ZodEnum<{
675
- doing: "doing";
676
- done: "done";
677
- review: "review";
678
- todo: "todo";
475
+ events: z.ZodArray<z.ZodObject<{
476
+ kind: z.ZodEnum<{
477
+ text: "text";
478
+ tool: "tool";
679
479
  }>;
480
+ text: z.ZodString;
680
481
  }, z.core.$strip>>;
681
- error: z.ZodNullable<z.ZodString>;
682
- }, z.core.$strip>>;
683
- repair: z.ZodNullable<z.ZodObject<{
684
- runs: z.ZodNumber;
685
- startedAt: z.ZodString;
686
- endedAt: z.ZodNullable<z.ZodString>;
687
- turns: z.ZodNumber;
688
- activity: z.ZodArray<z.ZodString>;
689
482
  base: z.ZodString;
690
483
  auditCommit: z.ZodNullable<z.ZodString>;
691
484
  commit: z.ZodNullable<z.ZodString>;
@@ -718,82 +511,6 @@ export declare const OperationSchema: z.ZodObject<{
718
511
  }, z.core.$strip>>;
719
512
  error: z.ZodNullable<z.ZodString>;
720
513
  }, z.core.$strip>>;
721
- sessions: z.ZodArray<z.ZodObject<{
722
- kind: z.ZodEnum<{
723
- analysis: "analysis";
724
- repair: "repair";
725
- }>;
726
- run: z.ZodNumber;
727
- startedAt: z.ZodString;
728
- endedAt: z.ZodNullable<z.ZodString>;
729
- turns: z.ZodNumber;
730
- outcome: z.ZodEnum<{
731
- cancelled: "cancelled";
732
- done: "done";
733
- failed: "failed";
734
- running: "running";
735
- }>;
736
- error: z.ZodNullable<z.ZodString>;
737
- remarks: z.ZodArray<z.ZodObject<{
738
- author: z.ZodString;
739
- body: z.ZodString;
740
- createdAt: z.ZodString;
741
- }, z.core.$strip>>;
742
- tasks: z.ZodArray<z.ZodObject<{
743
- task: z.ZodObject<{
744
- key: z.ZodString;
745
- title: z.ZodString;
746
- url: z.ZodString;
747
- status: z.ZodEnum<{
748
- doing: "doing";
749
- done: "done";
750
- review: "review";
751
- todo: "todo";
752
- }>;
753
- }, z.core.$strip>;
754
- role: z.ZodEnum<{
755
- created: "created";
756
- read: "read";
757
- updated: "updated";
758
- }>;
759
- }, z.core.$strip>>;
760
- events: z.ZodArray<z.ZodObject<{
761
- kind: z.ZodEnum<{
762
- text: "text";
763
- tool: "tool";
764
- }>;
765
- text: z.ZodString;
766
- }, z.core.$strip>>;
767
- analysisReport: z.ZodNullable<z.ZodObject<{
768
- summary: z.ZodString;
769
- urgent: z.ZodArray<z.ZodObject<{
770
- package: z.ZodString;
771
- reason: z.ZodString;
772
- }, z.core.$strip>>;
773
- force: z.ZodObject<{
774
- recommended: z.ZodBoolean;
775
- reason: z.ZodString;
776
- }, z.core.$strip>;
777
- }, z.core.$strip>>;
778
- repairReport: z.ZodNullable<z.ZodObject<{
779
- summary: z.ZodString;
780
- changes: z.ZodArray<z.ZodObject<{
781
- file: z.ZodString;
782
- change: z.ZodString;
783
- }, z.core.$strip>>;
784
- commitMessage: z.ZodString;
785
- tests: z.ZodObject<{
786
- outcome: z.ZodEnum<{
787
- failed: "failed";
788
- not_run: "not_run";
789
- passed: "passed";
790
- }>;
791
- detail: z.ZodString;
792
- }, z.core.$strip>;
793
- }, z.core.$strip>>;
794
- commit: z.ZodNullable<z.ZodString>;
795
- remaining: z.ZodNullable<z.ZodNumber>;
796
- }, z.core.$strip>>;
797
514
  error: z.ZodNullable<z.ZodString>;
798
515
  log: z.ZodArray<z.ZodObject<{
799
516
  at: z.ZodString;