mulmoclaude 2.11.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.
Files changed (39) hide show
  1. package/README.md +5 -1
  2. package/bin/mulmoclaude.js +13 -35
  3. package/client/assets/{marp-DvbfD9EO.js → marp-BH7JDaRq.js} +1 -1
  4. package/client/assets/{mulmoclaude3-BUmaA-ZX.js → mulmoclaude2-wt3640-35L_u9kD.js} +926 -921
  5. package/client/assets/mulmoclaude2-wt3640-DzadcIZy.css +2 -0
  6. package/client/index.html +2 -2
  7. package/package.json +4 -4
  8. package/server/api/auth/bearerAuth.ts +24 -12
  9. package/server/api/auth/bearerExemption.ts +38 -0
  10. package/server/api/auth/clientTokenCommands.ts +28 -8
  11. package/server/api/auth/clientTokenRule.ts +9 -8
  12. package/server/api/auth/clientTokenScope.ts +73 -0
  13. package/server/api/auth/clientTokenStore.ts +50 -2
  14. package/server/api/auth/clientTokenUsage.ts +85 -0
  15. package/server/api/auth/clientTokenUsageRule.ts +59 -0
  16. package/server/api/auth/ownerTokenHandoff.ts +73 -0
  17. package/server/api/auth/principal.ts +64 -3
  18. package/server/api/routes/clientTokens.ts +85 -0
  19. package/server/api/routes/collections.ts +20 -11
  20. package/server/api/routes/files.ts +4 -6
  21. package/server/build/mcp-server.mjs +727 -727
  22. package/server/index.ts +33 -53
  23. package/server/utils/wait-ready.d.mts +20 -0
  24. package/server/utils/wait-ready.mjs +64 -0
  25. package/src/components/SessionHistoryRow.vue +47 -41
  26. package/src/components/SettingsClientTokensTab.vue +176 -0
  27. package/src/components/SettingsModal.vue +4 -1
  28. package/src/config/apiRoutes.ts +4 -0
  29. package/src/lang/de.ts +25 -0
  30. package/src/lang/en.ts +24 -0
  31. package/src/lang/es.ts +24 -0
  32. package/src/lang/fr.ts +25 -0
  33. package/src/lang/ja.ts +24 -0
  34. package/src/lang/ko.ts +24 -0
  35. package/src/lang/pt-BR.ts +24 -0
  36. package/src/lang/zh.ts +23 -0
  37. package/client/assets/mulmoclaude3-D93Ihflz.css +0 -2
  38. package/server/system/logs/aaa +0 -737
  39. package/server/system/logs/bb +0 -446
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