@imenam/mcp-dependabot-tracker 1.0.26 → 1.0.27
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 +28 -6
- package/dist/shared/schemas/settings.schema.d.ts +36 -1
- package/dist/shared/schemas/settings.schema.js +22 -1
- package/dist/src/core/config.d.ts +6 -2
- package/dist/src/core/config.js +11 -9
- package/dist/src/core/deployments.d.ts +17 -2
- package/dist/src/core/deployments.js +29 -4
- package/dist/src/core/github.d.ts +15 -2
- package/dist/src/core/github.js +21 -4
- package/dist/src/core/settings.d.ts +24 -1
- package/dist/src/core/settings.js +64 -8
- package/dist/src/server/app.d.ts +4 -1
- package/dist/src/server/app.js +8 -8
- package/dist/src/server/serve.js +29 -7
- package/gui/dist/assets/{index-FrRzRTkV.js → index-BhIO2hHa.js} +1 -1
- package/gui/dist/assets/{index-o3l3BAZD.css → index-JLEsoQSQ.css} +1 -1
- package/gui/dist/index.html +2 -2
- package/package.json +1 -1
package/dist/src/server/app.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ import type { Store } from "../core/store.js";
|
|
|
10
10
|
export interface ServerContext {
|
|
11
11
|
store: Store;
|
|
12
12
|
dataDir: string;
|
|
13
|
-
|
|
13
|
+
/** Configuration GitHub, avec le token du tracker relu dans les réglages ; lève une erreur sans token. */
|
|
14
|
+
github: () => GitHubConfig;
|
|
15
|
+
/** Adresse web du serveur GitHub, connue même sans token. */
|
|
16
|
+
githubServerUrl: string;
|
|
14
17
|
operations: OperationContext;
|
|
15
18
|
auditAll: AuditAll;
|
|
16
19
|
/** Serveurs de déploiement, scripts et déploiements des dépôts. */
|
package/dist/src/server/app.js
CHANGED
|
@@ -148,7 +148,7 @@ export function createApp(ctx) {
|
|
|
148
148
|
}
|
|
149
149
|
return { repos: active.filter((view) => view.repo.categoryId === category.id), category };
|
|
150
150
|
}));
|
|
151
|
-
app.post("/api/agent/repos/:owner/:name/sync", (c) => respond(c, async () => repoView(store, await syncRepository(store, github, store.getRepo(repoId(c)).id))));
|
|
151
|
+
app.post("/api/agent/repos/:owner/:name/sync", (c) => respond(c, async () => repoView(store, await syncRepository(store, github(), store.getRepo(repoId(c)).id))));
|
|
152
152
|
app.post("/api/agent/repos/:owner/:name/audits", (c) => withBody(c, ScopeBodySchema, (body) => agentOperation(startAudit(operations, repoId(c), "agent", body.scope))));
|
|
153
153
|
app.post("/api/agent/repos/:owner/:name/fixes", (c) => withBody(c, AgentFixBodySchema, (body) => agentOperation(startFix(operations, repoId(c), "agent", { scope: body.scope, claude: body.claude }))));
|
|
154
154
|
app.get("/api/agent/operations/:id", (c) => respond(c, () => agentOperation(store.getOperation(c.req.param("id")))));
|
|
@@ -165,18 +165,18 @@ export function createApp(ctx) {
|
|
|
165
165
|
return c.json({ error: "Sign in to use the interface." }, 401);
|
|
166
166
|
await next();
|
|
167
167
|
});
|
|
168
|
-
app.get("/api/config", (c) => respond(c, () => ({ version: APP_VERSION, dataDir, githubServerUrl:
|
|
168
|
+
app.get("/api/config", (c) => respond(c, () => ({ version: APP_VERSION, dataDir, githubServerUrl: ctx.githubServerUrl })));
|
|
169
169
|
app.get("/api/repos", (c) => respond(c, reposResponse));
|
|
170
|
-
app.post("/api/repos", (c) => withBody(c, AddRepoBodySchema, async (body) => repoView(store, await addRepository(store, github, body.repository, body.categoryId))));
|
|
170
|
+
app.post("/api/repos", (c) => withBody(c, AddRepoBodySchema, async (body) => repoView(store, await addRepository(store, github(), body.repository, body.categoryId))));
|
|
171
171
|
app.post("/api/sync", (c) => respond(c, async () => {
|
|
172
|
-
await syncAllRepositories(store, github);
|
|
172
|
+
await syncAllRepositories(store, github());
|
|
173
173
|
return reposResponse();
|
|
174
174
|
}));
|
|
175
175
|
app.get("/api/audit-all", (c) => respond(c, () => ({ auditAll: auditAll.status() })));
|
|
176
176
|
app.post("/api/audit-all", (c) => withBody(c, AuditAllBodySchema, ({ scope, target }) => ({
|
|
177
177
|
auditAll: auditAll.start(auditTargetRepos(store, target).map((repo) => repo.id), scope, target),
|
|
178
178
|
})));
|
|
179
|
-
app.get("/api/github/repos", (c) => respond(c, async () => ({ repositories: await listAddableRepositories(store, github) })));
|
|
179
|
+
app.get("/api/github/repos", (c) => respond(c, async () => ({ repositories: await listAddableRepositories(store, github()) })));
|
|
180
180
|
app.get("/api/repos/:owner/:name", (c) => respond(c, () => repoView(store, store.getRepo(repoId(c)))));
|
|
181
181
|
app.delete("/api/repos/:owner/:name", (c) => respond(c, () => {
|
|
182
182
|
const repo = store.getRepo(repoId(c));
|
|
@@ -187,7 +187,7 @@ export function createApp(ctx) {
|
|
|
187
187
|
return { removed: true };
|
|
188
188
|
}));
|
|
189
189
|
app.put("/api/repos/:owner/:name/deprecated", (c) => respond(c, () => repoView(store, deprecateRepository(store, repoId(c)))));
|
|
190
|
-
app.delete("/api/repos/:owner/:name/deprecated", (c) => respond(c, async () => repoView(store, await restoreRepository(store, github, repoId(c)))));
|
|
190
|
+
app.delete("/api/repos/:owner/:name/deprecated", (c) => respond(c, async () => repoView(store, await restoreRepository(store, github(), repoId(c)))));
|
|
191
191
|
app.put("/api/repos/:owner/:name/queued", (c) => respond(c, () => repoView(store, queueRepository(store, repoId(c)))));
|
|
192
192
|
app.delete("/api/repos/:owner/:name/queued", (c) => respond(c, () => repoView(store, unqueueRepository(store, repoId(c)))));
|
|
193
193
|
app.put("/api/repos/:owner/:name/deploy-pending", (c) => respond(c, () => repoView(store, markDeployPending(store, repoId(c)))));
|
|
@@ -202,8 +202,8 @@ export function createApp(ctx) {
|
|
|
202
202
|
startMergeAudit(operations, repo.id, merged);
|
|
203
203
|
return repoView(store, repo);
|
|
204
204
|
}));
|
|
205
|
-
app.get("/api/repos/:owner/:name/branches", (c) => respond(c, async () => ({ branches: await listRepoBranches(store, github, repoId(c)) })));
|
|
206
|
-
app.put("/api/repos/:owner/:name/branch", (c) => withBody(c, SetBranchBodySchema, async (body) => repoView(store, await setBranch(store, github, repoId(c), body.branch))));
|
|
205
|
+
app.get("/api/repos/:owner/:name/branches", (c) => respond(c, async () => ({ branches: await listRepoBranches(store, github(), repoId(c)) })));
|
|
206
|
+
app.put("/api/repos/:owner/:name/branch", (c) => withBody(c, SetBranchBodySchema, async (body) => repoView(store, await setBranch(store, github(), repoId(c), body.branch))));
|
|
207
207
|
app.put("/api/repos/:owner/:name/category", (c) => withBody(c, SetCategoryBodySchema, (body) => repoView(store, setCategory(store, repoId(c), body.categoryId))));
|
|
208
208
|
app.put("/api/repos/:owner/:name/alerts/:number/handled", (c) => respond(c, () => repoView(store, markAlertHandled(store, repoId(c), alertNumber(c)))));
|
|
209
209
|
app.delete("/api/repos/:owner/:name/alerts/:number/handled", (c) => respond(c, () => repoView(store, unmarkAlertHandled(store, repoId(c), alertNumber(c)))));
|
package/dist/src/server/serve.js
CHANGED
|
@@ -7,7 +7,8 @@ import { createLogger, setupLogging } from "@imenam/mcp-gui-interface";
|
|
|
7
7
|
import { AuditAll } from "../core/audit-all.js";
|
|
8
8
|
import { createAuth, listUsers, migrateAuth } from "../core/auth.js";
|
|
9
9
|
import { checkClaudeToken, packagedClaudeCommand } from "../core/claude.js";
|
|
10
|
-
import {
|
|
10
|
+
import { gitHubConfig, readGitHubServers } from "../core/config.js";
|
|
11
|
+
import { GitHubClient } from "../core/github.js";
|
|
11
12
|
import { resolveCloneDir, resolveDataDir } from "../core/data-dir.js";
|
|
12
13
|
import { DeployServerStore } from "../core/deploy-servers.js";
|
|
13
14
|
import { Deployer, DeploymentStore } from "../core/deployments.js";
|
|
@@ -16,7 +17,7 @@ import { runDefaultBranchAudit } from "../core/operations.js";
|
|
|
16
17
|
import { OrganizerClient } from "../core/organizer.js";
|
|
17
18
|
import { refreshReportTask } from "../core/repair.js";
|
|
18
19
|
import { SYNC_INTERVAL_MS, staleRepos, syncRepository } from "../core/repos.js";
|
|
19
|
-
import { encryptStoredTokens, readSettings } from "../core/settings.js";
|
|
20
|
+
import { adoptEnvGitHubToken, deployToken, encryptStoredTokens, githubToken, readSettings } from "../core/settings.js";
|
|
20
21
|
import { readServerConfig } from "../core/server-config.js";
|
|
21
22
|
import { Store } from "../core/store.js";
|
|
22
23
|
import { parseVaultKey } from "../core/vault.js";
|
|
@@ -75,12 +76,10 @@ export async function serve() {
|
|
|
75
76
|
logger.error(`Unhandled rejection: ${reason?.stack ?? reason}`);
|
|
76
77
|
process.exit(1);
|
|
77
78
|
});
|
|
78
|
-
let github;
|
|
79
79
|
let cloneDir;
|
|
80
80
|
let config;
|
|
81
81
|
let vaultKey;
|
|
82
82
|
try {
|
|
83
|
-
github = readGitHubConfig();
|
|
84
83
|
cloneDir = resolveCloneDir(dataDir);
|
|
85
84
|
config = readServerConfig();
|
|
86
85
|
vaultKey = parseVaultKey(process.env.VAULT_KEY);
|
|
@@ -110,15 +109,27 @@ export async function serve() {
|
|
|
110
109
|
logger.error(err.message);
|
|
111
110
|
process.exit(1);
|
|
112
111
|
}
|
|
113
|
-
const
|
|
112
|
+
const githubServers = readGitHubServers();
|
|
113
|
+
/** Configuration GitHub avec le token du tracker, relu dans les réglages à chaque usage. */
|
|
114
|
+
const github = () => gitHubConfig(githubServers, githubToken(readSettings(dataDir, vaultKey)));
|
|
114
115
|
const claude = { command: packagedClaudeCommand(), home: path.join(dataDir, "claude") };
|
|
115
116
|
const settingsChecks = {
|
|
116
117
|
organizer: (connection) => new OrganizerClient(connection).space(),
|
|
117
118
|
claudeToken: (token) => checkClaudeToken(claude, token),
|
|
119
|
+
githubToken: (token) => new GitHubClient({ ...githubServers, token }, "the token").checkToken(),
|
|
118
120
|
};
|
|
121
|
+
const adoption = await adoptEnvGitHubToken(dataDir, vaultKey, process.env.GITHUB_TOKEN, settingsChecks);
|
|
122
|
+
if (adoption.status === "adopted") {
|
|
123
|
+
logger.info("GITHUB_TOKEN is now the GitHub token of the tracker in the settings, encrypted with VAULT_KEY: it can be removed from the environment.");
|
|
124
|
+
if (adoption.warning)
|
|
125
|
+
logger.warn(`GITHUB_TOKEN was taken over, but GitHub did not accept it: ${adoption.warning}`);
|
|
126
|
+
}
|
|
127
|
+
if (adoption.status === "ignored")
|
|
128
|
+
logger.warn("GITHUB_TOKEN is ignored: the GitHub token of the tracker is the one of the settings. Remove the variable from the environment.");
|
|
129
|
+
const deployer = new Deployer(store, deployServers, new DeploymentStore(dataDir), github, (message) => logger.error(message), () => deployToken(readSettings(dataDir, vaultKey)));
|
|
119
130
|
const operations = {
|
|
120
131
|
store,
|
|
121
|
-
githubConfig:
|
|
132
|
+
githubConfig: github,
|
|
122
133
|
cloneDir: () => cloneDir,
|
|
123
134
|
logError: (message) => logger.error(message),
|
|
124
135
|
settings: () => readSettings(dataDir, vaultKey),
|
|
@@ -129,6 +140,7 @@ export async function serve() {
|
|
|
129
140
|
store,
|
|
130
141
|
dataDir,
|
|
131
142
|
github,
|
|
143
|
+
githubServerUrl: githubServers.serverUrl,
|
|
132
144
|
operations,
|
|
133
145
|
auditAll,
|
|
134
146
|
deployer,
|
|
@@ -159,15 +171,25 @@ export async function serve() {
|
|
|
159
171
|
for (const user of users.filter((candidate) => !candidate.twoFactor)) {
|
|
160
172
|
logger.warn(`The account ${user.email} signs in with its password alone: enable two-factor authentication with "mcp-dependabot-tracker user totp ${user.email}".`);
|
|
161
173
|
}
|
|
174
|
+
if (githubToken(readSettings(dataDir, vaultKey)) === null) {
|
|
175
|
+
logger.warn("The GitHub token of the tracker is not set: enter it in the settings of the interface (Réglages › GitHub). Until then, nothing is synced, audited or fixed.");
|
|
176
|
+
}
|
|
162
177
|
let syncing = false;
|
|
163
178
|
/** Relit les alertes des dépôts lus il y a plus de 10 minutes, et le statut de la tâche organizer du dernier rapport de Claude. */
|
|
164
179
|
const syncStaleRepos = async () => {
|
|
165
180
|
if (syncing)
|
|
166
181
|
return;
|
|
182
|
+
let config;
|
|
183
|
+
try {
|
|
184
|
+
config = github();
|
|
185
|
+
}
|
|
186
|
+
catch {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
167
189
|
syncing = true;
|
|
168
190
|
try {
|
|
169
191
|
for (const repo of staleRepos(store, SYNC_INTERVAL_MS)) {
|
|
170
|
-
const synced = await syncRepository(store,
|
|
192
|
+
const synced = await syncRepository(store, config, repo.id);
|
|
171
193
|
if (synced.syncError)
|
|
172
194
|
logger.warn(`Dependabot alerts of ${repo.id} not synced: ${synced.syncError}`);
|
|
173
195
|
await refreshReportTask(store, readSettings(dataDir, vaultKey), repo.id).catch((err) => logger.warn(`Organizer task of ${repo.id} not refreshed: ${err?.message ?? err}`));
|
|
@@ -68,4 +68,4 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
68
68
|
`).map(e=>e.length),1);(0,_.useEffect)(()=>c.current?.focus(),[]);function d(){let e=c.current;e&&s(e.value.slice(0,e.selectionStart).split(`
|
|
69
69
|
`).length)}function f(e){let t=c.current;if(!t)return;let{selectionStart:n,selectionEnd:r}=t,o=i.slice(0,n)+e+i.slice(r);a(o),requestAnimationFrame(()=>{t.focus(),t.selectionStart=t.selectionEnd=n+e.length,d()})}function p(e){e.key===`Tab`&&!e.shiftKey?(e.preventDefault(),f(_d)):e.key===`s`&&(e.ctrlKey||e.metaKey)?(e.preventDefault(),t||n(i)):e.key===`Escape`&&(e.preventDefault(),r())}return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsx)(`p`,{className:`section-label section-label-strong`,children:`Script de déploiement`}),(0,B.jsxs)(`span`,{className:`hint-inline`,children:[`bash · `,l,` `,l>1?`lignes`:`ligne`]})]}),(0,B.jsxs)(`div`,{className:`code-box is-active is-editing`,children:[(0,B.jsx)(vd,{lines:l,active:o}),(0,B.jsx)(`div`,{className:`code-scroll`,children:(0,B.jsxs)(`div`,{className:`code-layer`,style:{width:`calc(${u+2}ch + 32px)`,height:l*gd+32},children:[(0,B.jsx)(`div`,{className:`code-band is-cursor`,style:{top:(o-1)*gd}}),(0,B.jsx)(`pre`,{className:`code-text`,"aria-hidden":`true`,children:(0,B.jsx)(hd,{script:i.endsWith(`
|
|
70
70
|
`)?`${i} `:i})}),(0,B.jsx)(`textarea`,{ref:c,className:`code-input`,value:i,wrap:`off`,spellCheck:!1,autoCapitalize:`off`,autoComplete:`off`,"aria-label":`Script de déploiement`,onChange:e=>{a(e.target.value),d()},onKeyDown:p,onKeyUp:d,onClick:d,onSelect:d})]})})]}),(0,B.jsxs)(`div`,{className:`editor-foot`,children:[(0,B.jsxs)(`div`,{className:`editor-vars`,children:[(0,B.jsx)(`span`,{className:`hint-inline`,children:`Variables`}),rd.map(e=>(0,B.jsxs)(`button`,{type:`button`,className:`var-chip mono`,title:e.description,onClick:()=>f(`$${e.name}`),children:[`$`,e.name]},e.name))]}),(0,B.jsxs)(`div`,{className:`editor-actions`,children:[(0,B.jsx)(`button`,{type:`button`,className:`button button-secondary`,onClick:r,disabled:t,children:`Annuler`}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-primary editor-save`,onClick:()=>n(i),disabled:t,children:[(0,B.jsx)(V,{name:`check`}),`Enregistrer`]})]})]}),(0,B.jsx)(`p`,{className:`hint`,children:`Le script s'exécute avec bash sur le serveur, depuis le dossier personnel de l'utilisateur, l'entrée venant de /dev/null. Tab indente, Ctrl+S enregistre, Échap annule.`})]})}var xd=`.ssh/authorized_keys.d/dependabot-tracker`,Sd=[{step:`form`,label:`Serveur`},{step:`key`,label:`Installation`},{step:`test`,label:`Test`}];function Cd({step:e}){let t=Sd.findIndex(t=>t.step===e);return(0,B.jsx)(`div`,{className:`stepper`,children:Sd.map((e,n)=>(0,B.jsxs)(`span`,{className:`stepper-item`,children:[n>0&&(0,B.jsx)(`span`,{className:`stepper-line`}),(0,B.jsxs)(`span`,{className:`stepper-step${n<t?` is-done`:n===t?` is-active`:``}`,children:[(0,B.jsx)(`span`,{className:`stepper-dot`,children:n<t?(0,B.jsx)(V,{name:`check`,size:12}):n+1}),e.label]})]},e.step))})}function wd({ok:e,title:t,detail:n}){return(0,B.jsxs)(`div`,{className:`check-row`,children:[(0,B.jsx)(V,{name:e?`circle-check`:`triangle-alert`,size:20,className:e?`text-ok`:`text-warning`}),(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`div`,{className:`check-title`,children:t}),(0,B.jsx)(`div`,{className:`check-detail`,children:n})]})]})}function Td({fingerprint:e,cwd:t,keyFile:n}){return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`check-list`,children:[(0,B.jsx)(wd,{ok:!0,title:`Connexion établie`,detail:`empreinte du serveur ${e} enregistrée · shell ouvert dans ${t}`}),n.inDedicatedFile&&(n.allowedFrom&&!n.restrictError?(0,B.jsx)(wd,{ok:!0,title:`Clé limitée à l'adresse du tracker`,detail:`from="${n.allowedFrom}" sur sa ligne : l'adresse vue par le serveur pendant le test`}):(0,B.jsx)(wd,{ok:!1,title:`Clé non limitée à une adresse`,detail:n.restrictError??`Aucune limite d'adresse sur sa ligne.`})),n.inDedicatedFile?(0,B.jsx)(wd,{ok:!0,title:`Fichier dédié en place`,detail:`~/${xd} · ton authorized_keys n'a pas été touché`}):(0,B.jsx)(wd,{ok:!1,title:`Clé hors du fichier dédié`,detail:`Elle n'est pas dans ~/${xd} : la limite d'adresse n'est pas posée. Colle la commande d'installation pour l'activer.`}),n.inAuthorizedKeys&&(0,B.jsx)(wd,{ok:!1,title:`Clé aussi présente dans ~/.ssh/authorized_keys`,detail:`Le tracker ne modifie jamais ce fichier : retires-en cette ligne toi-même, sinon la clé reste valable depuis n'importe quelle adresse.`})]}),n.allowedFrom&&(0,B.jsxs)(`div`,{className:`muted-line`,children:[(0,B.jsx)(V,{name:`info`}),(0,B.jsxs)(`span`,{children:[`Si l'adresse du tracker change, seul son accès est refusé :`,(0,B.jsx)(`br`,{}),`recolle alors la commande d'installation.`]})]})]})}function Ed({icon:e,children:t}){return(0,B.jsxs)(`div`,{className:`does-row`,children:[(0,B.jsx)(V,{name:e}),t]})}async function Dd(e,t){try{await navigator.clipboard.writeText(e),ae.getState().show(`info`,t)}catch(e){T(e)}}function Od({value:e,compact:t=!1}){return t?(0,B.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:()=>void Dd(e,`Clé copiée.`),title:`Copier`,"aria-label":`Copier`,children:(0,B.jsx)(V,{name:`copy`})}):(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary button-copy`,onClick:()=>void Dd(e,`Commande copiée.`),children:[(0,B.jsx)(V,{name:`copy`,size:14}),`Copier`]})}function kd({repoId:e,server:t,step:n,onClose:r,onChanged:i,onWriteScript:a}){let[o,s]=(0,_.useState)(t),[c,l]=(0,_.useState)(t?n:`form`),[u,d]=(0,_.useState)(t?{name:t.server.name,host:t.server.host,port:t.server.port,username:t.server.username}:{name:``,host:``,port:22,username:``}),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(null),[g,v]=(0,_.useState)(!1),[y,b]=(0,_.useState)(null);(0,_.useEffect)(()=>{let e=e=>{e.key===`Escape`&&!f&&r()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[f,r]);async function x(t){t?.preventDefault(),p(!0),h(null);try{let t;o?t=await D.updateDeployServer(o.server.id,u):(t=await D.createDeployServer(u),await D.setRepoDeployServer(e,t.server.id)),s(t),i(),l(`key`)}catch(e){h(e.message)}finally{p(!1)}}async function S(){if(o){p(!0),h(null),b(null),l(`test`);try{let e=await D.testDeployServer(o.server.id);s(e.server),i(),b({fingerprint:e.fingerprint,cwd:e.cwd,keyFile:e.keyFile})}catch(e){h(e.message)}finally{p(!1)}}}let ee=(e,t,n,r=``)=>(0,B.jsxs)(`label`,{className:`wizard-field ${r}`,children:[(0,B.jsx)(`span`,{className:`field-label`,children:t}),(0,B.jsx)(`input`,{className:`input`,value:u[e],placeholder:n,autoFocus:e===`name`,inputMode:e===`port`?`numeric`:void 0,spellCheck:!1,onChange:t=>d({...u,[e]:e===`port`?t.target.value.replace(/\D/g,``):t.target.value})})]}),te,C;return c===`form`?(te=(0,B.jsxs)(`form`,{className:`wizard-form`,onSubmit:e=>void x(e),children:[ee(`name`,`Nom`,`prod-web`,`is-wide`),ee(`host`,`Hôte`,`10.0.0.12`),ee(`port`,`Port`,`22`,`is-port`),ee(`username`,`Utilisateur`,`deploy`,`is-wide`),(0,B.jsx)(`button`,{type:`submit`,hidden:!0})]}),C=(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{type:`button`,className:`button button-secondary button-large`,onClick:o?()=>l(`key`):r,children:o?`Retour`:`Annuler`}),(0,B.jsx)(`button`,{type:`button`,className:`button button-primary button-large`,onClick:()=>void x(),disabled:f,children:o?`Enregistrer`:`Générer la clé`})]})):c===`key`&&o?(te=(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`wizard-summary`,children:[(0,B.jsx)(V,{name:`server`,size:20}),(0,B.jsxs)(`span`,{children:[o.server.name,` · `,o.server.username,`@`,o.server.host,`:`,o.server.port]}),(0,B.jsx)(`button`,{type:`button`,className:`icon-button`,title:`Modifier`,"aria-label":`Modifier le serveur`,onClick:()=>l(`form`),children:(0,B.jsx)(V,{name:`pencil`,size:18})})]}),(0,B.jsxs)(`div`,{className:`wizard-section`,children:[(0,B.jsxs)(`div`,{className:`wizard-section-title`,children:[`Commande d'installation`,(0,B.jsx)(Od,{value:o.installCommand??``})]}),(0,B.jsx)(`div`,{className:`keybox mono`,children:o.installCommand}),(0,B.jsxs)(`div`,{className:`key-caption`,children:[(0,B.jsxs)(`span`,{children:[`Une seule ligne, à coller dans une session ouverte sur le serveur en tant que `,o.server.username,`.`]}),(0,B.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>v(!g),children:g?`Masquer la clé`:`Clé publique seule`})]}),g&&(0,B.jsxs)(`div`,{className:`oneliner mono`,children:[(0,B.jsx)(`span`,{children:o.server.publicKey}),(0,B.jsx)(Od,{value:o.server.publicKey??``,compact:!0})]})]}),(0,B.jsxs)(`div`,{className:`wizard-section`,children:[(0,B.jsx)(`div`,{className:`wizard-section-title`,children:`Ce qu'elle fait`}),(0,B.jsx)(Ed,{icon:`file-key`,children:`Écrit la clé dans authorized_keys.d/dependabot-tracker, limitée par restrict`}),(0,B.jsx)(Ed,{icon:`settings`,children:`Fait lire ce fichier à sshd, en plus de ~/.ssh/authorized_keys (sudo)`}),(0,B.jsx)(Ed,{icon:`shield-check`,children:`Vérifie la configuration avant de recharger sshd, et s'arrête si elle est invalide`})]}),(0,B.jsxs)(`div`,{className:`callout-warn`,children:[(0,B.jsx)(V,{name:`triangle-alert`,size:18}),(0,B.jsxs)(`div`,{children:[`Ton fichier ~/.ssh/authorized_keys n'est pas modifié.`,(0,B.jsx)(`br`,{}),`Garde quand même ta session ouverte jusqu'au test réussi.`]})]}),(0,B.jsxs)(`div`,{className:`muted-line`,children:[(0,B.jsx)(V,{name:`lock`}),`La clé privée reste chiffrée dans le tracker. Elle n'est jamais affichée.`]})]}),C=(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{type:`button`,className:`button button-secondary button-large`,onClick:r,children:`Plus tard`}),(0,B.jsx)(`button`,{type:`button`,className:`button button-primary button-large`,onClick:()=>void S(),disabled:f,children:`Tester la connexion`})]})):(te=f?(0,B.jsxs)(`div`,{className:`muted-line`,children:[(0,B.jsx)(V,{name:`loader-circle`,className:`spin`}),`Connexion à `,o?.server.host,`…`]}):y?(0,B.jsx)(Td,{...y}):(0,B.jsxs)(`div`,{className:`result-ko`,children:[(0,B.jsx)(V,{name:`circle-x`,size:20}),(0,B.jsx)(`div`,{children:m})]}),C=y?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{type:`button`,className:`button button-secondary button-large`,onClick:r,children:`Terminer`}),(0,B.jsx)(`button`,{type:`button`,className:`button button-primary button-large`,onClick:a,children:`Écrire le script`})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{type:`button`,className:`button button-secondary button-large`,onClick:()=>l(`key`),disabled:f,children:`Retour à l'installation`}),(0,B.jsx)(`button`,{type:`button`,className:`button button-primary button-large`,onClick:()=>void S(),disabled:f,children:`Réessayer`})]})),(0,B.jsx)(`div`,{className:`veil`,onMouseDown:e=>e.target===e.currentTarget&&!f&&r(),children:(0,B.jsxs)(`div`,{className:`modal modal-wizard`,role:`dialog`,"aria-label":t?`Serveur ${t.server.name}`:`Connecter un serveur`,children:[(0,B.jsxs)(`div`,{className:`wizard-head`,children:[(0,B.jsx)(`h2`,{className:`wizard-title`,children:t?t.server.name:`Connecter un serveur`}),(0,B.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:r,title:`Fermer`,"aria-label":`Fermer`,children:(0,B.jsx)(V,{name:`x`,size:20})})]}),(0,B.jsx)(Cd,{step:c}),(0,B.jsxs)(`div`,{className:`wizard-body`,children:[te,m&&c===`form`&&(0,B.jsxs)(`div`,{className:`result-ko`,children:[(0,B.jsx)(V,{name:`circle-x`,size:20}),(0,B.jsx)(`div`,{children:m})]})]}),(0,B.jsx)(`div`,{className:`wizard-foot`,children:C})]})})}var Ad=3e3,jd=1e3;function Md(e,t,n=Date.now()){let r=Math.max(0,Math.round(((t?Date.parse(t):n)-Date.parse(e))/1e3));return`${Math.floor(r/60)}:${String(r%60).padStart(2,`0`)}`}function Nd(e){return e?e.slice(0,7):`—`}function Pd(e,t){let n=(0,_.useRef)(null);return(0,_.useEffect)(()=>{if(!e)return;let r=e=>{n.current?.contains(e.target)||t()},i=e=>{e.key===`Escape`&&t()};return document.addEventListener(`mousedown`,r),document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`mousedown`,r),document.removeEventListener(`keydown`,i)}},[e,t]),n}function Fd({currentId:e,onChoose:t,onNew:n}){let r=b(`deploy-servers`,D.listDeployServers,null);return(0,B.jsxs)(B.Fragment,{children:[r.error&&(0,B.jsx)(`p`,{className:`picker-note error-text`,children:r.error}),r.data&&r.data.servers.length>0&&(0,B.jsx)(`ul`,{className:`picker-options`,role:`listbox`,"aria-label":`Serveurs`,children:r.data.servers.map(({server:n})=>(0,B.jsxs)(`li`,{role:`option`,"aria-selected":n.id===e,className:`picker-option server-option`,onMouseDown:e=>{e.preventDefault(),t(n.id)},children:[(0,B.jsx)(V,{name:`server`,size:14}),(0,B.jsxs)(`span`,{className:`picker-name`,children:[n.name,(0,B.jsxs)(`span`,{className:`server-option-detail`,children:[n.username,`@`,n.host,`:`,n.port]})]}),n.id===e&&(0,B.jsx)(V,{name:`check`,size:14,className:`picker-check`})]},n.id))}),(0,B.jsxs)(`button`,{type:`button`,className:`menu-item`,onMouseDown:e=>{e.preventDefault(),n()},children:[(0,B.jsx)(V,{name:`plus`,size:14}),`Nouveau serveur`]})]})}function Id({repoId:e,onChanged:t,onNew:n}){let r=b(`deploy-servers`,D.listDeployServers,null),[i,a]=(0,_.useState)(!1),o=Pd(i,()=>a(!1)),s=r.data?.servers.length??0;async function c(n){a(!1);try{await D.setRepoDeployServer(e,n),t()}catch(e){T(e)}}return(0,B.jsxs)(`div`,{className:`picker`,ref:o,children:[(0,B.jsxs)(`button`,{type:`button`,className:`button button-primary`,onClick:()=>s>0?a(!i):n(),children:[(0,B.jsx)(V,{name:`plug`}),`Connecter un serveur`,s>0&&(0,B.jsx)(V,{name:`chevron-down`,size:14})]}),i&&(0,B.jsx)(`div`,{className:`picker-menu picker-menu-center`,children:(0,B.jsx)(Fd,{currentId:null,onChoose:e=>void c(e),onNew:()=>{a(!1),n()}})})]})}function Ld({repoId:e,onChanged:t,onNew:n}){return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`panel empty deploy-empty`,children:[(0,B.jsx)(`span`,{className:`deploy-empty-icon`,children:(0,B.jsx)(V,{name:`rocket`,size:24})}),(0,B.jsxs)(`div`,{className:`deploy-empty-text`,children:[(0,B.jsx)(`p`,{className:`deploy-empty-title`,children:`Aucun serveur de déploiement`}),(0,B.jsx)(`p`,{children:`Connectez le serveur en SSH, puis écrivez le script shell qui installe ce dépôt.`})]}),(0,B.jsx)(Id,{repoId:e,onChanged:t,onNew:n})]}),(0,B.jsxs)(`p`,{className:`hint`,children:[`Le serveur se connecte exactement comme dans SSH Gate : clé générée par le tracker, commande d'installation à coller, test.`,(0,B.jsx)(`br`,{}),`Un serveur déjà connecté pour un autre dépôt se choisit dans le menu du bouton, sans refaire l'installation.`]})]})}function Rd({repo:e,view:t,deploy:n,starting:r,onDeploy:i,onCancel:a,onWizard:o,onKey:s,onNewServer:c,onChanged:l}){let{server:u}=t,[d,f]=(0,_.useState)(`closed`),p=Pd(d!==`closed`,()=>f(`closed`)),m=n.activeDeployment,h=n.deployments.find(e=>e.status!==`running`)??null,g=u.publicKey!==null,v=g?u.testedAt===null?`Testez la connexion avant de déployer.`:n.script.trim()?e.deprecatedAt?`Dépôt déprécié.`:null:`Écrivez le script avant de déployer.`:`Clé révoquée : installez une nouvelle clé.`;async function y(t){f(`closed`);try{await D.setRepoDeployServer(e.id,t),l()}catch(e){T(e)}}async function b(){f(`closed`);try{let e=await D.installDeployKey(u.id);l(),o(`key`,e)}catch(e){T(e)}}let x=g?h?`dernier déploiement ${ol(h.createdAt)}`:u.testedAt?`testé ${ol(u.testedAt)}`:`connexion à tester`:`clé révoquée`;return(0,B.jsxs)(`div`,{className:`panel deploy-server`,children:[(0,B.jsx)(V,{name:`server`,size:20,className:`deploy-server-icon`}),(0,B.jsxs)(`div`,{className:`deploy-server-text`,children:[(0,B.jsx)(`div`,{className:`deploy-server-name`,children:u.name}),(0,B.jsx)(`div`,{className:`deploy-server-detail`,children:m?`${u.username}@${u.host}:${u.port} · ${m.branch} · ${Nd(m.commit)}`:`${u.username}@${u.host}:${u.port} · ${x}`})]}),m?(0,B.jsxs)(`span`,{className:`status-chip is-running`,children:[(0,B.jsx)(`span`,{className:`status-dot`}),`En cours`]}):g?u.testedAt?(0,B.jsxs)(`span`,{className:`status-chip is-ok`,children:[(0,B.jsx)(`span`,{className:`status-dot`}),`Connecté`]}):(0,B.jsxs)(`button`,{type:`button`,className:`status-chip is-idle`,onClick:()=>o(`key`),children:[(0,B.jsx)(`span`,{className:`status-dot`}),`À tester`]}):(0,B.jsxs)(`button`,{type:`button`,className:`status-chip is-idle`,onClick:()=>void b(),children:[(0,B.jsx)(`span`,{className:`status-dot`}),`Sans clé`]}),m?(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary button-stop`,onClick:()=>a(m),disabled:m.cancelRequested,children:[(0,B.jsx)(V,{name:`square`,size:14}),m.cancelRequested?`Interruption…`:`Interrompre`]}):(0,B.jsxs)(`button`,{type:`button`,className:`button button-queued`,onClick:i,disabled:r||v!==null,title:v??void 0,children:[(0,B.jsx)(V,{name:`rocket`}),`Déployer`]}),(0,B.jsxs)(`div`,{className:`picker`,ref:p,children:[(0,B.jsx)(`button`,{type:`button`,className:`icon-button deploy-server-more`,"aria-label":`Menu du serveur`,title:`Menu du serveur`,onClick:()=>f(d===`closed`?`actions`:`closed`),children:(0,B.jsx)(V,{name:`ellipsis`,size:20})}),d===`actions`&&(0,B.jsxs)(`div`,{className:`picker-menu picker-menu-right`,children:[g?(0,B.jsxs)(`button`,{type:`button`,className:`menu-item`,onClick:()=>(f(`closed`),o(`key`)),children:[(0,B.jsx)(V,{name:`file-key`,size:14}),`Commande d'installation et test`]}):(0,B.jsxs)(`button`,{type:`button`,className:`menu-item`,onClick:()=>void b(),children:[(0,B.jsx)(V,{name:`key-round`,size:14}),`Installer une clé`]}),(0,B.jsxs)(`button`,{type:`button`,className:`menu-item`,onClick:()=>(f(`closed`),o(`form`)),children:[(0,B.jsx)(V,{name:`pencil`,size:14}),`Modifier le serveur`]}),g&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`button`,{type:`button`,className:`menu-item`,onClick:()=>(f(`closed`),s(`rotate`)),disabled:m!==null||u.hostKeyFingerprint===null,title:u.hostKeyFingerprint===null?`Testez la connexion avant de renouveler la clé.`:void 0,children:[(0,B.jsx)(V,{name:`refresh-cw`,size:14}),`Renouveler la clé`]}),(0,B.jsxs)(`button`,{type:`button`,className:`menu-item menu-item-danger`,onClick:()=>(f(`closed`),s(`revoke`)),disabled:m!==null,children:[(0,B.jsx)(V,{name:`key-round`,size:14}),`Révoquer la clé`]})]}),(0,B.jsx)(`span`,{className:`menu-divider`}),(0,B.jsxs)(`button`,{type:`button`,className:`menu-item`,onClick:()=>f(`servers`),disabled:m!==null,children:[(0,B.jsx)(V,{name:`server`,size:14}),`Changer de serveur`]}),(0,B.jsxs)(`button`,{type:`button`,className:`menu-item menu-item-danger`,onClick:()=>void y(null),disabled:m!==null,children:[(0,B.jsx)(V,{name:`x`,size:14}),`Ne plus déployer ce dépôt`]})]}),d===`servers`&&(0,B.jsx)(`div`,{className:`picker-menu picker-menu-right`,children:(0,B.jsx)(Fd,{currentId:u.id,onChoose:e=>void y(e),onNew:()=>{f(`closed`),c()}})})]})]})}var zd={running:{icon:`circle-dot`,className:`text-accent`,text:`en cours`},done:{icon:`circle-check`,className:`text-ok`,text:`réussi`},failed:{icon:`circle-x`,className:`error-text`,text:`échoué`},cancelled:{icon:`circle-minus`,className:`muted`,text:`interrompu`}};function Bd(e){return e.status===`failed`&&e.exitCode!==null?`échoué${e.currentLine===null?``:` à la ligne ${e.currentLine}`} · code ${e.exitCode}`:zd[e.status].text}function Vd({repoId:e,deployments:t}){return t.length===0?null:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`p`,{className:`section-label section-label-strong section-label-spaced`,children:`Derniers déploiements`}),(0,B.jsx)(`div`,{className:`panel list`,children:t.map(t=>{let n=zd[t.status];return(0,B.jsxs)(`a`,{className:`row row-linked deployment-row`,href:W.deployment(e,t.id),children:[(0,B.jsx)(V,{name:n.icon,className:`history-icon ${n.className}`}),(0,B.jsxs)(`div`,{className:`history-title`,children:[(0,B.jsx)(`span`,{className:`row-title`,children:`Déploiement`}),(0,B.jsxs)(`span`,{className:`history-meta`,children:[t.branch,` · `,Nd(t.commit)]})]}),(0,B.jsx)(`span`,{className:`history-date`,children:ml(t.createdAt)}),(0,B.jsx)(`span`,{className:`deployment-duration`,children:Md(t.createdAt,t.endedAt)}),(0,B.jsx)(`span`,{className:`deployment-outcome ${t.status===`failed`?`error-text`:``}`,children:Bd(t)}),(0,B.jsx)(V,{name:`chevron-right`,className:`row-chevron`})]},t.id)})}),(0,B.jsx)(`p`,{className:`hint`,children:`Les 20 derniers déploiements du dépôt sont conservés.`})]})}function Hd(e){return e.currentLine===null?null:e.status===`running`?{line:e.currentLine,state:`running`,label:`en cours`}:e.status===`failed`?{line:e.currentLine,state:`failed`,label:e.exitCode===null?`échec`:`code ${e.exitCode}`}:e.status===`cancelled`?{line:e.currentLine,state:`failed`,label:`interrompu`}:null}function Ud({deployment:e,onBack:t}){let n=(0,_.useRef)(null),r=e.status===`running`,[,i]=(0,_.useState)(0);(0,_.useEffect)(()=>{if(!r)return;let e=setInterval(()=>i(e=>e+1),1e3);return()=>clearInterval(e)},[r]),(0,_.useEffect)(()=>{let e=n.current;e&&r&&(e.scrollTop=e.scrollHeight)},[e.output,r]);let a=K(e.script),o=zd[e.status],s=r?e.currentLine===null?`Exécution — connexion…`:`Exécution — ligne ${e.currentLine} sur ${a}`:e.status===`done`?`Déploiement réussi`:e.status===`cancelled`?`Déploiement interrompu`:`Déploiement échoué`;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsxs)(`p`,{className:`section-label section-label-strong deployment-title`,children:[t&&(0,B.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:t,"aria-label":`Retour au déploiement`,title:`Retour au déploiement`,children:(0,B.jsx)(V,{name:`arrow-left`})}),(0,B.jsx)(V,{name:r?`loader-circle`:o.icon,className:r?`spin text-accent`:o.className}),s]}),(0,B.jsxs)(`span`,{className:`hint-inline`,children:[r?`lancé à ${gl(e.createdAt)}`:ml(e.createdAt),` · `,Md(e.createdAt,e.endedAt)]})]}),(0,B.jsx)(yd,{script:e.script,mark:Hd(e),dimAfter:r,active:r}),e.error&&(0,B.jsx)(`p`,{className:`banner banner-error deployment-error`,children:e.error}),(0,B.jsx)(`p`,{className:`section-label section-label-strong section-label-spaced`,children:`Sortie`}),(0,B.jsxs)(`pre`,{ref:n,className:`terminal mono`,children:[e.outputTruncated&&(0,B.jsxs)(`span`,{className:`muted`,children:[`[début de la sortie coupé]`,`
|
|
71
|
-
`]}),e.output,r&&(0,B.jsx)(`span`,{className:`terminal-cursor`}),!r&&!e.output&&(0,B.jsx)(`span`,{className:`muted`,children:`Aucune sortie.`})]}),(0,B.jsxs)(`p`,{className:`hint-line`,children:[(0,B.jsx)(V,{name:`info`}),e.server,` · `,e.branch,` · `,Nd(e.commit),r?` · un déploiement réussi retire le dépôt de « À déployer ».`:``]})]})}function Wd({id:e,onFinished:t}){let n=b(`deployment:${e}`,()=>D.getDeployment(e),jd),r=n.data?.deployment,i=r!==void 0&&r.status!==`running`;return(0,_.useEffect)(()=>{i&&t()},[i,t]),r?(0,B.jsx)(Ud,{deployment:r,onBack:null}):(0,B.jsx)(`p`,{className:n.error?`error-text`:`muted`,children:n.error??`Chargement du déploiement…`})}function Gd({repoId:e,deploymentId:t}){let n=b(`deployment:${t}`,()=>D.getDeployment(t),jd),r=n.data?.deployment;return r?(0,B.jsx)(Ud,{deployment:r,onBack:()=>jl(W.repoDeploy(e))}):(0,B.jsx)(`p`,{className:n.error?`error-text`:`muted`,children:n.error??`Chargement du déploiement…`})}function Kd({repo:e,deploymentId:t}){let n=b(`deploy:${e.id}`,()=>D.getRepoDeploy(e.id),Ad),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)(!1),d=n.data,f=d?.activeDeployment??null;if(!d)return(0,B.jsx)(`p`,{className:n.error?`error-text`:`muted`,children:n.error??`Chargement du déploiement…`});async function p(t){u(!0);try{await D.saveRepoDeployScript(e.id,t),c(!1),n.reload()}catch(e){T(e)}finally{u(!1)}}async function m(){u(!0);try{await D.startDeployment(e.id),t&&jl(W.repoDeploy(e.id)),n.reload()}catch(e){T(e)}finally{u(!1)}}async function h(e){try{await D.cancelDeployment(e.id),n.reload()}catch(e){T(e)}}let g=r&&(0,B.jsx)(kd,{repoId:e.id,server:r.server,step:r.step,onClose:()=>i(null),onChanged:n.reload,onWriteScript:()=>{i(null),c(!0)}}),v=t===null&&f?f:null,y=d.server?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Rd,{repo:e,view:d.server,deploy:d,starting:l,onDeploy:()=>void m(),onCancel:e=>void h(e),onWizard:(e,t)=>i({server:t??d.server,step:e}),onKey:o,onNewServer:()=>i({server:null,step:`form`}),onChanged:n.reload}),(0,B.jsx)(`div`,{className:`deploy-body`,children:t===null?v?(0,B.jsx)(Wd,{id:v.id,onFinished:n.reload}):s?(0,B.jsx)(bd,{initial:d.script,busy:l,onSave:e=>void p(e),onCancel:()=>c(!1)}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsx)(`p`,{className:`section-label section-label-strong`,children:`Script de déploiement`}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary button-small`,onClick:()=>c(!0),children:[(0,B.jsx)(V,{name:`pencil`,size:14}),d.script.trim()?`Modifier`:`Écrire le script`]})]}),d.script.trim()?(0,B.jsx)(yd,{script:d.script}):(0,B.jsx)(`div`,{className:`panel empty`,children:(0,B.jsx)(`p`,{children:`Aucun script : il s'écrit en bash et s'exécute sur le serveur à chaque déploiement.`})}),(0,B.jsx)(Vd,{repoId:e.id,deployments:d.deployments})]}):(0,B.jsx)(Gd,{repoId:e.id,deploymentId:t})})]}):(0,B.jsx)(Ld,{repoId:e.id,onChanged:n.reload,onNew:()=>i({server:null,step:`form`})}),x=a&&d.server?a===`rotate`?(0,B.jsx)(td,{view:d.server,onClose:()=>o(null),onChanged:n.reload}):(0,B.jsx)(nd,{view:d.server,onClose:()=>o(null),onChanged:n.reload}):null;return(0,B.jsxs)(B.Fragment,{children:[y,g,x]})}var qd={running:`en cours`,done:`terminée`,failed:`échouée`,cancelled:`annulée`};function Jd(e){return qc.includes(e.status)?{icon:`circle-dot`,className:`text-accent`}:e.status===`done`?{icon:`circle-check`,className:`text-ok`}:e.status===`failed`?{icon:`circle-x`,className:`error-text`}:{icon:`circle-minus`,className:`muted`}}function Yd(e){if(e.status===`failed`&&e.error)return(0,B.jsx)(`span`,{className:`error-text`,children:e.error.split(/\r?\n/)[0]});let{before:t,after:n}=e;return t===null?null:e.kind===`audit`||n===null?sl(t,`vulnérabilité`):`${t} → ${sl(n,`vulnérabilité`)}`}function Xd(e){return e.claude?`Claude`:null}function Zd(e){return e.pullRequest?(0,B.jsxs)(`a`,{className:`pr-note`,href:e.pullRequest.url,target:`_blank`,rel:`noreferrer`,children:[`PR #`,e.pullRequest.number]}):(0,B.jsx)(`span`,{className:e.status===`failed`?`error-text`:void 0,children:qd[e.status]})}function Qd({repoId:e,operations:t}){return t.length===0?(0,B.jsx)(`div`,{className:`panel empty`,children:(0,B.jsx)(`p`,{children:`Aucune opération sur ce dépôt.`})}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`div`,{className:`panel list`,children:t.map(t=>{let n=Jd(t),r=Xd(t);return(0,B.jsxs)(`div`,{className:`row row-linked history-row`,children:[(0,B.jsx)(V,{name:n.icon,className:`history-icon ${n.className}`}),(0,B.jsxs)(`div`,{className:`history-title`,children:[(0,B.jsx)(`a`,{className:`row-link`,href:W.operation(e,t.id),children:t.kind===`audit`?`Audit`:`Correction`}),(0,B.jsxs)(`span`,{className:`history-meta`,children:[t.origin===`agent`?`l'agent`:`vous`,` · `,t.scope===`production`?`production`:ll.all,` · `,t.baseBranch]})]}),(0,B.jsx)(`span`,{className:`history-date`,children:ml(t.createdAt)}),(0,B.jsx)(`span`,{className:`history-counts`,children:Yd(t)}),(0,B.jsx)(`span`,{className:`history-claude`,children:r&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{name:`sparkles`,size:14}),r]})}),(0,B.jsx)(`span`,{className:`history-outcome`,children:Zd(t)}),(0,B.jsx)(V,{name:`chevron-right`,className:`row-chevron`})]},t.id)})}),(0,B.jsxs)(`p`,{className:`hint history-note`,children:[`Les `,20,` dernières opérations du dépôt sont conservées.`]})]})}var $d=3e3,ef=4e3;function tf({repoId:e}){let[t,n]=(0,_.useState)(!1);(0,_.useEffect)(()=>{if(!t)return;let e=setTimeout(()=>n(!1),ef);return()=>clearTimeout(e)},[t]);async function r(){if(!t)n(!0);else try{await D.removeRepo(e),jl(W.lastHome())}catch(e){n(!1),T(e)}}return t?(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary button-danger`,onClick:()=>void r(),children:[(0,B.jsx)(V,{name:`trash-2`}),`Confirmer le retrait`]}):(0,B.jsx)(`button`,{type:`button`,className:`button button-secondary button-icon`,onClick:()=>void r(),"aria-label":`Retirer le dépôt`,title:`Retirer le dépôt`,children:(0,B.jsx)(V,{name:`trash-2`})})}function nf({view:e,onChanged:t}){let{repo:n,unfixable:r}=e,i=nl(n);async function a(e){try{await D.markAlertHandled(n.id,e),t()}catch(e){T(e)}}return i.length===0?(0,B.jsx)(`div`,{className:`panel empty`,children:(0,B.jsx)(`p`,{children:n.alerts.length===0?`Aucune alerte ouverte.`:`Toutes les alertes sont corrigées à la main.`})}):(0,B.jsx)(B.Fragment,{children:(0,B.jsx)(`div`,{className:`panel list`,children:i.map(e=>(0,B.jsxs)(`div`,{className:`alert-line`,children:[(0,B.jsxs)(`a`,{className:`row alert-row`,href:e.url,target:`_blank`,rel:`noreferrer`,title:`Alerte #${e.number} sur GitHub`,children:[(0,B.jsx)(Ll,{severity:e.severity,wide:!0,children:cl[e.severity]}),(0,B.jsx)(`span`,{className:`alert-package mono`,children:e.package}),(0,B.jsx)(`span`,{className:`alert-summary`,children:e.summary}),r.includes(e.package)&&(0,B.jsxs)(`span`,{className:`unfixable-note`,title:`Le dernier audit n'a trouvé aucune version corrigée publiée sur le registre npm.`,children:[(0,B.jsx)(V,{name:`triangle-alert`}),`sans correctif`]}),e.scope===`development`&&(0,B.jsx)(`span`,{className:`dev-tag`,title:`Dépendance de développement : un audit de production la laisse de côté.`,children:`dév.`}),(0,B.jsx)(`span`,{className:`alert-mark-space`}),(0,B.jsx)(V,{name:`external-link`,className:`row-chevron`})]}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary alert-mark`,onClick:()=>void a(e.number),children:[(0,B.jsx)(V,{name:`check`,size:14}),`Corrigée à la main`]})]},e.number))})})}function rf({view:e,onChanged:t}){let{repo:n}=e,r=rl(n);if(r.length===0)return null;async function i(e){try{await D.unmarkAlertHandled(n.id,e),t()}catch(e){T(e)}}return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`p`,{className:`section-label section-label-spaced`,children:`Corrigées à la main`}),(0,B.jsx)(`div`,{className:`panel list`,children:r.map(e=>{let t=n.handledAlerts.find(t=>t.number===e.number);return(0,B.jsxs)(`div`,{className:`row alert-row`,children:[(0,B.jsx)(Ll,{severity:e.severity,wide:!0,faded:!0,children:cl[e.severity]}),(0,B.jsx)(`span`,{className:`alert-package mono`,children:e.package}),(0,B.jsxs)(`span`,{className:`alert-summary handled-note`,children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),`Corrigée à la main`,t&&` le ${ml(t.markedAt)}`]}),(0,B.jsx)(`button`,{type:`button`,className:`link restore-link`,onClick:()=>void i(e.number),children:`Rétablir`})]},e.number)})})]})}function af({view:e,onChanged:t}){let[n,r]=(0,_.useState)(!1),i=e.repo.id,a=e.repo.queuedAt!==null;async function o(){r(!0);try{if(a){await D.unqueueRepo(i),jl(W.queue());return}await D.queueRepo(i),t()}catch(e){T(e)}finally{r(!1)}}return a?(0,B.jsxs)(`button`,{type:`button`,className:`button button-queued`,onClick:()=>void o(),disabled:n,title:`Retirer de la file d'attente`,children:[(0,B.jsx)(V,{name:`list-check`}),`Traité`]}):(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary`,onClick:()=>void o(),disabled:n,children:[(0,B.jsx)(V,{name:`list-plus`}),`Ajouter à la file`]})}function of({view:e,onChanged:t}){let[n,r]=(0,_.useState)(!1),i=e.repo.id,a=e.repo.deployPendingAt!==null;async function o(){r(!0);try{await(a?D.unmarkDeployPending(i):D.markDeployPending(i)),t()}catch(e){T(e)}finally{r(!1)}}return a?(0,B.jsxs)(`button`,{type:`button`,className:`button button-queued`,onClick:()=>void o(),disabled:n,title:`Retirer de « À déployer »`,children:[(0,B.jsx)(V,{name:`rocket`}),`Déployé`]}):(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary`,onClick:()=>void o(),disabled:n,children:[(0,B.jsx)(V,{name:`rocket`}),`À déployer`]})}function sf({repoId:e,tab:t,deploymentId:n}){let r=b(`repo:${e}`,()=>D.getRepo(e),$d),i=b(`history:${e}`,()=>D.listOperations(e),$d),a=b(`config`,D.getConfig,null),[o,s]=(0,_.useState)(!1),c=r.data;if(!c)return(0,B.jsx)(`div`,{className:`page`,children:(0,B.jsx)(`p`,{className:r.error?`error-text`:`muted`,children:r.error??`Chargement du dépôt…`})});let{repo:l,activeOperation:u}=c,d=nl(l).length,f=i.data?.operations??[];async function p(e){s(!0);try{let{operation:t}=await D.startFix(l.id,e);jl(W.operation(l.id,t.id))}catch(e){T(e),s(!1)}}return(0,B.jsxs)(`div`,{className:`page`,children:[(0,B.jsxs)(`div`,{className:`page-head`,children:[(0,B.jsx)(`a`,{className:`back`,href:W.lastHome(),"aria-label":`Retour aux dépôts`,children:(0,B.jsx)(V,{name:`arrow-left`,size:20})}),(0,B.jsxs)(`div`,{className:`page-head-text`,children:[(0,B.jsxs)(`h1`,{className:`page-title`,children:[l.name,a.data&&(0,B.jsx)(`a`,{className:`title-link`,href:`${a.data.githubServerUrl}/${l.id}`,target:`_blank`,rel:`noreferrer`,title:`Ouvrir ${l.id} sur GitHub`,"aria-label":`Ouvrir ${l.id} sur GitHub`,children:(0,B.jsx)(V,{name:`external-link`,size:16})})]}),(0,B.jsxs)(`div`,{className:`subtitle`,children:[l.owner,` · `,(0,B.jsx)(Zu,{repo:l,onChanged:r.reload}),` ·`,` `,(0,B.jsx)($u,{repo:l,categoryName:c.category?.name??null,onChanged:r.reload}),` ·`,` `,l.deprecatedAt?`déprécié le ${ml(l.deprecatedAt)}`:l.syncError?(0,B.jsx)(`span`,{className:`error-text`,title:l.syncError,children:`synchronisation impossible`}):l.syncedAt?`synchronisé ${ol(l.syncedAt)}`:`synchronisation…`]})]}),(0,B.jsxs)(`div`,{className:`page-actions`,children:[!l.deprecatedAt&&(0,B.jsx)(of,{view:c,onChanged:r.reload}),!l.deprecatedAt&&(0,B.jsx)(af,{view:c,onChanged:r.reload}),(0,B.jsx)(tf,{repoId:l.id}),u?(0,B.jsxs)(`button`,{type:`button`,className:`button button-primary`,onClick:()=>jl(W.operation(l.id,u.id)),children:[(0,B.jsx)(V,{name:`wrench`}),u.kind===`audit`?`Voir l'audit en cours`:`Voir la correction en cours`]}):l.deprecatedAt?(0,B.jsxs)(`button`,{type:`button`,className:`button button-primary`,disabled:!0,title:`Dépôt déprécié : rétablissez-le depuis l’onglet « Dépréciés » pour le corriger.`,children:[(0,B.jsx)(V,{name:`wrench`}),`Corriger`]}):(0,B.jsx)(H,{variant:`primary`,icon:`wrench`,label:`Corriger`,disabled:o,onLaunch:e=>void p(e)})]})]}),l.syncError&&(0,B.jsx)(`p`,{className:`banner banner-error`,children:l.syncError}),(0,B.jsxs)(`nav`,{className:`tabs`,children:[(0,B.jsxs)(`a`,{className:`tab${t===`alerts`?` is-active`:``}`,href:W.repo(l.id),children:[`Alertes ouvertes`,d>0&&(0,B.jsx)(`span`,{className:`tab-count tab-count-alert`,children:d})]}),(0,B.jsxs)(`a`,{className:`tab${t===`history`?` is-active`:``}`,href:W.repoHistory(l.id),children:[`Historique`,f.length>0&&(0,B.jsx)(`span`,{className:`tab-count`,children:f.length})]}),(0,B.jsx)(`a`,{className:`tab${t===`deploy`?` is-active`:``}`,href:W.repoDeploy(l.id),children:`Déploiement`})]}),t===`alerts`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(nf,{view:c,onChanged:r.reload}),(0,B.jsx)(rf,{view:c,onChanged:r.reload})]}):t===`deploy`?(0,B.jsx)(Kd,{repo:l,deploymentId:n}):i.data?(0,B.jsx)(Qd,{repoId:l.id,operations:f}):(0,B.jsx)(`p`,{className:i.error?`error-text`:`muted`,children:i.error??`Chargement de l'historique…`})]})}var cf={maxTurns:{min:1,max:200},maxMinutes:{min:1,max:60}},lf=z({maxTurns:qs().int().min(cf.maxTurns.min).max(cf.maxTurns.max),maxMinutes:qs().int().min(cf.maxMinutes.min).max(cf.maxMinutes.max)});z({organizer:z({url:R().nullable(),token:R().nullable(),space:R().nullable(),owner:R().nullable()}),claude:z({token:R().nullable(),savedAt:R().nullable()}),analysis:lf}),z({organizerUrl:R().trim(),organizerToken:R().trim().min(1).optional(),claudeToken:R().trim().min(1).optional(),analysis:lf});var uf=3e3,df=4e3;function ff(e){return new Date(e).toLocaleDateString(`fr-FR`,{day:`numeric`,month:`short`})}async function pf(e,t){try{await navigator.clipboard.writeText(e),ae.getState().show(`info`,t)}catch(e){T(e)}}function Z({onCreated:e,onCancel:t}){let[n,r]=(0,_.useState)(``),[i,a]=(0,_.useState)(!1),o=(0,_.useRef)(null);(0,_.useEffect)(()=>o.current?.focus(),[]);async function s(){if(n.trim()&&!i){a(!0);try{e(await D.createAgentToken(n.trim()))}catch(e){T(e),a(!1)}}}return(0,B.jsxs)(`div`,{className:`token-create`,children:[(0,B.jsx)(`input`,{ref:o,className:`input`,value:n,maxLength:60,placeholder:`Nom, ex. Claude Code — portable`,"aria-label":`Nom du token`,onChange:e=>r(e.target.value),onKeyDown:e=>{e.key===`Enter`&&s(),e.key===`Escape`&&t()}}),(0,B.jsx)(`button`,{type:`button`,className:`button button-queued`,disabled:!n.trim()||i,onClick:()=>void s(),children:`Créer`}),(0,B.jsx)(`button`,{type:`button`,className:`link`,onClick:t,children:`Annuler`})]})}function mf({created:e,onClose:t}){return(0,B.jsxs)(`div`,{className:`token-created`,children:[(0,B.jsxs)(`div`,{className:`token-created-head`,children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),(0,B.jsxs)(`span`,{children:[`Token « `,e.token.name,` » créé. Copiez-le maintenant : il ne sera plus affiché.`]}),(0,B.jsx)(`span`,{className:`spacer`}),(0,B.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:t,"aria-label":`Fermer`,children:(0,B.jsx)(V,{name:`x`,size:16})})]}),(0,B.jsxs)(`div`,{className:`token-secret`,children:[(0,B.jsx)(`span`,{className:`input mono token-secret-value`,children:e.secret}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary`,onClick:()=>void pf(e.secret,`Token copié.`),children:[(0,B.jsx)(V,{name:`copy`}),`Copier`]})]}),(0,B.jsx)(`span`,{className:`field-label`,children:`Déclarer le MCP dans un projet`}),(0,B.jsxs)(`button`,{type:`button`,className:`code-chip mono token-command`,onClick:()=>void pf(e.setupCommand,`Commande copiée.`),title:`Copier la commande`,children:[(0,B.jsx)(`span`,{className:`token-command-text`,children:e.setupCommand}),(0,B.jsx)(V,{name:`copy`,size:14})]})]})}function hf({token:e,onRevoked:t}){let[n,r]=(0,_.useState)(!1);(0,_.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>r(!1),df);return()=>clearTimeout(e)},[n]);async function i(){if(!n)r(!0);else try{await D.revokeAgentToken(e.id),t()}catch(e){r(!1),T(e)}}return(0,B.jsxs)(`div`,{className:`token-row${n?` is-confirming`:``}`,children:[(0,B.jsx)(V,{name:`key-round`,className:`token-icon`}),(0,B.jsxs)(`div`,{className:`token-text`,children:[(0,B.jsx)(`div`,{className:`token-name`,children:e.name}),(0,B.jsxs)(`div`,{className:`token-meta`,children:[`•••• `,e.hint,` · créé le `,ff(e.createdAt),` · `,e.lastUsedAt?`utilisé ${ol(e.lastUsedAt)}`:`jamais utilisé`]})]}),(0,B.jsx)(`button`,{type:`button`,className:`token-revoke`,onClick:()=>void i(),children:n?`Confirmer la révocation`:`Révoquer`})]})}function gf(){let e=b(`agent-tokens`,()=>D.listAgentTokens(),uf),[t,n]=(0,_.useState)(!1),[r,i]=(0,_.useState)(null),a=e.data?.tokens??[];return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsx)(`p`,{className:`section-label`,children:`Accès des agents — outils MCP`}),!t&&(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary button-small`,onClick:()=>n(!0),children:[(0,B.jsx)(V,{name:`plus`}),`Nouveau token`]})]}),(t||r||a.length>0)&&(0,B.jsxs)(`div`,{className:`panel settings-card`,children:[t&&(0,B.jsx)(Z,{onCancel:()=>n(!1),onCreated:t=>{n(!1),i(t),e.reload()}}),r&&(0,B.jsx)(mf,{created:r,onClose:()=>i(null)}),a.map(t=>(0,B.jsx)(hf,{token:t,onRevoked:e.reload},t.id))]}),e.error&&(0,B.jsx)(`p`,{className:`error-text`,children:e.error}),(0,B.jsx)(`p`,{className:`hint`,children:`Un agent déclare le MCP avec l'adresse de ce serveur et l'un de ces tokens.`})]})}var _f=`claude setup-token`;function vf(e){return new Date(e).toLocaleDateString(`fr-FR`)}function yf({hint:e,value:t,onChange:n,label:r,placeholder:i}){return e!==null&&t===null?(0,B.jsxs)(`div`,{className:`input token-saved`,children:[(0,B.jsxs)(`span`,{className:`mono`,children:[`•••••••••••• `,e]}),(0,B.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>n(``),children:`Remplacer`})]}):(0,B.jsx)(`input`,{className:`input mono`,type:`password`,autoComplete:`off`,spellCheck:!1,"aria-label":r,placeholder:i,value:t??``,onChange:e=>n(e.target.value)})}function bf({view:e,onSaved:t}){let[n,r]=(0,_.useState)(e.organizer.url??``),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(e.claude.tokenHint===null?``:null),[c,l]=(0,_.useState)(e.analysis),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(!1);async function m(){let e={organizerUrl:n.trim(),analysis:c};i?.trim()&&(e.organizerToken=i.trim()),o?.trim()&&(e.claudeToken=o.trim()),d(!0);try{let n=await D.saveSettings(e);a(null),s(n.claude.tokenHint===null?``:null),t(n),ae.getState().show(`info`,`Réglages enregistrés.`)}catch(e){T(e)}d(!1)}async function h(){p(!0);try{t(await D.testOrganizer()),ae.getState().show(`info`,`La connexion à l'organizer fonctionne.`)}catch(e){T(e)}p(!1)}async function g(){try{await navigator.clipboard.writeText(_f),ae.getState().show(`info`,`Commande copiée.`)}catch(e){T(e)}}let v=(e,t)=>{let n=Math.round(Number(t));Number.isFinite(n)&&l({...c,[e]:Math.min(cf[e].max,Math.max(cf[e].min,n))})};return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`page-head`,children:[(0,B.jsx)(`a`,{className:`back`,href:W.lastHome(),"aria-label":`Retour à l'accueil`,children:(0,B.jsx)(V,{name:`arrow-left`,size:20})}),(0,B.jsxs)(`div`,{className:`page-head-text`,children:[(0,B.jsx)(`h1`,{className:`page-title`,children:`Réglages`}),(0,B.jsx)(`p`,{className:`subtitle`,children:`Corrections par Claude quand npm audit fix ne suffit pas`})]}),(0,B.jsx)(`div`,{className:`page-actions`,children:(0,B.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:u,onClick:()=>void m(),children:u?`Enregistrement…`:`Enregistrer`})})]}),(0,B.jsx)(`p`,{className:`section-label`,children:`Organizer — où Claude dépose son rapport`}),(0,B.jsxs)(`div`,{className:`panel settings-card`,children:[(0,B.jsxs)(`div`,{className:`settings-fields`,children:[(0,B.jsxs)(`label`,{className:`settings-field`,children:[(0,B.jsx)(`span`,{className:`field-label`,children:`Adresse du site`}),(0,B.jsx)(`input`,{className:`input`,value:n,placeholder:`https://organizer.example.com`,spellCheck:!1,onChange:e=>r(e.target.value)})]}),(0,B.jsxs)(`div`,{className:`settings-field settings-field-narrow`,children:[(0,B.jsx)(`span`,{className:`field-label`,children:`Token d'agent`}),(0,B.jsx)(yf,{hint:e.organizer.tokenHint,value:i,onChange:a,label:`Token d'agent`,placeholder:`Paramètres › Agents dans l'organizer`})]})]}),(0,B.jsxs)(`div`,{className:`settings-status`,children:[e.organizer.space?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),(0,B.jsxs)(`span`,{children:[`Connecté à l'espace « `,e.organizer.space,` » · tâches assignées à `,e.organizer.owner]})]}):(0,B.jsx)(`span`,{className:`muted`,children:`Indiquez l'adresse du site et un token d'agent, créé dans l'organizer (Paramètres › Agents).`}),(0,B.jsx)(`span`,{className:`spacer`}),e.organizer.tokenHint!==null&&(0,B.jsx)(`button`,{type:`button`,className:`link`,disabled:f,onClick:()=>void h(),children:f?`Test…`:`Tester`})]})]}),(0,B.jsx)(`p`,{className:`section-label`,children:`Claude — abonnement utilisé pour les corrections`}),(0,B.jsxs)(`div`,{className:`panel settings-card`,children:[(0,B.jsx)(`div`,{className:`settings-status settings-status-top`,children:e.claude.tokenHint===null?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{name:`circle-alert`,className:`text-warning`}),(0,B.jsx)(`span`,{children:`Non connecté — sans Claude, une correction pousse les seules corrections de npm audit fix`})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),(0,B.jsxs)(`span`,{children:[`Connecté · token enregistré le `,vf(e.claude.savedAt),`, valable jusqu'au `,vf(e.claude.expiresAt)]}),(0,B.jsx)(`span`,{className:`spacer`}),o===null&&(0,B.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>s(``),children:`Remplacer`})]})}),o!==null&&(0,B.jsxs)(`ol`,{className:`claude-steps`,children:[(0,B.jsxs)(`li`,{children:[(0,B.jsx)(`span`,{className:`step-number`,children:`1`}),`Sur un poste avec navigateur, lancez`,(0,B.jsxs)(`button`,{type:`button`,className:`code-chip mono`,onClick:()=>void g(),title:`Copier la commande`,children:[_f,(0,B.jsx)(V,{name:`copy`,size:14})]})]}),(0,B.jsxs)(`li`,{children:[(0,B.jsx)(`span`,{className:`step-number`,children:`2`}),`Autorisez l'accès dans le navigateur : le terminal affiche un token valable un an`]}),(0,B.jsxs)(`li`,{children:[(0,B.jsx)(`span`,{className:`step-number`,children:`3`}),`Collez-le ici`]}),(0,B.jsx)(`li`,{className:`claude-token-input`,children:(0,B.jsx)(`input`,{className:`input mono`,type:`password`,autoComplete:`off`,spellCheck:!1,"aria-label":`Token Claude`,placeholder:`sk-ant-oat01-…`,value:o,onChange:e=>s(e.target.value)})})]})]}),(0,B.jsx)(`p`,{className:`section-label`,children:`Corrections par Claude`}),(0,B.jsx)(`div`,{className:`panel settings-card`,children:(0,B.jsxs)(`div`,{className:`right`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`div`,{className:`right-label`,children:`Limites d'une session`}),(0,B.jsx)(`div`,{className:`right-description`,children:`Claude est lancé dès que npm audit fix laisse des vulnérabilités`})]}),(0,B.jsxs)(`div`,{className:`limits`,children:[(0,B.jsx)(`input`,{className:`input number-input`,type:`number`,min:cf.maxTurns.min,max:cf.maxTurns.max,value:c.maxTurns,"aria-label":`Tours au plus`,onChange:e=>v(`maxTurns`,e.target.value)}),(0,B.jsx)(`span`,{className:`muted`,children:`tours`}),(0,B.jsx)(`input`,{className:`input number-input`,type:`number`,min:cf.maxMinutes.min,max:cf.maxMinutes.max,value:c.maxMinutes,"aria-label":`Minutes au plus`,onChange:e=>v(`maxMinutes`,e.target.value)}),(0,B.jsx)(`span`,{className:`muted`,children:`min`})]})]})}),(0,B.jsx)(gf,{})]})}function xf(){let e=b(`settings`,()=>D.getSettings(),null,{remember:!1}),[t,n]=(0,_.useState)(null),r=t??e.data;return(0,B.jsx)(`div`,{className:`page`,children:r?(0,B.jsx)(bf,{view:r,onSaved:n}):(0,B.jsx)(`p`,{className:e.error?`error-text`:`muted`,children:e.error??`Chargement des réglages…`})})}function Sf(){let e=de(e=>e.status),t=de(e=>e.check),[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>{t().catch(e=>r(e instanceof Error?e.message:String(e)))},[t]),n?(0,B.jsx)(`div`,{className:`login`,children:(0,B.jsx)(`p`,{className:`error-text`,children:n})}):e.kind===`checking`?null:e.kind===`signed-out`?(0,B.jsx)(xu,{}):(0,B.jsx)(Cf,{})}function Cf(){let e=Pl(),[t,n]=(0,_.useState)(!1),r=(0,_.useCallback)(()=>n(!0),[]),i=(0,_.useCallback)(()=>n(!1),[]),a,o=e.name===`home`||e.name===`queue`||e.name===`pulls`||e.name===`deploy`||e.name===`deprecated`;if(o){let n=e.name===`home`?{kind:`category`,categoryId:e.categoryId}:{kind:e.name};a=(0,B.jsx)(bu,{tab:n,adding:t,onAdd:r,onCloseAdd:i})}else a=e.name===`settings`?(0,B.jsx)(xf,{}):e.name===`repo`?(0,B.jsx)(sf,{repoId:e.repoId,tab:e.tab,deploymentId:e.deploymentId},e.repoId):e.name===`operation`?(0,B.jsx)(Ju,{repoId:e.repoId,operationId:e.operationId},e.operationId):(0,B.jsx)(`div`,{className:`page`,children:(0,B.jsxs)(`p`,{className:`muted`,children:[`Adresse inconnue : `,(0,B.jsx)(`code`,{children:e.hash}),`. `,(0,B.jsx)(`a`,{className:`link`,href:W.home(),children:`Revenir à l'accueil`}),`.`]})});let s=o?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`a`,{className:`button button-secondary button-icon`,href:W.settings(),"aria-label":`Réglages`,title:`Réglages`,children:(0,B.jsx)(V,{name:`settings`})}),(0,B.jsx)(Tl,{}),e.name!==`deploy`&&e.name!==`pulls`&&(0,B.jsx)(Cl,{target:e.name===`queue`?{kind:`queue`}:e.name===`home`&&e.categoryId!==null?{kind:`category`,categoryId:e.categoryId}:{kind:`all`}}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-primary`,onClick:r,children:[(0,B.jsx)(V,{name:`plus`}),`Ajouter un dépôt`]})]}):null;return(0,B.jsxs)(`div`,{className:`app`,children:[(0,B.jsx)(Fl,{action:s}),(0,B.jsx)(`main`,{className:`main`,children:a}),(0,B.jsx)(wl,{})]})}(0,v.createRoot)(document.getElementById(`root`)).render((0,B.jsx)(_.StrictMode,{children:(0,B.jsx)(Sf,{})}));
|
|
71
|
+
`]}),e.output,r&&(0,B.jsx)(`span`,{className:`terminal-cursor`}),!r&&!e.output&&(0,B.jsx)(`span`,{className:`muted`,children:`Aucune sortie.`})]}),(0,B.jsxs)(`p`,{className:`hint-line`,children:[(0,B.jsx)(V,{name:`info`}),e.server,` · `,e.branch,` · `,Nd(e.commit),r?` · un déploiement réussi retire le dépôt de « À déployer ».`:``]})]})}function Wd({id:e,onFinished:t}){let n=b(`deployment:${e}`,()=>D.getDeployment(e),jd),r=n.data?.deployment,i=r!==void 0&&r.status!==`running`;return(0,_.useEffect)(()=>{i&&t()},[i,t]),r?(0,B.jsx)(Ud,{deployment:r,onBack:null}):(0,B.jsx)(`p`,{className:n.error?`error-text`:`muted`,children:n.error??`Chargement du déploiement…`})}function Gd({repoId:e,deploymentId:t}){let n=b(`deployment:${t}`,()=>D.getDeployment(t),jd),r=n.data?.deployment;return r?(0,B.jsx)(Ud,{deployment:r,onBack:()=>jl(W.repoDeploy(e))}):(0,B.jsx)(`p`,{className:n.error?`error-text`:`muted`,children:n.error??`Chargement du déploiement…`})}function Kd({repo:e,deploymentId:t}){let n=b(`deploy:${e.id}`,()=>D.getRepoDeploy(e.id),Ad),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)(!1),d=n.data,f=d?.activeDeployment??null;if(!d)return(0,B.jsx)(`p`,{className:n.error?`error-text`:`muted`,children:n.error??`Chargement du déploiement…`});async function p(t){u(!0);try{await D.saveRepoDeployScript(e.id,t),c(!1),n.reload()}catch(e){T(e)}finally{u(!1)}}async function m(){u(!0);try{await D.startDeployment(e.id),t&&jl(W.repoDeploy(e.id)),n.reload()}catch(e){T(e)}finally{u(!1)}}async function h(e){try{await D.cancelDeployment(e.id),n.reload()}catch(e){T(e)}}let g=r&&(0,B.jsx)(kd,{repoId:e.id,server:r.server,step:r.step,onClose:()=>i(null),onChanged:n.reload,onWriteScript:()=>{i(null),c(!0)}}),v=t===null&&f?f:null,y=d.server?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Rd,{repo:e,view:d.server,deploy:d,starting:l,onDeploy:()=>void m(),onCancel:e=>void h(e),onWizard:(e,t)=>i({server:t??d.server,step:e}),onKey:o,onNewServer:()=>i({server:null,step:`form`}),onChanged:n.reload}),(0,B.jsx)(`div`,{className:`deploy-body`,children:t===null?v?(0,B.jsx)(Wd,{id:v.id,onFinished:n.reload}):s?(0,B.jsx)(bd,{initial:d.script,busy:l,onSave:e=>void p(e),onCancel:()=>c(!1)}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsx)(`p`,{className:`section-label section-label-strong`,children:`Script de déploiement`}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary button-small`,onClick:()=>c(!0),children:[(0,B.jsx)(V,{name:`pencil`,size:14}),d.script.trim()?`Modifier`:`Écrire le script`]})]}),d.script.trim()?(0,B.jsx)(yd,{script:d.script}):(0,B.jsx)(`div`,{className:`panel empty`,children:(0,B.jsx)(`p`,{children:`Aucun script : il s'écrit en bash et s'exécute sur le serveur à chaque déploiement.`})}),(0,B.jsx)(Vd,{repoId:e.id,deployments:d.deployments})]}):(0,B.jsx)(Gd,{repoId:e.id,deploymentId:t})})]}):(0,B.jsx)(Ld,{repoId:e.id,onChanged:n.reload,onNew:()=>i({server:null,step:`form`})}),x=a&&d.server?a===`rotate`?(0,B.jsx)(td,{view:d.server,onClose:()=>o(null),onChanged:n.reload}):(0,B.jsx)(nd,{view:d.server,onClose:()=>o(null),onChanged:n.reload}):null;return(0,B.jsxs)(B.Fragment,{children:[y,g,x]})}var qd={running:`en cours`,done:`terminée`,failed:`échouée`,cancelled:`annulée`};function Jd(e){return qc.includes(e.status)?{icon:`circle-dot`,className:`text-accent`}:e.status===`done`?{icon:`circle-check`,className:`text-ok`}:e.status===`failed`?{icon:`circle-x`,className:`error-text`}:{icon:`circle-minus`,className:`muted`}}function Yd(e){if(e.status===`failed`&&e.error)return(0,B.jsx)(`span`,{className:`error-text`,children:e.error.split(/\r?\n/)[0]});let{before:t,after:n}=e;return t===null?null:e.kind===`audit`||n===null?sl(t,`vulnérabilité`):`${t} → ${sl(n,`vulnérabilité`)}`}function Xd(e){return e.claude?`Claude`:null}function Zd(e){return e.pullRequest?(0,B.jsxs)(`a`,{className:`pr-note`,href:e.pullRequest.url,target:`_blank`,rel:`noreferrer`,children:[`PR #`,e.pullRequest.number]}):(0,B.jsx)(`span`,{className:e.status===`failed`?`error-text`:void 0,children:qd[e.status]})}function Qd({repoId:e,operations:t}){return t.length===0?(0,B.jsx)(`div`,{className:`panel empty`,children:(0,B.jsx)(`p`,{children:`Aucune opération sur ce dépôt.`})}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`div`,{className:`panel list`,children:t.map(t=>{let n=Jd(t),r=Xd(t);return(0,B.jsxs)(`div`,{className:`row row-linked history-row`,children:[(0,B.jsx)(V,{name:n.icon,className:`history-icon ${n.className}`}),(0,B.jsxs)(`div`,{className:`history-title`,children:[(0,B.jsx)(`a`,{className:`row-link`,href:W.operation(e,t.id),children:t.kind===`audit`?`Audit`:`Correction`}),(0,B.jsxs)(`span`,{className:`history-meta`,children:[t.origin===`agent`?`l'agent`:`vous`,` · `,t.scope===`production`?`production`:ll.all,` · `,t.baseBranch]})]}),(0,B.jsx)(`span`,{className:`history-date`,children:ml(t.createdAt)}),(0,B.jsx)(`span`,{className:`history-counts`,children:Yd(t)}),(0,B.jsx)(`span`,{className:`history-claude`,children:r&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{name:`sparkles`,size:14}),r]})}),(0,B.jsx)(`span`,{className:`history-outcome`,children:Zd(t)}),(0,B.jsx)(V,{name:`chevron-right`,className:`row-chevron`})]},t.id)})}),(0,B.jsxs)(`p`,{className:`hint history-note`,children:[`Les `,20,` dernières opérations du dépôt sont conservées.`]})]})}var $d=3e3,ef=4e3;function tf({repoId:e}){let[t,n]=(0,_.useState)(!1);(0,_.useEffect)(()=>{if(!t)return;let e=setTimeout(()=>n(!1),ef);return()=>clearTimeout(e)},[t]);async function r(){if(!t)n(!0);else try{await D.removeRepo(e),jl(W.lastHome())}catch(e){n(!1),T(e)}}return t?(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary button-danger`,onClick:()=>void r(),children:[(0,B.jsx)(V,{name:`trash-2`}),`Confirmer le retrait`]}):(0,B.jsx)(`button`,{type:`button`,className:`button button-secondary button-icon`,onClick:()=>void r(),"aria-label":`Retirer le dépôt`,title:`Retirer le dépôt`,children:(0,B.jsx)(V,{name:`trash-2`})})}function nf({view:e,onChanged:t}){let{repo:n,unfixable:r}=e,i=nl(n);async function a(e){try{await D.markAlertHandled(n.id,e),t()}catch(e){T(e)}}return i.length===0?(0,B.jsx)(`div`,{className:`panel empty`,children:(0,B.jsx)(`p`,{children:n.alerts.length===0?`Aucune alerte ouverte.`:`Toutes les alertes sont corrigées à la main.`})}):(0,B.jsx)(B.Fragment,{children:(0,B.jsx)(`div`,{className:`panel list`,children:i.map(e=>(0,B.jsxs)(`div`,{className:`alert-line`,children:[(0,B.jsxs)(`a`,{className:`row alert-row`,href:e.url,target:`_blank`,rel:`noreferrer`,title:`Alerte #${e.number} sur GitHub`,children:[(0,B.jsx)(Ll,{severity:e.severity,wide:!0,children:cl[e.severity]}),(0,B.jsx)(`span`,{className:`alert-package mono`,children:e.package}),(0,B.jsx)(`span`,{className:`alert-summary`,children:e.summary}),r.includes(e.package)&&(0,B.jsxs)(`span`,{className:`unfixable-note`,title:`Le dernier audit n'a trouvé aucune version corrigée publiée sur le registre npm.`,children:[(0,B.jsx)(V,{name:`triangle-alert`}),`sans correctif`]}),e.scope===`development`&&(0,B.jsx)(`span`,{className:`dev-tag`,title:`Dépendance de développement : un audit de production la laisse de côté.`,children:`dév.`}),(0,B.jsx)(`span`,{className:`alert-mark-space`}),(0,B.jsx)(V,{name:`external-link`,className:`row-chevron`})]}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary alert-mark`,onClick:()=>void a(e.number),children:[(0,B.jsx)(V,{name:`check`,size:14}),`Corrigée à la main`]})]},e.number))})})}function rf({view:e,onChanged:t}){let{repo:n}=e,r=rl(n);if(r.length===0)return null;async function i(e){try{await D.unmarkAlertHandled(n.id,e),t()}catch(e){T(e)}}return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`p`,{className:`section-label section-label-spaced`,children:`Corrigées à la main`}),(0,B.jsx)(`div`,{className:`panel list`,children:r.map(e=>{let t=n.handledAlerts.find(t=>t.number===e.number);return(0,B.jsxs)(`div`,{className:`row alert-row`,children:[(0,B.jsx)(Ll,{severity:e.severity,wide:!0,faded:!0,children:cl[e.severity]}),(0,B.jsx)(`span`,{className:`alert-package mono`,children:e.package}),(0,B.jsxs)(`span`,{className:`alert-summary handled-note`,children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),`Corrigée à la main`,t&&` le ${ml(t.markedAt)}`]}),(0,B.jsx)(`button`,{type:`button`,className:`link restore-link`,onClick:()=>void i(e.number),children:`Rétablir`})]},e.number)})})]})}function af({view:e,onChanged:t}){let[n,r]=(0,_.useState)(!1),i=e.repo.id,a=e.repo.queuedAt!==null;async function o(){r(!0);try{if(a){await D.unqueueRepo(i),jl(W.queue());return}await D.queueRepo(i),t()}catch(e){T(e)}finally{r(!1)}}return a?(0,B.jsxs)(`button`,{type:`button`,className:`button button-queued`,onClick:()=>void o(),disabled:n,title:`Retirer de la file d'attente`,children:[(0,B.jsx)(V,{name:`list-check`}),`Traité`]}):(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary`,onClick:()=>void o(),disabled:n,children:[(0,B.jsx)(V,{name:`list-plus`}),`Ajouter à la file`]})}function of({view:e,onChanged:t}){let[n,r]=(0,_.useState)(!1),i=e.repo.id,a=e.repo.deployPendingAt!==null;async function o(){r(!0);try{await(a?D.unmarkDeployPending(i):D.markDeployPending(i)),t()}catch(e){T(e)}finally{r(!1)}}return a?(0,B.jsxs)(`button`,{type:`button`,className:`button button-queued`,onClick:()=>void o(),disabled:n,title:`Retirer de « À déployer »`,children:[(0,B.jsx)(V,{name:`rocket`}),`Déployé`]}):(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary`,onClick:()=>void o(),disabled:n,children:[(0,B.jsx)(V,{name:`rocket`}),`À déployer`]})}function sf({repoId:e,tab:t,deploymentId:n}){let r=b(`repo:${e}`,()=>D.getRepo(e),$d),i=b(`history:${e}`,()=>D.listOperations(e),$d),a=b(`config`,D.getConfig,null),[o,s]=(0,_.useState)(!1),c=r.data;if(!c)return(0,B.jsx)(`div`,{className:`page`,children:(0,B.jsx)(`p`,{className:r.error?`error-text`:`muted`,children:r.error??`Chargement du dépôt…`})});let{repo:l,activeOperation:u}=c,d=nl(l).length,f=i.data?.operations??[];async function p(e){s(!0);try{let{operation:t}=await D.startFix(l.id,e);jl(W.operation(l.id,t.id))}catch(e){T(e),s(!1)}}return(0,B.jsxs)(`div`,{className:`page`,children:[(0,B.jsxs)(`div`,{className:`page-head`,children:[(0,B.jsx)(`a`,{className:`back`,href:W.lastHome(),"aria-label":`Retour aux dépôts`,children:(0,B.jsx)(V,{name:`arrow-left`,size:20})}),(0,B.jsxs)(`div`,{className:`page-head-text`,children:[(0,B.jsxs)(`h1`,{className:`page-title`,children:[l.name,a.data&&(0,B.jsx)(`a`,{className:`title-link`,href:`${a.data.githubServerUrl}/${l.id}`,target:`_blank`,rel:`noreferrer`,title:`Ouvrir ${l.id} sur GitHub`,"aria-label":`Ouvrir ${l.id} sur GitHub`,children:(0,B.jsx)(V,{name:`external-link`,size:16})})]}),(0,B.jsxs)(`div`,{className:`subtitle`,children:[l.owner,` · `,(0,B.jsx)(Zu,{repo:l,onChanged:r.reload}),` ·`,` `,(0,B.jsx)($u,{repo:l,categoryName:c.category?.name??null,onChanged:r.reload}),` ·`,` `,l.deprecatedAt?`déprécié le ${ml(l.deprecatedAt)}`:l.syncError?(0,B.jsx)(`span`,{className:`error-text`,title:l.syncError,children:`synchronisation impossible`}):l.syncedAt?`synchronisé ${ol(l.syncedAt)}`:`synchronisation…`]})]}),(0,B.jsxs)(`div`,{className:`page-actions`,children:[!l.deprecatedAt&&(0,B.jsx)(of,{view:c,onChanged:r.reload}),!l.deprecatedAt&&(0,B.jsx)(af,{view:c,onChanged:r.reload}),(0,B.jsx)(tf,{repoId:l.id}),u?(0,B.jsxs)(`button`,{type:`button`,className:`button button-primary`,onClick:()=>jl(W.operation(l.id,u.id)),children:[(0,B.jsx)(V,{name:`wrench`}),u.kind===`audit`?`Voir l'audit en cours`:`Voir la correction en cours`]}):l.deprecatedAt?(0,B.jsxs)(`button`,{type:`button`,className:`button button-primary`,disabled:!0,title:`Dépôt déprécié : rétablissez-le depuis l’onglet « Dépréciés » pour le corriger.`,children:[(0,B.jsx)(V,{name:`wrench`}),`Corriger`]}):(0,B.jsx)(H,{variant:`primary`,icon:`wrench`,label:`Corriger`,disabled:o,onLaunch:e=>void p(e)})]})]}),l.syncError&&(0,B.jsx)(`p`,{className:`banner banner-error`,children:l.syncError}),(0,B.jsxs)(`nav`,{className:`tabs`,children:[(0,B.jsxs)(`a`,{className:`tab${t===`alerts`?` is-active`:``}`,href:W.repo(l.id),children:[`Alertes ouvertes`,d>0&&(0,B.jsx)(`span`,{className:`tab-count tab-count-alert`,children:d})]}),(0,B.jsxs)(`a`,{className:`tab${t===`history`?` is-active`:``}`,href:W.repoHistory(l.id),children:[`Historique`,f.length>0&&(0,B.jsx)(`span`,{className:`tab-count`,children:f.length})]}),(0,B.jsx)(`a`,{className:`tab${t===`deploy`?` is-active`:``}`,href:W.repoDeploy(l.id),children:`Déploiement`})]}),t===`alerts`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(nf,{view:c,onChanged:r.reload}),(0,B.jsx)(rf,{view:c,onChanged:r.reload})]}):t===`deploy`?(0,B.jsx)(Kd,{repo:l,deploymentId:n}):i.data?(0,B.jsx)(Qd,{repoId:l.id,operations:f}):(0,B.jsx)(`p`,{className:i.error?`error-text`:`muted`,children:i.error??`Chargement de l'historique…`})]})}var cf={maxTurns:{min:1,max:200},maxMinutes:{min:1,max:60}},lf=z({maxTurns:qs().int().min(cf.maxTurns.min).max(cf.maxTurns.max),maxMinutes:qs().int().min(cf.maxMinutes.min).max(cf.maxMinutes.max)}),uf=z({token:R().nullable(),savedAt:R().nullable(),login:R().nullable().default(null),expiresAt:R().nullable().default(null)}),df={token:null,savedAt:null,login:null,expiresAt:null};z({organizer:z({url:R().nullable(),token:R().nullable(),space:R().nullable(),owner:R().nullable()}),claude:z({token:R().nullable(),savedAt:R().nullable()}),analysis:lf,github:uf.default(df),deploy:uf.default(df)}),z({organizerUrl:R().trim(),organizerToken:R().trim().min(1).optional(),claudeToken:R().trim().min(1).optional(),githubToken:R().trim().min(1).optional(),deployToken:R().trim().min(1).nullable().optional(),analysis:lf});var ff=3e3,pf=4e3;function Z(e){return new Date(e).toLocaleDateString(`fr-FR`,{day:`numeric`,month:`short`})}async function mf(e,t){try{await navigator.clipboard.writeText(e),ae.getState().show(`info`,t)}catch(e){T(e)}}function hf({onCreated:e,onCancel:t}){let[n,r]=(0,_.useState)(``),[i,a]=(0,_.useState)(!1),o=(0,_.useRef)(null);(0,_.useEffect)(()=>o.current?.focus(),[]);async function s(){if(n.trim()&&!i){a(!0);try{e(await D.createAgentToken(n.trim()))}catch(e){T(e),a(!1)}}}return(0,B.jsxs)(`div`,{className:`token-create`,children:[(0,B.jsx)(`input`,{ref:o,className:`input`,value:n,maxLength:60,placeholder:`Nom, ex. Claude Code — portable`,"aria-label":`Nom du token`,onChange:e=>r(e.target.value),onKeyDown:e=>{e.key===`Enter`&&s(),e.key===`Escape`&&t()}}),(0,B.jsx)(`button`,{type:`button`,className:`button button-queued`,disabled:!n.trim()||i,onClick:()=>void s(),children:`Créer`}),(0,B.jsx)(`button`,{type:`button`,className:`link`,onClick:t,children:`Annuler`})]})}function gf({created:e,onClose:t}){return(0,B.jsxs)(`div`,{className:`token-created`,children:[(0,B.jsxs)(`div`,{className:`token-created-head`,children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),(0,B.jsxs)(`span`,{children:[`Token « `,e.token.name,` » créé. Copiez-le maintenant : il ne sera plus affiché.`]}),(0,B.jsx)(`span`,{className:`spacer`}),(0,B.jsx)(`button`,{type:`button`,className:`icon-button`,onClick:t,"aria-label":`Fermer`,children:(0,B.jsx)(V,{name:`x`,size:16})})]}),(0,B.jsxs)(`div`,{className:`token-secret`,children:[(0,B.jsx)(`span`,{className:`input mono token-secret-value`,children:e.secret}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary`,onClick:()=>void mf(e.secret,`Token copié.`),children:[(0,B.jsx)(V,{name:`copy`}),`Copier`]})]}),(0,B.jsx)(`span`,{className:`field-label`,children:`Déclarer le MCP dans un projet`}),(0,B.jsxs)(`button`,{type:`button`,className:`code-chip mono token-command`,onClick:()=>void mf(e.setupCommand,`Commande copiée.`),title:`Copier la commande`,children:[(0,B.jsx)(`span`,{className:`token-command-text`,children:e.setupCommand}),(0,B.jsx)(V,{name:`copy`,size:14})]})]})}function _f({token:e,onRevoked:t}){let[n,r]=(0,_.useState)(!1);(0,_.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>r(!1),pf);return()=>clearTimeout(e)},[n]);async function i(){if(!n)r(!0);else try{await D.revokeAgentToken(e.id),t()}catch(e){r(!1),T(e)}}return(0,B.jsxs)(`div`,{className:`token-row${n?` is-confirming`:``}`,children:[(0,B.jsx)(V,{name:`key-round`,className:`token-icon`}),(0,B.jsxs)(`div`,{className:`token-text`,children:[(0,B.jsx)(`div`,{className:`token-name`,children:e.name}),(0,B.jsxs)(`div`,{className:`token-meta`,children:[`•••• `,e.hint,` · créé le `,Z(e.createdAt),` · `,e.lastUsedAt?`utilisé ${ol(e.lastUsedAt)}`:`jamais utilisé`]})]}),(0,B.jsx)(`button`,{type:`button`,className:`token-revoke`,onClick:()=>void i(),children:n?`Confirmer la révocation`:`Révoquer`})]})}function vf(){let e=b(`agent-tokens`,()=>D.listAgentTokens(),ff),[t,n]=(0,_.useState)(!1),[r,i]=(0,_.useState)(null),a=e.data?.tokens??[];return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`section-head`,children:[(0,B.jsx)(`p`,{className:`section-label`,children:`Accès des agents — outils MCP`}),!t&&(0,B.jsxs)(`button`,{type:`button`,className:`button button-secondary button-small`,onClick:()=>n(!0),children:[(0,B.jsx)(V,{name:`plus`}),`Nouveau token`]})]}),(t||r||a.length>0)&&(0,B.jsxs)(`div`,{className:`panel settings-card`,children:[t&&(0,B.jsx)(hf,{onCancel:()=>n(!1),onCreated:t=>{n(!1),i(t),e.reload()}}),r&&(0,B.jsx)(gf,{created:r,onClose:()=>i(null)}),a.map(t=>(0,B.jsx)(_f,{token:t,onRevoked:e.reload},t.id))]}),e.error&&(0,B.jsx)(`p`,{className:`error-text`,children:e.error}),(0,B.jsx)(`p`,{className:`hint`,children:`Un agent déclare le MCP avec l'adresse de ce serveur et l'un de ces tokens.`})]})}var yf=`claude setup-token`,bf=`unset GIT_CONFIG_COUNT GIT_CONFIG_KEY_0 GIT_CONFIG_VALUE_0`,xf=4e3;function Sf(e){return new Date(e).toLocaleDateString(`fr-FR`,{day:`numeric`,month:`short`,year:`numeric`})}async function Cf(e,t){try{await navigator.clipboard.writeText(e),ae.getState().show(`info`,`${t} copiée.`)}catch(e){T(e)}}function wf({title:e,description:t,view:n,missing:r,rights:i,value:a,onChange:o,onRemove:s}){let[c,l]=(0,_.useState)(!1);(0,_.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>l(!1),xf);return()=>clearTimeout(e)},[c]);async function u(){c?(l(!1),await s?.()):l(!0)}let d=n.tokenHint!==null;return(0,B.jsxs)(`div`,{className:`github-token`,children:[(0,B.jsx)(`div`,{className:`right-label`,children:e}),(0,B.jsx)(`div`,{className:`right-description`,children:t}),d&&a===null?(0,B.jsxs)(`div`,{className:`github-token-status`,children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),(0,B.jsxs)(`span`,{children:[`•••• `,n.tokenHint,n.login&&` · compte ${n.login}`,n.expiresAt?` · expire le ${Sf(n.expiresAt)}`:n.login?` · sans expiration`:``]}),(0,B.jsx)(`span`,{className:`spacer`}),(0,B.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>o(``),children:`Remplacer`}),s&&(0,B.jsx)(`button`,{type:`button`,className:`link-danger`,onClick:()=>void u(),children:c?`Confirmer le retrait`:`Retirer`})]}):(0,B.jsxs)(B.Fragment,{children:[!d&&(0,B.jsxs)(`div`,{className:`github-token-status`,children:[(0,B.jsx)(V,{name:`circle-alert`,className:`text-warning`}),(0,B.jsx)(`span`,{className:`github-token-missing`,children:r})]}),(0,B.jsx)(`div`,{className:`github-token-rights`,children:i}),(0,B.jsx)(`input`,{className:`input mono github-token-input`,type:`password`,autoComplete:`off`,spellCheck:!1,"aria-label":e,placeholder:`github_pat_…`,value:a??``,onChange:e=>o(e.target.value)})]})]})}function Tf(e){return new Date(e).toLocaleDateString(`fr-FR`)}function Ef({hint:e,value:t,onChange:n,label:r,placeholder:i}){return e!==null&&t===null?(0,B.jsxs)(`div`,{className:`input token-saved`,children:[(0,B.jsxs)(`span`,{className:`mono`,children:[`•••••••••••• `,e]}),(0,B.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>n(``),children:`Remplacer`})]}):(0,B.jsx)(`input`,{className:`input mono`,type:`password`,autoComplete:`off`,spellCheck:!1,"aria-label":r,placeholder:i,value:t??``,onChange:e=>n(e.target.value)})}function Df({view:e,onSaved:t}){let[n,r]=(0,_.useState)(e.organizer.url??``),[i,a]=(0,_.useState)(null),[o,s]=(0,_.useState)(e.claude.tokenHint===null?``:null),[c,l]=(0,_.useState)(e.github.tokenHint===null?``:null),[u,d]=(0,_.useState)(e.deploy.tokenHint===null?``:null),[f,p]=(0,_.useState)(e.analysis),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(!1);async function y(){let e={organizerUrl:n.trim(),analysis:f};i?.trim()&&(e.organizerToken=i.trim()),o?.trim()&&(e.claudeToken=o.trim()),c?.trim()&&(e.githubToken=c.trim()),u?.trim()&&(e.deployToken=u.trim()),h(!0);try{let n=await D.saveSettings(e);a(null),s(n.claude.tokenHint===null?``:null),l(n.github.tokenHint===null?``:null),d(n.deploy.tokenHint===null?``:null),t(n),ae.getState().show(`info`,`Réglages enregistrés.`)}catch(e){T(e)}h(!1)}async function b(){v(!0);try{t(await D.testOrganizer()),ae.getState().show(`info`,`La connexion à l'organizer fonctionne.`)}catch(e){T(e)}v(!1)}async function x(){try{let n=await D.saveSettings({organizerUrl:e.organizer.url??``,analysis:e.analysis,deployToken:null});d(``),t(n),ae.getState().show(`info`,`Token de déploiement retiré.`)}catch(e){T(e)}}let S=(e,t)=>{let n=Math.round(Number(t));Number.isFinite(n)&&p({...f,[e]:Math.min(cf[e].max,Math.max(cf[e].min,n))})};return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`div`,{className:`page-head`,children:[(0,B.jsx)(`a`,{className:`back`,href:W.lastHome(),"aria-label":`Retour à l'accueil`,children:(0,B.jsx)(V,{name:`arrow-left`,size:20})}),(0,B.jsxs)(`div`,{className:`page-head-text`,children:[(0,B.jsx)(`h1`,{className:`page-title`,children:`Réglages`}),(0,B.jsx)(`p`,{className:`subtitle`,children:`Accès à GitHub, corrections par Claude et agents`})]}),(0,B.jsx)(`div`,{className:`page-actions`,children:(0,B.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:m,onClick:()=>void y(),children:m?`Enregistrement…`:`Enregistrer`})})]}),(0,B.jsx)(`p`,{className:`section-label`,children:`GitHub — accès aux dépôts`}),(0,B.jsxs)(`div`,{className:`panel settings-card`,children:[(0,B.jsx)(wf,{title:`Token du tracker`,description:`Lit les alertes, clone les dépôts, pousse les corrections et ouvre les pull requests`,view:e.github,missing:`Manquant — ni synchronisation, ni audit, ni correction`,rights:`Token à grain fin : Dependabot alerts en lecture, Contents et Pull requests en lecture et écriture`,value:c,onChange:l}),(0,B.jsx)(wf,{title:`Token de déploiement`,description:`Transmis aux scripts de déploiement, pour leur git pull`,view:e.deploy,missing:`Absent — le git pull d'un dépôt privé échoue pendant un déploiement`,rights:`Token à grain fin en lecture seule : Contents en lecture, limité aux dépôts que vous déployez`,value:u,onChange:d,onRemove:x})]}),(0,B.jsxs)(`div`,{className:`settings-note`,children:[(0,B.jsx)(`span`,{children:`Dans un script de déploiement, retirez le token après le git pull, pour ne pas le transmettre aux commandes suivantes :`}),(0,B.jsxs)(`button`,{type:`button`,className:`code-chip mono`,onClick:()=>void Cf(bf,`Ligne`),title:`Copier la ligne`,children:[bf,(0,B.jsx)(V,{name:`copy`,size:14})]})]}),(0,B.jsx)(`p`,{className:`section-label`,children:`Organizer — où Claude dépose son rapport`}),(0,B.jsxs)(`div`,{className:`panel settings-card`,children:[(0,B.jsxs)(`div`,{className:`settings-fields`,children:[(0,B.jsxs)(`label`,{className:`settings-field`,children:[(0,B.jsx)(`span`,{className:`field-label`,children:`Adresse du site`}),(0,B.jsx)(`input`,{className:`input`,value:n,placeholder:`https://organizer.example.com`,spellCheck:!1,onChange:e=>r(e.target.value)})]}),(0,B.jsxs)(`div`,{className:`settings-field settings-field-narrow`,children:[(0,B.jsx)(`span`,{className:`field-label`,children:`Token d'agent`}),(0,B.jsx)(Ef,{hint:e.organizer.tokenHint,value:i,onChange:a,label:`Token d'agent`,placeholder:`Paramètres › Agents dans l'organizer`})]})]}),(0,B.jsxs)(`div`,{className:`settings-status`,children:[e.organizer.space?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),(0,B.jsxs)(`span`,{children:[`Connecté à l'espace « `,e.organizer.space,` » · tâches assignées à `,e.organizer.owner]})]}):(0,B.jsx)(`span`,{className:`muted`,children:`Indiquez l'adresse du site et un token d'agent, créé dans l'organizer (Paramètres › Agents).`}),(0,B.jsx)(`span`,{className:`spacer`}),e.organizer.tokenHint!==null&&(0,B.jsx)(`button`,{type:`button`,className:`link`,disabled:g,onClick:()=>void b(),children:g?`Test…`:`Tester`})]})]}),(0,B.jsx)(`p`,{className:`section-label`,children:`Claude — abonnement utilisé pour les corrections`}),(0,B.jsxs)(`div`,{className:`panel settings-card`,children:[(0,B.jsx)(`div`,{className:`settings-status settings-status-top`,children:e.claude.tokenHint===null?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{name:`circle-alert`,className:`text-warning`}),(0,B.jsx)(`span`,{children:`Non connecté — sans Claude, une correction pousse les seules corrections de npm audit fix`})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{name:`circle-check`,className:`text-ok`}),(0,B.jsxs)(`span`,{children:[`Connecté · token enregistré le `,Tf(e.claude.savedAt),`, valable jusqu'au `,Tf(e.claude.expiresAt)]}),(0,B.jsx)(`span`,{className:`spacer`}),o===null&&(0,B.jsx)(`button`,{type:`button`,className:`link`,onClick:()=>s(``),children:`Remplacer`})]})}),o!==null&&(0,B.jsxs)(`ol`,{className:`claude-steps`,children:[(0,B.jsxs)(`li`,{children:[(0,B.jsx)(`span`,{className:`step-number`,children:`1`}),`Sur un poste avec navigateur, lancez`,(0,B.jsxs)(`button`,{type:`button`,className:`code-chip mono`,onClick:()=>void Cf(yf,`Commande`),title:`Copier la commande`,children:[yf,(0,B.jsx)(V,{name:`copy`,size:14})]})]}),(0,B.jsxs)(`li`,{children:[(0,B.jsx)(`span`,{className:`step-number`,children:`2`}),`Autorisez l'accès dans le navigateur : le terminal affiche un token valable un an`]}),(0,B.jsxs)(`li`,{children:[(0,B.jsx)(`span`,{className:`step-number`,children:`3`}),`Collez-le ici`]}),(0,B.jsx)(`li`,{className:`claude-token-input`,children:(0,B.jsx)(`input`,{className:`input mono`,type:`password`,autoComplete:`off`,spellCheck:!1,"aria-label":`Token Claude`,placeholder:`sk-ant-oat01-…`,value:o,onChange:e=>s(e.target.value)})})]})]}),(0,B.jsx)(`p`,{className:`section-label`,children:`Corrections par Claude`}),(0,B.jsx)(`div`,{className:`panel settings-card`,children:(0,B.jsxs)(`div`,{className:`right`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`div`,{className:`right-label`,children:`Limites d'une session`}),(0,B.jsx)(`div`,{className:`right-description`,children:`Claude est lancé dès que npm audit fix laisse des vulnérabilités`})]}),(0,B.jsxs)(`div`,{className:`limits`,children:[(0,B.jsx)(`input`,{className:`input number-input`,type:`number`,min:cf.maxTurns.min,max:cf.maxTurns.max,value:f.maxTurns,"aria-label":`Tours au plus`,onChange:e=>S(`maxTurns`,e.target.value)}),(0,B.jsx)(`span`,{className:`muted`,children:`tours`}),(0,B.jsx)(`input`,{className:`input number-input`,type:`number`,min:cf.maxMinutes.min,max:cf.maxMinutes.max,value:f.maxMinutes,"aria-label":`Minutes au plus`,onChange:e=>S(`maxMinutes`,e.target.value)}),(0,B.jsx)(`span`,{className:`muted`,children:`min`})]})]})}),(0,B.jsx)(vf,{})]})}function Of(){let e=b(`settings`,()=>D.getSettings(),null,{remember:!1}),[t,n]=(0,_.useState)(null),r=t??e.data;return(0,B.jsx)(`div`,{className:`page`,children:r?(0,B.jsx)(Df,{view:r,onSaved:n}):(0,B.jsx)(`p`,{className:e.error?`error-text`:`muted`,children:e.error??`Chargement des réglages…`})})}function kf(){let e=de(e=>e.status),t=de(e=>e.check),[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>{t().catch(e=>r(e instanceof Error?e.message:String(e)))},[t]),n?(0,B.jsx)(`div`,{className:`login`,children:(0,B.jsx)(`p`,{className:`error-text`,children:n})}):e.kind===`checking`?null:e.kind===`signed-out`?(0,B.jsx)(xu,{}):(0,B.jsx)(Af,{})}function Af(){let e=Pl(),[t,n]=(0,_.useState)(!1),r=(0,_.useCallback)(()=>n(!0),[]),i=(0,_.useCallback)(()=>n(!1),[]),a,o=e.name===`home`||e.name===`queue`||e.name===`pulls`||e.name===`deploy`||e.name===`deprecated`;if(o){let n=e.name===`home`?{kind:`category`,categoryId:e.categoryId}:{kind:e.name};a=(0,B.jsx)(bu,{tab:n,adding:t,onAdd:r,onCloseAdd:i})}else a=e.name===`settings`?(0,B.jsx)(Of,{}):e.name===`repo`?(0,B.jsx)(sf,{repoId:e.repoId,tab:e.tab,deploymentId:e.deploymentId},e.repoId):e.name===`operation`?(0,B.jsx)(Ju,{repoId:e.repoId,operationId:e.operationId},e.operationId):(0,B.jsx)(`div`,{className:`page`,children:(0,B.jsxs)(`p`,{className:`muted`,children:[`Adresse inconnue : `,(0,B.jsx)(`code`,{children:e.hash}),`. `,(0,B.jsx)(`a`,{className:`link`,href:W.home(),children:`Revenir à l'accueil`}),`.`]})});let s=o?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`a`,{className:`button button-secondary button-icon`,href:W.settings(),"aria-label":`Réglages`,title:`Réglages`,children:(0,B.jsx)(V,{name:`settings`})}),(0,B.jsx)(Tl,{}),e.name!==`deploy`&&e.name!==`pulls`&&(0,B.jsx)(Cl,{target:e.name===`queue`?{kind:`queue`}:e.name===`home`&&e.categoryId!==null?{kind:`category`,categoryId:e.categoryId}:{kind:`all`}}),(0,B.jsxs)(`button`,{type:`button`,className:`button button-primary`,onClick:r,children:[(0,B.jsx)(V,{name:`plus`}),`Ajouter un dépôt`]})]}):null;return(0,B.jsxs)(`div`,{className:`app`,children:[(0,B.jsx)(Fl,{action:s}),(0,B.jsx)(`main`,{className:`main`,children:a}),(0,B.jsx)(wl,{})]})}(0,v.createRoot)(document.getElementById(`root`)).render((0,B.jsx)(_.StrictMode,{children:(0,B.jsx)(kf,{})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/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(/assets/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(/assets/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(/assets/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(/assets/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(/assets/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(/assets/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++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/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(/assets/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(/assets/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(/assets/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(/assets/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(/assets/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}.login{justify-content:center;align-items:center;min-height:100%;padding:24px 16px;display:flex}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:18px;width:360px;max-width:100%;padding:32px;display:flex}.login-brand{color:var(--text);align-items:center;gap:12px;margin-bottom:18px;font-size:15px;font-weight:600;display:flex}.login-brand .brand-mark{border-radius:8px;width:32px;height:32px}.login-field{flex-direction:column;gap:6px;display:flex}.login-field .input{background:var(--panel);font-size:14px}.login-hint{color:var(--muted);font-size:12px}.login-error{color:var(--danger);align-items:center;gap:6px;margin:0;font-size:12px;display:flex}.login-error svg{flex-shrink:0;width:14px;height:14px}.login-submit.button{height:40px;font-size:14px;font-weight:600}.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}.title-link{vertical-align:middle;color:var(--muted);margin-left:8px;display:inline-flex}.title-link:hover{color:var(--text)}.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}.split-button{display:inline-flex}.split-main.button{border-top-right-radius:0;border-bottom-right-radius:0}.split-toggle.button{border-top-left-radius:0;border-bottom-left-radius:0;padding:0 10px}.split-toggle.button-primary{border-left:1px solid #ffffff59}.split-toggle.button-secondary{border-left:none}.scope-menu{padding:6px;left:auto;right:0}.scope-option{text-align:left;border-radius:6px;align-items:center;gap:8px;width:100%;padding:8px 14px;display:flex}.scope-option:hover,.scope-option:focus-visible{background:var(--brand-bg)}.scope-option-text{flex-direction:column;flex:1;gap:3px;display:flex}.scope-option-label{color:var(--text);font-size:13px}.scope-option-detail{color:var(--faint);font-size:11px}.dev-tag{background:var(--surface);border:1px solid var(--border-strong);color:var(--muted);border-radius:11px;flex-shrink:0;padding:3px 12px;font-size:11px}.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-queued{background:var(--brand-bg);color:var(--accent-soft);border:1px solid #2a3160}.button-queued:hover:not(:disabled){border-color:var(--accent)}.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)}.button-danger.button-secondary,.button-danger.button-secondary:hover:not(:disabled){border-color:var(--danger);color:var(--danger)}.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-action-toggle{margin-right:0}.row .row-action-toggle.is-on{background:var(--brand-bg);color:var(--accent-soft);border-color:#0000}.row .row-action-toggle.is-on:hover{border-color:#2a3160}.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}.repo-table{grid-template-columns:minmax(120px,1fr) 170px 215px 180px auto 16px;column-gap:20px;display:grid}.repo-table-head,.repo-row{grid-column:1/-1;grid-template-columns:subgrid;align-items:center;gap:inherit;padding:0 20px;display:grid}.repo-table-head{height:40px;color:var(--faint);font-size:12px;font-weight:500}.repo-row{min-height:48px}.repo-name-cell{align-items:center;gap:6px;min-width:0;display:flex}.repo-github{z-index:1;color:var(--faint);opacity:0;flex-shrink:0;transition:opacity .12s;display:inline-flex;position:relative}.row:hover .repo-github,.repo-github:focus-visible{opacity:1}.repo-github:hover{color:var(--text)}@media (hover:none){.repo-github{opacity:1}}.repo-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;overflow:hidden}.repo-cell{white-space:nowrap;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.repo-follow{gap:14px}.cell-mark{z-index:1;white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;font-size:12px;display:inline-flex;position:relative}.cell-shrink{flex-shrink:1;min-width:0}.cell-shrink svg{flex-shrink:0}.cell-ellipsis{text-overflow:ellipsis;min-width:0;overflow:hidden}.cell-faint{color:var(--faint);font-size:12px}.cell-audit{color:var(--muted)}.follow-link,.follow-mark{color:var(--accent-soft)}.follow-link:hover{color:var(--accent-hover);text-decoration:underline}.repo-actions{justify-content:flex-end;align-items:center;gap:6px;display:flex}.repo-actions .row-action{margin-right:0}.repo-actions-hover{opacity:0;transition:opacity .12s}.row:hover .repo-actions-hover,.row:focus-within .repo-actions-hover{opacity:1}@media (hover:none){.repo-actions-hover{opacity:1}}@media (width<=760px){.repo-table{display:block}.repo-table-head{display:none}.repo-row{flex-wrap:wrap;gap:6px 16px;padding:10px 44px 10px 16px;display:flex}.repo-name-cell{flex:100%}.repo-cell{overflow:visible}.repo-row .row-chevron{position:absolute;top:50%;right:16px;transform:translateY(-50%)}}.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 0 auto}.step-pending .step-label,.step-skipped .step-label{color:var(--faint)}.step-current .step-label{color:var(--text);font-weight:500}.step-result{min-width:0;color:var(--faint);white-space:pre;align-items:center;font-size:13px;display:flex}.unfixable-toggle{color:var(--warning);font-size:13px}.unfixable-toggle:hover{text-decoration:underline}.step-body{padding:0 20px 18px 52px;font-size:13px}.merged-offer{background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;align-items:center;gap:12px;padding:12px 16px;display:flex}.merged-offer-icon{color:var(--accent-soft);flex-shrink:0}.merged-offer-text{min-width:0;color:var(--muted);flex:1}.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}.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}.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{width:1020px;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}.button-icon{width:36px;padding:0}.settings-card{margin-bottom:28px;padding:0 20px}.settings-fields{border-bottom:1px solid var(--divider);grid-template-columns:minmax(0,1fr) 344px;gap:16px;padding:18px 0 20px;display:grid}.settings-field{flex-direction:column;gap:8px;display:flex}.field-label{color:var(--muted);font-size:12px}.token-saved{color:var(--text-soft);justify-content:space-between;align-items:center;display:flex}.token-saved .link{font-size:12px}.settings-status{min-height:44px;color:var(--text-soft);align-items:center;gap:10px;font-size:13px;display:flex}.settings-status-top{min-height:52px;color:var(--text);font-size:14px}.claude-steps{border-top:1px solid var(--divider);color:var(--text-soft);flex-direction:column;gap:14px;margin:0;padding:18px 0 20px;font-size:13px;list-style:none;display:flex}.claude-steps li{align-items:center;gap:12px;display:flex}.step-number{background:var(--divider);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;display:inline-flex}.code-chip{background:var(--bg);border:1px solid var(--border-strong);height:28px;color:var(--text);border-radius:6px;align-items:center;gap:10px;padding:0 10px 0 12px;font-size:12px;display:inline-flex}.code-chip svg{color:var(--muted)}.code-chip:hover svg{color:var(--text)}.claude-token-input{padding-left:34px}.claude-token-input .input{max-width:520px}.limits{align-items:center;gap:8px;display:flex}.number-input.input{text-align:center;width:56px;height:32px;padding:0 6px}.limits .muted+.number-input{margin-left:8px}.section-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.section-head .section-label{margin:0}.button-small.button{height:32px;padding:0 12px}.section-head+.panel.settings-card{margin-bottom:0}.token-create{border-bottom:1px solid var(--divider);align-items:center;gap:12px;padding:16px 0;display:flex}.token-create .input{background:var(--bg);height:36px}.token-create .link{color:var(--muted);font-size:13px}.token-created{border-bottom:1px solid var(--divider);flex-direction:column;gap:12px;padding:16px 0 18px;font-size:13px;display:flex}.token-created-head{color:var(--text);align-items:center;gap:12px;display:flex}.token-secret{gap:12px;padding-left:28px;display:flex}.token-secret-value.input{background:var(--bg);white-space:nowrap;-webkit-user-select:all;user-select:all;align-items:center;height:36px;display:flex;overflow-x:auto}.token-created .field-label{padding-left:28px}.token-command.code-chip{min-width:0;height:32px;color:var(--text-soft);justify-content:space-between;margin-left:28px}.token-command-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.token-row{border-bottom:1px solid var(--divider);align-items:center;gap:12px;min-height:52px;margin:0 -20px;padding:8px 20px;display:flex}.token-row:last-child{border-bottom:none}.token-row:hover{background:var(--surface-raised)}.token-icon{color:var(--faint);flex-shrink:0}.token-text{flex:1;min-width:0}.token-name{text-overflow:ellipsis;white-space:nowrap;color:var(--text-soft);font-size:14px;overflow:hidden}.token-meta{color:var(--faint);margin-top:3px;font-size:12px}.token-revoke{visibility:hidden;color:var(--danger);flex-shrink:0;font-size:13px}.token-row:hover .token-revoke,.token-row.is-confirming .token-revoke,.token-revoke:focus-visible{visibility:visible}@media (hover:none){.token-revoke{visibility:visible}}@media (width<=720px){.settings-fields{grid-template-columns:minmax(0,1fr)}}.activity{color:var(--faint);margin:0;padding:0;font-size:12px;line-height:1.8;list-style:none}.activity-last{color:var(--muted)}.task-link{align-items:center;gap:8px;min-width:0;display:inline-flex}.task-link-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.task-link svg{flex-shrink:0}.verdict{background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;margin-top:14px;padding:13px 16px}.verdict-title{color:var(--text);align-items:center;gap:8px;font-weight:500;display:flex}.verdict-text{color:var(--muted);margin:8px 0 0 22px;line-height:1.6}.verdict-title svg{color:var(--accent-soft)}.repair-summary{margin-top:0}.repair-changes{grid-template-columns:max-content minmax(0,1fr);column-gap:24px;margin:10px 0 0 22px;padding:0;font-size:12px;line-height:1.8;list-style:none;display:grid}.repair-changes li{display:contents}.repair-changes .mono{color:var(--text-soft);flex-shrink:0}.repair-line{color:var(--muted);align-items:center;gap:6px;margin:6px 0 0 22px;font-size:12px;display:flex}.repair-line .link{font-size:12px}.text-accent{color:var(--accent-soft)}.tabs{border-bottom:1px solid var(--divider);gap:32px;margin-bottom:24px;display:flex}.tab{color:var(--muted);border-bottom:2px solid #0000;align-items:center;gap:10px;margin-bottom:-1px;padding:0 0 12px;display:inline-flex}.tab:hover{color:var(--text-soft)}.tab.is-active{color:var(--text);border-bottom-color:var(--accent)}.tab-count{color:var(--faint);font-size:12px}.tab-count-alert{background:var(--critical-bg);min-width:22px;color:var(--danger);text-align:center;border-radius:10px;padding:1px 7px}.history-row{gap:16px;min-height:60px}.history-icon{flex-shrink:0}.history-title{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.history-meta{color:var(--faint);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.history-date{width:110px;color:var(--text-soft);flex-shrink:0}.history-counts{text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;width:150px;font-weight:400;overflow:hidden}.history-claude{width:150px;color:var(--accent-soft);white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;display:inline-flex}.history-claude svg{flex-shrink:0}.history-outcome{text-align:right;width:110px;color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:12px}.history-outcome .pr-note{justify-content:flex-end}.history-note{margin-top:14px}@media (width<=900px){.history-claude,.history-date{display:none}}.pager{border:1px solid var(--border-strong);border-radius:8px;align-items:center;height:36px;display:inline-flex}.pager-arrow{width:32px;height:100%;color:var(--muted);justify-content:center;align-items:center;display:inline-flex}.pager-arrow:hover{color:var(--text)}.pager-arrow.is-disabled{color:var(--idle);pointer-events:none}.pager-position{color:var(--muted);font-size:12px}.session-detail{padding:22px 24px}.session-title{margin-bottom:6px;font-size:15px;font-weight:500}.session-section{margin-top:22px}.session-section-title{color:var(--muted);margin-bottom:8px;font-size:12px}.session-tasks{margin:0;padding:0;list-style:none}.session-tasks li{align-items:center;gap:12px;min-height:24px;display:flex}.session-task-title{color:var(--text-soft);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.session-task-role{color:var(--faint);white-space:nowrap;flex:1;font-size:12px}.icon-link{color:var(--faint);display:inline-flex}.icon-link:hover{color:var(--text)}.session-events{flex-direction:column;gap:4px;display:flex}.session-message{color:var(--text-soft);white-space:pre-wrap;word-break:break-word;margin:6px 0 2px;line-height:1.6}.session-tool{color:var(--faint);text-overflow:ellipsis;white-space:nowrap;margin:0 0 0 12px;font-size:12px;overflow:hidden}.session-text{color:var(--text-soft);line-height:1.6}.session-line{color:var(--muted);align-items:center;gap:6px;margin-top:8px;font-size:12px;display:flex}.session-detail .repair-changes{margin-left:0}.hl{color:var(--text-strong)}.hl .tk-cmd{color:#8b97ff}.hl .tk-danger{color:#f0857d}.hl .tk-opt{color:var(--muted)}.hl .tk-str{color:#7fd1a8}.hl .tk-var,.hl .tk-num{color:#7dd3fc}.hl .tk-op{color:var(--warning)}.hl .tk-comment{color:var(--faint)}.section-label-strong{color:var(--text);font-weight:600}.hint-inline{color:var(--faint);font-size:12px}.hint-line{color:var(--muted);align-items:center;gap:8px;margin-top:12px;font-size:12px;display:flex}.hint-line svg{color:var(--faint);flex-shrink:0}.deploy-empty{gap:20px;padding:32px 20px}.deploy-empty-icon{background:var(--brand-bg);width:48px;height:48px;color:var(--accent-soft);border-radius:12px;justify-content:center;align-items:center;display:inline-flex}.deploy-empty-text{text-align:center;flex-direction:column;gap:6px;display:flex}.deploy-empty-title{color:var(--text);font-size:15px;font-weight:500}.panel.deploy-empty{overflow:visible}.picker-menu-center{left:50%;transform:translate(-50%)}.picker-menu-right{width:260px;left:auto;right:0}.server-option{height:auto;min-height:40px;padding:6px 12px}.server-option .picker-name{min-width:0;color:var(--text);flex-direction:column;flex:1;gap:2px;display:flex}.server-option-detail{color:var(--faint);font-size:11px}.menu-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:12px;display:flex}.menu-item:hover:not(:disabled){background:var(--brand-bg);color:var(--text)}.menu-item:disabled{opacity:.45;cursor:default}.menu-item svg{color:var(--muted);flex-shrink:0}.menu-item-danger,.menu-item-danger svg,.menu-item-danger:hover:not(:disabled){color:var(--danger)}.picker-options+.menu-item{border-top:1px solid var(--divider);border-radius:0 0 6px 6px;margin-top:4px}.deploy-server{align-items:center;gap:16px;min-height:60px;padding:12px 20px;display:flex;overflow:visible}.deploy-server-icon{color:var(--muted);flex-shrink:0}.deploy-server-text{flex:1;min-width:0}.deploy-server-name{color:var(--text);font-size:14px}.deploy-server-detail{color:var(--faint);white-space:nowrap;text-overflow:ellipsis;margin-top:3px;font-size:12px;overflow:hidden}.status-chip{border-radius:14px;flex-shrink:0;align-items:center;gap:8px;height:28px;padding:0 14px;font-size:12px;font-weight:500;display:inline-flex}.status-dot{background:currentColor;border-radius:50%;width:8px;height:8px}.status-chip.is-ok{color:#4ade80;background:#10261f}.status-chip.is-running{background:var(--brand-bg);color:var(--accent-soft)}.status-chip.is-idle{background:var(--high-bg);color:var(--warning)}.button-stop.button-secondary{color:#f0857d;border-color:#5c2a2a}.button-stop.button-secondary:hover:not(:disabled){border-color:var(--danger);color:var(--danger)}.deploy-server-more{padding:4px}.deploy-body{margin-top:24px}.code-box{background:var(--bg);border:1px solid var(--border);font-family:var(--font-mono);border-radius:8px;font-size:13px;line-height:22px;display:flex;position:relative;overflow:hidden}.code-box.is-active{border-color:var(--accent);box-shadow:0 0 0 .5px var(--accent)}.code-gutter{background:var(--panel);min-width:48px;color:var(--idle);text-align:right;-webkit-user-select:none;user-select:none;flex-direction:column;flex-shrink:0;padding:16px 12px 16px 8px;font-size:12px;display:flex}.code-gutter span.is-active{color:var(--muted)}.code-box.is-active:not(.is-editing) .code-gutter span.is-active{color:var(--accent-soft)}.code-scroll{flex:1;min-width:0;overflow-x:auto}.code-layer{min-width:100%;padding:16px;position:relative}.code-text,.code-input{font:inherit;white-space:pre;tab-size:4;margin:0;line-height:22px}.code-text{position:relative}.code-input{resize:none;color:#0000;width:calc(100% - 32px);height:calc(100% - 32px);caret-color:var(--accent-soft);background:0 0;border:none;outline:none;padding:0;position:absolute;inset:16px;overflow:hidden}.code-input::selection{color:#0000;background:#5b6cf559}.code-band{justify-content:flex-end;align-items:center;height:22px;margin-top:16px;padding:0 16px;display:flex;position:absolute;left:0;right:0}.code-band.is-cursor{background:var(--surface-raised)}.code-band.is-running{color:var(--accent-soft);background:#5b6cf529}.code-band.is-failed{color:var(--danger);background:#f0625a24}.code-band-label{font-family:var(--font-sans);font-size:12px;font-weight:500}.code-dim{background:#0c0e1499;margin-top:16px;position:absolute;bottom:0;left:0;right:0}.editor-foot{justify-content:space-between;align-items:center;gap:16px;margin-top:16px;display:flex}.editor-vars,.editor-actions{align-items:center;gap:8px;display:flex}.editor-actions{gap:12px}.var-chip{background:var(--surface);border:1px solid var(--border-strong);color:#7dd3fc;border-radius:6px;height:24px;padding:0 10px;font-size:12px}.var-chip:hover{border-color:var(--idle)}.editor-save{min-width:132px}.deployment-row{min-height:56px;color:inherit;gap:16px}.deployment-duration{width:60px;color:var(--text-soft);flex-shrink:0}.deployment-outcome{text-align:right;width:190px;color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:12px}.deployment-outcome.error-text{color:var(--danger)}.deployment-title{align-items:center;gap:10px;display:flex}.deployment-error{margin-top:12px}.terminal{border:1px solid var(--divider);min-height:80px;max-height:320px;color:var(--text-soft);white-space:pre-wrap;word-break:break-word;background:#090b10;border-radius:8px;margin:0;padding:14px 16px;font-size:12px;line-height:20px;overflow:auto}.terminal-cursor{vertical-align:text-bottom;background:var(--text-soft);width:8px;height:14px;animation:1s step-end infinite terminal-blink;display:inline-block}@keyframes terminal-blink{50%{opacity:0}}.modal-wizard{background:var(--surface);border-radius:14px;width:560px;padding:0;top:60px}.wizard-head{justify-content:space-between;align-items:center;padding:24px 28px 0;display:flex}.wizard-title{color:var(--text);font-size:18px;font-weight:700}.stepper{align-items:center;padding:22px 28px 0;display:flex}.stepper-item{align-items:center;display:inline-flex}.stepper-line{background:var(--border-strong);width:48px;height:2px;margin:0 12px}.stepper-step{color:var(--muted);align-items:center;gap:8px;font-size:13px;display:inline-flex}.stepper-step.is-active{color:var(--text);font-weight:600}.stepper-dot{border:1.5px solid var(--border-strong);width:22px;height:22px;color:var(--faint);border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:inline-flex}.stepper-step.is-active .stepper-dot{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}.stepper-step.is-done .stepper-dot{color:var(--bg);background:#34d399;border-color:#34d399}.stepper-step.is-done .stepper-dot svg{stroke-width:3px}.wizard-body{flex-direction:column;gap:20px;padding:24px 28px;display:flex}.wizard-foot{border-top:1px solid var(--border);justify-content:flex-end;gap:12px;padding:20px 28px 22px;display:flex}.button-large.button{min-width:100px;height:40px;font-size:14px}.button-large.button-primary{min-width:172px}.wizard-form{grid-template-columns:minmax(0,1fr) 112px;gap:16px 12px;display:grid}.wizard-field{flex-direction:column;gap:6px;display:flex}.wizard-field.is-wide{grid-column:1/-1}.wizard-field .input{background:var(--bg)}.wizard-summary{height:44px;color:var(--text-soft);background:#171b26;border-radius:8px;align-items:center;gap:10px;padding:0 14px;display:flex}.wizard-summary>svg{color:var(--muted)}.wizard-summary span{flex:1}.wizard-section{flex-direction:column;gap:10px;display:flex}.wizard-section-title{color:var(--text);justify-content:space-between;align-items:center;font-size:13px;font-weight:600;display:flex}.button-copy.button{height:28px;padding:0 12px;font-size:12px}.keybox{-webkit-line-clamp:4;background:var(--bg);border:1px solid var(--border);max-height:100px;color:var(--text-soft);word-break:break-all;border-radius:8px;-webkit-box-orient:vertical;padding:12px 14px;font-size:12px;line-height:19px;display:-webkit-box;overflow:hidden}.key-caption{color:var(--muted);justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;display:flex}.key-caption .link{flex-shrink:0;font-size:12px}.oneliner{background:var(--bg);border:1px solid var(--border);color:var(--text-soft);border-radius:8px;align-items:center;gap:10px;padding:10px 14px;font-size:12px;display:flex}.oneliner span{word-break:break-all;flex:1}.does-row{color:var(--text-soft);align-items:center;gap:10px;font-size:13px;display:flex}.does-row svg{color:var(--accent-soft);flex-shrink:0}.callout-warn{color:#e8dcc4;background:#211a10;border:1px solid #5a4520;border-radius:8px;align-items:center;gap:12px;padding:11px 14px;font-size:12px;line-height:17px;display:flex}.callout-warn svg{color:var(--warning);flex-shrink:0}.muted-line{color:var(--muted);align-items:flex-start;gap:8px;font-size:12px;line-height:17px;display:flex}.muted-line svg{color:var(--faint);flex-shrink:0;margin-top:1px}.check-list{flex-direction:column;gap:16px;display:flex}.check-row{gap:12px;display:flex}.check-row svg{flex-shrink:0}.check-title{color:var(--text);font-size:14px}.check-detail{color:var(--muted);word-break:break-word;margin-top:4px;font-size:12px}.result-ko{background:var(--critical-bg);color:#f0857d;border:1px solid #5c2a2a;border-radius:8px;gap:12px;padding:12px 14px;font-size:13px;display:flex}.result-ko svg{flex-shrink:0}@media (width<=720px){.deploy-server{flex-wrap:wrap;gap:12px 16px}.deploy-server-text{flex-basis:calc(100% - 36px)}.deploy-server>.button{margin-left:auto}.editor-foot{flex-direction:column;align-items:stretch}.deployment-duration,.deployment-row .history-date{display:none}.deployment-outcome{width:auto}}.menu-divider{background:var(--divider);height:1px;margin:4px 6px;display:block}.key-steps{flex-direction:column;gap:18px;display:flex}.key-step{gap:16px;display:flex}.key-step-dot{border:1px solid var(--border-strong);background:var(--surface);width:24px;height:24px;color:var(--muted);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:inline-flex}.key-step-dot svg{stroke-width:3px}.key-step-title{color:var(--text);font-size:14px;font-weight:500}.key-step-detail{color:var(--faint);margin-top:3px;font-size:12px;line-height:17px}.key-step.is-done .key-step-dot{background:var(--ok);border-color:var(--ok);color:var(--bg)}.key-step.is-failed .key-step-dot{color:var(--danger);background:#d9443b26;border-color:#d9443b}.key-step.is-failed .key-step-detail{color:var(--danger)}.key-step.is-skipped{opacity:.45}.current-key{background:var(--surface-raised);color:var(--text-soft);border-radius:8px;align-items:center;gap:12px;padding:10px 14px;font-size:12px;display:flex}.current-key svg{color:var(--muted);flex-shrink:0}.current-key-label{color:var(--muted);margin-bottom:2px}.safe-box{background:var(--surface-raised);border-radius:8px;gap:12px;padding:14px;display:flex}.safe-box svg{color:var(--ok);flex-shrink:0}.safe-title{color:var(--text);font-size:13px;font-weight:600}.safe-detail{color:var(--muted);margin-top:6px;font-size:12px;line-height:18px}.result-ok{color:#4ade80;background:#10261f;border-radius:10px;gap:12px;padding:14px 16px;font-size:13px;line-height:20px;display:flex}.result-ok svg{flex-shrink:0}.button-danger-solid{color:#fff;background:#d9443b;font-weight:600}.button-danger-solid:hover:not(:disabled){background:#e5534a}
|
|
1
|
+
@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/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(/assets/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(/assets/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(/assets/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(/assets/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(/assets/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(/assets/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++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/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(/assets/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(/assets/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(/assets/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(/assets/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(/assets/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}.login{justify-content:center;align-items:center;min-height:100%;padding:24px 16px;display:flex}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:18px;width:360px;max-width:100%;padding:32px;display:flex}.login-brand{color:var(--text);align-items:center;gap:12px;margin-bottom:18px;font-size:15px;font-weight:600;display:flex}.login-brand .brand-mark{border-radius:8px;width:32px;height:32px}.login-field{flex-direction:column;gap:6px;display:flex}.login-field .input{background:var(--panel);font-size:14px}.login-hint{color:var(--muted);font-size:12px}.login-error{color:var(--danger);align-items:center;gap:6px;margin:0;font-size:12px;display:flex}.login-error svg{flex-shrink:0;width:14px;height:14px}.login-submit.button{height:40px;font-size:14px;font-weight:600}.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}.title-link{vertical-align:middle;color:var(--muted);margin-left:8px;display:inline-flex}.title-link:hover{color:var(--text)}.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}.split-button{display:inline-flex}.split-main.button{border-top-right-radius:0;border-bottom-right-radius:0}.split-toggle.button{border-top-left-radius:0;border-bottom-left-radius:0;padding:0 10px}.split-toggle.button-primary{border-left:1px solid #ffffff59}.split-toggle.button-secondary{border-left:none}.scope-menu{padding:6px;left:auto;right:0}.scope-option{text-align:left;border-radius:6px;align-items:center;gap:8px;width:100%;padding:8px 14px;display:flex}.scope-option:hover,.scope-option:focus-visible{background:var(--brand-bg)}.scope-option-text{flex-direction:column;flex:1;gap:3px;display:flex}.scope-option-label{color:var(--text);font-size:13px}.scope-option-detail{color:var(--faint);font-size:11px}.dev-tag{background:var(--surface);border:1px solid var(--border-strong);color:var(--muted);border-radius:11px;flex-shrink:0;padding:3px 12px;font-size:11px}.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-queued{background:var(--brand-bg);color:var(--accent-soft);border:1px solid #2a3160}.button-queued:hover:not(:disabled){border-color:var(--accent)}.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)}.button-danger.button-secondary,.button-danger.button-secondary:hover:not(:disabled){border-color:var(--danger);color:var(--danger)}.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-action-toggle{margin-right:0}.row .row-action-toggle.is-on{background:var(--brand-bg);color:var(--accent-soft);border-color:#0000}.row .row-action-toggle.is-on:hover{border-color:#2a3160}.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}.repo-table{grid-template-columns:minmax(120px,1fr) 170px 215px 180px auto 16px;column-gap:20px;display:grid}.repo-table-head,.repo-row{grid-column:1/-1;grid-template-columns:subgrid;align-items:center;gap:inherit;padding:0 20px;display:grid}.repo-table-head{height:40px;color:var(--faint);font-size:12px;font-weight:500}.repo-row{min-height:48px}.repo-name-cell{align-items:center;gap:6px;min-width:0;display:flex}.repo-github{z-index:1;color:var(--faint);opacity:0;flex-shrink:0;transition:opacity .12s;display:inline-flex;position:relative}.row:hover .repo-github,.repo-github:focus-visible{opacity:1}.repo-github:hover{color:var(--text)}@media (hover:none){.repo-github{opacity:1}}.repo-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;overflow:hidden}.repo-cell{white-space:nowrap;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.repo-follow{gap:14px}.cell-mark{z-index:1;white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;font-size:12px;display:inline-flex;position:relative}.cell-shrink{flex-shrink:1;min-width:0}.cell-shrink svg{flex-shrink:0}.cell-ellipsis{text-overflow:ellipsis;min-width:0;overflow:hidden}.cell-faint{color:var(--faint);font-size:12px}.cell-audit{color:var(--muted)}.follow-link,.follow-mark{color:var(--accent-soft)}.follow-link:hover{color:var(--accent-hover);text-decoration:underline}.repo-actions{justify-content:flex-end;align-items:center;gap:6px;display:flex}.repo-actions .row-action{margin-right:0}.repo-actions-hover{opacity:0;transition:opacity .12s}.row:hover .repo-actions-hover,.row:focus-within .repo-actions-hover{opacity:1}@media (hover:none){.repo-actions-hover{opacity:1}}@media (width<=760px){.repo-table{display:block}.repo-table-head{display:none}.repo-row{flex-wrap:wrap;gap:6px 16px;padding:10px 44px 10px 16px;display:flex}.repo-name-cell{flex:100%}.repo-cell{overflow:visible}.repo-row .row-chevron{position:absolute;top:50%;right:16px;transform:translateY(-50%)}}.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 0 auto}.step-pending .step-label,.step-skipped .step-label{color:var(--faint)}.step-current .step-label{color:var(--text);font-weight:500}.step-result{min-width:0;color:var(--faint);white-space:pre;align-items:center;font-size:13px;display:flex}.unfixable-toggle{color:var(--warning);font-size:13px}.unfixable-toggle:hover{text-decoration:underline}.step-body{padding:0 20px 18px 52px;font-size:13px}.merged-offer{background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;align-items:center;gap:12px;padding:12px 16px;display:flex}.merged-offer-icon{color:var(--accent-soft);flex-shrink:0}.merged-offer-text{min-width:0;color:var(--muted);flex:1}.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}.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}.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{width:1020px;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}.button-icon{width:36px;padding:0}.settings-card{margin-bottom:28px;padding:0 20px}.settings-fields{border-bottom:1px solid var(--divider);grid-template-columns:minmax(0,1fr) 344px;gap:16px;padding:18px 0 20px;display:grid}.settings-field{flex-direction:column;gap:8px;display:flex}.field-label{color:var(--muted);font-size:12px}.token-saved{color:var(--text-soft);justify-content:space-between;align-items:center;display:flex}.token-saved .link{font-size:12px}.settings-status{min-height:44px;color:var(--text-soft);align-items:center;gap:10px;font-size:13px;display:flex}.settings-status-top{min-height:52px;color:var(--text);font-size:14px}.claude-steps{border-top:1px solid var(--divider);color:var(--text-soft);flex-direction:column;gap:14px;margin:0;padding:18px 0 20px;font-size:13px;list-style:none;display:flex}.claude-steps li{align-items:center;gap:12px;display:flex}.step-number{background:var(--divider);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;display:inline-flex}.code-chip{background:var(--bg);border:1px solid var(--border-strong);height:28px;color:var(--text);border-radius:6px;align-items:center;gap:10px;padding:0 10px 0 12px;font-size:12px;display:inline-flex}.code-chip svg{color:var(--muted)}.code-chip:hover svg{color:var(--text)}.github-token{border-bottom:1px solid var(--divider);padding:16px 0}.github-token:last-child{border-bottom:none}.github-token-status{color:var(--text-soft);align-items:center;gap:10px;margin-top:12px;font-size:13px;display:flex}.github-token-missing{color:var(--text)}.github-token-rights{color:var(--muted);margin:12px 0 8px;font-size:12px}.github-token-input{max-width:520px}.link-danger{color:var(--danger);font-size:13px}.link-danger:hover{text-decoration:underline}.settings-note{color:var(--faint);flex-direction:column;align-items:flex-start;gap:8px;margin:-16px 0 28px;font-size:12px;display:flex}.claude-token-input{padding-left:34px}.claude-token-input .input{max-width:520px}.limits{align-items:center;gap:8px;display:flex}.number-input.input{text-align:center;width:56px;height:32px;padding:0 6px}.limits .muted+.number-input{margin-left:8px}.section-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.section-head .section-label{margin:0}.button-small.button{height:32px;padding:0 12px}.section-head+.panel.settings-card{margin-bottom:0}.token-create{border-bottom:1px solid var(--divider);align-items:center;gap:12px;padding:16px 0;display:flex}.token-create .input{background:var(--bg);height:36px}.token-create .link{color:var(--muted);font-size:13px}.token-created{border-bottom:1px solid var(--divider);flex-direction:column;gap:12px;padding:16px 0 18px;font-size:13px;display:flex}.token-created-head{color:var(--text);align-items:center;gap:12px;display:flex}.token-secret{gap:12px;padding-left:28px;display:flex}.token-secret-value.input{background:var(--bg);white-space:nowrap;-webkit-user-select:all;user-select:all;align-items:center;height:36px;display:flex;overflow-x:auto}.token-created .field-label{padding-left:28px}.token-command.code-chip{min-width:0;height:32px;color:var(--text-soft);justify-content:space-between;margin-left:28px}.token-command-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.token-row{border-bottom:1px solid var(--divider);align-items:center;gap:12px;min-height:52px;margin:0 -20px;padding:8px 20px;display:flex}.token-row:last-child{border-bottom:none}.token-row:hover{background:var(--surface-raised)}.token-icon{color:var(--faint);flex-shrink:0}.token-text{flex:1;min-width:0}.token-name{text-overflow:ellipsis;white-space:nowrap;color:var(--text-soft);font-size:14px;overflow:hidden}.token-meta{color:var(--faint);margin-top:3px;font-size:12px}.token-revoke{visibility:hidden;color:var(--danger);flex-shrink:0;font-size:13px}.token-row:hover .token-revoke,.token-row.is-confirming .token-revoke,.token-revoke:focus-visible{visibility:visible}@media (hover:none){.token-revoke{visibility:visible}}@media (width<=720px){.settings-fields{grid-template-columns:minmax(0,1fr)}}.activity{color:var(--faint);margin:0;padding:0;font-size:12px;line-height:1.8;list-style:none}.activity-last{color:var(--muted)}.task-link{align-items:center;gap:8px;min-width:0;display:inline-flex}.task-link-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.task-link svg{flex-shrink:0}.verdict{background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;margin-top:14px;padding:13px 16px}.verdict-title{color:var(--text);align-items:center;gap:8px;font-weight:500;display:flex}.verdict-text{color:var(--muted);margin:8px 0 0 22px;line-height:1.6}.verdict-title svg{color:var(--accent-soft)}.repair-summary{margin-top:0}.repair-changes{grid-template-columns:max-content minmax(0,1fr);column-gap:24px;margin:10px 0 0 22px;padding:0;font-size:12px;line-height:1.8;list-style:none;display:grid}.repair-changes li{display:contents}.repair-changes .mono{color:var(--text-soft);flex-shrink:0}.repair-line{color:var(--muted);align-items:center;gap:6px;margin:6px 0 0 22px;font-size:12px;display:flex}.repair-line .link{font-size:12px}.text-accent{color:var(--accent-soft)}.tabs{border-bottom:1px solid var(--divider);gap:32px;margin-bottom:24px;display:flex}.tab{color:var(--muted);border-bottom:2px solid #0000;align-items:center;gap:10px;margin-bottom:-1px;padding:0 0 12px;display:inline-flex}.tab:hover{color:var(--text-soft)}.tab.is-active{color:var(--text);border-bottom-color:var(--accent)}.tab-count{color:var(--faint);font-size:12px}.tab-count-alert{background:var(--critical-bg);min-width:22px;color:var(--danger);text-align:center;border-radius:10px;padding:1px 7px}.history-row{gap:16px;min-height:60px}.history-icon{flex-shrink:0}.history-title{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.history-meta{color:var(--faint);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.history-date{width:110px;color:var(--text-soft);flex-shrink:0}.history-counts{text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;width:150px;font-weight:400;overflow:hidden}.history-claude{width:150px;color:var(--accent-soft);white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;display:inline-flex}.history-claude svg{flex-shrink:0}.history-outcome{text-align:right;width:110px;color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:12px}.history-outcome .pr-note{justify-content:flex-end}.history-note{margin-top:14px}@media (width<=900px){.history-claude,.history-date{display:none}}.pager{border:1px solid var(--border-strong);border-radius:8px;align-items:center;height:36px;display:inline-flex}.pager-arrow{width:32px;height:100%;color:var(--muted);justify-content:center;align-items:center;display:inline-flex}.pager-arrow:hover{color:var(--text)}.pager-arrow.is-disabled{color:var(--idle);pointer-events:none}.pager-position{color:var(--muted);font-size:12px}.session-detail{padding:22px 24px}.session-title{margin-bottom:6px;font-size:15px;font-weight:500}.session-section{margin-top:22px}.session-section-title{color:var(--muted);margin-bottom:8px;font-size:12px}.session-tasks{margin:0;padding:0;list-style:none}.session-tasks li{align-items:center;gap:12px;min-height:24px;display:flex}.session-task-title{color:var(--text-soft);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.session-task-role{color:var(--faint);white-space:nowrap;flex:1;font-size:12px}.icon-link{color:var(--faint);display:inline-flex}.icon-link:hover{color:var(--text)}.session-events{flex-direction:column;gap:4px;display:flex}.session-message{color:var(--text-soft);white-space:pre-wrap;word-break:break-word;margin:6px 0 2px;line-height:1.6}.session-tool{color:var(--faint);text-overflow:ellipsis;white-space:nowrap;margin:0 0 0 12px;font-size:12px;overflow:hidden}.session-text{color:var(--text-soft);line-height:1.6}.session-line{color:var(--muted);align-items:center;gap:6px;margin-top:8px;font-size:12px;display:flex}.session-detail .repair-changes{margin-left:0}.hl{color:var(--text-strong)}.hl .tk-cmd{color:#8b97ff}.hl .tk-danger{color:#f0857d}.hl .tk-opt{color:var(--muted)}.hl .tk-str{color:#7fd1a8}.hl .tk-var,.hl .tk-num{color:#7dd3fc}.hl .tk-op{color:var(--warning)}.hl .tk-comment{color:var(--faint)}.section-label-strong{color:var(--text);font-weight:600}.hint-inline{color:var(--faint);font-size:12px}.hint-line{color:var(--muted);align-items:center;gap:8px;margin-top:12px;font-size:12px;display:flex}.hint-line svg{color:var(--faint);flex-shrink:0}.deploy-empty{gap:20px;padding:32px 20px}.deploy-empty-icon{background:var(--brand-bg);width:48px;height:48px;color:var(--accent-soft);border-radius:12px;justify-content:center;align-items:center;display:inline-flex}.deploy-empty-text{text-align:center;flex-direction:column;gap:6px;display:flex}.deploy-empty-title{color:var(--text);font-size:15px;font-weight:500}.panel.deploy-empty{overflow:visible}.picker-menu-center{left:50%;transform:translate(-50%)}.picker-menu-right{width:260px;left:auto;right:0}.server-option{height:auto;min-height:40px;padding:6px 12px}.server-option .picker-name{min-width:0;color:var(--text);flex-direction:column;flex:1;gap:2px;display:flex}.server-option-detail{color:var(--faint);font-size:11px}.menu-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:12px;display:flex}.menu-item:hover:not(:disabled){background:var(--brand-bg);color:var(--text)}.menu-item:disabled{opacity:.45;cursor:default}.menu-item svg{color:var(--muted);flex-shrink:0}.menu-item-danger,.menu-item-danger svg,.menu-item-danger:hover:not(:disabled){color:var(--danger)}.picker-options+.menu-item{border-top:1px solid var(--divider);border-radius:0 0 6px 6px;margin-top:4px}.deploy-server{align-items:center;gap:16px;min-height:60px;padding:12px 20px;display:flex;overflow:visible}.deploy-server-icon{color:var(--muted);flex-shrink:0}.deploy-server-text{flex:1;min-width:0}.deploy-server-name{color:var(--text);font-size:14px}.deploy-server-detail{color:var(--faint);white-space:nowrap;text-overflow:ellipsis;margin-top:3px;font-size:12px;overflow:hidden}.status-chip{border-radius:14px;flex-shrink:0;align-items:center;gap:8px;height:28px;padding:0 14px;font-size:12px;font-weight:500;display:inline-flex}.status-dot{background:currentColor;border-radius:50%;width:8px;height:8px}.status-chip.is-ok{color:#4ade80;background:#10261f}.status-chip.is-running{background:var(--brand-bg);color:var(--accent-soft)}.status-chip.is-idle{background:var(--high-bg);color:var(--warning)}.button-stop.button-secondary{color:#f0857d;border-color:#5c2a2a}.button-stop.button-secondary:hover:not(:disabled){border-color:var(--danger);color:var(--danger)}.deploy-server-more{padding:4px}.deploy-body{margin-top:24px}.code-box{background:var(--bg);border:1px solid var(--border);font-family:var(--font-mono);border-radius:8px;font-size:13px;line-height:22px;display:flex;position:relative;overflow:hidden}.code-box.is-active{border-color:var(--accent);box-shadow:0 0 0 .5px var(--accent)}.code-gutter{background:var(--panel);min-width:48px;color:var(--idle);text-align:right;-webkit-user-select:none;user-select:none;flex-direction:column;flex-shrink:0;padding:16px 12px 16px 8px;font-size:12px;display:flex}.code-gutter span.is-active{color:var(--muted)}.code-box.is-active:not(.is-editing) .code-gutter span.is-active{color:var(--accent-soft)}.code-scroll{flex:1;min-width:0;overflow-x:auto}.code-layer{min-width:100%;padding:16px;position:relative}.code-text,.code-input{font:inherit;white-space:pre;tab-size:4;margin:0;line-height:22px}.code-text{position:relative}.code-input{resize:none;color:#0000;width:calc(100% - 32px);height:calc(100% - 32px);caret-color:var(--accent-soft);background:0 0;border:none;outline:none;padding:0;position:absolute;inset:16px;overflow:hidden}.code-input::selection{color:#0000;background:#5b6cf559}.code-band{justify-content:flex-end;align-items:center;height:22px;margin-top:16px;padding:0 16px;display:flex;position:absolute;left:0;right:0}.code-band.is-cursor{background:var(--surface-raised)}.code-band.is-running{color:var(--accent-soft);background:#5b6cf529}.code-band.is-failed{color:var(--danger);background:#f0625a24}.code-band-label{font-family:var(--font-sans);font-size:12px;font-weight:500}.code-dim{background:#0c0e1499;margin-top:16px;position:absolute;bottom:0;left:0;right:0}.editor-foot{justify-content:space-between;align-items:center;gap:16px;margin-top:16px;display:flex}.editor-vars,.editor-actions{align-items:center;gap:8px;display:flex}.editor-actions{gap:12px}.var-chip{background:var(--surface);border:1px solid var(--border-strong);color:#7dd3fc;border-radius:6px;height:24px;padding:0 10px;font-size:12px}.var-chip:hover{border-color:var(--idle)}.editor-save{min-width:132px}.deployment-row{min-height:56px;color:inherit;gap:16px}.deployment-duration{width:60px;color:var(--text-soft);flex-shrink:0}.deployment-outcome{text-align:right;width:190px;color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:12px}.deployment-outcome.error-text{color:var(--danger)}.deployment-title{align-items:center;gap:10px;display:flex}.deployment-error{margin-top:12px}.terminal{border:1px solid var(--divider);min-height:80px;max-height:320px;color:var(--text-soft);white-space:pre-wrap;word-break:break-word;background:#090b10;border-radius:8px;margin:0;padding:14px 16px;font-size:12px;line-height:20px;overflow:auto}.terminal-cursor{vertical-align:text-bottom;background:var(--text-soft);width:8px;height:14px;animation:1s step-end infinite terminal-blink;display:inline-block}@keyframes terminal-blink{50%{opacity:0}}.modal-wizard{background:var(--surface);border-radius:14px;width:560px;padding:0;top:60px}.wizard-head{justify-content:space-between;align-items:center;padding:24px 28px 0;display:flex}.wizard-title{color:var(--text);font-size:18px;font-weight:700}.stepper{align-items:center;padding:22px 28px 0;display:flex}.stepper-item{align-items:center;display:inline-flex}.stepper-line{background:var(--border-strong);width:48px;height:2px;margin:0 12px}.stepper-step{color:var(--muted);align-items:center;gap:8px;font-size:13px;display:inline-flex}.stepper-step.is-active{color:var(--text);font-weight:600}.stepper-dot{border:1.5px solid var(--border-strong);width:22px;height:22px;color:var(--faint);border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:inline-flex}.stepper-step.is-active .stepper-dot{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}.stepper-step.is-done .stepper-dot{color:var(--bg);background:#34d399;border-color:#34d399}.stepper-step.is-done .stepper-dot svg{stroke-width:3px}.wizard-body{flex-direction:column;gap:20px;padding:24px 28px;display:flex}.wizard-foot{border-top:1px solid var(--border);justify-content:flex-end;gap:12px;padding:20px 28px 22px;display:flex}.button-large.button{min-width:100px;height:40px;font-size:14px}.button-large.button-primary{min-width:172px}.wizard-form{grid-template-columns:minmax(0,1fr) 112px;gap:16px 12px;display:grid}.wizard-field{flex-direction:column;gap:6px;display:flex}.wizard-field.is-wide{grid-column:1/-1}.wizard-field .input{background:var(--bg)}.wizard-summary{height:44px;color:var(--text-soft);background:#171b26;border-radius:8px;align-items:center;gap:10px;padding:0 14px;display:flex}.wizard-summary>svg{color:var(--muted)}.wizard-summary span{flex:1}.wizard-section{flex-direction:column;gap:10px;display:flex}.wizard-section-title{color:var(--text);justify-content:space-between;align-items:center;font-size:13px;font-weight:600;display:flex}.button-copy.button{height:28px;padding:0 12px;font-size:12px}.keybox{-webkit-line-clamp:4;background:var(--bg);border:1px solid var(--border);max-height:100px;color:var(--text-soft);word-break:break-all;border-radius:8px;-webkit-box-orient:vertical;padding:12px 14px;font-size:12px;line-height:19px;display:-webkit-box;overflow:hidden}.key-caption{color:var(--muted);justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;display:flex}.key-caption .link{flex-shrink:0;font-size:12px}.oneliner{background:var(--bg);border:1px solid var(--border);color:var(--text-soft);border-radius:8px;align-items:center;gap:10px;padding:10px 14px;font-size:12px;display:flex}.oneliner span{word-break:break-all;flex:1}.does-row{color:var(--text-soft);align-items:center;gap:10px;font-size:13px;display:flex}.does-row svg{color:var(--accent-soft);flex-shrink:0}.callout-warn{color:#e8dcc4;background:#211a10;border:1px solid #5a4520;border-radius:8px;align-items:center;gap:12px;padding:11px 14px;font-size:12px;line-height:17px;display:flex}.callout-warn svg{color:var(--warning);flex-shrink:0}.muted-line{color:var(--muted);align-items:flex-start;gap:8px;font-size:12px;line-height:17px;display:flex}.muted-line svg{color:var(--faint);flex-shrink:0;margin-top:1px}.check-list{flex-direction:column;gap:16px;display:flex}.check-row{gap:12px;display:flex}.check-row svg{flex-shrink:0}.check-title{color:var(--text);font-size:14px}.check-detail{color:var(--muted);word-break:break-word;margin-top:4px;font-size:12px}.result-ko{background:var(--critical-bg);color:#f0857d;border:1px solid #5c2a2a;border-radius:8px;gap:12px;padding:12px 14px;font-size:13px;display:flex}.result-ko svg{flex-shrink:0}@media (width<=720px){.deploy-server{flex-wrap:wrap;gap:12px 16px}.deploy-server-text{flex-basis:calc(100% - 36px)}.deploy-server>.button{margin-left:auto}.editor-foot{flex-direction:column;align-items:stretch}.deployment-duration,.deployment-row .history-date{display:none}.deployment-outcome{width:auto}}.menu-divider{background:var(--divider);height:1px;margin:4px 6px;display:block}.key-steps{flex-direction:column;gap:18px;display:flex}.key-step{gap:16px;display:flex}.key-step-dot{border:1px solid var(--border-strong);background:var(--surface);width:24px;height:24px;color:var(--muted);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:inline-flex}.key-step-dot svg{stroke-width:3px}.key-step-title{color:var(--text);font-size:14px;font-weight:500}.key-step-detail{color:var(--faint);margin-top:3px;font-size:12px;line-height:17px}.key-step.is-done .key-step-dot{background:var(--ok);border-color:var(--ok);color:var(--bg)}.key-step.is-failed .key-step-dot{color:var(--danger);background:#d9443b26;border-color:#d9443b}.key-step.is-failed .key-step-detail{color:var(--danger)}.key-step.is-skipped{opacity:.45}.current-key{background:var(--surface-raised);color:var(--text-soft);border-radius:8px;align-items:center;gap:12px;padding:10px 14px;font-size:12px;display:flex}.current-key svg{color:var(--muted);flex-shrink:0}.current-key-label{color:var(--muted);margin-bottom:2px}.safe-box{background:var(--surface-raised);border-radius:8px;gap:12px;padding:14px;display:flex}.safe-box svg{color:var(--ok);flex-shrink:0}.safe-title{color:var(--text);font-size:13px;font-weight:600}.safe-detail{color:var(--muted);margin-top:6px;font-size:12px;line-height:18px}.result-ok{color:#4ade80;background:#10261f;border-radius:10px;gap:12px;padding:14px 16px;font-size:13px;line-height:20px;display:flex}.result-ok svg{flex-shrink:0}.button-danger-solid{color:#fff;background:#d9443b;font-weight:600}.button-danger-solid:hover:not(:disabled){background:#e5534a}
|
package/gui/dist/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Dependabot Tracker</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BhIO2hHa.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-JLEsoQSQ.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imenam/mcp-dependabot-tracker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "Server and web GUI that track the Dependabot alerts of GitHub repositories and fix their npm vulnerabilities in a temporary clone: npm audit, audit fix, fixes by Claude, then a branch and a pull request. An MCP mode lets agents drive the server.",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"scripts": {
|