@imenam/mcp-dependabot-tracker 1.0.8 → 1.0.9
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 +11 -8
- 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 +5 -1
- package/dist/shared/schemas/model.schema.js +4 -1
- package/dist/src/core/operations.d.ts +3 -2
- package/dist/src/core/operations.js +13 -4
- package/dist/src/core/repos.d.ts +9 -3
- package/dist/src/core/repos.js +24 -6
- package/dist/src/core/store.d.ts +2 -0
- package/dist/src/core/store.js +9 -1
- package/dist/src/gui-worker.js +2 -0
- package/dist/src/index.js +8 -3
- package/dist/src/tools/tools.d.ts +1 -1
- package/dist/src/tools/tools.js +2 -2
- package/gui/dist/assets/{index-U8DEkNi4.css → index-BdMhGHUf.css} +1 -1
- package/gui/dist/assets/index-CIIsKFR9.js +64 -0
- package/gui/dist/index.html +2 -2
- package/package.json +1 -1
- package/gui/dist/assets/index-D_wlwOtv.js +0 -64
package/README.md
CHANGED
|
@@ -121,13 +121,13 @@ Cinq outils, en anglais. Le résultat d'une opération se termine par le lien ve
|
|
|
121
121
|
|
|
122
122
|
| Outil | Droit | Effet |
|
|
123
123
|
|---|---|---|
|
|
124
|
-
| `list_repositories` | — | Dépôts suivis, tous ou ceux d'une catégorie (`category`, son nom) : catégorie, alertes Dependabot ouvertes par gravité (hors celles que l'utilisateur a corrigées à la main, comptées à part), paquets sans version corrigée au dernier audit, dernier audit sans vulnérabilité qui contredit les alertes, vulnérabilités trouvées par le dernier audit de la branche par défaut quand Dependabot ne signale rien, date de la dernière lecture (et son erreur), droits de l'agent, pull requests du tracker pas encore mergées, opération en cours. |
|
|
124
|
+
| `list_repositories` | — | Dépôts suivis non dépréciés, tous ou ceux d'une catégorie (`category`, son nom) : catégorie, alertes Dependabot ouvertes par gravité (hors celles que l'utilisateur a corrigées à la main, comptées à part), paquets sans version corrigée au dernier audit, dernier audit sans vulnérabilité qui contredit les alertes, vulnérabilités trouvées par le dernier audit de la branche par défaut quand Dependabot ne signale rien, date de la dernière lecture (et son erreur), droits de l'agent, pull requests du tracker pas encore mergées, 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, marque « corrigée à la main » de l'utilisateur, 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
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
|
-
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.
|
|
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 dépôt déprécié est refusé par tous les outils, jusqu'à ce que l'utilisateur le rétablisse. Un champ inconnu fait échouer l'appel. Les outils d'opération attendent la fin de l'opération.
|
|
131
131
|
|
|
132
132
|
---
|
|
133
133
|
|
|
@@ -139,7 +139,7 @@ La **branche analysée** se choisit par dépôt dans la GUI ; c'est la branche p
|
|
|
139
139
|
|
|
140
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é.
|
|
141
141
|
2. **npm audit** — `npm audit --json` dans chaque projet.
|
|
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.
|
|
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. Les commandes npm du tracker reçoivent `npm_config_allow_remote=all` : avec `--package-lock-only`, npm 12 refuse sinon les archives des paquets à `bundleDependencies` comme `@tailwindcss/oxide-wasm32-wasi` ([npm/cli#9800](https://github.com/npm/cli/issues/9800)). Ce réglage ne vaut que pour ces commandes, pas pour la configuration npm de la machine.
|
|
143
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.
|
|
144
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.
|
|
145
145
|
|
|
@@ -159,11 +159,13 @@ Depuis la GUI, l'opération s'arrête aux étapes 4 et 5 pour la décision de l'
|
|
|
159
159
|
|
|
160
160
|
Thème sombre, une information par ligne, une action principale par écran.
|
|
161
161
|
|
|
162
|
-
- **Accueil (`#/`, `#/c/<catégorie>`)** — à gauche, la barre des catégories : « Tous mes projets », puis chaque catégorie, chacune avec le nombre d'alertes ouvertes de ses dépôts, coloré selon la plus grave (aucune pastille sans alerte), précédé du nombre de pull requests du tracker en attente (aucune pastille sans pull request). « Nouvelle catégorie » ouvre un champ en place (Entrée crée, Échap annule) ; au survol d'une catégorie, « … » propose de la renommer ou de la supprimer (un second clic confirme ; ses dépôts restent suivis, sans catégorie). Un dépôt appartient à une catégorie au plus.
|
|
163
|
-
À droite, les dépôts de la catégorie choisie, du plus exposé au moins exposé (gravité la plus haute, puis nombre de vulnérabilités). L'interrupteur « Vulnérables seulement » ne garde que les dépôts réellement vulnérables : des paquets sans version corrigée au dernier audit, des alertes non corrigées à la main que le dernier audit ne contredit pas (« Audit OK » et « Corrigé à la main » sont donc cachés), ou des vulnérabilités trouvées par l'audit alors que Dependabot ne signale rien ; le navigateur retient sa position. En bout de ligne, une seule information : le nombre d'alertes coloré selon la gravité la plus haute, « Correction en cours », « Audit en cours », « Synchronisation impossible » (l'erreur en infobulle) ou « À jour ». Quand le dernier audit (de l'utilisateur ou de l'agent) n'a trouvé aucune vulnérabilité alors que Dependabot signale encore des alertes, la ligne affiche « Audit OK le <jour> à <heure> » et estompe la pastille des alertes : Dependabot n'a pas encore repassé. La mention ne vaut que pour un audit de la branche par défaut, la seule que Dependabot analyse ; elle disparaît dès qu'un audit plus récent trouve une vulnérabilité, que Dependabot n'a plus d'alerte, ou qu'il en émet une après l'audit. À l'inverse, quand Dependabot ne signale aucune alerte mais que le dernier audit de la branche par défaut a trouvé des vulnérabilités, la ligne affiche « ⚠ Audit du <jour> à <heure> » et une pastille « N vulnérabilités » colorée selon la plus grave : Dependabot n'a pas encore repassé. Ces vulnérabilités comptent dans la barre des catégories comme les alertes. « ⚠ N sans correctif », devant la pastille, compte les paquets pour lesquels le dernier audit n'a trouvé aucune version corrigée publiée : ils sont à mettre à jour à la main. Les alertes marquées corrigées à la main ne comptent plus, ni dans la pastille, ni dans la barre des catégories ; quand elles le sont toutes, la ligne affiche « Corrigé à la main » et estompe la pastille.
|
|
162
|
+
- **Accueil (`#/`, `#/c/<catégorie>`)** — à gauche, la barre des catégories : « Tous mes projets », puis chaque catégorie, chacune avec le nombre d'alertes ouvertes de ses dépôts, coloré selon la plus grave (aucune pastille sans alerte), précédé du nombre de pull requests du tracker en attente (aucune pastille sans pull request). « Nouvelle catégorie » ouvre un champ en place (Entrée crée, Échap annule) ; au survol d'une catégorie, « … » propose de la renommer ou de la supprimer (un second clic confirme ; ses dépôts restent suivis, sans catégorie). Un dépôt appartient à une catégorie au plus. En bas de la barre, « Dépréciés » ouvre l'onglet des dépôts dépréciés, avec leur nombre.
|
|
163
|
+
À droite, les dépôts non dépréciés de la catégorie choisie, du plus exposé au moins exposé (gravité la plus haute, puis nombre de vulnérabilités). L'interrupteur « Vulnérables seulement » ne garde que les dépôts réellement vulnérables : des paquets sans version corrigée au dernier audit, des alertes non corrigées à la main que le dernier audit ne contredit pas (« Audit OK » et « Corrigé à la main » sont donc cachés), ou des vulnérabilités trouvées par l'audit alors que Dependabot ne signale rien ; le navigateur retient sa position. En bout de ligne, une seule information : le nombre d'alertes coloré selon la gravité la plus haute, « Correction en cours », « Audit en cours », « Synchronisation impossible » (l'erreur en infobulle) ou « À jour ». Quand le dernier audit (de l'utilisateur ou de l'agent) n'a trouvé aucune vulnérabilité alors que Dependabot signale encore des alertes, la ligne affiche « Audit OK le <jour> à <heure> » et estompe la pastille des alertes : Dependabot n'a pas encore repassé. La mention ne vaut que pour un audit de la branche par défaut, la seule que Dependabot analyse ; elle disparaît dès qu'un audit plus récent trouve une vulnérabilité, que Dependabot n'a plus d'alerte, ou qu'il en émet une après l'audit. À l'inverse, quand Dependabot ne signale aucune alerte mais que le dernier audit de la branche par défaut a trouvé des vulnérabilités, la ligne affiche « ⚠ Audit du <jour> à <heure> » et une pastille « N vulnérabilités » colorée selon la plus grave : Dependabot n'a pas encore repassé. Ces vulnérabilités comptent dans la barre des catégories comme les alertes. « ⚠ N sans correctif », devant la pastille, compte les paquets pour lesquels le dernier audit n'a trouvé aucune version corrigée publiée : ils sont à mettre à jour à la main. Les alertes marquées corrigées à la main ne comptent plus, ni dans la pastille, ni dans la barre des catégories ; quand elles le sont toutes, la ligne affiche « Corrigé à la main » et estompe la pastille.
|
|
164
|
+
Chaque ligne porte, avant le chevron, un bouton discret (icône archive) mis en relief au survol : il marque le dépôt **déprécié** (refusé pendant une opération). Un dépôt déprécié n'est plus synchronisé ni audité (ni par la relecture des 10 minutes, ni par « Synchroniser maintenant » et « Auditer tout », ni par l'agent), ne compte dans aucune pastille et quitte sa catégorie à l'affichage tout en la gardant.
|
|
164
165
|
« Ajouter un dépôt » ouvre une fenêtre avec un champ de recherche et la catégorie. 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 ↓ parcourent, Entrée ou un clic reportent le dépôt dans le champ, Échap referme la liste, puis la fenêtre. La catégorie part de celle affichée. « Ajouter » valide ; sans suggestion, Entrée aussi. La saisie peut être `propriétaire/dépôt` ou un lien GitHub. Un nouveau dépôt n'accorde que l'audit à l'agent.
|
|
165
166
|
« PR en attente » ne garde que les dépôts où une pull request du tracker attend d'être mergée ; combiné à « Vulnérables seulement », les deux conditions s'appliquent. Le navigateur retient sa position. Sur la ligne, « PR #42 en attente » ouvre la pull request sur GitHub, « 3 PR en attente » la liste des pull requests du dépôt.
|
|
166
167
|
« Synchroniser maintenant », à côté, relit tout de suite les alertes et les pull requests de tous les dépôts, sans attendre la relecture des 10 minutes ; l'icône tourne jusqu'à la fin. « Auditer tout » audite la branche par défaut de tous les dépôts (voir plus haut) : le bouton affiche la progression (« Audit 4/12… »), chaque dépôt audité affiche « Audit en cours », et un message final donne le nombre de dépôts audités, laissés de côté et en échec (avec leurs noms).
|
|
168
|
+
- **Dépréciés (`#/deprecated`)** — les dépôts dépréciés, du plus récent au plus ancien, avec la date de dépréciation. « Rétablir », sur chaque ligne, remet le dépôt dans sa catégorie et relit aussitôt ses alertes. Le chevron ouvre l'écran du dépôt, où « Corriger » est désactivé.
|
|
167
169
|
- **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), sélecteur de la catégorie (« Sans catégorie » ou l'une des catégories), 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. Une alerte dont le paquet n'a aucune version corrigée publiée porte « ⚠ sans correctif ». Au survol d'une alerte, « Corrigée à la main » la range dans la section « Corrigées à la main », avec la date du marquage ; « Rétablir » la remet à traiter. Dependabot continue souvent de signaler une alerte corrigée à la main (un paquet installé hors du registre npm, par exemple) : la marque tient tant que l'alerte reste ouverte, et tombe à la lecture suivante si Dependabot émet une nouvelle alerte sur le même paquet. « 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).
|
|
168
170
|
- **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.
|
|
169
171
|
|
|
@@ -181,11 +183,12 @@ Deux processus, selon le standard de l'écosystème (`@imenam/mcp-gui-interface`
|
|
|
181
183
|
| Route | Effet |
|
|
182
184
|
|---|---|
|
|
183
185
|
| `GET /api/config` | Version, répertoire des données, présence du token. |
|
|
184
|
-
| `GET /api/repos`, `POST /api/repos` | Dépôts suivis (avec catégorie, opération en cours et dernière opération) et catégories ; ajout d'un dépôt (`{ repository, categoryId? }`). |
|
|
185
|
-
| `POST /api/sync` | Relit tout de suite les alertes et les pull requests de chaque dépôt suivi
|
|
186
|
+
| `GET /api/repos`, `POST /api/repos` | Dépôts suivis, dépréciés compris (avec catégorie, opération en cours et dernière opération) et catégories ; ajout d'un dépôt (`{ repository, categoryId? }`). |
|
|
187
|
+
| `POST /api/sync` | Relit tout de suite les alertes et les pull requests de chaque dépôt suivi non déprécié, en parallèle ; renvoie les dépôts et les catégories. |
|
|
186
188
|
| `GET /api/audit-all`, `POST /api/audit-all` | État de la dernière série « Auditer tout » (`null` si aucune depuis le démarrage) : en cours ou non, dépôts traités sur le total, laissés de côté, en échec avec la raison ; lancement d'une série (`409` si une série est en cours). |
|
|
187
189
|
| `GET /api/github/repos` | Dépôts accessibles au token (`/user/repos`) et pas encore suivis, pour les suggestions d'ajout. |
|
|
188
190
|
| `GET` / `DELETE /api/repos/:propriétaire/:nom` | Dépôt ; retrait. |
|
|
191
|
+
| `PUT` / `DELETE /api/repos/:propriétaire/:nom/deprecated` | Marque le dépôt déprécié (`409` pendant une opération) ; le rétablit et relit ses alertes. |
|
|
189
192
|
| `PUT /api/repos/:propriétaire/:nom/rights` | Droits de l'agent. |
|
|
190
193
|
| `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). |
|
|
191
194
|
| `PUT` / `DELETE /api/repos/:propriétaire/:nom/alerts/:numéro/handled` | Marque une alerte ouverte corrigée à la main ; retire la marque. |
|
|
@@ -200,7 +203,7 @@ Erreurs : `400` requête invalide, `404` introuvable, `409` conflit (opération
|
|
|
200
203
|
|
|
201
204
|
### Persistance
|
|
202
205
|
|
|
203
|
-
`<données>/repos.json` pour les catégories et les dépôts (catégorie, droits, alertes, alertes corrigées à la main, dernière lecture) et `<données>/operations/<id>.json` pour chaque opération ; les 20 plus récentes sont conservées par dépôt. Plusieurs instances du serveur (une par session d'agent) partagent le répertoire : les écritures sont atomiques et passent par le verrou `<données>/data.lock`. Une opération lancée par une instance se poursuit, s'annule ou se décide depuis la GUI d'une autre.
|
|
206
|
+
`<données>/repos.json` pour les catégories et les dépôts (catégorie, droits, alertes, alertes corrigées à la main, dernière lecture, date de dépréciation) et `<données>/operations/<id>.json` pour chaque opération ; les 20 plus récentes sont conservées par dépôt. Plusieurs instances du serveur (une par session d'agent) partagent le répertoire : les écritures sont atomiques et passent par le verrou `<données>/data.lock`. Une opération lancée par une instance se poursuit, s'annule ou se décide depuis la GUI d'une autre.
|
|
204
207
|
|
|
205
208
|
---
|
|
206
209
|
|
|
@@ -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", "SYNC_REPOS", "GET_AUDIT_ALL", "START_AUDIT_ALL", "LIST_ADDABLE_REPOS", "GET_REPO", "ADD_REPO", "REMOVE_REPO", "SET_RIGHTS", "LIST_BRANCHES", "SET_BRANCH", "SET_CATEGORY", "MARK_ALERT_HANDLED", "UNMARK_ALERT_HANDLED", "LIST_CATEGORIES", "CREATE_CATEGORY", "RENAME_CATEGORY", "DELETE_CATEGORY", "START_FIX", "GET_OPERATION", "DECIDE_FORCE", "PUSH_OPERATION", "CANCEL_OPERATION"];
|
|
25
|
+
export declare const GUI_REQUEST_TYPES: readonly ["GET_CONFIG", "LIST_REPOS", "SYNC_REPOS", "GET_AUDIT_ALL", "START_AUDIT_ALL", "LIST_ADDABLE_REPOS", "GET_REPO", "ADD_REPO", "REMOVE_REPO", "DEPRECATE_REPO", "RESTORE_REPO", "SET_RIGHTS", "LIST_BRANCHES", "SET_BRANCH", "SET_CATEGORY", "MARK_ALERT_HANDLED", "UNMARK_ALERT_HANDLED", "LIST_CATEGORIES", "CREATE_CATEGORY", "RENAME_CATEGORY", "DELETE_CATEGORY", "START_FIX", "GET_OPERATION", "DECIDE_FORCE", "PUSH_OPERATION", "CANCEL_OPERATION"];
|
|
26
26
|
export type GuiRequestType = (typeof GUI_REQUEST_TYPES)[number];
|
|
@@ -64,7 +64,9 @@ export type Category = z.infer<typeof CategorySchema>;
|
|
|
64
64
|
* la branche que les opérations clonent et vers laquelle la pull request est ouverte ;
|
|
65
65
|
* `categoryId` est sa catégorie, null s'il n'est rangé dans aucune ;
|
|
66
66
|
* `handledAlerts` les alertes qu'il a marquées corrigées à la main ;
|
|
67
|
-
* `pullRequests` les pull requests du tracker encore ouvertes à la dernière lecture
|
|
67
|
+
* `pullRequests` les pull requests du tracker encore ouvertes à la dernière lecture ;
|
|
68
|
+
* `deprecatedAt` la date à laquelle il a été marqué déprécié, null sinon : un
|
|
69
|
+
* dépôt déprécié n'est plus synchronisé ni audité.
|
|
68
70
|
*/
|
|
69
71
|
export declare const RepoSchema: z.ZodObject<{
|
|
70
72
|
id: z.ZodString;
|
|
@@ -109,6 +111,7 @@ export declare const RepoSchema: z.ZodObject<{
|
|
|
109
111
|
}, z.core.$strip>>;
|
|
110
112
|
syncedAt: z.ZodNullable<z.ZodString>;
|
|
111
113
|
syncError: z.ZodNullable<z.ZodString>;
|
|
114
|
+
deprecatedAt: z.ZodNullable<z.ZodString>;
|
|
112
115
|
}, z.core.$strip>;
|
|
113
116
|
export type Repo = z.infer<typeof RepoSchema>;
|
|
114
117
|
export declare const ReposFileSchema: z.ZodObject<{
|
|
@@ -159,6 +162,7 @@ export declare const ReposFileSchema: z.ZodObject<{
|
|
|
159
162
|
}, z.core.$strip>>;
|
|
160
163
|
syncedAt: z.ZodNullable<z.ZodString>;
|
|
161
164
|
syncError: z.ZodNullable<z.ZodString>;
|
|
165
|
+
deprecatedAt: z.ZodNullable<z.ZodString>;
|
|
162
166
|
}, z.core.$strip>>;
|
|
163
167
|
}, z.core.$strip>;
|
|
164
168
|
export type ReposFile = z.infer<typeof ReposFileSchema>;
|
|
@@ -51,7 +51,9 @@ export const CategorySchema = z.object({
|
|
|
51
51
|
* la branche que les opérations clonent et vers laquelle la pull request est ouverte ;
|
|
52
52
|
* `categoryId` est sa catégorie, null s'il n'est rangé dans aucune ;
|
|
53
53
|
* `handledAlerts` les alertes qu'il a marquées corrigées à la main ;
|
|
54
|
-
* `pullRequests` les pull requests du tracker encore ouvertes à la dernière lecture
|
|
54
|
+
* `pullRequests` les pull requests du tracker encore ouvertes à la dernière lecture ;
|
|
55
|
+
* `deprecatedAt` la date à laquelle il a été marqué déprécié, null sinon : un
|
|
56
|
+
* dépôt déprécié n'est plus synchronisé ni audité.
|
|
55
57
|
*/
|
|
56
58
|
export const RepoSchema = z.object({
|
|
57
59
|
id: z.string(),
|
|
@@ -67,6 +69,7 @@ export const RepoSchema = z.object({
|
|
|
67
69
|
pullRequests: z.array(PullRequestSchema),
|
|
68
70
|
syncedAt: z.string().nullable(),
|
|
69
71
|
syncError: z.string().nullable(),
|
|
72
|
+
deprecatedAt: z.string().nullable(),
|
|
70
73
|
});
|
|
71
74
|
export const ReposFileSchema = z.object({ categories: z.array(CategorySchema), repos: z.array(RepoSchema) });
|
|
72
75
|
/** `audit` : clone et `npm audit` seulement ; `fix` : jusqu'aux corrections, à la branche et à la PR. */
|
|
@@ -24,12 +24,13 @@ export declare function isTrackerBranch(branch: string): boolean;
|
|
|
24
24
|
/**
|
|
25
25
|
* Lance une correction depuis la GUI : clone, audit et `npm audit fix` s'exécutent
|
|
26
26
|
* en arrière-plan, puis l'opération attend la décision sur `--force` ou le push.
|
|
27
|
+
* Refusé sur un dépôt déprécié.
|
|
27
28
|
*/
|
|
28
29
|
export declare function startUserFix(ctx: OperationContext, repoId: string): Operation;
|
|
29
30
|
/**
|
|
30
31
|
* Audit de la branche par défaut, celle que Dependabot analyse, lancé par
|
|
31
32
|
* l'utilisateur et attendu jusqu'à sa fin. Refusé si une opération est en
|
|
32
|
-
* cours sur le dépôt
|
|
33
|
+
* cours sur le dépôt, ou s'il est déprécié.
|
|
33
34
|
*/
|
|
34
35
|
export declare function runDefaultBranchAudit(ctx: OperationContext, repoId: string): Promise<Operation>;
|
|
35
36
|
/** Applique ou passe `npm audit fix --force` sur une opération qui attend cette décision. */
|
|
@@ -45,6 +46,6 @@ export declare function cancelOperation(ctx: OperationContext, id: string): Oper
|
|
|
45
46
|
/**
|
|
46
47
|
* Opération menée par l'agent d'un bout à l'autre, attendue jusqu'à sa fin :
|
|
47
48
|
* `audit` s'arrête après `npm audit` ; `fix` enchaîne `npm audit fix`, puis
|
|
48
|
-
* `--force` et le push selon `plan`.
|
|
49
|
+
* `--force` et le push selon `plan`. Refusé sur un dépôt déprécié.
|
|
49
50
|
*/
|
|
50
51
|
export declare function runAgentOperation(ctx: OperationContext, repoId: string, kind: OperationKind, plan: AgentPlan): Promise<Operation>;
|
|
@@ -6,7 +6,7 @@ import { CommandAbortedError, runCommand, tail } from "./commands.js";
|
|
|
6
6
|
import { ConflictError, TrackerError } from "./errors.js";
|
|
7
7
|
import { GitHubClient } from "./github.js";
|
|
8
8
|
import { diffLockfiles, forceCandidates, parseAuditReport, parseLockfile, parseNpmJson, projectLabel, } from "./npm-audit.js";
|
|
9
|
-
import { isActive } from "./store.js";
|
|
9
|
+
import { assertNotDeprecated, isActive } from "./store.js";
|
|
10
10
|
/** Intervalle de lecture de la demande d'annulation pendant une étape. */
|
|
11
11
|
const CANCEL_POLL_MS = 500;
|
|
12
12
|
const MAX_LOG_ENTRIES = 300;
|
|
@@ -39,7 +39,12 @@ function gitAuthEnv(config) {
|
|
|
39
39
|
GIT_CONFIG_VALUE_0: `AUTHORIZATION: basic ${basic}`,
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Environnement des commandes npm. `allow_remote` autorise le téléchargement des
|
|
44
|
+
* archives de paquets à `bundleDependencies` (ex. `@tailwindcss/oxide-wasm32-wasi`),
|
|
45
|
+
* que npm 12 classe en dépendances distantes avec `--package-lock-only`.
|
|
46
|
+
*/
|
|
47
|
+
const NPM_ENV = { npm_config_update_notifier: "false", npm_config_fund: "false", npm_config_allow_remote: "all" };
|
|
43
48
|
/** Sous-commande git d'une liste d'arguments, après les options `-c clé=valeur`. */
|
|
44
49
|
function subcommand(args) {
|
|
45
50
|
let index = 0;
|
|
@@ -361,10 +366,12 @@ function inBackground(ctx, id, run) {
|
|
|
361
366
|
/**
|
|
362
367
|
* Lance une correction depuis la GUI : clone, audit et `npm audit fix` s'exécutent
|
|
363
368
|
* en arrière-plan, puis l'opération attend la décision sur `--force` ou le push.
|
|
369
|
+
* Refusé sur un dépôt déprécié.
|
|
364
370
|
*/
|
|
365
371
|
export function startUserFix(ctx, repoId) {
|
|
366
372
|
ctx.githubConfig();
|
|
367
373
|
const repo = ctx.store.getRepo(repoId);
|
|
374
|
+
assertNotDeprecated(repo);
|
|
368
375
|
const operation = ctx.store.createOperation(newOperation(repo, "fix", "user"));
|
|
369
376
|
inBackground(ctx, operation.id, execute(ctx, operation.id, async (runner) => {
|
|
370
377
|
await cloneStep(runner);
|
|
@@ -384,11 +391,12 @@ export function startUserFix(ctx, repoId) {
|
|
|
384
391
|
/**
|
|
385
392
|
* Audit de la branche par défaut, celle que Dependabot analyse, lancé par
|
|
386
393
|
* l'utilisateur et attendu jusqu'à sa fin. Refusé si une opération est en
|
|
387
|
-
* cours sur le dépôt
|
|
394
|
+
* cours sur le dépôt, ou s'il est déprécié.
|
|
388
395
|
*/
|
|
389
396
|
export async function runDefaultBranchAudit(ctx, repoId) {
|
|
390
397
|
ctx.githubConfig();
|
|
391
398
|
const repo = ctx.store.getRepo(repoId);
|
|
399
|
+
assertNotDeprecated(repo);
|
|
392
400
|
const operation = ctx.store.createOperation({ ...newOperation(repo, "audit", "user"), baseBranch: repo.defaultBranch });
|
|
393
401
|
return execute(ctx, operation.id, async (runner) => {
|
|
394
402
|
await cloneStep(runner);
|
|
@@ -442,11 +450,12 @@ export function cancelOperation(ctx, id) {
|
|
|
442
450
|
/**
|
|
443
451
|
* Opération menée par l'agent d'un bout à l'autre, attendue jusqu'à sa fin :
|
|
444
452
|
* `audit` s'arrête après `npm audit` ; `fix` enchaîne `npm audit fix`, puis
|
|
445
|
-
* `--force` et le push selon `plan`.
|
|
453
|
+
* `--force` et le push selon `plan`. Refusé sur un dépôt déprécié.
|
|
446
454
|
*/
|
|
447
455
|
export async function runAgentOperation(ctx, repoId, kind, plan) {
|
|
448
456
|
ctx.githubConfig();
|
|
449
457
|
const repo = ctx.store.getRepo(repoId);
|
|
458
|
+
assertNotDeprecated(repo);
|
|
450
459
|
const operation = ctx.store.createOperation({ ...newOperation(repo, kind, "agent"), commitMessage: plan.commitMessage });
|
|
451
460
|
return execute(ctx, operation.id, async (runner) => {
|
|
452
461
|
await cloneStep(runner);
|
package/dist/src/core/repos.d.ts
CHANGED
|
@@ -55,11 +55,17 @@ export declare function listRepoViews(store: Store): RepoView[];
|
|
|
55
55
|
/**
|
|
56
56
|
* Relit les alertes Dependabot ouvertes du dépôt et ses pull requests ouvertes
|
|
57
57
|
* par le tracker ; un échec est enregistré dans `syncError`, données précédentes
|
|
58
|
-
* conservées.
|
|
58
|
+
* conservées. Refusé sur un dépôt déprécié.
|
|
59
59
|
*/
|
|
60
60
|
export declare function syncRepository(store: Store, config: GitHubConfig, repoId: string): Promise<Repo>;
|
|
61
|
-
/**
|
|
61
|
+
/** Dépôts suivis qui ne sont pas dépréciés. */
|
|
62
|
+
export declare function activeRepos(store: Store): Repo[];
|
|
63
|
+
/** Relit tout de suite, en parallèle, les alertes et les pull requests de chaque dépôt suivi non déprécié. */
|
|
62
64
|
export declare function syncAllRepositories(store: Store, config: GitHubConfig): Promise<void>;
|
|
65
|
+
/** Marque le dépôt déprécié ; sans effet s'il l'est déjà, refusé pendant une opération en cours. */
|
|
66
|
+
export declare function deprecateRepository(store: Store, repoId: string): Repo;
|
|
67
|
+
/** Retire la marque « déprécié », puis relit aussitôt les alertes du dépôt ; il retrouve sa catégorie. */
|
|
68
|
+
export declare function restoreRepository(store: Store, config: GitHubConfig, repoId: string): Promise<Repo>;
|
|
63
69
|
/** Suit un nouveau dépôt, rangé dans `categoryId`, avec l'audit pour seul droit de l'agent, puis lit ses alertes. */
|
|
64
70
|
export declare function addRepository(store: Store, config: GitHubConfig, input: string, categoryId: string | null): Promise<Repo>;
|
|
65
71
|
/** Dépôts accessibles au token qui ne sont pas encore suivis, proposés à l'ajout. */
|
|
@@ -75,5 +81,5 @@ export declare function markAlertHandled(store: Store, repoId: string, number: n
|
|
|
75
81
|
/** Retire la marque « corrigée à la main » d'une alerte. */
|
|
76
82
|
export declare function unmarkAlertHandled(store: Store, repoId: string, number: number): Repo;
|
|
77
83
|
export declare function setRights(store: Store, repoId: string, rights: Rights): Repo;
|
|
78
|
-
/** Dépôts jamais synchronisés, ou synchronisés il y a plus de `maxAgeMs`. */
|
|
84
|
+
/** Dépôts non dépréciés jamais synchronisés, ou synchronisés il y a plus de `maxAgeMs`. */
|
|
79
85
|
export declare function staleRepos(store: Store, maxAgeMs: number, at?: number): Repo[];
|
package/dist/src/core/repos.js
CHANGED
|
@@ -4,7 +4,7 @@ import { ConflictError, NotFoundError } from "./errors.js";
|
|
|
4
4
|
import { GitHubClient } from "./github.js";
|
|
5
5
|
import { isTrackerBranch } from "./operations.js";
|
|
6
6
|
import { parseRepoRef } from "./repo-ref.js";
|
|
7
|
-
import { isActive } from "./store.js";
|
|
7
|
+
import { assertNotDeprecated, isActive } from "./store.js";
|
|
8
8
|
/** Ancienneté au-delà de laquelle les alertes d'un dépôt sont relues sur GitHub. */
|
|
9
9
|
export const SYNC_INTERVAL_MS = 10 * 60_000;
|
|
10
10
|
function severityRank(severity) {
|
|
@@ -123,10 +123,11 @@ export function listRepoViews(store) {
|
|
|
123
123
|
/**
|
|
124
124
|
* Relit les alertes Dependabot ouvertes du dépôt et ses pull requests ouvertes
|
|
125
125
|
* par le tracker ; un échec est enregistré dans `syncError`, données précédentes
|
|
126
|
-
* conservées.
|
|
126
|
+
* conservées. Refusé sur un dépôt déprécié.
|
|
127
127
|
*/
|
|
128
128
|
export async function syncRepository(store, config, repoId) {
|
|
129
129
|
const repo = store.getRepo(repoId);
|
|
130
|
+
assertNotDeprecated(repo);
|
|
130
131
|
const github = new GitHubClient(config);
|
|
131
132
|
try {
|
|
132
133
|
const [alerts, pulls] = await Promise.all([github.listOpenAlerts(repo.owner, repo.name), github.listOpenPullRequests(repo.owner, repo.name)]);
|
|
@@ -144,9 +145,25 @@ export async function syncRepository(store, config, repoId) {
|
|
|
144
145
|
return store.updateRepo(repo.id, (current) => ({ ...current, syncedAt: new Date().toISOString(), syncError: message }));
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
|
-
/**
|
|
148
|
+
/** Dépôts suivis qui ne sont pas dépréciés. */
|
|
149
|
+
export function activeRepos(store) {
|
|
150
|
+
return store.listRepos().filter((repo) => repo.deprecatedAt === null);
|
|
151
|
+
}
|
|
152
|
+
/** Relit tout de suite, en parallèle, les alertes et les pull requests de chaque dépôt suivi non déprécié. */
|
|
148
153
|
export async function syncAllRepositories(store, config) {
|
|
149
|
-
await Promise.all(store
|
|
154
|
+
await Promise.all(activeRepos(store).map((repo) => syncRepository(store, config, repo.id)));
|
|
155
|
+
}
|
|
156
|
+
/** Marque le dépôt déprécié ; sans effet s'il l'est déjà, refusé pendant une opération en cours. */
|
|
157
|
+
export function deprecateRepository(store, repoId) {
|
|
158
|
+
const repo = store.getRepo(repoId);
|
|
159
|
+
if (store.activeOperation(repo.id))
|
|
160
|
+
throw new ConflictError(`An operation is in progress on ${repo.id}: wait for it to finish or cancel it before deprecating the repository.`);
|
|
161
|
+
return store.updateRepo(repo.id, (current) => (current.deprecatedAt === null ? { ...current, deprecatedAt: new Date().toISOString() } : current));
|
|
162
|
+
}
|
|
163
|
+
/** Retire la marque « déprécié », puis relit aussitôt les alertes du dépôt ; il retrouve sa catégorie. */
|
|
164
|
+
export async function restoreRepository(store, config, repoId) {
|
|
165
|
+
const repo = store.updateRepo(repoId, (current) => ({ ...current, deprecatedAt: null }));
|
|
166
|
+
return syncRepository(store, config, repo.id);
|
|
150
167
|
}
|
|
151
168
|
/** Suit un nouveau dépôt, rangé dans `categoryId`, avec l'audit pour seul droit de l'agent, puis lit ses alertes. */
|
|
152
169
|
export async function addRepository(store, config, input, categoryId) {
|
|
@@ -170,6 +187,7 @@ export async function addRepository(store, config, input, categoryId) {
|
|
|
170
187
|
pullRequests: [],
|
|
171
188
|
syncedAt: null,
|
|
172
189
|
syncError: null,
|
|
190
|
+
deprecatedAt: null,
|
|
173
191
|
});
|
|
174
192
|
return syncRepository(store, config, remote.fullName);
|
|
175
193
|
}
|
|
@@ -215,7 +233,7 @@ export function unmarkAlertHandled(store, repoId, number) {
|
|
|
215
233
|
export function setRights(store, repoId, rights) {
|
|
216
234
|
return store.updateRepo(repoId, (repo) => ({ ...repo, rights }));
|
|
217
235
|
}
|
|
218
|
-
/** Dépôts jamais synchronisés, ou synchronisés il y a plus de `maxAgeMs`. */
|
|
236
|
+
/** Dépôts non dépréciés jamais synchronisés, ou synchronisés il y a plus de `maxAgeMs`. */
|
|
219
237
|
export function staleRepos(store, maxAgeMs, at = Date.now()) {
|
|
220
|
-
return store
|
|
238
|
+
return activeRepos(store).filter((repo) => repo.syncedAt === null || at - Date.parse(repo.syncedAt) > maxAgeMs);
|
|
221
239
|
}
|
package/dist/src/core/store.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { type Category, type Operation, type Repo } from "../../shared/schemas/m
|
|
|
2
2
|
/** Vrai si le processus `pid` existe encore. */
|
|
3
3
|
export declare function processAlive(pid: number): boolean;
|
|
4
4
|
export declare function isActive(operation: Operation): boolean;
|
|
5
|
+
/** Refuse toute lecture GitHub ou opération sur un dépôt déprécié. */
|
|
6
|
+
export declare function assertNotDeprecated(repo: Repo): void;
|
|
5
7
|
/**
|
|
6
8
|
* Persistance : `<dataDir>/repos.json` pour les dépôts suivis et
|
|
7
9
|
* `<dataDir>/operations/<id>.json` pour chaque opération. Plusieurs processus
|
package/dist/src/core/store.js
CHANGED
|
@@ -40,7 +40,8 @@ export function processAlive(pid) {
|
|
|
40
40
|
* choisie analyse sa branche par défaut, un dépôt sans catégorie n'est rangé
|
|
41
41
|
* dans aucune, un fichier sans catégories n'en a aucune, un dépôt sans alerte
|
|
42
42
|
* corrigée à la main n'en a aucune, un dépôt sans pull request en attente n'en
|
|
43
|
-
* a aucune jusqu'à sa lecture suivante
|
|
43
|
+
* a aucune jusqu'à sa lecture suivante, un dépôt sans date de dépréciation
|
|
44
|
+
* n'est pas déprécié. Une alerte sans date
|
|
44
45
|
* d'émission prend celle de la lecture qui l'a rapportée ; la lecture suivante
|
|
45
46
|
* la remplace par la vraie.
|
|
46
47
|
*/
|
|
@@ -56,6 +57,7 @@ function normalizeReposFile(file) {
|
|
|
56
57
|
categoryId: repo?.categoryId ?? null,
|
|
57
58
|
handledAlerts: repo?.handledAlerts ?? [],
|
|
58
59
|
pullRequests: repo?.pullRequests ?? [],
|
|
60
|
+
deprecatedAt: repo?.deprecatedAt ?? null,
|
|
59
61
|
alerts: Array.isArray(repo?.alerts)
|
|
60
62
|
? repo.alerts.map((alert) => ({ ...alert, createdAt: alert?.createdAt ?? repo.syncedAt ?? repo.addedAt }))
|
|
61
63
|
: repo?.alerts,
|
|
@@ -89,6 +91,12 @@ function assertNameFree(file, name, exceptId) {
|
|
|
89
91
|
export function isActive(operation) {
|
|
90
92
|
return ACTIVE_STATUSES.includes(operation.status);
|
|
91
93
|
}
|
|
94
|
+
/** Refuse toute lecture GitHub ou opération sur un dépôt déprécié. */
|
|
95
|
+
export function assertNotDeprecated(repo) {
|
|
96
|
+
if (repo.deprecatedAt !== null) {
|
|
97
|
+
throw new ConflictError(`Repository ${repo.id} is deprecated: it is neither synced nor audited. Only the user can restore it, in the GUI.`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
92
100
|
/**
|
|
93
101
|
* Persistance : `<dataDir>/repos.json` pour les dépôts suivis et
|
|
94
102
|
* `<dataDir>/operations/<id>.json` pour chaque opération. Plusieurs processus
|
package/dist/src/gui-worker.js
CHANGED
|
@@ -201,6 +201,8 @@ app.post("/api/audit-all", (c) => forward(c, "START_AUDIT_ALL"));
|
|
|
201
201
|
app.get("/api/github/repos", (c) => forward(c, "LIST_ADDABLE_REPOS"));
|
|
202
202
|
app.get("/api/repos/:owner/:name", (c) => forward(c, "GET_REPO", { repoId: repoId(c) }));
|
|
203
203
|
app.delete("/api/repos/:owner/:name", (c) => forward(c, "REMOVE_REPO", { repoId: repoId(c) }));
|
|
204
|
+
app.put("/api/repos/:owner/:name/deprecated", (c) => forward(c, "DEPRECATE_REPO", { repoId: repoId(c) }));
|
|
205
|
+
app.delete("/api/repos/:owner/:name/deprecated", (c) => forward(c, "RESTORE_REPO", { repoId: repoId(c) }));
|
|
204
206
|
app.put("/api/repos/:owner/:name/rights", async (c) => {
|
|
205
207
|
const read = await readBody(c, SetRightsBodySchema);
|
|
206
208
|
if ("response" in read)
|
package/dist/src/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { ConflictError, NotFoundError, TrackerError } from "./core/errors.js";
|
|
|
15
15
|
import { Store } from "./core/store.js";
|
|
16
16
|
import { cancelOperation, decideForce, pushOperation, runDefaultBranchAudit, startUserFix } from "./core/operations.js";
|
|
17
17
|
import { AuditAll } from "./core/audit-all.js";
|
|
18
|
-
import { SYNC_INTERVAL_MS, addRepository, listAddableRepositories, listRepoBranches, listRepoViews, markAlertHandled, setBranch, setCategory, repoView, setRights, staleRepos, syncAllRepositories, syncRepository, unmarkAlertHandled } from "./core/repos.js";
|
|
18
|
+
import { SYNC_INTERVAL_MS, activeRepos, addRepository, deprecateRepository, listAddableRepositories, restoreRepository, listRepoBranches, listRepoViews, markAlertHandled, setBranch, setCategory, repoView, setRights, staleRepos, syncAllRepositories, syncRepository, unmarkAlertHandled } from "./core/repos.js";
|
|
19
19
|
import { GUI_REQUEST_TYPES, IPCMessageSchema } from "../shared/schemas/ipc.schema.js";
|
|
20
20
|
import { AddRepoBodySchema, AlertRequestSchema, CategoryBodySchema, CategoryRequestSchema, ForceBodySchema, OperationRequestSchema, PushBodySchema, RepoRequestSchema, SetBranchBodySchema, SetCategoryBodySchema, SetRightsBodySchema, } from "../shared/schemas/api.schema.js";
|
|
21
21
|
import { errorResult, textResult } from "./tools/types.js";
|
|
@@ -79,6 +79,7 @@ const INSTRUCTIONS = `mcp-dependabot-tracker follows the Dependabot alerts of Gi
|
|
|
79
79
|
|
|
80
80
|
Concepts:
|
|
81
81
|
- A **tracked repository** is a GitHub repository the user added in the GUI. Its open Dependabot alerts, and the pull requests the tracker opened that are not merged or closed yet, are read from GitHub and refreshed every 10 minutes.
|
|
82
|
+
- A **deprecated repository** is one the user set aside in the GUI: it is neither synced nor audited, list_repositories leaves it out, and every tool refuses it until the user restores it.
|
|
82
83
|
- **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.
|
|
83
84
|
- 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.
|
|
84
85
|
- 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.
|
|
@@ -143,7 +144,7 @@ async function handleGuiRequest(msg) {
|
|
|
143
144
|
case "START_AUDIT_ALL":
|
|
144
145
|
readGitHubConfig();
|
|
145
146
|
store.failOrphanedOperations();
|
|
146
|
-
return { auditAll: auditAll.start(store
|
|
147
|
+
return { auditAll: auditAll.start(activeRepos(store).map((repo) => repo.id)) };
|
|
147
148
|
case "LIST_ADDABLE_REPOS":
|
|
148
149
|
return { repositories: await listAddableRepositories(store, readGitHubConfig()) };
|
|
149
150
|
case "GET_REPO": {
|
|
@@ -157,6 +158,10 @@ async function handleGuiRequest(msg) {
|
|
|
157
158
|
case "REMOVE_REPO":
|
|
158
159
|
store.removeRepo(parseRequest(RepoRequestSchema, msg.data).repoId);
|
|
159
160
|
return { removed: true };
|
|
161
|
+
case "DEPRECATE_REPO":
|
|
162
|
+
return repoView(store, deprecateRepository(store, parseRequest(RepoRequestSchema, msg.data).repoId));
|
|
163
|
+
case "RESTORE_REPO":
|
|
164
|
+
return repoView(store, await restoreRepository(store, readGitHubConfig(), parseRequest(RepoRequestSchema, msg.data).repoId));
|
|
160
165
|
case "SET_RIGHTS": {
|
|
161
166
|
const { repoId } = parseRequest(RepoRequestSchema, msg.data);
|
|
162
167
|
const body = parseRequest(SetRightsBodySchema, msg.data?.body);
|
|
@@ -312,7 +317,7 @@ const REPOSITORY_DOC = "Tracked repository, as owner/name (see list_repositories
|
|
|
312
317
|
const TOOLS = [
|
|
313
318
|
{
|
|
314
319
|
name: "list_repositories",
|
|
315
|
-
description: "List the tracked repositories with their category, 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), the pull requests the tracker opened that are still open, and the operation in progress. Start here.",
|
|
320
|
+
description: "List the tracked repositories that are not deprecated, with their category, 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), the pull requests the tracker opened that are still open, and the operation in progress. Start here.",
|
|
316
321
|
inputSchema: {
|
|
317
322
|
type: "object",
|
|
318
323
|
properties: { category: { type: "string", description: "Only list the repositories of this category, by name (case-insensitive). The user creates the categories in the GUI." } },
|
|
@@ -3,7 +3,7 @@ import type { GitHubConfig } from "../core/config.js";
|
|
|
3
3
|
import { type OperationContext } from "../core/operations.js";
|
|
4
4
|
import type { Store } from "../core/store.js";
|
|
5
5
|
import { type Args, type ToolResult } from "./types.js";
|
|
6
|
-
/** Dépôts suivis, tous ou ceux d'une catégorie désignée par son nom, sans tenir compte de la casse. */
|
|
6
|
+
/** Dépôts suivis non dépréciés, tous ou ceux d'une catégorie désignée par son nom, sans tenir compte de la casse. */
|
|
7
7
|
export declare function listRepositories(store: Store, args: Args): ToolResult;
|
|
8
8
|
/** Relit les alertes sur GitHub avant de les lister. */
|
|
9
9
|
export declare function getAlerts(store: Store, config: GitHubConfig, args: Args): Promise<ToolResult>;
|
package/dist/src/tools/tools.js
CHANGED
|
@@ -16,12 +16,12 @@ function assertAllowed(repo, right) {
|
|
|
16
16
|
throw new TrackerError(`The agent is not allowed to ${RIGHT_LABELS[right]} on ${repo.id}. Only the user can grant this right, in the GUI.`);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
/** Dépôts suivis, tous ou ceux d'une catégorie désignée par son nom, sans tenir compte de la casse. */
|
|
19
|
+
/** Dépôts suivis non dépréciés, tous ou ceux d'une catégorie désignée par son nom, sans tenir compte de la casse. */
|
|
20
20
|
export function listRepositories(store, args) {
|
|
21
21
|
rejectUnknownFields(args, ["category"]);
|
|
22
22
|
const categories = store.listCategories();
|
|
23
23
|
const categoryName = optionalString(args, "category");
|
|
24
|
-
let views = listRepoViews(store);
|
|
24
|
+
let views = listRepoViews(store).filter((view) => view.repo.deprecatedAt === null);
|
|
25
25
|
let scope = "tracked";
|
|
26
26
|
if (categoryName !== undefined) {
|
|
27
27
|
const category = categories.find((candidate) => candidate.name.toLowerCase() === categoryName.trim().toLowerCase());
|
|
@@ -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,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)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}.picker{vertical-align:middle;display:inline-block;position:relative}.picker-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}.picker-chip svg:first-child{color:var(--muted)}.picker-chip:hover,.picker-chip[aria-expanded=true]{border-color:var(--idle)}.picker-chevron{color:var(--faint)}.picker-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}.picker-options{max-height:272px;padding:0;list-style:none;overflow:auto}.picker-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}.picker-option.is-active{background:var(--brand-bg);color:var(--text)}.picker-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.branch-default{color:var(--faint);font-size:11px}.picker-check{color:var(--accent-soft);flex-shrink:0}.picker-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-linked{position:relative}.row-link:after{content:"";position:absolute;inset:0}.pr-note{z-index:1;color:var(--accent-soft);white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;font-size:12px;display:inline-flex;position:relative}.pr-note:hover{color:var(--accent-hover);text-decoration:underline}.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)}.status-clean{color:var(--muted);gap:0;font-size:12px}.status-clean svg{margin-right:6px}.status-clean .pill{margin-left:20px}.unfixable-note{color:var(--warning);white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;font-size:12px;display:inline-flex}.alert-line{border-top:1px solid var(--divider);position:relative}.alert-line:first-child,.alert-line .row{border-top:none}.alert-mark-space{flex-shrink:0;width:164px}.alert-mark.button{height:32px;font-size:12px;display:none;position:absolute;top:12px;right:56px}.alert-line:hover .alert-mark{display:inline-flex}.alert-line:hover .row{background:var(--surface-raised)}.handled-note{align-items:center;gap:6px;font-size:12px;display:flex}.handled-note svg{flex-shrink:0}.restore-link{font-size:12px}.section-label-spaced{margin-top:28px}.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-faded{opacity:.45}.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}}.home{min-height:100%;display:flex}.home .page{min-width:0}.home-head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.home-head .page-title{margin-bottom:0}.filters{align-items:center;gap:24px;display:flex}.filter{color:var(--muted);cursor:pointer;align-items:center;gap:12px;font-size:13px;display:inline-flex}.sidebar{width:264px;min-height:calc(100vh - var(--topbar-height));background:var(--panel);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;align-self:flex-start;gap:4px;padding:24px 12px;display:flex;position:sticky;top:0}.side-row{position:relative}.side-item{width:100%;height:34px;color:var(--text-soft);text-align:left;border-radius:6px;align-items:center;gap:10px;padding:0 12px;font-size:13px;display:flex}.side-item svg{color:var(--muted);flex-shrink:0}.side-item:hover{background:var(--surface-raised)}.side-item.is-active{background:var(--brand-bg);color:var(--text)}.side-item.is-active svg{color:var(--accent-soft)}.side-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.side-count{gap:6px;display:inline-flex}.side-more{width:26px;height:26px;color:var(--text-soft);border-radius:6px;justify-content:center;align-items:center;display:none;position:absolute;top:4px;right:8px}.side-more:hover{background:var(--border-strong)}.side-row:hover .side-more,.side-row.is-open .side-more{display:inline-flex}.side-row:hover .side-count,.side-row.is-open .side-count{visibility:hidden}.side-menu{z-index:30;background:var(--surface-raised);border:1px solid var(--border-strong);border-radius:10px;width:160px;padding:4px;position:absolute;top:0;left:calc(100% + 4px);box-shadow:0 12px 32px #00000073}.side-menu-item{width:100%;height:34px;color:var(--text-soft);border-radius:6px;align-items:center;gap:10px;padding:0 12px;font-size:13px;display:flex}.side-menu-item:hover{background:var(--border)}.side-menu-item.is-danger{color:var(--danger)}.side-divider{background:var(--divider);height:1px;margin:8px 12px}.side-new{color:var(--faint);margin-top:8px}.side-new svg{color:var(--faint)}.side-editing{background:var(--surface);box-shadow:inset 0 0 0 1px var(--accent)}.side-editing:hover{background:var(--surface)}.side-input{min-width:0;font:inherit;color:var(--text);background:0 0;border:none;outline:none;flex:1}.pill-small{border-radius:10px;min-width:32px;height:20px;padding:0 8px;font-size:11px}.pill-pr{background:var(--brand-bg);min-width:28px;color:var(--accent-soft);gap:3px;padding:0 6px}.side-item .pill-pr svg{color:inherit}.side-item.is-active .pill-pr{background:#2a3160}.picker-menu-narrow{width:220px;padding:6px}.picker-menu-narrow .picker-option:hover{background:var(--brand-bg);color:var(--text)}.select-field{align-items:center;margin-top:12px;display:flex;position:relative}.select-field>svg:first-child{color:var(--muted);pointer-events:none;position:absolute;left:12px}.select-field select{appearance:none;background:var(--surface);border:1px solid var(--border-strong);width:100%;height:40px;color:var(--text-strong);font:inherit;cursor:pointer;border-radius:8px;outline:none;padding:0 36px 0 38px;font-size:13px}.select-field select:focus{border-color:var(--accent)}.select-chevron{color:var(--faint);pointer-events:none;position:absolute;right:12px}
|
|
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,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)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}.picker{vertical-align:middle;display:inline-block;position:relative}.picker-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}.picker-chip svg:first-child{color:var(--muted)}.picker-chip:hover,.picker-chip[aria-expanded=true]{border-color:var(--idle)}.picker-chevron{color:var(--faint)}.picker-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}.picker-options{max-height:272px;padding:0;list-style:none;overflow:auto}.picker-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}.picker-option.is-active{background:var(--brand-bg);color:var(--text)}.picker-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.branch-default{color:var(--faint);font-size:11px}.picker-check{color:var(--accent-soft);flex-shrink:0}.picker-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-linked{position:relative}.row-link:after{content:"";position:absolute;inset:0}.pr-note{z-index:1;color:var(--accent-soft);white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;font-size:12px;display:inline-flex;position:relative}.pr-note:hover{color:var(--accent-hover);text-decoration:underline}.row-chevron{color:var(--faint);flex-shrink:0}.row-action{z-index:1;width:28px;height:28px;color:var(--faint);border:1px solid #0000;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;margin-right:-8px;display:inline-flex;position:relative}.row:hover .row-action{background:var(--surface);border-color:var(--border-strong);color:var(--text-soft)}.row .row-action:hover{border-color:var(--idle);color:var(--text)}.row-button.button{z-index:1;flex-shrink:0;height:32px;padding:0 12px;font-size:13px;position:relative}.deprecated-title{color:var(--muted)}.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)}.status-clean{color:var(--muted);gap:0;font-size:12px}.status-clean svg{margin-right:6px}.status-clean .pill{margin-left:20px}.unfixable-note{color:var(--warning);white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;font-size:12px;display:inline-flex}.alert-line{border-top:1px solid var(--divider);position:relative}.alert-line:first-child,.alert-line .row{border-top:none}.alert-mark-space{flex-shrink:0;width:164px}.alert-mark.button{height:32px;font-size:12px;display:none;position:absolute;top:12px;right:56px}.alert-line:hover .alert-mark{display:inline-flex}.alert-line:hover .row{background:var(--surface-raised)}.handled-note{align-items:center;gap:6px;font-size:12px;display:flex}.handled-note svg{flex-shrink:0}.restore-link{font-size:12px}.section-label-spaced{margin-top:28px}.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-faded{opacity:.45}.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}}.home{min-height:100%;display:flex}.home .page{min-width:0}.home-head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.home-head .page-title{margin-bottom:0}.filters{align-items:center;gap:24px;display:flex}.filter{color:var(--muted);cursor:pointer;align-items:center;gap:12px;font-size:13px;display:inline-flex}.sidebar{width:264px;min-height:calc(100vh - var(--topbar-height));background:var(--panel);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;align-self:flex-start;gap:4px;padding:24px 12px;display:flex;position:sticky;top:0}.side-row{position:relative}.side-item{width:100%;height:34px;color:var(--text-soft);text-align:left;border-radius:6px;align-items:center;gap:10px;padding:0 12px;font-size:13px;display:flex}.side-item svg{color:var(--muted);flex-shrink:0}.side-item:hover{background:var(--surface-raised)}.side-item.is-active{background:var(--brand-bg);color:var(--text)}.side-item.is-active svg{color:var(--accent-soft)}.side-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.side-count{gap:6px;display:inline-flex}.side-more{width:26px;height:26px;color:var(--text-soft);border-radius:6px;justify-content:center;align-items:center;display:none;position:absolute;top:4px;right:8px}.side-more:hover{background:var(--border-strong)}.side-row:hover .side-more,.side-row.is-open .side-more{display:inline-flex}.side-row:hover .side-count,.side-row.is-open .side-count{visibility:hidden}.side-menu{z-index:30;background:var(--surface-raised);border:1px solid var(--border-strong);border-radius:10px;width:160px;padding:4px;position:absolute;top:0;left:calc(100% + 4px);box-shadow:0 12px 32px #00000073}.side-menu-item{width:100%;height:34px;color:var(--text-soft);border-radius:6px;align-items:center;gap:10px;padding:0 12px;font-size:13px;display:flex}.side-menu-item:hover{background:var(--border)}.side-menu-item.is-danger{color:var(--danger)}.side-divider{background:var(--divider);height:1px;margin:8px 12px}.side-new{color:var(--faint);margin-top:8px}.side-new svg{color:var(--faint)}.side-editing{background:var(--surface);box-shadow:inset 0 0 0 1px var(--accent)}.side-editing:hover{background:var(--surface)}.side-input{min-width:0;font:inherit;color:var(--text);background:0 0;border:none;outline:none;flex:1}.pill-small{border-radius:10px;min-width:32px;height:20px;padding:0 8px;font-size:11px}.pill-pr{background:var(--brand-bg);min-width:28px;color:var(--accent-soft);gap:3px;padding:0 6px}.side-item .pill-pr svg{color:inherit}.side-item.is-active .pill-pr{background:#2a3160}.pill-neutral{background:var(--surface-raised);min-width:28px;color:var(--muted);padding:0 6px}.side-item.is-active .pill-neutral{color:var(--accent-soft);background:#2a3160}.picker-menu-narrow{width:220px;padding:6px}.picker-menu-narrow .picker-option:hover{background:var(--brand-bg);color:var(--text)}.select-field{align-items:center;margin-top:12px;display:flex;position:relative}.select-field>svg:first-child{color:var(--muted);pointer-events:none;position:absolute;left:12px}.select-field select{appearance:none;background:var(--surface);border:1px solid var(--border-strong);width:100%;height:40px;color:var(--text-strong);font:inherit;cursor:pointer;border-radius:8px;outline:none;padding:0 36px 0 38px;font-size:13px}.select-field select:focus{border-color:var(--accent)}.select-chevron{color:var(--faint);pointer-events:none;position:absolute;right:12px}
|