fix(events): restrict pipeline routes and load agent prompts

This commit is contained in:
Hyu
2026-10-09 21:22:34 +08:00
parent ce3a9020af
commit 96280b3bcc
14 changed files with 69 additions and 13 deletions
@@ -218,7 +218,7 @@ const BEHAVIOR_PRESETS = [
// ── helpers ───────────────────────────────────────────────────────────────────
function isMessageEventPattern(p: string) {
return p === 'message.*' || p.startsWith('message.');
return p === 'message.received';
}
interface RouteConflict {
+1 -1
View File
@@ -886,7 +886,7 @@ const enUS = {
enabled: 'Enabled',
eventBindingDescriptionPlaceholder: 'Rule description',
noEventBindings: 'No event routes',
unsupportedPipelineEvent: 'Pipelines can only be used for message.* events',
unsupportedPipelineEvent: 'Pipelines can only be used for message.received events',
disable: 'Disable',
enable: 'Enable',
disabledBindings: 'Disabled',
+1 -1
View File
@@ -904,7 +904,7 @@ const esES = {
enabled: 'Activado',
eventBindingDescriptionPlaceholder: 'Descripción de la regla',
noEventBindings: 'No hay rutas de eventos',
unsupportedPipelineEvent: 'Los flujos solo admiten eventos message.*',
unsupportedPipelineEvent: 'Los flujos solo admiten eventos message.received',
disable: 'Desactivar',
enable: 'Activar',
disabledBindings: 'Desactivado',
+1 -1
View File
@@ -891,7 +891,7 @@ const jaJP = {
eventBindingDescriptionPlaceholder: 'ルール説明',
noEventBindings: 'イベントルートはありません',
unsupportedPipelineEvent:
'Pipeline は message.* イベントにのみ使用できます',
'Pipeline は message.received イベントにのみ使用できます',
disable: '無効化',
enable: '有効化',
disabledBindings: '無効',
+1 -1
View File
@@ -899,7 +899,7 @@ const ruRU = {
enabled: 'Включено',
eventBindingDescriptionPlaceholder: 'Описание правила',
noEventBindings: 'Нет маршрутов событий',
unsupportedPipelineEvent: 'Конвейеры поддерживают только события message.*',
unsupportedPipelineEvent: 'Конвейеры поддерживают только события message.received',
disable: 'Отключить',
enable: 'Включить',
disabledBindings: 'Отключено',
+1 -1
View File
@@ -873,7 +873,7 @@ const thTH = {
enabled: 'เปิดใช้งาน',
eventBindingDescriptionPlaceholder: 'คำอธิบายกฎ',
noEventBindings: 'ไม่มีเส้นทางเหตุการณ์',
unsupportedPipelineEvent: 'ไปป์ไลน์ใช้ได้กับเหตุการณ์ message.* เท่านั้น',
unsupportedPipelineEvent: 'ไปป์ไลน์ใช้ได้กับเหตุการณ์ message.received เท่านั้น',
disable: 'ปิดใช้งาน',
enable: 'เปิดใช้งาน',
disabledBindings: 'ปิดใช้งาน',
+1 -1
View File
@@ -888,7 +888,7 @@ const viVN = {
enabled: 'Đã bật',
eventBindingDescriptionPlaceholder: 'Mô tả quy tắc',
noEventBindings: 'Chưa có tuyến sự kiện',
unsupportedPipelineEvent: 'Pipeline chỉ hỗ trợ sự kiện message.*',
unsupportedPipelineEvent: 'Pipeline chỉ hỗ trợ sự kiện message.received',
disable: 'Tắt',
enable: 'Bật',
disabledBindings: 'Đã tắt',
+1 -1
View File
@@ -833,7 +833,7 @@ const zhHans = {
enabled: '启用',
eventBindingDescriptionPlaceholder: '规则说明',
noEventBindings: '暂无事件路由',
unsupportedPipelineEvent: '流水线 仅可用于 message.* 事件',
unsupportedPipelineEvent: '流水线 仅可用于 message.received 事件',
disable: '禁用',
enable: '启用',
disabledBindings: '已禁用',
+1 -1
View File
@@ -832,7 +832,7 @@ const zhHant = {
enabled: '啟用',
eventBindingDescriptionPlaceholder: '規則說明',
noEventBindings: '暫無事件路由',
unsupportedPipelineEvent: '流水線 僅可用於 message.* 事件',
unsupportedPipelineEvent: '流水線 僅可用於 message.received 事件',
disable: '禁用',
enable: '啟用',
disabledBindings: '已禁用',