mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-21 16:05:19 +08:00
fix(events): restrict pipeline routes and load agent prompts
This commit is contained in:
@@ -218,7 +218,7 @@ const BEHAVIOR_PRESETS = [
|
||||
// ── helpers ───────────────────────────────────────────────────────────────────
|
||||
|
||||
function isMessageEventPattern(p: string) {
|
||||
return p === 'message.*' || p.startsWith('message.');
|
||||
return p === 'message.received';
|
||||
}
|
||||
|
||||
interface RouteConflict {
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -891,7 +891,7 @@ const jaJP = {
|
||||
eventBindingDescriptionPlaceholder: 'ルール説明',
|
||||
noEventBindings: 'イベントルートはありません',
|
||||
unsupportedPipelineEvent:
|
||||
'Pipeline は message.* イベントにのみ使用できます',
|
||||
'Pipeline は message.received イベントにのみ使用できます',
|
||||
disable: '無効化',
|
||||
enable: '有効化',
|
||||
disabledBindings: '無効',
|
||||
|
||||
@@ -899,7 +899,7 @@ const ruRU = {
|
||||
enabled: 'Включено',
|
||||
eventBindingDescriptionPlaceholder: 'Описание правила',
|
||||
noEventBindings: 'Нет маршрутов событий',
|
||||
unsupportedPipelineEvent: 'Конвейеры поддерживают только события message.*',
|
||||
unsupportedPipelineEvent: 'Конвейеры поддерживают только события message.received',
|
||||
disable: 'Отключить',
|
||||
enable: 'Включить',
|
||||
disabledBindings: 'Отключено',
|
||||
|
||||
@@ -873,7 +873,7 @@ const thTH = {
|
||||
enabled: 'เปิดใช้งาน',
|
||||
eventBindingDescriptionPlaceholder: 'คำอธิบายกฎ',
|
||||
noEventBindings: 'ไม่มีเส้นทางเหตุการณ์',
|
||||
unsupportedPipelineEvent: 'ไปป์ไลน์ใช้ได้กับเหตุการณ์ message.* เท่านั้น',
|
||||
unsupportedPipelineEvent: 'ไปป์ไลน์ใช้ได้กับเหตุการณ์ message.received เท่านั้น',
|
||||
disable: 'ปิดใช้งาน',
|
||||
enable: 'เปิดใช้งาน',
|
||||
disabledBindings: 'ปิดใช้งาน',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -833,7 +833,7 @@ const zhHans = {
|
||||
enabled: '启用',
|
||||
eventBindingDescriptionPlaceholder: '规则说明',
|
||||
noEventBindings: '暂无事件路由',
|
||||
unsupportedPipelineEvent: '流水线 仅可用于 message.* 事件',
|
||||
unsupportedPipelineEvent: '流水线 仅可用于 message.received 事件',
|
||||
disable: '禁用',
|
||||
enable: '启用',
|
||||
disabledBindings: '已禁用',
|
||||
|
||||
@@ -832,7 +832,7 @@ const zhHant = {
|
||||
enabled: '啟用',
|
||||
eventBindingDescriptionPlaceholder: '規則說明',
|
||||
noEventBindings: '暫無事件路由',
|
||||
unsupportedPipelineEvent: '流水線 僅可用於 message.* 事件',
|
||||
unsupportedPipelineEvent: '流水線 僅可用於 message.received 事件',
|
||||
disable: '禁用',
|
||||
enable: '啟用',
|
||||
disabledBindings: '已禁用',
|
||||
|
||||
Reference in New Issue
Block a user