@imenam/mcp-dependabot-tracker 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/dist/shared/schemas/api.schema.d.ts +8 -0
- package/dist/shared/schemas/api.schema.js +1 -0
- package/dist/shared/schemas/ipc.schema.d.ts +1 -1
- package/dist/shared/schemas/ipc.schema.js +2 -0
- package/dist/shared/schemas/model.schema.d.ts +6 -1
- package/dist/shared/schemas/model.schema.js +5 -1
- package/dist/src/core/github.d.ts +2 -0
- package/dist/src/core/github.js +18 -1
- package/dist/src/core/operations.js +1 -1
- package/dist/src/core/repos.d.ts +4 -0
- package/dist/src/core/repos.js +16 -1
- package/dist/src/core/store.js +7 -1
- package/dist/src/gui-worker.js +8 -1
- package/dist/src/index.js +16 -6
- package/dist/src/tools/format.js +1 -1
- package/gui/dist/assets/{index-Bn8FyH44.css → index-CEyT1zsC.css} +1 -1
- package/gui/dist/assets/index-CpA5sFsY.js +63 -0
- package/gui/dist/index.html +2 -2
- package/package.json +1 -1
- package/gui/dist/assets/index-do_lp18L.js +0 -63
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Suivi des alertes Dependabot de dépôts GitHub, et correction de leurs vulnérabilités npm dans un clone temporaire, depuis une interface graphique ou par un agent.
|
|
4
4
|
|
|
5
|
-
Pour chaque dépôt suivi, l'interface montre les alertes Dependabot ouvertes et lance une **correction** : clone temporaire de la branche par défaut, `npm audit`, `npm audit fix`, `npm audit fix --force` sur décision, puis commit sur une nouvelle branche, push et pull request. L'utilisateur décide, dépôt par dépôt, de ce que l'agent peut faire par les outils MCP : audit, audit fix, audit fix --force, push.
|
|
5
|
+
Pour chaque dépôt suivi, l'interface montre les alertes Dependabot ouvertes et lance une **correction** : clone temporaire de la branche choisie pour le dépôt (la branche par défaut tant qu'aucune autre n'est choisie), `npm audit`, `npm audit fix`, `npm audit fix --force` sur décision, puis commit sur une nouvelle branche, push et pull request. L'utilisateur décide, dépôt par dépôt, de ce que l'agent peut faire par les outils MCP : audit, audit fix, audit fix --force, push.
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
Utilisateur (GUI) ──ajoute un dépôt, accorde les droits, corrige──▶ Tracker ──API GitHub──▶ alertes, PR
|
|
@@ -124,7 +124,7 @@ Cinq outils, en anglais. Le résultat d'une opération se termine par le lien ve
|
|
|
124
124
|
| `list_repositories` | — | Dépôts suivis : alertes Dependabot ouvertes par gravité, date de la dernière lecture (et son erreur), droits de l'agent, opération en cours. |
|
|
125
125
|
| `get_alerts` | — | Relit sur GitHub les alertes ouvertes d'un dépôt (`repository`) et les liste de la plus grave à la moins grave : numéro, gravité, paquet, écosystème, manifeste, résumé, version corrigée, lien. |
|
|
126
126
|
| `run_audit` | audit | `npm audit` dans un clone temporaire : vulnérabilités par projet npm, avec la correction proposée (aucune, dans les plages déclarées, ou montée majeure qui demande `--force`). Rien n'est modifié. |
|
|
127
|
-
| `fix_vulnerabilities` | fix (+ force, + push) | Clone, `npm audit`, `npm audit fix` ; avec `force: true`, `npm audit fix --force` s'il reste des vulnérabilités qu'une montée majeure corrige ; avec `push: true`, commit (`commit_message`, défaut `fix(deps): resolve npm audit vulnerabilities`), push d'une nouvelle branche et pull request vers la branche
|
|
127
|
+
| `fix_vulnerabilities` | fix (+ force, + push) | Clone, `npm audit`, `npm audit fix` ; avec `force: true`, `npm audit fix --force` s'il reste des vulnérabilités qu'une montée majeure corrige ; avec `push: true`, commit (`commit_message`, défaut `fix(deps): resolve npm audit vulnerabilities`), push d'une nouvelle branche et pull request vers la branche analysée. Sans `push`, rien ne sort du clone : le résultat décrit ce que les corrections changent. |
|
|
128
128
|
| `reconnect_gui` | — | Relance le worker GUI et le réenregistre auprès du proxy. |
|
|
129
129
|
|
|
130
130
|
Un outil refuse une action dont l'agent n'a pas le droit, en le disant ; seul l'utilisateur change les droits, dans la GUI. L'agent ne peut ni ajouter ni retirer de dépôt. Un champ inconnu fait échouer l'appel. Les outils d'opération attendent la fin de l'opération.
|
|
@@ -133,13 +133,15 @@ Un outil refuse une action dont l'agent n'a pas le droit, en le disant ; seul l'
|
|
|
133
133
|
|
|
134
134
|
## Une opération
|
|
135
135
|
|
|
136
|
-
Chaque opération travaille dans un clone temporaire (`<CLONE_DIR>/mcp-dependabot-tracker-*/repo`, `git clone --depth 1` de la branche
|
|
136
|
+
Chaque opération travaille dans un clone temporaire (`<CLONE_DIR>/mcp-dependabot-tracker-*/repo`, `git clone --depth 1` de la branche analysée), supprimé dès qu'elle se termine, réussie, échouée ou annulée. Il reste sur le disque tant qu'une correction lancée depuis la GUI attend une décision.
|
|
137
|
+
|
|
138
|
+
La **branche analysée** se choisit par dépôt dans la GUI ; c'est la branche par défaut tant qu'aucune autre n'est choisie. L'agent l'utilise aussi, sans pouvoir en changer. Les alertes Dependabot, elles, portent toujours sur la branche par défaut, la seule que GitHub analyse : sur une autre branche, c'est `npm audit` qui mesure les vulnérabilités.
|
|
137
139
|
|
|
138
140
|
1. **Cloner le dépôt** — puis repérer les projets npm : chaque dossier dont le `package-lock.json` est suivi par git (racine, `gui/`…). Un dépôt sans lockfile fait échouer l'opération : `npm audit` en a besoin. Un lockfile v1 (npm 6) est refusé.
|
|
139
141
|
2. **npm audit** — `npm audit --json` dans chaque projet.
|
|
140
142
|
3. **npm audit fix** — `npm audit fix --package-lock-only --ignore-scripts` dans chaque projet vulnérable : seuls les lockfiles changent, sans installation de `node_modules` ni script de paquet. Puis un nouvel audit.
|
|
141
143
|
4. **npm audit fix --force** — proposé quand des vulnérabilités restantes ne se corrigent que par une version majeure (`fixAvailable.isSemVerMajor` du rapport npm). L'écran liste les paquets concernés, leur version installée et la version cible, et le nombre de vulnérabilités en jeu.
|
|
142
|
-
5. **Commit et push** — commit des fichiers modifiés sur la branche `fix/npm-audit-<AAAA-MM-JJ>-<HHMMSS>` (heure locale du serveur, fixée quand la correction est prête), push, puis pull request vers la branche
|
|
144
|
+
5. **Commit et push** — commit des fichiers modifiés sur la branche `fix/npm-audit-<AAAA-MM-JJ>-<HHMMSS>` (heure locale du serveur, fixée quand la correction est prête), push, puis pull request vers la branche analysée. Son corps donne les vulnérabilités avant et après, l'application de `--force` et les paquets mis à jour.
|
|
143
145
|
|
|
144
146
|
Les paquets mis à jour sont lus en comparant chaque lockfile à celui du commit cloné : version changée, paquet ajouté ou retiré. S'il n'y a rien à corriger, ou si les corrections ne changent rien, l'opération se termine sans push.
|
|
145
147
|
|
|
@@ -154,8 +156,8 @@ Depuis la GUI, l'opération s'arrête aux étapes 4 et 5 pour la décision de l'
|
|
|
154
156
|
Thème sombre, une information par ligne, une action principale par écran.
|
|
155
157
|
|
|
156
158
|
- **Accueil (`#/`)** — les dépôts suivis, du plus exposé au moins exposé (gravité la plus haute, puis nombre d'alertes). En bout de ligne, une seule information : le nombre d'alertes coloré selon la gravité la plus haute, « Correction en cours », « Synchronisation impossible » (l'erreur en infobulle) ou « À jour ». « Ajouter un dépôt » ouvre une fenêtre à un seul champ de recherche : dès la première lettre, jusqu'à dix dépôts accessibles au token et pas encore suivis sont proposés (ceux dont le nom commence par la saisie d'abord). ↑ et ↓ choisissent, Entrée ou un clic ajoutent le dépôt choisi ; Échap referme la liste, puis la fenêtre. Sans suggestion, « Ajouter » prend la saisie telle quelle, `propriétaire/dépôt` ou lien GitHub. Un nouveau dépôt n'accorde que l'audit à l'agent.
|
|
157
|
-
- **Dépôt (`#/r/<propriétaire>/<nom>`)** — branche par défaut, date de la dernière lecture des alertes et lien vers la dernière correction ; les alertes ouvertes (gravité, paquet, résumé), chacune ouvrant l'alerte sur GitHub. « Corriger » lance une correction, ou « Reprendre la correction » rouvre celle en cours. « Agent » ouvre le volet des droits : quatre interrupteurs, enregistrés aussitôt, et « Retirer le dépôt » (un second clic confirme dans les 4 secondes ; refusé pendant une opération).
|
|
158
|
-
- **Correction (`#/r/<propriétaire>/<nom>/op/<id>`)** — qui l'a lancée (vous ou l'agent), la branche clonée, puis les étapes : celles qui sont faites tiennent sur une ligne avec leur résultat (« 4 vulnérabilités », « 3 corrigées », lien vers la pull request), seule l'étape qui attend une décision est dépliée. L'étape `--force` liste les montées majeures avec « Appliquer --force » et « Passer » ; l'étape du push montre le message de commit modifiable, le nom de la branche, « voir les changements » (paquets mis à jour, replié) et « Pousser et ouvrir la PR ». Une erreur s'affiche sous l'étape qui a échoué. « Journal » déplie les commandes lancées et leurs résultats ; « Annuler » arrête l'opération.
|
|
159
|
+
- **Dépôt (`#/r/<propriétaire>/<nom>`)** — sélecteur de la branche analysée (un clic ouvre la liste des branches avec un champ de recherche, la branche par défaut en tête ; ↑ ↓ et Entrée ou un clic choisissent, Échap ferme), date de la dernière lecture des alertes et lien vers la dernière correction ; les alertes ouvertes (gravité, paquet, résumé), chacune ouvrant l'alerte sur GitHub. « Corriger » lance une correction, ou « Reprendre la correction » rouvre celle en cours. « Agent » ouvre le volet des droits : quatre interrupteurs, enregistrés aussitôt, et « Retirer le dépôt » (un second clic confirme dans les 4 secondes ; refusé pendant une opération).
|
|
160
|
+
- **Correction (`#/r/<propriétaire>/<nom>/op/<id>`)** — qui l'a lancée (vous ou l'agent), la branche clonée, puis les étapes : celles qui sont faites tiennent sur une ligne avec leur résultat (« 4 vulnérabilités », « 3 corrigées », lien vers la pull request), seule l'étape qui attend une décision est dépliée. Une étape passée en donne la raison : « aucune correction possible » pour `--force` quand npm ne propose aucune montée majeure, « rien à corriger » quand `npm audit fix` a tout corrigé, « rien à pousser » quand les corrections n'ont rien changé, « ignorée » sinon. Les vulnérabilités sans aucune version corrigée publiée sur le registre npm (`fixAvailable: false`, par exemple `xlsx`, que SheetJS ne publie plus sur npm) sont comptées sur la ligne du dernier audit (« 1 sans correctif ») ; un clic les liste avec leur gravité : leur mise à jour est à faire à la main. L'étape `--force` liste les montées majeures avec « Appliquer --force » et « Passer » ; l'étape du push montre le message de commit modifiable, le nom de la branche, « voir les changements » (paquets mis à jour, replié) et « Pousser et ouvrir la PR ». Une erreur s'affiche sous l'étape qui a échoué. « Journal » déplie les commandes lancées et leurs résultats ; « Annuler » arrête l'opération.
|
|
159
161
|
|
|
160
162
|
Les écrans se relisent par polling : toutes les 3 s pour les listes, toutes les secondes pendant une opération.
|
|
161
163
|
|
|
@@ -175,6 +177,7 @@ Deux processus, selon le standard de l'écosystème (`@imenam/mcp-gui-interface`
|
|
|
175
177
|
| `GET /api/github/repos` | Dépôts accessibles au token (`/user/repos`) et pas encore suivis, pour les suggestions d'ajout. |
|
|
176
178
|
| `GET` / `DELETE /api/repos/:propriétaire/:nom` | Dépôt ; retrait. |
|
|
177
179
|
| `PUT /api/repos/:propriétaire/:nom/rights` | Droits de l'agent. |
|
|
180
|
+
| `GET /api/repos/:propriétaire/:nom/branches`, `PUT …/branch` | Branches du dépôt, la branche par défaut en tête ; choix de la branche analysée (`{ branch }`, qui doit exister). |
|
|
178
181
|
| `POST /api/repos/:propriétaire/:nom/operations` | Lance une correction. |
|
|
179
182
|
| `GET /api/operations/:id` | Opération. |
|
|
180
183
|
| `POST /api/operations/:id/force`, `/push`, `/cancel` | Décision `--force` (`{ apply }`), push (`{ commitMessage }`), annulation. |
|
|
@@ -14,6 +14,14 @@ export declare const SetRightsBodySchema: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export type SetRightsBody = z.infer<typeof SetRightsBodySchema>;
|
|
17
|
+
export declare const SetBranchBodySchema: z.ZodObject<{
|
|
18
|
+
branch: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type SetBranchBody = z.infer<typeof SetBranchBodySchema>;
|
|
21
|
+
/** Branches du dépôt, la branche par défaut en tête. */
|
|
22
|
+
export interface BranchesResponse {
|
|
23
|
+
branches: string[];
|
|
24
|
+
}
|
|
17
25
|
/** `apply` : lancer `npm audit fix --force` ; sinon l'étape est passée. */
|
|
18
26
|
export declare const ForceBodySchema: z.ZodObject<{
|
|
19
27
|
apply: z.ZodBoolean;
|
|
@@ -3,6 +3,7 @@ import { RightsSchema } from "./model.schema.js";
|
|
|
3
3
|
/** Corps de `POST /api/repos` : `propriétaire/nom` ou lien GitHub. */
|
|
4
4
|
export const AddRepoBodySchema = z.object({ repository: z.string().trim().min(1) });
|
|
5
5
|
export const SetRightsBodySchema = z.object({ rights: RightsSchema });
|
|
6
|
+
export const SetBranchBodySchema = z.object({ branch: z.string().trim().min(1) });
|
|
6
7
|
/** `apply` : lancer `npm audit fix --force` ; sinon l'étape est passée. */
|
|
7
8
|
export const ForceBodySchema = z.object({ apply: z.boolean() });
|
|
8
9
|
export const PushBodySchema = z.object({ commitMessage: z.string().trim().min(1) });
|
|
@@ -22,5 +22,5 @@ export declare const IPCMessageSchema: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type IPCMessage = z.infer<typeof IPCMessageSchema>;
|
|
24
24
|
/** Requêtes du GUI worker au maître ; chacune reçoit une réponse de même `correlationId`. */
|
|
25
|
-
export declare const GUI_REQUEST_TYPES: readonly ["GET_CONFIG", "LIST_REPOS", "LIST_ADDABLE_REPOS", "GET_REPO", "ADD_REPO", "REMOVE_REPO", "SET_RIGHTS", "START_FIX", "GET_OPERATION", "DECIDE_FORCE", "PUSH_OPERATION", "CANCEL_OPERATION"];
|
|
25
|
+
export declare const GUI_REQUEST_TYPES: readonly ["GET_CONFIG", "LIST_REPOS", "LIST_ADDABLE_REPOS", "GET_REPO", "ADD_REPO", "REMOVE_REPO", "SET_RIGHTS", "LIST_BRANCHES", "SET_BRANCH", "START_FIX", "GET_OPERATION", "DECIDE_FORCE", "PUSH_OPERATION", "CANCEL_OPERATION"];
|
|
26
26
|
export type GuiRequestType = (typeof GUI_REQUEST_TYPES)[number];
|
|
@@ -34,12 +34,16 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
34
34
|
patchedVersion: z.ZodNullable<z.ZodString>;
|
|
35
35
|
}, z.core.$strip>;
|
|
36
36
|
export type Alert = z.infer<typeof AlertSchema>;
|
|
37
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Dépôt suivi. `id` est le nom complet GitHub, `propriétaire/nom` ; `branch` est
|
|
39
|
+
* la branche que les opérations clonent et vers laquelle la pull request est ouverte.
|
|
40
|
+
*/
|
|
38
41
|
export declare const RepoSchema: z.ZodObject<{
|
|
39
42
|
id: z.ZodString;
|
|
40
43
|
owner: z.ZodString;
|
|
41
44
|
name: z.ZodString;
|
|
42
45
|
defaultBranch: z.ZodString;
|
|
46
|
+
branch: z.ZodString;
|
|
43
47
|
addedAt: z.ZodString;
|
|
44
48
|
rights: z.ZodObject<{
|
|
45
49
|
audit: z.ZodBoolean;
|
|
@@ -72,6 +76,7 @@ export declare const ReposFileSchema: z.ZodObject<{
|
|
|
72
76
|
owner: z.ZodString;
|
|
73
77
|
name: z.ZodString;
|
|
74
78
|
defaultBranch: z.ZodString;
|
|
79
|
+
branch: z.ZodString;
|
|
75
80
|
addedAt: z.ZodString;
|
|
76
81
|
rights: z.ZodObject<{
|
|
77
82
|
audit: z.ZodBoolean;
|
|
@@ -24,12 +24,16 @@ export const AlertSchema = z.object({
|
|
|
24
24
|
url: z.string(),
|
|
25
25
|
patchedVersion: z.string().nullable(),
|
|
26
26
|
});
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Dépôt suivi. `id` est le nom complet GitHub, `propriétaire/nom` ; `branch` est
|
|
29
|
+
* la branche que les opérations clonent et vers laquelle la pull request est ouverte.
|
|
30
|
+
*/
|
|
28
31
|
export const RepoSchema = z.object({
|
|
29
32
|
id: z.string(),
|
|
30
33
|
owner: z.string(),
|
|
31
34
|
name: z.string(),
|
|
32
35
|
defaultBranch: z.string(),
|
|
36
|
+
branch: z.string(),
|
|
33
37
|
addedAt: z.string(),
|
|
34
38
|
rights: RightsSchema,
|
|
35
39
|
alerts: z.array(AlertSchema),
|
|
@@ -30,6 +30,8 @@ export declare class GitHubClient {
|
|
|
30
30
|
listOpenAlerts(owner: string, name: string): Promise<Alert[]>;
|
|
31
31
|
/** Noms complets (`propriétaire/nom`) des dépôts accessibles au token, toutes pages comprises. */
|
|
32
32
|
listAccessibleRepositories(): Promise<string[]>;
|
|
33
|
+
/** Noms des branches du dépôt, toutes pages comprises. */
|
|
34
|
+
listBranches(owner: string, name: string): Promise<string[]>;
|
|
33
35
|
getAuthenticatedUser(): Promise<GitHubUser>;
|
|
34
36
|
createPullRequest(owner: string, name: string, pr: {
|
|
35
37
|
title: string;
|
package/dist/src/core/github.js
CHANGED
|
@@ -3,7 +3,7 @@ import { NotFoundError, TrackerError } from "./errors.js";
|
|
|
3
3
|
const REQUEST_TIMEOUT_MS = 30_000;
|
|
4
4
|
/** Nombre maximal de pages d'alertes lues (100 alertes par page). */
|
|
5
5
|
const MAX_ALERT_PAGES = 20;
|
|
6
|
-
/** Nombre maximal de pages de dépôts lues (100
|
|
6
|
+
/** Nombre maximal de pages de dépôts ou de branches lues (100 par page). */
|
|
7
7
|
const MAX_REPOSITORY_PAGES = 30;
|
|
8
8
|
/** URL de la page suivante dans un en-tête `Link` de pagination, ou null. */
|
|
9
9
|
export function nextPageUrl(link) {
|
|
@@ -105,6 +105,23 @@ export class GitHubClient {
|
|
|
105
105
|
}
|
|
106
106
|
return names;
|
|
107
107
|
}
|
|
108
|
+
/** Noms des branches du dépôt, toutes pages comprises. */
|
|
109
|
+
async listBranches(owner, name) {
|
|
110
|
+
const names = [];
|
|
111
|
+
let url = `/repos/${owner}/${name}/branches?per_page=100`;
|
|
112
|
+
for (let page = 0; url !== null; page += 1) {
|
|
113
|
+
if (page === MAX_REPOSITORY_PAGES) {
|
|
114
|
+
throw new TrackerError(`${owner}/${name} has more than ${MAX_REPOSITORY_PAGES * 100} branches; the tracker lists at most that many.`);
|
|
115
|
+
}
|
|
116
|
+
const { json, link } = await this.request("GET", url);
|
|
117
|
+
if (!Array.isArray(json))
|
|
118
|
+
throw new TrackerError(`GitHub API returned an unexpected list of branches for ${owner}/${name}.`);
|
|
119
|
+
for (const raw of json)
|
|
120
|
+
names.push(raw.name);
|
|
121
|
+
url = nextPageUrl(link);
|
|
122
|
+
}
|
|
123
|
+
return names;
|
|
124
|
+
}
|
|
108
125
|
async getAuthenticatedUser() {
|
|
109
126
|
const { json } = await this.request("GET", "/user");
|
|
110
127
|
return { login: json.login, id: json.id, name: json.name ?? null };
|
|
@@ -55,7 +55,7 @@ function newOperation(repo, kind, origin) {
|
|
|
55
55
|
updatedAt: createdAt,
|
|
56
56
|
pid: process.pid,
|
|
57
57
|
workDir: null,
|
|
58
|
-
baseBranch: repo.
|
|
58
|
+
baseBranch: repo.branch,
|
|
59
59
|
cancelRequested: false,
|
|
60
60
|
steps: { clone: "pending", audit: "pending", fix: "pending", force: "pending", push: "pending" },
|
|
61
61
|
projects: [],
|
package/dist/src/core/repos.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export declare function syncRepository(store: Store, config: GitHubConfig, repoI
|
|
|
20
20
|
export declare function addRepository(store: Store, config: GitHubConfig, input: string): Promise<Repo>;
|
|
21
21
|
/** Dépôts accessibles au token qui ne sont pas encore suivis, proposés à l'ajout. */
|
|
22
22
|
export declare function listAddableRepositories(store: Store, config: GitHubConfig): Promise<string[]>;
|
|
23
|
+
/** Branches du dépôt sur GitHub, la branche par défaut en tête, les autres dans l'ordre alphabétique. */
|
|
24
|
+
export declare function listRepoBranches(store: Store, config: GitHubConfig, repoId: string): Promise<string[]>;
|
|
25
|
+
/** Choisit la branche analysée ; elle doit exister sur GitHub. */
|
|
26
|
+
export declare function setBranch(store: Store, config: GitHubConfig, repoId: string, branch: string): Promise<Repo>;
|
|
23
27
|
export declare function setRights(store: Store, repoId: string, rights: Rights): Repo;
|
|
24
28
|
/** Dépôts jamais synchronisés, ou synchronisés il y a plus de `maxAgeMs`. */
|
|
25
29
|
export declare function staleRepos(store: Store, maxAgeMs: number, at?: number): Repo[];
|
package/dist/src/core/repos.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ALERT_SEVERITIES, DEFAULT_RIGHTS } from "../../shared/schemas/model.schema.js";
|
|
2
|
-
import { ConflictError } from "./errors.js";
|
|
2
|
+
import { ConflictError, NotFoundError } from "./errors.js";
|
|
3
3
|
import { GitHubClient } from "./github.js";
|
|
4
4
|
import { parseRepoRef } from "./repo-ref.js";
|
|
5
5
|
import { isActive } from "./store.js";
|
|
@@ -67,6 +67,7 @@ export async function addRepository(store, config, input) {
|
|
|
67
67
|
owner: remote.owner,
|
|
68
68
|
name: remote.name,
|
|
69
69
|
defaultBranch: remote.defaultBranch,
|
|
70
|
+
branch: remote.defaultBranch,
|
|
70
71
|
addedAt: new Date().toISOString(),
|
|
71
72
|
rights: DEFAULT_RIGHTS,
|
|
72
73
|
alerts: [],
|
|
@@ -81,6 +82,20 @@ export async function listAddableRepositories(store, config) {
|
|
|
81
82
|
const accessible = await new GitHubClient(config).listAccessibleRepositories();
|
|
82
83
|
return accessible.filter((name) => !tracked.has(name.toLowerCase()));
|
|
83
84
|
}
|
|
85
|
+
/** Branches du dépôt sur GitHub, la branche par défaut en tête, les autres dans l'ordre alphabétique. */
|
|
86
|
+
export async function listRepoBranches(store, config, repoId) {
|
|
87
|
+
const repo = store.getRepo(repoId);
|
|
88
|
+
const branches = await new GitHubClient(config).listBranches(repo.owner, repo.name);
|
|
89
|
+
const others = branches.filter((branch) => branch !== repo.defaultBranch).sort((a, b) => a.localeCompare(b));
|
|
90
|
+
return branches.includes(repo.defaultBranch) ? [repo.defaultBranch, ...others] : others;
|
|
91
|
+
}
|
|
92
|
+
/** Choisit la branche analysée ; elle doit exister sur GitHub. */
|
|
93
|
+
export async function setBranch(store, config, repoId, branch) {
|
|
94
|
+
const branches = await listRepoBranches(store, config, repoId);
|
|
95
|
+
if (!branches.includes(branch))
|
|
96
|
+
throw new NotFoundError(`Branch "${branch}" does not exist in ${store.getRepo(repoId).id}.`);
|
|
97
|
+
return store.updateRepo(repoId, (repo) => ({ ...repo, branch }));
|
|
98
|
+
}
|
|
84
99
|
export function setRights(store, repoId, rights) {
|
|
85
100
|
return store.updateRepo(repoId, (repo) => ({ ...repo, rights }));
|
|
86
101
|
}
|
package/dist/src/core/store.js
CHANGED
|
@@ -35,6 +35,12 @@ export function processAlive(pid) {
|
|
|
35
35
|
return err.code === "EPERM";
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
/** Un dépôt enregistré sans branche choisie analyse sa branche par défaut. */
|
|
39
|
+
function withBranches(file) {
|
|
40
|
+
if (!Array.isArray(file?.repos))
|
|
41
|
+
return file;
|
|
42
|
+
return { ...file, repos: file.repos.map((repo) => (typeof repo?.branch === "string" ? repo : { ...repo, branch: repo?.defaultBranch })) };
|
|
43
|
+
}
|
|
38
44
|
export function isActive(operation) {
|
|
39
45
|
return ACTIVE_STATUSES.includes(operation.status);
|
|
40
46
|
}
|
|
@@ -106,7 +112,7 @@ export class Store {
|
|
|
106
112
|
return [];
|
|
107
113
|
throw err;
|
|
108
114
|
}
|
|
109
|
-
const parsed = ReposFileSchema.safeParse(JSON.parse(raw));
|
|
115
|
+
const parsed = ReposFileSchema.safeParse(withBranches(JSON.parse(raw)));
|
|
110
116
|
if (!parsed.success)
|
|
111
117
|
throw new TrackerError(`${this.reposPath} is invalid: ${parsed.error.message}`);
|
|
112
118
|
return parsed.data.repos;
|
package/dist/src/gui-worker.js
CHANGED
|
@@ -6,7 +6,7 @@ import path from "path";
|
|
|
6
6
|
import fs from "fs";
|
|
7
7
|
import { fileURLToPath } from "url";
|
|
8
8
|
import { IPCMessageSchema } from "../shared/schemas/ipc.schema.js";
|
|
9
|
-
import { AddRepoBodySchema, ForceBodySchema, PushBodySchema, SetRightsBodySchema } from "../shared/schemas/api.schema.js";
|
|
9
|
+
import { AddRepoBodySchema, ForceBodySchema, PushBodySchema, SetBranchBodySchema, SetRightsBodySchema } from "../shared/schemas/api.schema.js";
|
|
10
10
|
import { resolveLogDir } from "./core/log-dir.js";
|
|
11
11
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
12
12
|
function findProjectRoot(startDir) {
|
|
@@ -204,6 +204,13 @@ app.put("/api/repos/:owner/:name/rights", async (c) => {
|
|
|
204
204
|
return read.response;
|
|
205
205
|
return forward(c, "SET_RIGHTS", { repoId: repoId(c), body: read.body });
|
|
206
206
|
});
|
|
207
|
+
app.get("/api/repos/:owner/:name/branches", (c) => forward(c, "LIST_BRANCHES", { repoId: repoId(c) }));
|
|
208
|
+
app.put("/api/repos/:owner/:name/branch", async (c) => {
|
|
209
|
+
const read = await readBody(c, SetBranchBodySchema);
|
|
210
|
+
if ("response" in read)
|
|
211
|
+
return read.response;
|
|
212
|
+
return forward(c, "SET_BRANCH", { repoId: repoId(c), body: read.body });
|
|
213
|
+
});
|
|
207
214
|
app.post("/api/repos/:owner/:name/operations", (c) => forward(c, "START_FIX", { repoId: repoId(c) }));
|
|
208
215
|
app.get("/api/operations/:id", (c) => forward(c, "GET_OPERATION", { operationId: c.req.param("id") }));
|
|
209
216
|
app.post("/api/operations/:id/force", async (c) => {
|
package/dist/src/index.js
CHANGED
|
@@ -14,9 +14,9 @@ import { githubConfigured, readGitHubConfig } from "./core/config.js";
|
|
|
14
14
|
import { ConflictError, NotFoundError, TrackerError } from "./core/errors.js";
|
|
15
15
|
import { Store } from "./core/store.js";
|
|
16
16
|
import { cancelOperation, decideForce, pushOperation, startUserFix } from "./core/operations.js";
|
|
17
|
-
import { SYNC_INTERVAL_MS, addRepository, listAddableRepositories, listRepoViews, repoView, setRights, staleRepos, syncRepository } from "./core/repos.js";
|
|
17
|
+
import { SYNC_INTERVAL_MS, addRepository, listAddableRepositories, listRepoBranches, listRepoViews, setBranch, repoView, setRights, staleRepos, syncRepository } from "./core/repos.js";
|
|
18
18
|
import { GUI_REQUEST_TYPES, IPCMessageSchema } from "../shared/schemas/ipc.schema.js";
|
|
19
|
-
import { AddRepoBodySchema, ForceBodySchema, OperationRequestSchema, PushBodySchema, RepoRequestSchema, SetRightsBodySchema, } from "../shared/schemas/api.schema.js";
|
|
19
|
+
import { AddRepoBodySchema, ForceBodySchema, OperationRequestSchema, PushBodySchema, RepoRequestSchema, SetBranchBodySchema, SetRightsBodySchema, } from "../shared/schemas/api.schema.js";
|
|
20
20
|
import { errorResult, textResult } from "./tools/types.js";
|
|
21
21
|
import { fixVulnerabilities, getAlerts, listRepositories, runAudit } from "./tools/tools.js";
|
|
22
22
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -77,7 +77,8 @@ const INSTRUCTIONS = `mcp-dependabot-tracker follows the Dependabot alerts of Gi
|
|
|
77
77
|
Concepts:
|
|
78
78
|
- A **tracked repository** is a GitHub repository the user added in the GUI. Its open Dependabot alerts are read from GitHub and refreshed every 10 minutes.
|
|
79
79
|
- **Rights**: for each repository, the user allows you to run npm audit (audit), npm audit fix (fix), npm audit fix --force (force) and to push the fixes (push). A tool refuses an action you are not allowed to do; only the user can change the rights.
|
|
80
|
-
-
|
|
80
|
+
- The **analysed branch** of a repository is chosen by the user in the GUI (the default branch unless changed). Dependabot alerts always describe the default branch; npm audit describes the analysed branch.
|
|
81
|
+
- An **operation** runs in a temporary clone of the analysed branch, deleted at the end: npm audit in every directory that holds a package-lock.json, then npm audit fix with --package-lock-only and --ignore-scripts (lockfiles only, no install, no scripts), optionally --force, then a commit on a new branch fix/npm-audit-<date>-<time> and a pull request to the analysed branch.
|
|
81
82
|
|
|
82
83
|
Workflow:
|
|
83
84
|
1. list_repositories to see the tracked repositories, their open alerts and your rights.
|
|
@@ -149,6 +150,15 @@ async function handleGuiRequest(msg) {
|
|
|
149
150
|
const body = parseRequest(SetRightsBodySchema, msg.data?.body);
|
|
150
151
|
return repoView(store, setRights(store, repoId, body.rights));
|
|
151
152
|
}
|
|
153
|
+
case "LIST_BRANCHES": {
|
|
154
|
+
const { repoId } = parseRequest(RepoRequestSchema, msg.data);
|
|
155
|
+
return { branches: await listRepoBranches(store, readGitHubConfig(), repoId) };
|
|
156
|
+
}
|
|
157
|
+
case "SET_BRANCH": {
|
|
158
|
+
const { repoId } = parseRequest(RepoRequestSchema, msg.data);
|
|
159
|
+
const body = parseRequest(SetBranchBodySchema, msg.data?.body);
|
|
160
|
+
return repoView(store, await setBranch(store, readGitHubConfig(), repoId, body.branch));
|
|
161
|
+
}
|
|
152
162
|
case "START_FIX":
|
|
153
163
|
return { operation: startUserFix(operations, parseRequest(RepoRequestSchema, msg.data).repoId) };
|
|
154
164
|
case "GET_OPERATION": {
|
|
@@ -266,7 +276,7 @@ const REPOSITORY_DOC = "Tracked repository, as owner/name (see list_repositories
|
|
|
266
276
|
const TOOLS = [
|
|
267
277
|
{
|
|
268
278
|
name: "list_repositories",
|
|
269
|
-
description: "List the tracked repositories with their open Dependabot alerts by severity, the time of the last sync, the rights the user gave you (audit, fix, force, push) and the operation in progress. Start here.",
|
|
279
|
+
description: "List the tracked repositories with their analysed branch, their open Dependabot alerts by severity, the time of the last sync, the rights the user gave you (audit, fix, force, push) and the operation in progress. Start here.",
|
|
270
280
|
inputSchema: { type: "object", properties: {} },
|
|
271
281
|
},
|
|
272
282
|
{
|
|
@@ -280,7 +290,7 @@ const TOOLS = [
|
|
|
280
290
|
},
|
|
281
291
|
{
|
|
282
292
|
name: "run_audit",
|
|
283
|
-
description: "Run npm audit on a temporary clone of the
|
|
293
|
+
description: "Run npm audit on a temporary clone of the analysed branch, in every directory that holds a package-lock.json, and report the vulnerabilities with the fix npm proposes (none, within the declared ranges, or a major upgrade that needs --force). Needs the audit right. Nothing is changed; the clone is deleted.",
|
|
284
294
|
inputSchema: {
|
|
285
295
|
type: "object",
|
|
286
296
|
properties: { repository: { type: "string", description: REPOSITORY_DOC } },
|
|
@@ -289,7 +299,7 @@ const TOOLS = [
|
|
|
289
299
|
},
|
|
290
300
|
{
|
|
291
301
|
name: "fix_vulnerabilities",
|
|
292
|
-
description: "Fix the npm vulnerabilities of a tracked repository in a temporary clone of its
|
|
302
|
+
description: "Fix the npm vulnerabilities of a tracked repository in a temporary clone of its analysed branch: npm audit, then npm audit fix --package-lock-only --ignore-scripts, then optionally npm audit fix --force, then optionally a commit on a new branch fix/npm-audit-<date>-<time>, its push and a pull request to the analysed branch. " +
|
|
293
303
|
"Needs the fix right, plus the force right with force and the push right with push. Without push, nothing leaves the clone: the result reports what the fixes change. Waits until the operation ends and reports the vulnerabilities before and after, the updated packages and the pull request.",
|
|
294
304
|
inputSchema: {
|
|
295
305
|
type: "object",
|
package/dist/src/tools/format.js
CHANGED
|
@@ -17,7 +17,7 @@ function alertsLabel(repo) {
|
|
|
17
17
|
export function describeRepo(view) {
|
|
18
18
|
const { repo, activeOperation } = view;
|
|
19
19
|
const lines = [
|
|
20
|
-
`- ${repo.id} (default branch ${repo.defaultBranch})`,
|
|
20
|
+
`- ${repo.id} (analysed branch ${repo.branch}${repo.branch === repo.defaultBranch ? ", the default one" : `; default branch ${repo.defaultBranch}`})`,
|
|
21
21
|
` Open Dependabot alerts: ${alertsLabel(repo)}${repo.syncedAt ? ` · synced ${repo.syncedAt}` : " · not synced yet"}`,
|
|
22
22
|
];
|
|
23
23
|
if (repo.syncError)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQ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VQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bg:#0c0e14;--panel:#0f1118;--surface:#13161f;--surface-raised:#151923;--surface-current:#171b2b;--border:#20242f;--border-strong:#2a2f3d;--divider:#1c2029;--text:#eceef3;--text-strong:#dfe2ea;--text-soft:#c9cedb;--muted:#9aa1b1;--faint:#646b7b;--idle:#3a4050;--accent:#5b6cf5;--accent-hover:#6878ff;--accent-soft:#8b97ff;--brand-bg:#1f2540;--ok:#3fb950;--danger:#f0625a;--warning:#e3a33b;--info:#6aa5ff;--critical-bg:#2a1517;--high-bg:#2a2010;--medium-bg:#142033;--low-bg:#1a1d26;--font-sans:"Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono Variable", "JetBrains Mono", ui-monospace, Consolas, monospace;--topbar-height:60px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:var(--font-sans);color:var(--text);-webkit-font-smoothing:antialiased;font-size:14px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg)}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:none;padding:0}button:disabled{cursor:default}h1,h2,p,ul{margin:0}.mono,code,pre{font-family:var(--font-mono);font-variant-ligatures:none}code{color:var(--accent-soft);font-size:12px}.spacer{flex:1}.muted{color:var(--muted)}.error-text{color:var(--danger)}.text-ok{color:var(--ok)}.text-warning{color:var(--warning)}.pre{white-space:pre-wrap;word-break:break-word}.link{color:var(--accent-soft)}.link:hover{color:var(--accent-hover);text-decoration:underline}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.app{flex-direction:column;height:100%;display:flex}.topbar{height:var(--topbar-height);background:var(--panel);border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:12px;padding:0 32px;display:flex}.brand{color:var(--text);align-items:center;gap:12px;font-size:14px;font-weight:500;display:flex}.brand-mark{background:var(--brand-bg);width:28px;height:28px;color:var(--accent-soft);border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.main{flex:1;overflow:auto}.page{width:880px;max-width:calc(100% - 32px);margin:0 auto;padding:32px 0 64px}.page-title{color:var(--text);margin-bottom:18px;font-size:22px;font-weight:600}.page-head{align-items:flex-start;gap:12px;margin-bottom:30px;display:flex}.page-head .page-title{margin-bottom:8px}.page-head-text{flex:1;min-width:0}.back{color:var(--muted);margin-top:5px;display:inline-flex}.back:hover{color:var(--text)}.subtitle{color:var(--faint);font-size:12px}.page-actions{align-items:center;gap:12px;display:flex}.section-label{color:var(--muted);margin-bottom:12px;font-size:13px}.button{white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:36px;padding:0 16px;font-size:13px;display:inline-flex}.button-primary{background:var(--accent);color:#fff;font-weight:600}.button-primary:hover:not(:disabled){background:var(--accent-hover)}.button-secondary{background:var(--surface);border:1px solid var(--border-strong);color:var(--text-soft)}.button-secondary:hover:not(:disabled){border-color:var(--idle);color:var(--text)}.button-ghost{color:var(--muted);padding:0 8px}.button-ghost:hover,.button-ghost.is-active{color:var(--text)}.button:disabled{opacity:.55}.icon-button{color:var(--muted);display:inline-flex}.icon-button:hover{color:var(--text)}.danger-link{color:var(--danger);align-items:center;gap:8px;font-size:13px;display:inline-flex}.panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden}.empty{color:var(--muted);flex-direction:column;align-items:center;gap:16px;padding:40px 20px;display:flex}.row{border-top:1px solid var(--divider);align-items:center;gap:20px;min-height:56px;padding:0 20px;display:flex}.row:first-child{border-top:none}.row:hover{background:var(--surface-raised)}.row-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.row-chevron{color:var(--faint);flex-shrink:0}.status{white-space:nowrap;align-items:center;gap:6px;font-size:13px;display:inline-flex}.status-busy{color:var(--accent-soft)}.status-error{color:var(--danger)}.status-muted{color:var(--faint)}.pill{white-space:nowrap;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;height:24px;padding:0 12px;font-size:12px;display:inline-flex}.pill-wide{width:76px;padding:0}.pill-critical{background:var(--critical-bg);color:var(--danger)}.pill-high{background:var(--high-bg);color:var(--warning)}.pill-medium{background:var(--medium-bg);color:var(--info)}.pill-low{background:var(--low-bg);color:var(--muted)}.alert-package{text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;width:150px;font-size:13px;overflow:hidden}.alert-summary{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px;overflow:hidden}.banner{border-radius:10px;align-items:flex-start;gap:10px;margin-bottom:18px;padding:12px 14px;font-size:13px;line-height:1.5;display:flex}.banner svg{flex-shrink:0;margin-top:2px}.banner-error{background:var(--critical-bg);color:var(--text-soft);border:1px solid #5a2629}.steps{margin-bottom:18px}.step{border-top:1px solid var(--divider)}.step:first-child{border-top:none}.step-current{background:var(--surface-current)}.step-line{align-items:center;gap:16px;min-height:48px;padding:0 20px;display:flex}.step-icon{flex-shrink:0}.step-done .step-icon{color:var(--ok)}.step-running .step-icon{color:var(--accent-soft)}.step-failed .step-icon{color:var(--danger)}.step-pending .step-icon,.step-skipped .step-icon{color:var(--idle)}.step-current .step-icon{color:var(--accent-soft)}.step-current .step-icon.text-warning{color:var(--warning)}.step-label{color:var(--text-soft);flex:1}.step-pending .step-label,.step-skipped .step-label{color:var(--faint)}.step-current .step-label{color:var(--text);font-weight:500}.step-result{color:var(--faint);font-size:13px}.step-body{padding:0 20px 18px 52px;font-size:13px}.step-actions{gap:12px;margin-top:16px;display:flex}.candidates{color:var(--warning);margin-top:8px;padding:0;font-size:13px;line-height:1.7;list-style:none}.hint{color:var(--faint);margin-top:10px;font-size:12px}.hint .link{font-size:12px}.changes{background:var(--panel);border:1px solid var(--border);border-radius:8px;max-height:240px;margin-top:10px;padding:10px 14px;font-size:12px;line-height:1.7;list-style:none;overflow:auto}.log{background:var(--panel);border:1px solid var(--border);max-height:360px;color:var(--text-soft);white-space:pre-wrap;word-break:break-word;border-radius:10px;margin:0;padding:14px 16px;font-size:12px;line-height:1.6;overflow:auto}.log-time{color:var(--faint)}.input{background:var(--surface);border:1px solid var(--border-strong);width:100%;height:40px;color:var(--text-strong);font:inherit;border-radius:8px;outline:none;padding:0 12px;font-size:13px}.input.mono{font-family:var(--font-mono)}.step-body .input{background:var(--panel);height:36px}.step-body .commit-input{width:600px;max-width:100%}.input:focus{border-color:var(--accent)}.suggestions{background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;margin-top:8px;padding:4px;list-style:none}.suggestion{height:36px;color:var(--text-soft);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;border-radius:6px;align-items:center;padding:0 12px;font-size:13px;display:flex;overflow:hidden}.suggestion.is-active{background:var(--brand-bg);color:var(--text)}.field-hint,.field-error{color:var(--faint);margin-top:12px;font-size:12px}.field-error{color:var(--danger)}.veil{z-index:40;background:#05060a99;position:fixed;inset:0}.modal{background:var(--panel);border:1px solid var(--border-strong);border-radius:12px;width:480px;max-width:calc(100% - 32px);padding:24px;position:absolute;top:110px;left:50%;transform:translate(-50%)}.modal-title{margin-bottom:18px;font-size:16px;font-weight:600}.modal-actions{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.drawer{background:var(--panel);border-left:1px solid var(--border);flex-direction:column;width:420px;max-width:100%;padding:24px;display:flex;position:absolute;top:0;bottom:0;right:0}.drawer-head{justify-content:space-between;align-items:center;display:flex}.drawer-title{font-size:16px;font-weight:600}.drawer-subtitle{color:var(--faint);margin-top:6px;font-size:12px}.rights{flex:1;margin-top:28px}.right{border-bottom:1px solid var(--divider);justify-content:space-between;align-items:center;gap:16px;padding:12px 0;display:flex}.right:last-child{border-bottom:none}.right-label{font-size:14px}.right-description{color:var(--faint);margin-top:4px;font-size:12px}.toggle{background:var(--border-strong);border-radius:10px;flex-shrink:0;width:36px;height:20px;transition:background .15s;position:relative}.toggle-knob{background:var(--muted);border-radius:50%;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px}.toggle.is-on{background:var(--accent)}.toggle.is-on .toggle-knob{background:#fff;left:18px}.notice{z-index:50;background:var(--surface-raised);border:1px solid var(--border-strong);max-width:460px;color:var(--text-soft);border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:12.5px;line-height:1.5;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 12px 32px #00000073}.notice svg{flex-shrink:0;margin-top:2px}.notice-info svg:first-child{color:var(--accent-soft)}.notice-error{border-color:#5a2629}.notice-error svg:first-child{color:var(--danger)}.notice-text{flex:1}.notice-close{color:var(--faint)}.notice-close:hover{color:var(--text)}@media (width<=700px){.topbar{padding:0 16px}.page-head{flex-wrap:wrap}.alert-package{width:110px}.alert-summary{display:none}}
|
|
1
|
+
@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4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YX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bg:#0c0e14;--panel:#0f1118;--surface:#13161f;--surface-raised:#151923;--surface-current:#171b2b;--border:#20242f;--border-strong:#2a2f3d;--divider:#1c2029;--text:#eceef3;--text-strong:#dfe2ea;--text-soft:#c9cedb;--muted:#9aa1b1;--faint:#646b7b;--idle:#3a4050;--accent:#5b6cf5;--accent-hover:#6878ff;--accent-soft:#8b97ff;--brand-bg:#1f2540;--ok:#3fb950;--danger:#f0625a;--warning:#e3a33b;--info:#6aa5ff;--critical-bg:#2a1517;--high-bg:#2a2010;--medium-bg:#142033;--low-bg:#1a1d26;--font-sans:"Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono Variable", "JetBrains Mono", ui-monospace, Consolas, monospace;--topbar-height:60px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:var(--font-sans);color:var(--text);-webkit-font-smoothing:antialiased;font-size:14px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg)}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:none;padding:0}button:disabled{cursor:default}h1,h2,p,ul{margin:0}.mono,code,pre{font-family:var(--font-mono);font-variant-ligatures:none}code{color:var(--accent-soft);font-size:12px}.spacer{flex:1}.muted{color:var(--muted)}.error-text{color:var(--danger)}.text-ok{color:var(--ok)}.text-warning{color:var(--warning)}.pre{white-space:pre-wrap;word-break:break-word}.link{color:var(--accent-soft)}.link:hover{color:var(--accent-hover);text-decoration:underline}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.app{flex-direction:column;height:100%;display:flex}.topbar{height:var(--topbar-height);background:var(--panel);border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:12px;padding:0 32px;display:flex}.brand{color:var(--text);align-items:center;gap:12px;font-size:14px;font-weight:500;display:flex}.brand-mark{background:var(--brand-bg);width:28px;height:28px;color:var(--accent-soft);border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.main{flex:1;overflow:auto}.page{width:880px;max-width:calc(100% - 32px);margin:0 auto;padding:32px 0 64px}.page-title{color:var(--text);margin-bottom:18px;font-size:22px;font-weight:600}.page-head{align-items:flex-start;gap:12px;margin-bottom:30px;display:flex}.page-head .page-title{margin-bottom:8px}.page-head-text{flex:1;min-width:0}.back{color:var(--muted);margin-top:5px;display:inline-flex}.back:hover{color:var(--text)}.subtitle{color:var(--faint);font-size:12px}.page-actions{align-items:center;gap:12px;display:flex}.section-label{color:var(--muted);margin-bottom:12px;font-size:13px}.branch-selector{vertical-align:middle;display:inline-block;position:relative}.branch-chip{background:var(--surface);border:1px solid var(--border-strong);height:26px;color:var(--text-strong);border-radius:6px;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:inline-flex}.branch-chip svg:first-child{color:var(--muted)}.branch-chip:hover,.branch-chip[aria-expanded=true]{border-color:var(--idle)}.branch-chevron{color:var(--faint)}.branch-menu{z-index:30;background:var(--surface-raised);border:1px solid var(--border-strong);border-radius:10px;width:280px;padding:8px 6px 6px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 12px 32px #00000073}.branch-search.input{background:var(--panel);width:calc(100% - 4px);height:32px;margin:0 2px 6px;font-size:12px}.branch-options{max-height:272px;padding:0;list-style:none;overflow:auto}.branch-option{height:34px;color:var(--text-soft);cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:0 14px;font-size:12px;display:flex}.branch-option.is-active{background:var(--brand-bg);color:var(--text)}.branch-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.branch-default{color:var(--faint);font-size:11px}.branch-check{color:var(--accent-soft);flex-shrink:0}.branch-note{color:var(--faint);padding:8px 14px;font-size:12px}.button{white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:36px;padding:0 16px;font-size:13px;display:inline-flex}.button-primary{background:var(--accent);color:#fff;font-weight:600}.button-primary:hover:not(:disabled){background:var(--accent-hover)}.button-secondary{background:var(--surface);border:1px solid var(--border-strong);color:var(--text-soft)}.button-secondary:hover:not(:disabled){border-color:var(--idle);color:var(--text)}.button-ghost{color:var(--muted);padding:0 8px}.button-ghost:hover,.button-ghost.is-active{color:var(--text)}.button:disabled{opacity:.55}.icon-button{color:var(--muted);display:inline-flex}.icon-button:hover{color:var(--text)}.danger-link{color:var(--danger);align-items:center;gap:8px;font-size:13px;display:inline-flex}.panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden}.empty{color:var(--muted);flex-direction:column;align-items:center;gap:16px;padding:40px 20px;display:flex}.row{border-top:1px solid var(--divider);align-items:center;gap:20px;min-height:56px;padding:0 20px;display:flex}.row:first-child{border-top:none}.row:hover{background:var(--surface-raised)}.row-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.row-chevron{color:var(--faint);flex-shrink:0}.status{white-space:nowrap;align-items:center;gap:6px;font-size:13px;display:inline-flex}.status-busy{color:var(--accent-soft)}.status-error{color:var(--danger)}.status-muted{color:var(--faint)}.pill{white-space:nowrap;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;height:24px;padding:0 12px;font-size:12px;display:inline-flex}.pill-wide{width:76px;padding:0}.pill-critical{background:var(--critical-bg);color:var(--danger)}.pill-high{background:var(--high-bg);color:var(--warning)}.pill-medium{background:var(--medium-bg);color:var(--info)}.pill-low{background:var(--low-bg);color:var(--muted)}.alert-package{text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;width:150px;font-size:13px;overflow:hidden}.alert-summary{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px;overflow:hidden}.banner{border-radius:10px;align-items:flex-start;gap:10px;margin-bottom:18px;padding:12px 14px;font-size:13px;line-height:1.5;display:flex}.banner svg{flex-shrink:0;margin-top:2px}.banner-error{background:var(--critical-bg);color:var(--text-soft);border:1px solid #5a2629}.steps{margin-bottom:18px}.step{border-top:1px solid var(--divider)}.step:first-child{border-top:none}.step-current{background:var(--surface-current)}.step-line{align-items:center;gap:16px;min-height:48px;padding:0 20px;display:flex}.step-icon{flex-shrink:0}.step-done .step-icon{color:var(--ok)}.step-running .step-icon{color:var(--accent-soft)}.step-failed .step-icon{color:var(--danger)}.step-pending .step-icon,.step-skipped .step-icon{color:var(--idle)}.step-current .step-icon{color:var(--accent-soft)}.step-current .step-icon.text-warning{color:var(--warning)}.step-label{color:var(--text-soft);flex:1}.step-pending .step-label,.step-skipped .step-label{color:var(--faint)}.step-current .step-label{color:var(--text);font-weight:500}.step-result{color:var(--faint);font-size:13px}.unfixable-toggle{color:var(--warning);font-size:13px}.unfixable-toggle:hover{text-decoration:underline}.step-body{padding:0 20px 18px 52px;font-size:13px}.step-actions{gap:12px;margin-top:16px;display:flex}.candidates{color:var(--warning);margin-top:8px;padding:0;font-size:13px;line-height:1.7;list-style:none}.hint{color:var(--faint);margin-top:10px;font-size:12px}.hint .link{font-size:12px}.changes{background:var(--panel);border:1px solid var(--border);border-radius:8px;max-height:240px;margin-top:10px;padding:10px 14px;font-size:12px;line-height:1.7;list-style:none;overflow:auto}.log{background:var(--panel);border:1px solid var(--border);max-height:360px;color:var(--text-soft);white-space:pre-wrap;word-break:break-word;border-radius:10px;margin:0;padding:14px 16px;font-size:12px;line-height:1.6;overflow:auto}.log-time{color:var(--faint)}.input{background:var(--surface);border:1px solid var(--border-strong);width:100%;height:40px;color:var(--text-strong);font:inherit;border-radius:8px;outline:none;padding:0 12px;font-size:13px}.input.mono{font-family:var(--font-mono)}.step-body .input{background:var(--panel);height:36px}.step-body .commit-input{width:600px;max-width:100%}.input:focus{border-color:var(--accent)}.suggestions{background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;margin-top:8px;padding:4px;list-style:none}.suggestion{height:36px;color:var(--text-soft);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;border-radius:6px;align-items:center;padding:0 12px;font-size:13px;display:flex;overflow:hidden}.suggestion.is-active{background:var(--brand-bg);color:var(--text)}.field-hint,.field-error{color:var(--faint);margin-top:12px;font-size:12px}.field-error{color:var(--danger)}.veil{z-index:40;background:#05060a99;position:fixed;inset:0}.modal{background:var(--panel);border:1px solid var(--border-strong);border-radius:12px;width:480px;max-width:calc(100% - 32px);padding:24px;position:absolute;top:110px;left:50%;transform:translate(-50%)}.modal-title{margin-bottom:18px;font-size:16px;font-weight:600}.modal-actions{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.drawer{background:var(--panel);border-left:1px solid var(--border);flex-direction:column;width:420px;max-width:100%;padding:24px;display:flex;position:absolute;top:0;bottom:0;right:0}.drawer-head{justify-content:space-between;align-items:center;display:flex}.drawer-title{font-size:16px;font-weight:600}.drawer-subtitle{color:var(--faint);margin-top:6px;font-size:12px}.rights{flex:1;margin-top:28px}.right{border-bottom:1px solid var(--divider);justify-content:space-between;align-items:center;gap:16px;padding:12px 0;display:flex}.right:last-child{border-bottom:none}.right-label{font-size:14px}.right-description{color:var(--faint);margin-top:4px;font-size:12px}.toggle{background:var(--border-strong);border-radius:10px;flex-shrink:0;width:36px;height:20px;transition:background .15s;position:relative}.toggle-knob{background:var(--muted);border-radius:50%;width:16px;height:16px;transition:left .15s;position:absolute;top:2px;left:2px}.toggle.is-on{background:var(--accent)}.toggle.is-on .toggle-knob{background:#fff;left:18px}.notice{z-index:50;background:var(--surface-raised);border:1px solid var(--border-strong);max-width:460px;color:var(--text-soft);border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:12.5px;line-height:1.5;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 12px 32px #00000073}.notice svg{flex-shrink:0;margin-top:2px}.notice-info svg:first-child{color:var(--accent-soft)}.notice-error{border-color:#5a2629}.notice-error svg:first-child{color:var(--danger)}.notice-text{flex:1}.notice-close{color:var(--faint)}.notice-close:hover{color:var(--text)}@media (width<=700px){.topbar{padding:0 16px}.page-head{flex-wrap:wrap}.alert-package{width:110px}.alert-summary{display:none}}
|