@shellui/core 0.7.0 → 0.8.0
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/LICENSE +21 -0
- package/README.md +2 -0
- package/package.json +2 -2
- package/schemas/shellui.config.schema.json +45 -2
- package/src/app.tsx +2 -0
- package/src/features/auth/AuthProvider.tsx +212 -97
- package/src/features/auth/appBackend/configSchema.spec.ts +1 -0
- package/src/features/auth/appBackend/frameAuth.ts +5 -0
- package/src/features/auth/backends/shellui.spec.ts +110 -0
- package/src/features/auth/backends/shellui.ts +47 -20
- package/src/features/auth/backends/types.ts +5 -0
- package/src/features/auth/hooks/useAuth.tsx +6 -1
- package/src/features/auth/types.ts +5 -0
- package/src/features/auth/utils/bffAuthClient.spec.ts +313 -0
- package/src/features/auth/utils/bffAuthClient.ts +171 -49
- package/src/features/auth/utils/buildSessionFromParams.ts +5 -2
- package/src/features/auth/utils/buildSessionFromTokenPayload.spec.ts +12 -0
- package/src/features/auth/utils/buildSessionFromTokenPayload.ts +3 -1
- package/src/features/auth/utils/canRestoreStoredSession.spec.ts +140 -4
- package/src/features/auth/utils/canRestoreStoredSession.ts +47 -0
- package/src/features/auth/utils/cliCallback.ts +5 -0
- package/src/features/auth/utils/identityBrowserLogout.spec.ts +185 -0
- package/src/features/auth/utils/identityBrowserLogout.ts +174 -0
- package/src/features/auth/utils/index.ts +21 -3
- package/src/features/auth/utils/isBffAuthEnabled.ts +10 -2
- package/src/features/auth/utils/normalizeAuthSettings.spec.ts +9 -0
- package/src/features/auth/utils/normalizeAuthSettings.ts +3 -1
- package/src/features/auth/utils/pkce.spec.ts +29 -1
- package/src/features/auth/utils/pkce.ts +106 -2
- package/src/features/config/types.ts +37 -5
- package/src/features/mcp/mcpActivityErrorCodeI18n.spec.ts +32 -0
- package/src/features/mcp/mcpActivityErrorCodeI18n.ts +30 -0
- package/src/features/mcp/mcpAgentActivityMerge.spec.ts +91 -0
- package/src/features/mcp/mcpAgentActivityMerge.ts +53 -0
- package/src/features/mcp/mcpAgentActivityPresentation.spec.ts +129 -0
- package/src/features/mcp/mcpAgentActivityPresentation.ts +201 -0
- package/src/features/mcp/mcpAgentsConnect.spec.ts +215 -0
- package/src/features/mcp/mcpAgentsConnect.ts +189 -0
- package/src/features/mcp/mcpToolActivityRegistry.spec.ts +9 -0
- package/src/features/mcp/mcpToolActivityRegistry.ts +20 -0
- package/src/features/mcp/mcpToolApprovalsApi.spec.ts +113 -0
- package/src/features/mcp/mcpToolApprovalsApi.ts +162 -0
- package/src/features/mcp/personalAgentsApi.spec.ts +661 -0
- package/src/features/mcp/personalAgentsApi.ts +697 -0
- package/src/features/settings/SettingsIcons.tsx +28 -0
- package/src/features/settings/SettingsRoutes.tsx +8 -0
- package/src/features/settings/SettingsView.tsx +90 -26
- package/src/features/settings/components/McpAgentActivitySection.spec.tsx +255 -0
- package/src/features/settings/components/McpAgentActivitySection.tsx +481 -0
- package/src/features/settings/components/McpAgents.spec.tsx +336 -0
- package/src/features/settings/components/McpAgents.tsx +654 -0
- package/src/features/settings/components/McpPendingApprovals.spec.tsx +201 -0
- package/src/features/settings/components/McpPendingApprovals.tsx +168 -0
- package/src/features/settings/components/McpPersonalStatusPrefetch.tsx +21 -0
- package/src/features/settings/hooks/useMcpPendingToolApprovals.ts +69 -0
- package/src/features/settings/hooks/useMcpPersonalStatus.ts +83 -0
- package/src/features/settings/utils/buildSettingsForPropagation.spec.ts +44 -1
- package/src/features/settings/utils/buildSettingsForPropagation.ts +30 -1
- package/src/features/settings/utils/isMcpAgentsSettingsEligible.spec.ts +25 -0
- package/src/features/settings/utils/isMcpAgentsSettingsEligible.ts +14 -0
- package/src/features/settings/utils/loadMcpPersonalStatus.spec.ts +76 -0
- package/src/features/settings/utils/loadMcpPersonalStatus.ts +84 -0
- package/src/features/settings/utils/mcpPersonalStatusCache.spec.ts +77 -0
- package/src/features/settings/utils/mcpPersonalStatusCache.ts +95 -0
- package/src/features/settings/utils/shouldShowMcpAgentsSettings.spec.ts +66 -0
- package/src/features/settings/utils/shouldShowMcpAgentsSettings.ts +16 -0
- package/src/i18n/translations/en/settings.json +201 -0
- package/src/i18n/translations/fr/settings.json +201 -0
- package/src/index.ts +1 -0
- package/src/service-worker/sw.ts +4 -2
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"legalDocuments": "Legal documents",
|
|
18
18
|
"storage": "Storage",
|
|
19
19
|
"ai": "AI",
|
|
20
|
+
"mcpAgents": "MCP / AI agents",
|
|
20
21
|
"develop": "Develop",
|
|
21
22
|
"serviceWorker": "Service Worker"
|
|
22
23
|
},
|
|
@@ -274,6 +275,206 @@
|
|
|
274
275
|
},
|
|
275
276
|
"footnote": "Large models use disk space and can heat the GPU on first load. Treat prompts from apps as untrusted content."
|
|
276
277
|
},
|
|
278
|
+
"mcpAgents": {
|
|
279
|
+
"description": "Connect an AI agent to this company over MCP. The agent signs in with OAuth. Revoke a connection when you stop using that agent.",
|
|
280
|
+
"global": {
|
|
281
|
+
"title": "Connect to Shellui (global MCP)",
|
|
282
|
+
"intro": "You can use two MCP entry points: one on the Shellui dashboard for your account (projects, companies, regions, and plans) and one from this page for this company (regional services and app APIs). They use different URLs and tokens.",
|
|
283
|
+
"scopeAccount": "Global MCP on the Shellui dashboard: OAuth account scope on SaaS. It covers account metadata. It does not read your hosted app data.",
|
|
284
|
+
"scopeRegional": "This page: MCP for this company (regional identity services). Tokens are short-lived and tied to this company.",
|
|
285
|
+
"sessions": "On this page, regional MCP with ask access: identity can grant non-destructive calls for about 60 seconds on this connection without a prompt on each call. That timer is the session grant on this connection, not the token lifetime or how long the connection stays valid. First-company setup can extend non-destructive grants to about 600 to 900 seconds until the server setup step expires. After each window ends, you approve again or refresh the grant. Destructive calls always need approval. Full access does not skip approval for destructive tools.",
|
|
286
|
+
"approvals": "Global MCP uses SaaS approval and fallback endpoints. This page lists regional tool approvals for this company only. It does not list global dashboard approvals.",
|
|
287
|
+
"prerequisite": "You need a Shellui account with accepted Terms of Service before you create a connection.",
|
|
288
|
+
"globalMcpUrlLabel": "Global MCP endpoint (reference only):",
|
|
289
|
+
"globalMcpUrlUnknown": "Identity has not returned the global MCP endpoint yet. It must be the full https or http (local) URL your host publishes, ending with /mcp. Reload after identity is updated.",
|
|
290
|
+
"statusReady": "Your OAuth session includes SaaS (account scope). When the global endpoint appears above, use it for account-wide MCP. Connections you create below stay regional for this company only. They are not interchangeable and this page does not configure the dashboard client.",
|
|
291
|
+
"statusPending": "Your session is regional only. Sign in with a Shellui account that has SaaS if you need global MCP when the endpoint appears above."
|
|
292
|
+
},
|
|
293
|
+
"signInRequired": "Sign in to manage MCP agents.",
|
|
294
|
+
"status": {
|
|
295
|
+
"loading": "Checking MCP status…",
|
|
296
|
+
"error": "Unable to load MCP status.",
|
|
297
|
+
"unavailable": "MCP is not enabled for this company.",
|
|
298
|
+
"retry": "Try again"
|
|
299
|
+
},
|
|
300
|
+
"clipboard": {
|
|
301
|
+
"copyFailedTitle": "Copy failed",
|
|
302
|
+
"unavailable": "Clipboard API is not available in this environment.",
|
|
303
|
+
"copiedTitle": "Copied",
|
|
304
|
+
"copiedDescription": "{{label}} copied to clipboard.",
|
|
305
|
+
"failed": "Unable to copy to the clipboard."
|
|
306
|
+
},
|
|
307
|
+
"connections": {
|
|
308
|
+
"title": "Active connections",
|
|
309
|
+
"empty": "No active connections.",
|
|
310
|
+
"connectedMeta": "{{name}} · Connected {{date}}",
|
|
311
|
+
"connectedMetaWithExpiry": "{{name}} · Connected {{date}} · Expires {{expiry}}",
|
|
312
|
+
"revokedMeta": "{{name}} · Revoked {{date}}",
|
|
313
|
+
"scopeRegional": "All regional services",
|
|
314
|
+
"scopeRegionalSaas": "All regional services + saas",
|
|
315
|
+
"kindOauth": "Signed in with OAuth",
|
|
316
|
+
"kindPersonal": "Static secret",
|
|
317
|
+
"services": "Services: {{services}}",
|
|
318
|
+
"showRevoked": "Show revoked",
|
|
319
|
+
"hideRevoked": "Hide revoked",
|
|
320
|
+
"loading": "Loading connections…",
|
|
321
|
+
"error": "Unable to load connections.",
|
|
322
|
+
"retry": "Try again"
|
|
323
|
+
},
|
|
324
|
+
"connect": {
|
|
325
|
+
"title": "Connect an agent",
|
|
326
|
+
"intro": "Your agent adds this URL as a remote MCP server and signs in with OAuth.",
|
|
327
|
+
"urlLabel": "Company MCP URL",
|
|
328
|
+
"copyUrl": "Copy URL",
|
|
329
|
+
"promptLabel": "Prompt",
|
|
330
|
+
"copyPrompt": "Copy prompt",
|
|
331
|
+
"stepsLead": "What you do:",
|
|
332
|
+
"steps": {
|
|
333
|
+
"paste": "Paste the prompt into your agent.",
|
|
334
|
+
"openLink": "Open the link it shows.",
|
|
335
|
+
"allow": "Check the code and choose Allow."
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"staticSecret": {
|
|
339
|
+
"summary": "Clients that only accept a static secret",
|
|
340
|
+
"helper": "Use this when the client accepts a static secret and cannot sign in with OAuth.",
|
|
341
|
+
"once": "Shellui shows the secret once. The prompt above does not include it."
|
|
342
|
+
},
|
|
343
|
+
"success": {
|
|
344
|
+
"title": "Static secret created",
|
|
345
|
+
"warning": "Copy this secret now. Shellui shows it only once. The prompt above does not include it.",
|
|
346
|
+
"copySecret": "Copy secret",
|
|
347
|
+
"hide": "Hide secret"
|
|
348
|
+
},
|
|
349
|
+
"revoke": {
|
|
350
|
+
"action": "Revoke",
|
|
351
|
+
"title": "Revoke this connection?",
|
|
352
|
+
"description": "The agent stops working with this company until you connect it again.",
|
|
353
|
+
"confirm": "Revoke",
|
|
354
|
+
"cancel": "Cancel",
|
|
355
|
+
"successTitle": "Connection revoked",
|
|
356
|
+
"successDescription": "{{name}} no longer has access.",
|
|
357
|
+
"errorTitle": "Could not revoke the connection"
|
|
358
|
+
},
|
|
359
|
+
"activity": {
|
|
360
|
+
"title": "Recent activity",
|
|
361
|
+
"show": "Show activity",
|
|
362
|
+
"hide": "Hide activity",
|
|
363
|
+
"loading": "Loading activity…",
|
|
364
|
+
"error": "Unable to load activity.",
|
|
365
|
+
"retry": "Try again",
|
|
366
|
+
"empty": "No activity recorded for this connection yet.",
|
|
367
|
+
"callLogsUnavailable": "Tool calls could not be loaded.",
|
|
368
|
+
"callLogsPageUnavailable": "More tool calls could not be loaded.",
|
|
369
|
+
"consentUnavailable": "OAuth consent events could not be loaded.",
|
|
370
|
+
"loadMore": "Load more",
|
|
371
|
+
"loadingMore": "Loading more…",
|
|
372
|
+
"consentOauth": "OAuth consent approved",
|
|
373
|
+
"consentDevice": "Device login approved",
|
|
374
|
+
"destructiveBadge": "Can change data",
|
|
375
|
+
"outcome": {
|
|
376
|
+
"allowed": "Allowed",
|
|
377
|
+
"denied": "Denied",
|
|
378
|
+
"failed": "Failed",
|
|
379
|
+
"pendingApproval": "Pending approval",
|
|
380
|
+
"sessionUsed": "Session used",
|
|
381
|
+
"unknown": "Result not classified"
|
|
382
|
+
},
|
|
383
|
+
"access": {
|
|
384
|
+
"read": "Read",
|
|
385
|
+
"write": "Write",
|
|
386
|
+
"destructive": "Destructive",
|
|
387
|
+
"unknown": "Access not classified"
|
|
388
|
+
},
|
|
389
|
+
"toolUnknown": "Unknown tool",
|
|
390
|
+
"operationSuffix": "Operation",
|
|
391
|
+
"detail": {
|
|
392
|
+
"when": "When",
|
|
393
|
+
"duration": "Duration",
|
|
394
|
+
"notProvided": "Not reported",
|
|
395
|
+
"actor": "Actor",
|
|
396
|
+
"actorUnknown": "Not reported",
|
|
397
|
+
"agent": "Connection",
|
|
398
|
+
"result": "Classified outcome",
|
|
399
|
+
"resultUnknown": "The service sent an outcome code this screen does not map. Use the badges and summary when they apply.",
|
|
400
|
+
"error": "Error code",
|
|
401
|
+
"errorMessage": "Error message",
|
|
402
|
+
"errorUnavailable": "No error code for this row.",
|
|
403
|
+
"viaWrapper": "via {{wrapper}}",
|
|
404
|
+
"approvalOutcome": "Approval",
|
|
405
|
+
"approvalOutcomeValue": {
|
|
406
|
+
"pending": "Pending",
|
|
407
|
+
"denied": "Denied",
|
|
408
|
+
"accepted": "Accepted",
|
|
409
|
+
"sessionUsed": "Session used",
|
|
410
|
+
"expired": "Expired",
|
|
411
|
+
"failed": "Failed"
|
|
412
|
+
},
|
|
413
|
+
"errorCode": {
|
|
414
|
+
"badRequest": "Bad request",
|
|
415
|
+
"unauthorized": "Not authorized",
|
|
416
|
+
"forbidden": "Forbidden",
|
|
417
|
+
"notFound": "Not found",
|
|
418
|
+
"conflict": "Conflict",
|
|
419
|
+
"rateLimited": "Rate limited",
|
|
420
|
+
"denied": "Denied",
|
|
421
|
+
"expired": "Expired",
|
|
422
|
+
"timeout": "Timed out",
|
|
423
|
+
"upstreamError": "Upstream error",
|
|
424
|
+
"internalError": "Internal error",
|
|
425
|
+
"outOfSync": "Out of sync with the server. Refresh the page or update the grant when permissions change.",
|
|
426
|
+
"identityUnreachable": "Identity unreachable",
|
|
427
|
+
"identityUnavailable": "Identity is unavailable. Try again when it responds.",
|
|
428
|
+
"identityInvalid": "Identity rejected the request",
|
|
429
|
+
"invalidGrant": "Invalid grant",
|
|
430
|
+
"permissionChanged": "Permission changed",
|
|
431
|
+
"requestExpired": "Request expired",
|
|
432
|
+
"agentRevoked": "Connection revoked. Create a new connection to use this agent again.",
|
|
433
|
+
"downstreamError": "Downstream error",
|
|
434
|
+
"serverError": "Server error",
|
|
435
|
+
"unknown": "Unknown error"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"link": {
|
|
439
|
+
"openApprovalById": "Jump to pending approvals",
|
|
440
|
+
"openApprovalsSection": "Jump to pending approvals (same tool name)"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"pendingApprovals": {
|
|
444
|
+
"title": "Pending approvals",
|
|
445
|
+
"meta": "{{agentName}} · Expires in {{expiresInMinutes}} min",
|
|
446
|
+
"destructiveBadge": "Can change data",
|
|
447
|
+
"approve": "Approve",
|
|
448
|
+
"deny": "Deny",
|
|
449
|
+
"confirmApprove": {
|
|
450
|
+
"title": "Approve {{toolName}}?",
|
|
451
|
+
"description": "This can change data in {{companyName}}.",
|
|
452
|
+
"confirm": "Approve",
|
|
453
|
+
"cancel": "Cancel"
|
|
454
|
+
},
|
|
455
|
+
"toast": {
|
|
456
|
+
"approvedTitle": "Tool approved",
|
|
457
|
+
"deniedTitle": "Tool denied",
|
|
458
|
+
"description": "{{toolName}}",
|
|
459
|
+
"errorTitle": "Could not update the approval"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"create": {
|
|
463
|
+
"title": "Create a static secret",
|
|
464
|
+
"nameLabel": "Name",
|
|
465
|
+
"namePlaceholder": "ChatGPT on my laptop",
|
|
466
|
+
"nameHelper": "Shown in this list.",
|
|
467
|
+
"accessHelperGlobal": "This token can call every regional service for this company, and saas.",
|
|
468
|
+
"accessHelperRegional": "This token can call every regional service for this company. Saas is not included; connect from the global dashboard when you need saas.",
|
|
469
|
+
"expiryHelper": "This connection expires in {{days}} days.",
|
|
470
|
+
"submit": "Create secret",
|
|
471
|
+
"submitting": "Creating…",
|
|
472
|
+
"cancel": "Cancel",
|
|
473
|
+
"errorGeneric": "Could not create the connection.",
|
|
474
|
+
"errorExpiryTooLong": "Identity rejected this expiry. It is longer than the maximum lifetime for this connection.",
|
|
475
|
+
"errorMissingMcpUrl": "MCP URL is not configured. Set aiService.url in your Shellui config."
|
|
476
|
+
}
|
|
477
|
+
},
|
|
277
478
|
"dataPrivacy": {
|
|
278
479
|
"title": "Data Privacy",
|
|
279
480
|
"description": "Manage your data privacy settings and cookie preferences.",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"legalDocuments": "Documents légaux",
|
|
18
18
|
"storage": "Stockage",
|
|
19
19
|
"ai": "IA",
|
|
20
|
+
"mcpAgents": "Agents MCP / IA",
|
|
20
21
|
"develop": "Développement",
|
|
21
22
|
"serviceWorker": "Service Worker"
|
|
22
23
|
},
|
|
@@ -274,6 +275,206 @@
|
|
|
274
275
|
},
|
|
275
276
|
"footnote": "Les gros modèles prennent de l'espace disque et peuvent chauffer le GPU au premier chargement. Traitez les invites des applications comme du contenu non fiable."
|
|
276
277
|
},
|
|
278
|
+
"mcpAgents": {
|
|
279
|
+
"description": "Connectez un agent IA à cette entreprise via MCP. L'agent se connecte avec OAuth. Révoquez une connexion lorsque vous n'utilisez plus cet agent.",
|
|
280
|
+
"global": {
|
|
281
|
+
"title": "Se connecter à Shellui (MCP global)",
|
|
282
|
+
"intro": "Vous pouvez utiliser deux points d'entrée MCP : un sur le tableau de bord Shellui pour votre compte (projets, entreprises, régions et forfaits) et un depuis cette page pour cette entreprise (services régionaux et API d'application). Les URL et les jetons diffèrent.",
|
|
283
|
+
"scopeAccount": "MCP global sur le tableau de bord Shellui : portée compte OAuth sur SaaS. Il couvre les métadonnées de compte. Il ne lit pas les données de votre application hébergée.",
|
|
284
|
+
"scopeRegional": "Cette page : MCP pour cette entreprise (services identity régionaux). Les jetons sont à courte durée et liés à cette entreprise.",
|
|
285
|
+
"sessions": "Sur cette page, MCP régional en accès ask : identity peut accorder les appels non destructifs pendant environ 60 secondes sur cette connexion sans demander chaque appel. Ce délai est l'octroi de session sur cette connexion, pas la durée de vie du jeton ni celle de la connexion. La première configuration d'entreprise peut étendre cet octroi non destructif à environ 600 à 900 secondes jusqu'à l'expiration de l'étape de configuration côté serveur. À la fin de chaque fenêtre, vous approuvez à nouveau ou vous rafraîchissez l'octroi. Les appels destructifs exigent toujours une approbation. L'accès full ne contourne pas l'approbation pour les outils destructifs.",
|
|
286
|
+
"approvals": "Le MCP global utilise les points de terminaison d'approbation et de repli SaaS. Cette page liste les approbations d'outils régionaux pour cette entreprise seulement. Elle n'affiche pas les approbations globales du tableau de bord.",
|
|
287
|
+
"prerequisite": "Vous devez avoir un compte Shellui avec les conditions d'utilisation acceptées avant de créer une connexion.",
|
|
288
|
+
"globalMcpUrlLabel": "Point de terminaison MCP global (référence seulement) :",
|
|
289
|
+
"globalMcpUrlUnknown": "Identity n'a pas encore renvoyé le point de terminaison MCP global. Il doit être l'URL complète https ou http (local) publiée par votre hôte, se terminant par /mcp. Rechargez après la mise à jour d'identity.",
|
|
290
|
+
"statusReady": "Votre session OAuth inclut SaaS (portée compte). Quand le point de terminaison global apparaît ci-dessus, utilisez-le pour le MCP à l'échelle du compte. Les connexions que vous créez ci-dessous restent régionales pour cette entreprise seulement. Elles ne sont pas interchangeables et cette page ne configure pas le client du tableau de bord.",
|
|
291
|
+
"statusPending": "Votre session est régionale seulement. Connectez-vous avec un compte Shellui qui inclut SaaS si vous avez besoin du MCP global quand le point de terminaison apparaît ci-dessus."
|
|
292
|
+
},
|
|
293
|
+
"signInRequired": "Connectez-vous pour gérer les agents MCP.",
|
|
294
|
+
"status": {
|
|
295
|
+
"loading": "Vérification du statut MCP…",
|
|
296
|
+
"error": "Impossible de charger le statut MCP.",
|
|
297
|
+
"unavailable": "Le MCP n'est pas activé pour cette entreprise.",
|
|
298
|
+
"retry": "Réessayer"
|
|
299
|
+
},
|
|
300
|
+
"clipboard": {
|
|
301
|
+
"copyFailedTitle": "Échec de la copie",
|
|
302
|
+
"unavailable": "L'API presse-papiers n'est pas disponible dans cet environnement.",
|
|
303
|
+
"copiedTitle": "Copié",
|
|
304
|
+
"copiedDescription": "{{label}} copié dans le presse-papiers.",
|
|
305
|
+
"failed": "Impossible de copier dans le presse-papiers."
|
|
306
|
+
},
|
|
307
|
+
"connections": {
|
|
308
|
+
"title": "Connexions actives",
|
|
309
|
+
"empty": "Aucune connexion active.",
|
|
310
|
+
"connectedMeta": "{{name}} · Connecté le {{date}}",
|
|
311
|
+
"connectedMetaWithExpiry": "{{name}} · Connecté le {{date}} · Expire le {{expiry}}",
|
|
312
|
+
"revokedMeta": "{{name}} · Révoqué le {{date}}",
|
|
313
|
+
"scopeRegional": "Tous les services régionaux",
|
|
314
|
+
"scopeRegionalSaas": "Tous les services régionaux + saas",
|
|
315
|
+
"kindOauth": "Connecté avec OAuth",
|
|
316
|
+
"kindPersonal": "Secret statique",
|
|
317
|
+
"services": "Services : {{services}}",
|
|
318
|
+
"showRevoked": "Afficher les révoquées",
|
|
319
|
+
"hideRevoked": "Masquer les révoquées",
|
|
320
|
+
"loading": "Chargement des connexions…",
|
|
321
|
+
"error": "Impossible de charger les connexions.",
|
|
322
|
+
"retry": "Réessayer"
|
|
323
|
+
},
|
|
324
|
+
"connect": {
|
|
325
|
+
"title": "Connecter un agent",
|
|
326
|
+
"intro": "Votre agent ajoute cette URL comme serveur MCP distant et se connecte avec OAuth.",
|
|
327
|
+
"urlLabel": "URL MCP de l'entreprise",
|
|
328
|
+
"copyUrl": "Copier l'URL",
|
|
329
|
+
"promptLabel": "Invite",
|
|
330
|
+
"copyPrompt": "Copier l'invite",
|
|
331
|
+
"stepsLead": "Ce que vous faites :",
|
|
332
|
+
"steps": {
|
|
333
|
+
"paste": "Collez l'invite dans votre agent.",
|
|
334
|
+
"openLink": "Ouvrez le lien qu'il affiche.",
|
|
335
|
+
"allow": "Vérifiez le code, puis choisissez Autoriser."
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"staticSecret": {
|
|
339
|
+
"summary": "Clients qui n'acceptent qu'un secret statique",
|
|
340
|
+
"helper": "Utilisez ceci quand le client accepte un secret statique et ne peut pas se connecter avec OAuth.",
|
|
341
|
+
"once": "Shellui affiche le secret une seule fois. L'invite ci-dessus ne le contient pas."
|
|
342
|
+
},
|
|
343
|
+
"success": {
|
|
344
|
+
"title": "Secret statique créé",
|
|
345
|
+
"warning": "Copiez ce secret maintenant. Shellui ne l'affiche qu'une seule fois. L'invite ci-dessus ne le contient pas.",
|
|
346
|
+
"copySecret": "Copier le secret",
|
|
347
|
+
"hide": "Masquer le secret"
|
|
348
|
+
},
|
|
349
|
+
"revoke": {
|
|
350
|
+
"action": "Révoquer",
|
|
351
|
+
"title": "Révoquer cette connexion ?",
|
|
352
|
+
"description": "L'agent ne fonctionne plus avec cette entreprise tant que vous ne le reconnectez pas.",
|
|
353
|
+
"confirm": "Révoquer",
|
|
354
|
+
"cancel": "Annuler",
|
|
355
|
+
"successTitle": "Connexion révoquée",
|
|
356
|
+
"successDescription": "{{name}} n'a plus accès.",
|
|
357
|
+
"errorTitle": "Impossible de révoquer la connexion"
|
|
358
|
+
},
|
|
359
|
+
"activity": {
|
|
360
|
+
"title": "Activité récente",
|
|
361
|
+
"show": "Afficher l'activité",
|
|
362
|
+
"hide": "Masquer l'activité",
|
|
363
|
+
"loading": "Chargement de l'activité…",
|
|
364
|
+
"error": "Impossible de charger l'activité.",
|
|
365
|
+
"retry": "Réessayer",
|
|
366
|
+
"empty": "Aucune activité enregistrée pour cette connexion pour le moment.",
|
|
367
|
+
"callLogsUnavailable": "Les appels d'outils n'ont pas pu être chargés.",
|
|
368
|
+
"callLogsPageUnavailable": "La suite des appels d'outils n'a pas pu être chargée.",
|
|
369
|
+
"consentUnavailable": "Les événements de consentement OAuth n'ont pas pu être chargés.",
|
|
370
|
+
"loadMore": "Charger plus",
|
|
371
|
+
"loadingMore": "Chargement…",
|
|
372
|
+
"consentOauth": "Consentement OAuth approuvé",
|
|
373
|
+
"consentDevice": "Connexion par appareil approuvée",
|
|
374
|
+
"destructiveBadge": "Peut modifier des données",
|
|
375
|
+
"outcome": {
|
|
376
|
+
"allowed": "Autorisé",
|
|
377
|
+
"denied": "Refusé",
|
|
378
|
+
"failed": "Échec",
|
|
379
|
+
"pendingApproval": "En attente d'approbation",
|
|
380
|
+
"sessionUsed": "Session utilisée",
|
|
381
|
+
"unknown": "Résultat non classé"
|
|
382
|
+
},
|
|
383
|
+
"access": {
|
|
384
|
+
"read": "Lecture",
|
|
385
|
+
"write": "Écriture",
|
|
386
|
+
"destructive": "Destructif",
|
|
387
|
+
"unknown": "Accès non classé"
|
|
388
|
+
},
|
|
389
|
+
"toolUnknown": "Outil inconnu",
|
|
390
|
+
"operationSuffix": "Opération",
|
|
391
|
+
"detail": {
|
|
392
|
+
"when": "Quand",
|
|
393
|
+
"duration": "Durée",
|
|
394
|
+
"notProvided": "Non communiqué",
|
|
395
|
+
"actor": "Acteur",
|
|
396
|
+
"actorUnknown": "Non communiqué",
|
|
397
|
+
"agent": "Connexion",
|
|
398
|
+
"result": "Résultat classé",
|
|
399
|
+
"resultUnknown": "Le service a envoyé un code de résultat que cet écran ne mappe pas. Utilisez les badges et le résumé quand ils s'appliquent.",
|
|
400
|
+
"error": "Code d'erreur",
|
|
401
|
+
"errorMessage": "Message d'erreur",
|
|
402
|
+
"errorUnavailable": "Aucun code d'erreur pour cette ligne.",
|
|
403
|
+
"viaWrapper": "via {{wrapper}}",
|
|
404
|
+
"approvalOutcome": "Approbation",
|
|
405
|
+
"approvalOutcomeValue": {
|
|
406
|
+
"pending": "En attente",
|
|
407
|
+
"denied": "Refusée",
|
|
408
|
+
"accepted": "Acceptée",
|
|
409
|
+
"sessionUsed": "Session utilisée",
|
|
410
|
+
"expired": "Expirée",
|
|
411
|
+
"failed": "Échec"
|
|
412
|
+
},
|
|
413
|
+
"errorCode": {
|
|
414
|
+
"badRequest": "Requête incorrecte",
|
|
415
|
+
"unauthorized": "Non autorisé",
|
|
416
|
+
"forbidden": "Interdit",
|
|
417
|
+
"notFound": "Introuvable",
|
|
418
|
+
"conflict": "Conflit",
|
|
419
|
+
"rateLimited": "Limite de débit atteinte",
|
|
420
|
+
"denied": "Refusé",
|
|
421
|
+
"expired": "Expiré",
|
|
422
|
+
"timeout": "Délai dépassé",
|
|
423
|
+
"upstreamError": "Erreur en amont",
|
|
424
|
+
"internalError": "Erreur interne",
|
|
425
|
+
"outOfSync": "Décalage avec le serveur. Actualisez la page ou mettez à jour l'octroi quand les permissions changent.",
|
|
426
|
+
"identityUnreachable": "Identity injoignable",
|
|
427
|
+
"identityUnavailable": "Identity est indisponible. Réessayez quand le service répond.",
|
|
428
|
+
"identityInvalid": "Identity a rejeté la requête",
|
|
429
|
+
"invalidGrant": "Octroi invalide",
|
|
430
|
+
"permissionChanged": "Permission modifiée",
|
|
431
|
+
"requestExpired": "Demande expirée",
|
|
432
|
+
"agentRevoked": "Connexion révoquée. Créez une nouvelle connexion pour réutiliser cet agent.",
|
|
433
|
+
"downstreamError": "Erreur en aval",
|
|
434
|
+
"serverError": "Erreur serveur",
|
|
435
|
+
"unknown": "Erreur inconnue"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"link": {
|
|
439
|
+
"openApprovalById": "Aller aux approbations en attente",
|
|
440
|
+
"openApprovalsSection": "Aller aux approbations en attente (même nom d'outil)"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"pendingApprovals": {
|
|
444
|
+
"title": "Approbations en attente",
|
|
445
|
+
"meta": "{{agentName}} · Expire dans {{expiresInMinutes}} min",
|
|
446
|
+
"destructiveBadge": "Peut modifier des données",
|
|
447
|
+
"approve": "Approuver",
|
|
448
|
+
"deny": "Refuser",
|
|
449
|
+
"confirmApprove": {
|
|
450
|
+
"title": "Approuver {{toolName}} ?",
|
|
451
|
+
"description": "Cela peut modifier des données dans {{companyName}}.",
|
|
452
|
+
"confirm": "Approuver",
|
|
453
|
+
"cancel": "Annuler"
|
|
454
|
+
},
|
|
455
|
+
"toast": {
|
|
456
|
+
"approvedTitle": "Outil approuvé",
|
|
457
|
+
"deniedTitle": "Outil refusé",
|
|
458
|
+
"description": "{{toolName}}",
|
|
459
|
+
"errorTitle": "Impossible de mettre à jour l'approbation"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"create": {
|
|
463
|
+
"title": "Créer un secret statique",
|
|
464
|
+
"nameLabel": "Nom",
|
|
465
|
+
"namePlaceholder": "ChatGPT sur mon ordinateur portable",
|
|
466
|
+
"nameHelper": "Affiché dans cette liste.",
|
|
467
|
+
"accessHelperGlobal": "Ce jeton peut appeler chaque service régional de cette entreprise, et saas.",
|
|
468
|
+
"accessHelperRegional": "Ce jeton peut appeler chaque service régional de cette entreprise. Saas n'est pas inclus ; connectez-vous depuis le tableau de bord global si vous avez besoin de saas.",
|
|
469
|
+
"expiryHelper": "Cette connexion expire dans {{days}} jours.",
|
|
470
|
+
"submit": "Créer le secret",
|
|
471
|
+
"submitting": "Création…",
|
|
472
|
+
"cancel": "Annuler",
|
|
473
|
+
"errorGeneric": "Impossible de créer la connexion.",
|
|
474
|
+
"errorExpiryTooLong": "Identity refuse cette expiration. Elle dépasse la durée de vie maximale de cette connexion.",
|
|
475
|
+
"errorMissingMcpUrl": "L'URL MCP n'est pas configurée. Définissez aiService.url dans votre configuration Shellui."
|
|
476
|
+
}
|
|
477
|
+
},
|
|
277
478
|
"dataPrivacy": {
|
|
278
479
|
"title": "Confidentialité des données",
|
|
279
480
|
"description": "Gérez vos paramètres de confidentialité des données et vos préférences de cookies.",
|
package/src/index.ts
CHANGED
package/src/service-worker/sw.ts
CHANGED
|
@@ -80,9 +80,11 @@ registerRoute(
|
|
|
80
80
|
}),
|
|
81
81
|
);
|
|
82
82
|
|
|
83
|
-
// Cache API responses with NetworkFirst (fallback to cache if offline)
|
|
83
|
+
// Cache API responses with NetworkFirst (fallback to cache if offline).
|
|
84
|
+
// Never intercept /api/auth — BFF Set-Cookie (HttpOnly refresh) must reach the
|
|
85
|
+
// browser cookie jar; SW-handled responses can drop it and log users out on reload.
|
|
84
86
|
registerRoute(
|
|
85
|
-
({ url }) => url.pathname.startsWith('/api/'),
|
|
87
|
+
({ url }) => url.pathname.startsWith('/api/') && !url.pathname.startsWith('/api/auth'),
|
|
86
88
|
new NetworkFirst({
|
|
87
89
|
cacheName: 'api-cache',
|
|
88
90
|
plugins: [
|