mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 01:44:13 +00:00
092223c259
One coarse scope rather than per-plugin granularity. Which plugins are
installed is runtime data, so a per-plugin scope cannot be statically
enumerated: it would break the ${group}:${mode} derivation and the
AssertExact guards in nest-mcp-policy.ts, and its consent copy could not
be written ahead of time for a third-party plugin name. Tokens issued
before a plugin existed could never carry its scope either. Per-plugin
granularity already exists one layer down as the admin's mcp:tools grant.
'use' is a fourth mode, which widens ScopeMode. Nothing else moves:
McpAccessGroup and McpAccessMode derive from Scope, so both AssertExact
guards self-heal, and the policy's fallback branch already covers a third
mode the way it covers files:content.
The presets needed an explicit exclusion. Five of the six are written as
"everything except deletes", so plugins:use would have joined Claude.ai,
Cursor, Windsurf and Zed silently and handed out third-party tool
execution without anyone choosing it. That filter was duplicated across
the desktop and mobile files with nothing pinning it, so both now use one
shared constant, and FE-OAUTH-SCOPES-012 holds the line for the next
scope like this one.
The consent copy says what the scope does not do: the RPC host authorises
from grants frozen at construction, so this scope plus weather:read still
reaches whatever the plugin itself was granted.
Two i18n gates, not one. The dot-only group key is tracked by
i18n-parity.mjs, whose regex has no colon in its character class; the
colon-bearing label/description pair is invisible to it but is compared by
client/tests/unit/i18n/parity.test.ts, which diffs merged bundles. All 23
locales get all three keys, including the three in neither gate.
The consent glyph gets a ':use' branch. Falling through to the eye would
tell the user a tool-running scope only looks at things.
113 lines
10 KiB
TypeScript
113 lines
10 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const oauth: TranslationStrings = {
|
|
'oauth.scope.group.trips': 'الرحلات',
|
|
'oauth.scope.group.places': 'الأماكن',
|
|
'oauth.scope.group.collections': 'المجموعات',
|
|
'oauth.scope.group.packing': 'الأمتعة',
|
|
'oauth.scope.group.todos': 'المهام',
|
|
'oauth.scope.group.budget': 'الميزانية',
|
|
'oauth.scope.group.reservations': 'الحجوزات',
|
|
'oauth.scope.group.collab': 'التعاون',
|
|
'oauth.scope.group.notifications': 'الإشعارات',
|
|
'oauth.scope.group.vacay': 'الإجازة',
|
|
'oauth.scope.group.weather': 'الطقس',
|
|
'oauth.scope.group.journey': 'مذكرة السفر',
|
|
'oauth.scope.trips:read.label': 'عرض الرحلات وخطط السفر',
|
|
'oauth.scope.trips:read.description': 'قراءة الرحلات والأيام والملاحظات والأعضاء',
|
|
'oauth.scope.trips:write.label': 'تحرير الرحلات وخطط السفر',
|
|
'oauth.scope.trips:write.description': 'إنشاء وتحديث الرحلات والأيام والملاحظات وإدارة الأعضاء',
|
|
'oauth.scope.trips:delete.label': 'حذف الرحلات',
|
|
'oauth.scope.trips:delete.description': 'حذف الرحلات بأكملها نهائياً — هذا الإجراء لا يمكن التراجع عنه',
|
|
'oauth.scope.trips:share.label': 'إدارة روابط المشاركة',
|
|
'oauth.scope.trips:share.description': 'إنشاء روابط مشاركة عامة وتحديثها وإلغاؤها',
|
|
'oauth.scope.places:read.label': 'عرض الأماكن وبيانات الخريطة',
|
|
'oauth.scope.places:read.description': 'قراءة الأماكن وتعيينات الأيام والعلامات والفئات',
|
|
'oauth.scope.places:write.label': 'إدارة الأماكن',
|
|
'oauth.scope.places:write.description': 'إنشاء وتحديث وحذف الأماكن والتعيينات والعلامات',
|
|
'oauth.scope.collections:read.label': 'عرض المجموعات',
|
|
'oauth.scope.collections:read.description': 'قراءة مجموعات الأماكن المحفوظة وأماكنها وتقييماتها وتسمياتها وأعضائها',
|
|
'oauth.scope.collections:write.label': 'إدارة المجموعات',
|
|
'oauth.scope.collections:write.description':
|
|
'إنشاء وتعديل المجموعات، وحفظ الأماكن وتقييمها وتسميتها ونسخها، ومشاركة القوائم',
|
|
'oauth.scope.atlas:read.label': 'عرض Atlas',
|
|
'oauth.scope.atlas:read.description': 'قراءة الدول والمناطق المزارة وقائمة الأمنيات',
|
|
'oauth.scope.atlas:write.label': 'إدارة Atlas',
|
|
'oauth.scope.atlas:write.description': 'تعليم الدول والمناطق كمزارة، وإدارة قائمة الأمنيات',
|
|
'oauth.scope.packing:read.label': 'عرض قوائم الأمتعة',
|
|
'oauth.scope.packing:read.description': 'قراءة عناصر الأمتعة والحقائب ومُسنَدي الفئات',
|
|
'oauth.scope.packing:write.label': 'إدارة قوائم الأمتعة',
|
|
'oauth.scope.packing:write.description': 'إضافة وتحديث وحذف وتبديل وإعادة ترتيب عناصر الأمتعة والحقائب',
|
|
'oauth.scope.todos:read.label': 'عرض قوائم المهام',
|
|
'oauth.scope.todos:read.description': 'قراءة مهام الرحلة ومُسنَدي الفئات',
|
|
'oauth.scope.todos:write.label': 'إدارة قوائم المهام',
|
|
'oauth.scope.todos:write.description': 'إنشاء وتحديث وتبديل وحذف وإعادة ترتيب المهام',
|
|
'oauth.scope.budget:read.label': 'عرض الميزانية',
|
|
'oauth.scope.budget:read.description': 'قراءة بنود الميزانية وتفاصيل النفقات',
|
|
'oauth.scope.budget:write.label': 'إدارة الميزانية',
|
|
'oauth.scope.budget:write.description': 'إنشاء وتحديث وحذف بنود الميزانية',
|
|
'oauth.scope.reservations:read.label': 'عرض الحجوزات',
|
|
'oauth.scope.reservations:read.description': 'قراءة الحجوزات وتفاصيل الإقامة',
|
|
'oauth.scope.reservations:write.label': 'إدارة الحجوزات',
|
|
'oauth.scope.reservations:write.description': 'إنشاء وتحديث وحذف وإعادة ترتيب الحجوزات',
|
|
'oauth.scope.collab:read.label': 'عرض التعاون',
|
|
'oauth.scope.collab:read.description': 'قراءة ملاحظات التعاون والاستطلاعات والرسائل',
|
|
'oauth.scope.collab:write.label': 'إدارة التعاون',
|
|
'oauth.scope.collab:write.description': 'إنشاء وتحديث وحذف الملاحظات والاستطلاعات والرسائل التعاونية',
|
|
'oauth.scope.notifications:read.label': 'عرض الإشعارات',
|
|
'oauth.scope.notifications:read.description': 'قراءة إشعارات التطبيق وأعداد غير المقروءة',
|
|
'oauth.scope.notifications:write.label': 'إدارة الإشعارات',
|
|
'oauth.scope.notifications:write.description': 'تعليم الإشعارات كمقروءة والرد عليها',
|
|
'oauth.scope.vacay:read.label': 'عرض خطط الإجازة',
|
|
'oauth.scope.vacay:read.description': 'قراءة بيانات تخطيط الإجازة والإدخالات والإحصاءات',
|
|
'oauth.scope.vacay:write.label': 'إدارة خطط الإجازة',
|
|
'oauth.scope.vacay:write.description': 'إنشاء وإدارة إدخالات الإجازة والعطلات وخطط الفريق',
|
|
'oauth.scope.geo:read.label': 'الخرائط والترميز الجغرافي',
|
|
'oauth.scope.geo:read.description': 'البحث عن مواقع وحل عناوين الخرائط والترميز الجغرافي العكسي للإحداثيات',
|
|
'oauth.scope.weather:read.label': 'توقعات الطقس',
|
|
'oauth.scope.weather:read.description': 'جلب توقعات الطقس لمواقع الرحلة وتواريخها',
|
|
'oauth.scope.journey:read.label': 'عرض مذكرات السفر',
|
|
'oauth.scope.journey:read.description': 'قراءة مذكرات السفر والمدخلات وقائمة المساهمين',
|
|
'oauth.scope.journey:write.label': 'إدارة مذكرات السفر',
|
|
'oauth.scope.journey:write.description': 'إنشاء مذكرات السفر وتحديثها وحذفها وإدخالاتها',
|
|
'oauth.scope.journey:share.label': 'إدارة روابط مذكرات السفر',
|
|
'oauth.scope.journey:share.description': 'إنشاء روابط مشاركة عامة لمذكرات السفر وتحديثها وإلغاؤها',
|
|
'oauth.scope.group.atlas': 'Atlas', // en-fallback
|
|
'oauth.scope.group.geo': 'Geo', // en-fallback
|
|
'oauth.authorize.authorizing': 'Authorizing…', // en-fallback
|
|
'oauth.authorize.loading': 'Loading…', // en-fallback
|
|
'oauth.authorize.errorTitle': 'Authorization Error', // en-fallback
|
|
'oauth.authorize.loginTitle': 'Sign in to continue', // en-fallback
|
|
'oauth.authorize.loginDescription': '{client} wants access to your TREK account. Please sign in first.', // en-fallback
|
|
'oauth.authorize.loginButton': 'Sign in to TREK', // en-fallback
|
|
'oauth.authorize.requestLabel': 'Authorization Request', // en-fallback
|
|
'oauth.authorize.requestDescription': 'This application is requesting access to your TREK account.', // en-fallback
|
|
'oauth.authorize.trustNote': 'Only grant access to applications you trust. Your data stays on your server.', // en-fallback
|
|
'oauth.authorize.selectScope': 'Select at least one scope', // en-fallback
|
|
'oauth.authorize.approveOneScope': 'Approve ({count} scope)', // en-fallback
|
|
'oauth.authorize.approveManyScopes': 'Approve ({count} scopes)', // en-fallback
|
|
'oauth.authorize.approveAccess': 'Approve Access', // en-fallback
|
|
'oauth.authorize.deny': 'Deny', // en-fallback
|
|
'oauth.authorize.choosePermissions': 'Choose which permissions to grant', // en-fallback
|
|
'oauth.authorize.permissionsRequested': 'Permissions requested', // en-fallback
|
|
'oauth.authorize.alwaysIncluded': 'Always included', // en-fallback
|
|
'oauth.authorize.alwaysTool.listTrips': 'List your trips so the AI can discover trip IDs', // en-fallback
|
|
'oauth.authorize.alwaysTool.getTripSummary': 'Read a trip overview needed to use any other tool', // en-fallback
|
|
'oauth.scope.group.files': 'الملفات',
|
|
'oauth.scope.group.settings': 'الإعدادات',
|
|
'oauth.scope.files:read.label': 'عرض ملفات الرحلة',
|
|
'oauth.scope.files:read.description': 'سرد مستندات الرحلة: الأسماء والأحجام ومن رفعها وبماذا ترتبط',
|
|
'oauth.scope.files:write.label': 'إدارة ملفات الرحلة',
|
|
'oauth.scope.files:write.description': 'إعادة تسمية الملفات ووصفها وربطها بالحجوزات والأماكن وتمييزها ونقلها إلى سلة المهملات',
|
|
'oauth.scope.files:content.label': 'قراءة محتوى الملفات',
|
|
'oauth.scope.files:content.description': 'قراءة محتوى مستند مرفوع، مثل ملف PDF لحجز أو تذكرة',
|
|
'oauth.scope.settings:read.label': 'عرض تفضيلاتك',
|
|
'oauth.scope.settings:read.description': 'قراءة الوحدات وتنسيق الوقت واللغة والعملة الافتراضية وصفحة البداية',
|
|
'oauth.scope.settings:write.label': 'تغيير تفضيلاتك',
|
|
'oauth.scope.settings:write.description': 'تغيير الوحدات وتنسيق الوقت واللغة والعملة الافتراضية وصفحة البداية. لا مفاتيح API المخزنة أبدًا',
|
|
'oauth.scope.group.plugins': 'الإضافات',
|
|
'oauth.scope.plugins:use.label': 'تشغيل أدوات الإضافات',
|
|
'oauth.scope.plugins:use.description': 'السماح لهذا التطبيق باستدعاء الأدوات التي توفرها الإضافات التي ثبّتها المسؤول ووافق عليها. تعمل كل إضافة بالصلاحيات الممنوحة لها مسبقًا، وليس بنطاقات هذا الرمز',
|
|
};
|
|
export default oauth;
|