mulmoclaude 2.10.0 → 2.12.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/README.md +15 -0
- package/bin/mulmoclaude.js +44 -51
- package/client/assets/{JsonEditor-E3FJ7oRf.js → JsonEditor-DnC5hozl.js} +1 -1
- package/client/assets/{marp-CmMNIT1E.js → marp-BH7JDaRq.js} +1 -1
- package/client/assets/material-symbols-outlined-DzTrJqFk.woff2 +0 -0
- package/client/assets/{feat-3497-Cwr8t4l4.js → mulmoclaude2-wt3640-35L_u9kD.js} +940 -929
- package/client/assets/mulmoclaude2-wt3640-DzadcIZy.css +2 -0
- package/client/assets/vue-i18n-BVPWXOdL.js +3 -0
- package/client/index.html +3 -3
- package/package.json +22 -22
- package/server/agent/backend/claude-code.ts +50 -5
- package/server/agent/config.ts +3 -1
- package/server/agent/sandboxEnv.ts +148 -0
- package/server/agent/sandboxEnvPlan.ts +188 -0
- package/server/api/auth/bearerAuth.ts +37 -16
- package/server/api/auth/bearerExemption.ts +38 -0
- package/server/api/auth/clientTokenAccess.ts +57 -0
- package/server/api/auth/clientTokenCli.ts +13 -0
- package/server/api/auth/clientTokenCommands.ts +110 -0
- package/server/api/auth/clientTokenRule.ts +116 -0
- package/server/api/auth/clientTokenScope.ts +73 -0
- package/server/api/auth/clientTokenStore.ts +226 -0
- package/server/api/auth/clientTokenUsage.ts +85 -0
- package/server/api/auth/clientTokenUsageRule.ts +59 -0
- package/server/api/auth/ownerTokenHandoff.ts +73 -0
- package/server/api/auth/principal.ts +94 -0
- package/server/api/routes/clientTokens.ts +85 -0
- package/server/api/routes/collections.ts +92 -45
- package/server/api/routes/files.ts +4 -6
- package/server/build/mcp-server.mjs +777 -768
- package/server/events/pub-sub/handshakeAuth.ts +3 -5
- package/server/events/pub-sub/index.ts +22 -4
- package/server/index.ts +33 -51
- package/server/system/env.ts +4 -0
- package/server/utils/wait-ready.d.mts +20 -0
- package/server/utils/wait-ready.mjs +64 -0
- package/src/components/SessionHistoryRow.vue +49 -33
- package/src/components/SettingsClientTokensTab.vue +176 -0
- package/src/components/SettingsModal.vue +4 -1
- package/src/config/apiRoutes.ts +4 -0
- package/src/lang/de.ts +25 -0
- package/src/lang/en.ts +24 -0
- package/src/lang/es.ts +24 -0
- package/src/lang/fr.ts +25 -0
- package/src/lang/ja.ts +24 -0
- package/src/lang/ko.ts +24 -0
- package/src/lang/pt-BR.ts +24 -0
- package/src/lang/zh.ts +23 -0
- package/src/utils/html/customViewSrcdoc.ts +5 -0
- package/client/assets/feat-3497-DEfIEPf6.css +0 -2
- package/client/assets/material-symbols-outlined-Bn5lkljl.woff2 +0 -0
- package/client/assets/vue-i18n-BHWgmfE3.js +0 -3
|
@@ -175,6 +175,7 @@
|
|
|
175
175
|
survive the compiler. This tab is mutually exclusive with
|
|
176
176
|
the rest by construction, so it does not need to be in it. -->
|
|
177
177
|
<SettingsQuitTab v-if="activeTab === 'quit'" @stopped="emit('stopped')" />
|
|
178
|
+
<SettingsClientTokensTab v-if="activeTab === 'clientTokens'" />
|
|
178
179
|
</template>
|
|
179
180
|
</div>
|
|
180
181
|
</div>
|
|
@@ -211,6 +212,7 @@ import SettingsChatIndexTab from "./SettingsChatIndexTab.vue";
|
|
|
211
212
|
import SettingsJournalTab from "./SettingsJournalTab.vue";
|
|
212
213
|
import SettingsNotificationsTab from "./SettingsNotificationsTab.vue";
|
|
213
214
|
import SettingsQuitTab from "./SettingsQuitTab.vue";
|
|
215
|
+
import SettingsClientTokensTab from "./SettingsClientTokensTab.vue";
|
|
214
216
|
import SkillsView from "../plugins/manageSkills/View.vue";
|
|
215
217
|
import RolesView from "./RolesView.vue";
|
|
216
218
|
import PluginScopedRoot from "./PluginScopedRoot.vue";
|
|
@@ -283,6 +285,7 @@ type TabId =
|
|
|
283
285
|
| "notifications"
|
|
284
286
|
| "skills"
|
|
285
287
|
| "roles"
|
|
288
|
+
| "clientTokens"
|
|
286
289
|
| "quit";
|
|
287
290
|
|
|
288
291
|
const activeTab = ref<TabId>("tools");
|
|
@@ -310,7 +313,7 @@ const GROUPS: readonly { key: string; items: readonly TabId[] }[] = [
|
|
|
310
313
|
{ key: "management", items: ["skills", "roles"] },
|
|
311
314
|
// Last on purpose: stopping the server is a deliberate act, not
|
|
312
315
|
// something to sit a mis-click away from the controls above (#2616).
|
|
313
|
-
{ key: "server", items: ["quit"] },
|
|
316
|
+
{ key: "server", items: ["clientTokens", "quit"] },
|
|
314
317
|
];
|
|
315
318
|
|
|
316
319
|
// The file to name in the Gemini tab. The bare filename is the fallback
|
package/src/config/apiRoutes.ts
CHANGED
|
@@ -116,6 +116,10 @@ const HOST_API_ROUTES = {
|
|
|
116
116
|
// Safe to call ad-hoc — pure side effect, no body.
|
|
117
117
|
refresh: "/api/config/refresh",
|
|
118
118
|
connectors: "/api/config/connectors",
|
|
119
|
+
/** GET → { tokens: [{ name, id, createdAt, scopes, lastUsedAt }] } (#3637). Never a value. */
|
|
120
|
+
clientTokens: "/api/config/client-tokens",
|
|
121
|
+
/** DELETE → revoke that client token (404 unknown name, 409 while a CLI token command runs). */
|
|
122
|
+
clientToken: "/api/config/client-tokens/:name",
|
|
119
123
|
},
|
|
120
124
|
|
|
121
125
|
files: {
|
package/src/lang/de.ts
CHANGED
|
@@ -281,6 +281,7 @@ const deMessages = {
|
|
|
281
281
|
notifications: "Web Push",
|
|
282
282
|
skills: "Skills",
|
|
283
283
|
roles: "Rollen",
|
|
284
|
+
clientTokens: "API-Tokens",
|
|
284
285
|
quit: "Beenden",
|
|
285
286
|
},
|
|
286
287
|
groups: {
|
|
@@ -347,6 +348,30 @@ const deMessages = {
|
|
|
347
348
|
loadError: "Einstellungen konnten nicht geladen werden",
|
|
348
349
|
saveError: "Speichern fehlgeschlagen",
|
|
349
350
|
},
|
|
351
|
+
clientTokensTab: {
|
|
352
|
+
description:
|
|
353
|
+
"Benannte Tokens für Bridges, n8n-Workflows und Skripte. Wird eines hier widerrufen, wird dieser Client ab seiner nächsten Anfrage abgewiesen – ohne Neustart und ohne die anderen zu berühren.",
|
|
354
|
+
issueHint: "Tokens werden im Terminal ausgestellt, damit ihr Wert nie über diese Seite läuft:",
|
|
355
|
+
// Message function: the `<` and `>` would otherwise reach the message compiler.
|
|
356
|
+
issueCommand: () => "npx mulmoclaude token add <name>",
|
|
357
|
+
loading: "Wird geladen…",
|
|
358
|
+
empty: "Keine Tokens ausgestellt.",
|
|
359
|
+
columnName: "Name",
|
|
360
|
+
columnScopes: "Bereiche",
|
|
361
|
+
columnCreated: "Erstellt",
|
|
362
|
+
columnLastUsed: "Zuletzt verwendet",
|
|
363
|
+
neverUsed: "Nie",
|
|
364
|
+
revokeLabel: "Widerrufen",
|
|
365
|
+
confirmBody:
|
|
366
|
+
"„{name}“ widerrufen? Ein Client, der es verwendet, wird ab seiner nächsten Anfrage abgewiesen, und eine offene Verbindung wird binnen Sekunden geschlossen.",
|
|
367
|
+
confirmLabel: "Widerrufen",
|
|
368
|
+
revoking: "Wird widerrufen…",
|
|
369
|
+
lastUsedNote: "Die letzte Verwendung wird minutengenau erfasst.",
|
|
370
|
+
unreadableEntries:
|
|
371
|
+
"client-tokens.json enthält {count} Einträge, die dieser Server nicht lesen kann. Sie berechtigen zu nichts, und diese Seite widerruft nicht, solange sie vorhanden sind, weil ein Neuschreiben der Datei sie entfernen würde. `mulmoclaude token revoke` funktioniert weiterhin und entfernt sie.",
|
|
372
|
+
loadError: "Tokens konnten nicht geladen werden",
|
|
373
|
+
revokeError: "Token konnte nicht widerrufen werden",
|
|
374
|
+
},
|
|
350
375
|
quitTab: {
|
|
351
376
|
description:
|
|
352
377
|
"Beendet den MulmoClaude-Server auf diesem Rechner. Über das Symbol gestartet, läuft er weiter, auch wenn du diesen Tab schließt — hier beendest du ihn ohne Terminal.",
|
package/src/lang/en.ts
CHANGED
|
@@ -298,6 +298,7 @@ const enMessages = {
|
|
|
298
298
|
notifications: "Web Push",
|
|
299
299
|
skills: "Skills",
|
|
300
300
|
roles: "Roles",
|
|
301
|
+
clientTokens: "API tokens",
|
|
301
302
|
quit: "Quit",
|
|
302
303
|
},
|
|
303
304
|
groups: {
|
|
@@ -366,6 +367,29 @@ const enMessages = {
|
|
|
366
367
|
loadError: "Failed to load settings",
|
|
367
368
|
saveError: "Failed to save",
|
|
368
369
|
},
|
|
370
|
+
clientTokensTab: {
|
|
371
|
+
description:
|
|
372
|
+
"Named tokens for bridges, n8n workflows and scripts. Revoking one here cuts that client off from its next request, without restarting and without touching the others.",
|
|
373
|
+
issueHint: "Tokens are issued from a terminal, so their value never passes through this page:",
|
|
374
|
+
// Message function: the `<` and `>` would otherwise reach the message compiler.
|
|
375
|
+
issueCommand: () => "npx mulmoclaude token add <name>",
|
|
376
|
+
loading: "Loading…",
|
|
377
|
+
empty: "No client tokens issued.",
|
|
378
|
+
columnName: "Name",
|
|
379
|
+
columnScopes: "Scopes",
|
|
380
|
+
columnCreated: "Created",
|
|
381
|
+
columnLastUsed: "Last used",
|
|
382
|
+
neverUsed: "Never",
|
|
383
|
+
revokeLabel: "Revoke",
|
|
384
|
+
confirmBody: 'Revoke "{name}"? A client using it is refused from its next request, and an open connection is closed within seconds.',
|
|
385
|
+
confirmLabel: "Revoke",
|
|
386
|
+
revoking: "Revoking…",
|
|
387
|
+
lastUsedNote: "Last used is recorded to the minute.",
|
|
388
|
+
unreadableEntries:
|
|
389
|
+
"client-tokens.json has {count} entries this server cannot read. They authorize nothing, and this page will not revoke while they are there, because rewriting the file would drop them. `mulmoclaude token revoke` still works and removes them.",
|
|
390
|
+
loadError: "Failed to load client tokens",
|
|
391
|
+
revokeError: "Failed to revoke the token",
|
|
392
|
+
},
|
|
369
393
|
quitTab: {
|
|
370
394
|
description:
|
|
371
395
|
"Stop the MulmoClaude server running on this machine. Started from the icon, it keeps running after you close this tab — this is how you stop it without a terminal.",
|
package/src/lang/es.ts
CHANGED
|
@@ -284,6 +284,7 @@ const esMessages = {
|
|
|
284
284
|
notifications: "Web Push",
|
|
285
285
|
skills: "Skills",
|
|
286
286
|
roles: "Roles",
|
|
287
|
+
clientTokens: "Tokens de API",
|
|
287
288
|
quit: "Salir",
|
|
288
289
|
},
|
|
289
290
|
groups: {
|
|
@@ -349,6 +350,29 @@ const esMessages = {
|
|
|
349
350
|
loadError: "Error al cargar los ajustes",
|
|
350
351
|
saveError: "Error al guardar",
|
|
351
352
|
},
|
|
353
|
+
clientTokensTab: {
|
|
354
|
+
description:
|
|
355
|
+
"Tokens con nombre para puentes, flujos de n8n y scripts. Al revocar uno aquí, ese cliente queda bloqueado desde su siguiente petición, sin reiniciar y sin afectar a los demás.",
|
|
356
|
+
issueHint: "Los tokens se emiten desde una terminal, para que su valor nunca pase por esta página:",
|
|
357
|
+
// Message function: the `<` and `>` would otherwise reach the message compiler.
|
|
358
|
+
issueCommand: () => "npx mulmoclaude token add <name>",
|
|
359
|
+
loading: "Cargando…",
|
|
360
|
+
empty: "No hay tokens emitidos.",
|
|
361
|
+
columnName: "Nombre",
|
|
362
|
+
columnScopes: "Alcance",
|
|
363
|
+
columnCreated: "Creado",
|
|
364
|
+
columnLastUsed: "Último uso",
|
|
365
|
+
neverUsed: "Nunca",
|
|
366
|
+
revokeLabel: "Revocar",
|
|
367
|
+
confirmBody: "¿Revocar «{name}»? Un cliente que lo use será rechazado desde su siguiente petición, y una conexión abierta se cerrará en segundos.",
|
|
368
|
+
confirmLabel: "Revocar",
|
|
369
|
+
revoking: "Revocando…",
|
|
370
|
+
lastUsedNote: "El último uso se registra con precisión de minutos.",
|
|
371
|
+
unreadableEntries:
|
|
372
|
+
"client-tokens.json tiene {count} entradas que este servidor no puede leer. No autorizan nada, y esta página no revocará mientras sigan ahí, porque reescribir el archivo las eliminaría. `mulmoclaude token revoke` sigue funcionando y las elimina.",
|
|
373
|
+
loadError: "No se pudieron cargar los tokens",
|
|
374
|
+
revokeError: "No se pudo revocar el token",
|
|
375
|
+
},
|
|
352
376
|
quitTab: {
|
|
353
377
|
description:
|
|
354
378
|
"Detén el servidor de MulmoClaude que se ejecuta en este equipo. Si lo abriste desde el icono, sigue funcionando aunque cierres esta pestaña: así se detiene sin usar una terminal.",
|
package/src/lang/fr.ts
CHANGED
|
@@ -279,6 +279,7 @@ const frMessages = {
|
|
|
279
279
|
notifications: "Web Push",
|
|
280
280
|
skills: "Skills",
|
|
281
281
|
roles: "Rôles",
|
|
282
|
+
clientTokens: "Jetons d'API",
|
|
282
283
|
quit: "Quitter",
|
|
283
284
|
},
|
|
284
285
|
groups: {
|
|
@@ -345,6 +346,30 @@ const frMessages = {
|
|
|
345
346
|
loadError: "Échec du chargement des paramètres",
|
|
346
347
|
saveError: "Échec de l'enregistrement",
|
|
347
348
|
},
|
|
349
|
+
clientTokensTab: {
|
|
350
|
+
description:
|
|
351
|
+
"Jetons nommés pour les passerelles, les workflows n8n et les scripts. En révoquer un ici bloque ce client dès sa prochaine requête, sans redémarrage et sans toucher aux autres.",
|
|
352
|
+
issueHint: "Les jetons sont émis depuis un terminal, pour que leur valeur ne passe jamais par cette page :",
|
|
353
|
+
// Message function: the `<` and `>` would otherwise reach the message compiler.
|
|
354
|
+
issueCommand: () => "npx mulmoclaude token add <name>",
|
|
355
|
+
loading: "Chargement…",
|
|
356
|
+
empty: "Aucun jeton émis.",
|
|
357
|
+
columnName: "Nom",
|
|
358
|
+
columnScopes: "Portées",
|
|
359
|
+
columnCreated: "Créé le",
|
|
360
|
+
columnLastUsed: "Dernière utilisation",
|
|
361
|
+
neverUsed: "Jamais",
|
|
362
|
+
revokeLabel: "Révoquer",
|
|
363
|
+
confirmBody:
|
|
364
|
+
"Révoquer « {name} » ? Un client qui l'utilise est refusé dès sa prochaine requête, et une connexion ouverte est fermée en quelques secondes.",
|
|
365
|
+
confirmLabel: "Révoquer",
|
|
366
|
+
revoking: "Révocation…",
|
|
367
|
+
lastUsedNote: "La dernière utilisation est enregistrée à la minute près.",
|
|
368
|
+
unreadableEntries:
|
|
369
|
+
"client-tokens.json contient {count} entrées que ce serveur ne sait pas lire. Elles n'autorisent rien, et cette page ne révoque pas tant qu'elles sont là, car réécrire le fichier les supprimerait. `mulmoclaude token revoke` fonctionne toujours et les retire.",
|
|
370
|
+
loadError: "Impossible de charger les jetons",
|
|
371
|
+
revokeError: "Impossible de révoquer le jeton",
|
|
372
|
+
},
|
|
348
373
|
quitTab: {
|
|
349
374
|
description:
|
|
350
375
|
"Arrête le serveur MulmoClaude qui tourne sur cette machine. Lancé depuis l'icône, il continue de tourner même si vous fermez cet onglet — c'est ici qu'on l'arrête sans terminal.",
|
package/src/lang/ja.ts
CHANGED
|
@@ -282,6 +282,7 @@ const jaMessages = {
|
|
|
282
282
|
notifications: "Web Push",
|
|
283
283
|
skills: "スキル",
|
|
284
284
|
roles: "ロール",
|
|
285
|
+
clientTokens: "API トークン",
|
|
285
286
|
quit: "終了",
|
|
286
287
|
},
|
|
287
288
|
groups: {
|
|
@@ -347,6 +348,29 @@ const jaMessages = {
|
|
|
347
348
|
loadError: "設定の読み込みに失敗しました",
|
|
348
349
|
saveError: "保存に失敗しました",
|
|
349
350
|
},
|
|
351
|
+
clientTokensTab: {
|
|
352
|
+
description:
|
|
353
|
+
"ブリッジ・n8n・スクリプト用の名前付きトークンです。ここで失効させると、そのトークンを使う相手は次のリクエストから使えなくなります。再起動は不要で、ほかのトークンには影響しません。",
|
|
354
|
+
issueHint: "トークンの値がこの画面を通らないよう、発行は端末から行います:",
|
|
355
|
+
// Message function: the `<` and `>` would otherwise reach the message compiler.
|
|
356
|
+
issueCommand: () => "npx mulmoclaude token add <name>",
|
|
357
|
+
loading: "読み込み中…",
|
|
358
|
+
empty: "発行済みのトークンはありません。",
|
|
359
|
+
columnName: "名前",
|
|
360
|
+
columnScopes: "許可範囲",
|
|
361
|
+
columnCreated: "作成日時",
|
|
362
|
+
columnLastUsed: "最終利用",
|
|
363
|
+
neverUsed: "未使用",
|
|
364
|
+
revokeLabel: "失効",
|
|
365
|
+
confirmBody: "「{name}」を失効させますか?使っている相手は次のリクエストから拒否され、開いている接続も数秒以内に切れます。",
|
|
366
|
+
confirmLabel: "失効させる",
|
|
367
|
+
revoking: "失効中…",
|
|
368
|
+
lastUsedNote: "最終利用日時は分単位で記録しています。",
|
|
369
|
+
unreadableEntries:
|
|
370
|
+
"client-tokens.json に、このサーバーが読めない記録が {count} 件あります。これらは何も許可しません。ファイルを書き直すと消えてしまうため、残っている間はこの画面から失効できません。`mulmoclaude token revoke` は使え、その際にこれらは取り除かれます。",
|
|
371
|
+
loadError: "トークンの一覧を読み込めませんでした",
|
|
372
|
+
revokeError: "トークンを失効できませんでした",
|
|
373
|
+
},
|
|
350
374
|
quitTab: {
|
|
351
375
|
description:
|
|
352
376
|
"このマシンで動いている MulmoClaude サーバーを終了します。アイコンから起動した場合、このタブを閉じてもサーバーは動き続けます。ターミナルを使わずに止める手段がここです。",
|
package/src/lang/ko.ts
CHANGED
|
@@ -283,6 +283,7 @@ const koMessages = {
|
|
|
283
283
|
notifications: "Web Push",
|
|
284
284
|
skills: "스킬",
|
|
285
285
|
roles: "역할",
|
|
286
|
+
clientTokens: "API 토큰",
|
|
286
287
|
quit: "종료",
|
|
287
288
|
},
|
|
288
289
|
groups: {
|
|
@@ -347,6 +348,29 @@ const koMessages = {
|
|
|
347
348
|
loadError: "설정을 불러오지 못했습니다",
|
|
348
349
|
saveError: "저장에 실패했습니다",
|
|
349
350
|
},
|
|
351
|
+
clientTokensTab: {
|
|
352
|
+
description:
|
|
353
|
+
"브리지, n8n 워크플로, 스크립트용 이름 붙은 토큰입니다. 여기서 폐기하면 해당 클라이언트는 다음 요청부터 거부되며, 재시작이 필요 없고 다른 토큰에는 영향이 없습니다.",
|
|
354
|
+
issueHint: "토큰 값이 이 화면을 거치지 않도록 발급은 터미널에서 합니다:",
|
|
355
|
+
// Message function: the `<` and `>` would otherwise reach the message compiler.
|
|
356
|
+
issueCommand: () => "npx mulmoclaude token add <name>",
|
|
357
|
+
loading: "불러오는 중…",
|
|
358
|
+
empty: "발급된 토큰이 없습니다.",
|
|
359
|
+
columnName: "이름",
|
|
360
|
+
columnScopes: "허용 범위",
|
|
361
|
+
columnCreated: "생성 시각",
|
|
362
|
+
columnLastUsed: "마지막 사용",
|
|
363
|
+
neverUsed: "사용 안 함",
|
|
364
|
+
revokeLabel: "폐기",
|
|
365
|
+
confirmBody: '"{name}"을(를) 폐기할까요? 사용 중인 클라이언트는 다음 요청부터 거부되고, 열린 연결은 몇 초 안에 닫힙니다.',
|
|
366
|
+
confirmLabel: "폐기",
|
|
367
|
+
revoking: "폐기 중…",
|
|
368
|
+
lastUsedNote: "마지막 사용 시각은 분 단위로 기록됩니다.",
|
|
369
|
+
unreadableEntries:
|
|
370
|
+
"client-tokens.json에 이 서버가 읽을 수 없는 항목이 {count}개 있습니다. 이 항목은 아무 권한도 주지 않으며, 파일을 다시 쓰면 사라지므로 남아 있는 동안에는 이 화면에서 폐기할 수 없습니다. `mulmoclaude token revoke`는 계속 사용할 수 있고, 그때 이 항목들이 제거됩니다.",
|
|
371
|
+
loadError: "토큰 목록을 불러오지 못했습니다",
|
|
372
|
+
revokeError: "토큰을 폐기하지 못했습니다",
|
|
373
|
+
},
|
|
350
374
|
quitTab: {
|
|
351
375
|
description:
|
|
352
376
|
"이 컴퓨터에서 실행 중인 MulmoClaude 서버를 종료합니다. 아이콘으로 시작한 경우 이 탭을 닫아도 서버는 계속 실행됩니다. 터미널 없이 종료하는 방법이 여기입니다.",
|
package/src/lang/pt-BR.ts
CHANGED
|
@@ -279,6 +279,7 @@ const ptBRMessages = {
|
|
|
279
279
|
notifications: "Web Push",
|
|
280
280
|
skills: "Skills",
|
|
281
281
|
roles: "Papéis",
|
|
282
|
+
clientTokens: "Tokens de API",
|
|
282
283
|
quit: "Encerrar",
|
|
283
284
|
},
|
|
284
285
|
groups: {
|
|
@@ -344,6 +345,29 @@ const ptBRMessages = {
|
|
|
344
345
|
loadError: "Falha ao carregar as configurações",
|
|
345
346
|
saveError: "Falha ao salvar",
|
|
346
347
|
},
|
|
348
|
+
clientTokensTab: {
|
|
349
|
+
description:
|
|
350
|
+
"Tokens nomeados para bridges, fluxos do n8n e scripts. Revogar um aqui bloqueia esse cliente a partir da próxima requisição, sem reiniciar e sem afetar os outros.",
|
|
351
|
+
issueHint: "Os tokens são emitidos pelo terminal, para que o valor nunca passe por esta página:",
|
|
352
|
+
// Message function: the `<` and `>` would otherwise reach the message compiler.
|
|
353
|
+
issueCommand: () => "npx mulmoclaude token add <name>",
|
|
354
|
+
loading: "Carregando…",
|
|
355
|
+
empty: "Nenhum token emitido.",
|
|
356
|
+
columnName: "Nome",
|
|
357
|
+
columnScopes: "Escopos",
|
|
358
|
+
columnCreated: "Criado em",
|
|
359
|
+
columnLastUsed: "Último uso",
|
|
360
|
+
neverUsed: "Nunca",
|
|
361
|
+
revokeLabel: "Revogar",
|
|
362
|
+
confirmBody: 'Revogar "{name}"? Um cliente que o use será recusado a partir da próxima requisição, e uma conexão aberta será fechada em segundos.',
|
|
363
|
+
confirmLabel: "Revogar",
|
|
364
|
+
revoking: "Revogando…",
|
|
365
|
+
lastUsedNote: "O último uso é registrado com precisão de minutos.",
|
|
366
|
+
unreadableEntries:
|
|
367
|
+
"client-tokens.json tem {count} entradas que este servidor não consegue ler. Elas não autorizam nada, e esta página não revoga enquanto existirem, porque reescrever o arquivo as apagaria. `mulmoclaude token revoke` continua funcionando e as remove.",
|
|
368
|
+
loadError: "Não foi possível carregar os tokens",
|
|
369
|
+
revokeError: "Não foi possível revogar o token",
|
|
370
|
+
},
|
|
347
371
|
quitTab: {
|
|
348
372
|
description:
|
|
349
373
|
"Encerra o servidor do MulmoClaude em execução nesta máquina. Iniciado pelo ícone, ele continua rodando mesmo se você fechar esta aba — é assim que se encerra sem um terminal.",
|
package/src/lang/zh.ts
CHANGED
|
@@ -278,6 +278,7 @@ const zhMessages = {
|
|
|
278
278
|
notifications: "Web Push",
|
|
279
279
|
skills: "技能",
|
|
280
280
|
roles: "角色",
|
|
281
|
+
clientTokens: "API 令牌",
|
|
281
282
|
quit: "退出",
|
|
282
283
|
},
|
|
283
284
|
groups: {
|
|
@@ -339,6 +340,28 @@ const zhMessages = {
|
|
|
339
340
|
loadError: "加载设置失败",
|
|
340
341
|
saveError: "保存失败",
|
|
341
342
|
},
|
|
343
|
+
clientTokensTab: {
|
|
344
|
+
description: "供桥接、n8n 工作流和脚本使用的具名令牌。在此吊销后,使用它的客户端从下一次请求起即被拒绝,无需重启,也不影响其他令牌。",
|
|
345
|
+
issueHint: "令牌在终端中签发,因此其值不会经过此页面:",
|
|
346
|
+
// Message function: the `<` and `>` would otherwise reach the message compiler.
|
|
347
|
+
issueCommand: () => "npx mulmoclaude token add <name>",
|
|
348
|
+
loading: "加载中…",
|
|
349
|
+
empty: "尚未签发任何令牌。",
|
|
350
|
+
columnName: "名称",
|
|
351
|
+
columnScopes: "权限范围",
|
|
352
|
+
columnCreated: "创建时间",
|
|
353
|
+
columnLastUsed: "最近使用",
|
|
354
|
+
neverUsed: "从未",
|
|
355
|
+
revokeLabel: "吊销",
|
|
356
|
+
confirmBody: "要吊销“{name}”吗?使用它的客户端将从下一次请求起被拒绝,已打开的连接会在数秒内关闭。",
|
|
357
|
+
confirmLabel: "吊销",
|
|
358
|
+
revoking: "吊销中…",
|
|
359
|
+
lastUsedNote: "最近使用时间精确到分钟。",
|
|
360
|
+
unreadableEntries:
|
|
361
|
+
"client-tokens.json 中有 {count} 条本服务器无法读取的记录。它们不授予任何权限;由于重写文件会删除它们,存在这些记录时本页面不会执行吊销。`mulmoclaude token revoke` 仍可使用,并会移除它们。",
|
|
362
|
+
loadError: "无法加载令牌列表",
|
|
363
|
+
revokeError: "无法吊销该令牌",
|
|
364
|
+
},
|
|
342
365
|
quitTab: {
|
|
343
366
|
description: "停止本机上运行的 MulmoClaude 服务器。从图标启动时,即使关闭此标签页服务器仍会继续运行——这里就是无需终端即可停止它的入口。",
|
|
344
367
|
// Message function form — skips vue-i18n's message compiler so the
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
// helper that asks the host to open a new chat seeded with `prompt`, and
|
|
16
16
|
// the host search box's live text (see below).
|
|
17
17
|
|
|
18
|
+
import type { CustomViewFields } from "@mulmoclaude/core/collection";
|
|
18
19
|
import { buildCustomViewCsp, type CspExtraHosts } from "./previewCsp";
|
|
19
20
|
|
|
20
21
|
/** Debounce (ms) for the in-iframe live-refresh helper — collapses a burst of
|
|
@@ -119,6 +120,9 @@ export interface CustomViewBootstrap {
|
|
|
119
120
|
* iframe sees ONLY this locale's strings (never the full multi-locale
|
|
120
121
|
* JSON). Optional / may be `{}` — the `t()` helper falls back to the key. */
|
|
121
122
|
dict?: Record<string, string>;
|
|
123
|
+
/** Schema-derived enum metadata, keyed by field name (#2169). Optional — the
|
|
124
|
+
* bootstrap always exposes `__MC_VIEW.fields`, `{}` when omitted. */
|
|
125
|
+
fields?: CustomViewFields;
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
function absoluteDataUrl(dataUrl: string, origin: string): string {
|
|
@@ -143,6 +147,7 @@ export function buildCustomViewSrcdoc(html: string, boot: CustomViewBootstrap, c
|
|
|
143
147
|
cspNonce, // echoed in mc-csp-violation so the host can trust the sender (#1989)
|
|
144
148
|
locale: boot.locale ?? "",
|
|
145
149
|
dict: boot.dict ?? {},
|
|
150
|
+
fields: boot.fields ?? {},
|
|
146
151
|
}).replace(/</g, "\\u003c");
|
|
147
152
|
const injection = `${cspMeta}<script>window.__MC_VIEW=${json};${viewBridgeBootstrap()}</script>`;
|
|
148
153
|
if (/<head\b[^>]*>/i.test(html)) {
|