mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-12 13:50:59 +00:00
feat(agent-platform): add bot route dry-run
This commit is contained in:
@@ -385,6 +385,34 @@ const enUS = {
|
||||
disable: 'Disable',
|
||||
enable: 'Enable',
|
||||
disabledBindings: 'Disabled',
|
||||
adapterEventsTitle: 'Events this adapter can receive',
|
||||
adapterEventsDescription:
|
||||
'{{count}} event types are available. Routes are matched in order, and unmatched events are not sent to a processor.',
|
||||
adapterEventsMore: '{{count}} more',
|
||||
advancedEventValues: 'Advanced event values',
|
||||
eventGroup: 'Group',
|
||||
testRoute: 'Test route',
|
||||
dryRunTitle: 'Test event route',
|
||||
dryRunDescription:
|
||||
'Choose an event and provide a sample payload to see which processor the current route setup will use.',
|
||||
dryRunEventType: 'Event type',
|
||||
dryRunPayload: 'Sample payload JSON',
|
||||
dryRunPayloadHint:
|
||||
'Use simple fields such as message_text, chat_type, and chat_id to test conditions.',
|
||||
dryRunPayloadJsonError: 'Enter valid JSON.',
|
||||
dryRunPayloadObjectError: 'Payload must be a JSON object.',
|
||||
dryRunNeedsSavedBot: 'Save the bot before testing routes.',
|
||||
dryRunFailed: 'Route test failed. Try again later.',
|
||||
dryRunAction: 'Run test',
|
||||
dryRunRunning: 'Testing…',
|
||||
dryRunMatched: 'Route matched',
|
||||
dryRunNotMatched: 'No route matched',
|
||||
dryRunTarget: 'Target processor',
|
||||
dryRunNoTarget: 'No target',
|
||||
dryRunMatchedRule: 'Matched rule',
|
||||
dryRunRuleIndex: 'Route {{index}}',
|
||||
dryRunNoRule: 'No matched rule',
|
||||
dryRunDiagnostics: 'Diagnostic steps',
|
||||
eventCustom: 'Custom event',
|
||||
eventWildcard: 'All events',
|
||||
eventNamespaceWildcard: '{{namespace}}.*',
|
||||
@@ -405,6 +433,27 @@ const enUS = {
|
||||
bot_unmuted: 'Bot unmuted',
|
||||
platform_specific: 'Platform-specific event',
|
||||
},
|
||||
eventDescriptions: {
|
||||
all: 'Matches every event received by this adapter.',
|
||||
namespace: 'Matches several concrete events in the same event group.',
|
||||
custom: 'A custom event, or one without a description yet.',
|
||||
message_received: 'A user or group sends a new message to the bot.',
|
||||
message_edited: 'The platform reports that an existing message changed.',
|
||||
message_deleted:
|
||||
'The platform reports that an existing message was deleted.',
|
||||
message_reaction: 'A user adds or removes a reaction on a message.',
|
||||
feedback_received: 'Feedback is received from the platform or user.',
|
||||
friend_request_received: 'Someone requests to add the bot as a friend.',
|
||||
friend_added: 'A friend relationship was created.',
|
||||
group_member_joined: 'A member joins a group where the bot is present.',
|
||||
group_member_left: 'A member leaves a group where the bot is present.',
|
||||
group_member_banned: 'A group member is banned or removed.',
|
||||
bot_invited_to_group: 'The bot is invited to a group.',
|
||||
bot_removed_from_group: 'The bot is removed from a group.',
|
||||
bot_muted: 'The bot is muted in a group.',
|
||||
bot_unmuted: 'The bot is unmuted in a group.',
|
||||
platform_specific: 'An adapter-specific platform event.',
|
||||
},
|
||||
conditions: 'Conditions',
|
||||
conditionsDescription:
|
||||
'All conditions must match to trigger this binding. Leave empty to always trigger.',
|
||||
|
||||
@@ -381,12 +381,46 @@ const jaJP = {
|
||||
targetPipeline: 'Pipeline',
|
||||
targetDiscard: '破棄',
|
||||
selectTarget: 'プロセッサーを選択',
|
||||
searchTarget: 'プロセッサーを検索…',
|
||||
noTargetFound: '対応するプロセッサーが見つかりません',
|
||||
priority: '優先度',
|
||||
enabled: '有効',
|
||||
eventBindingDescriptionPlaceholder: 'ルール説明',
|
||||
noEventBindings: 'イベントルートはありません',
|
||||
unsupportedPipelineEvent:
|
||||
'Pipeline は message.* イベントにのみ使用できます',
|
||||
disable: '無効化',
|
||||
enable: '有効化',
|
||||
disabledBindings: '無効',
|
||||
adapterEventsTitle: 'このアダプターが受信できるイベント',
|
||||
adapterEventsDescription:
|
||||
'{{count}} 種類のイベントを利用できます。ルートは上から順に照合され、未一致のイベントはプロセッサーへ送られません。',
|
||||
adapterEventsMore: 'ほか {{count}} 件',
|
||||
advancedEventValues: '高度なイベント値',
|
||||
eventGroup: 'グループ',
|
||||
testRoute: 'ルートをテスト',
|
||||
dryRunTitle: 'イベントルートをテスト',
|
||||
dryRunDescription:
|
||||
'イベントとサンプルペイロードを指定し、現在のルート設定でどのプロセッサーに送られるか確認します。',
|
||||
dryRunEventType: 'イベントタイプ',
|
||||
dryRunPayload: 'サンプルペイロード JSON',
|
||||
dryRunPayloadHint:
|
||||
'message_text、chat_type、chat_id などの簡単なフィールドで条件をテストできます。',
|
||||
dryRunPayloadJsonError: '有効な JSON を入力してください。',
|
||||
dryRunPayloadObjectError:
|
||||
'ペイロードは JSON オブジェクトである必要があります。',
|
||||
dryRunNeedsSavedBot: 'ルートをテストする前にボットを保存してください。',
|
||||
dryRunFailed: 'ルートテストに失敗しました。後でもう一度お試しください。',
|
||||
dryRunAction: 'テスト実行',
|
||||
dryRunRunning: 'テスト中…',
|
||||
dryRunMatched: 'ルートに一致しました',
|
||||
dryRunNotMatched: '一致するルートはありません',
|
||||
dryRunTarget: '対象プロセッサー',
|
||||
dryRunNoTarget: '対象なし',
|
||||
dryRunMatchedRule: '一致したルール',
|
||||
dryRunRuleIndex: 'ルート {{index}}',
|
||||
dryRunNoRule: '一致したルールなし',
|
||||
dryRunDiagnostics: '診断ステップ',
|
||||
eventCustom: 'カスタムイベント',
|
||||
eventWildcard: 'すべてのイベント',
|
||||
eventNamespaceWildcard: '{{namespace}}.*',
|
||||
@@ -407,6 +441,46 @@ const jaJP = {
|
||||
bot_unmuted: 'ボットのミュート解除',
|
||||
platform_specific: 'プラットフォーム固有イベント',
|
||||
},
|
||||
eventDescriptions: {
|
||||
all: 'このアダプターが受信するすべてのイベントに一致します。',
|
||||
namespace: '同じイベントグループ内の複数の具体イベントに一致します。',
|
||||
custom: 'カスタムイベント、または説明がまだないイベントです。',
|
||||
message_received:
|
||||
'ユーザーまたはグループがボットへ新しいメッセージを送信します。',
|
||||
message_edited:
|
||||
'既存メッセージが変更されたことをプラットフォームが通知します。',
|
||||
message_deleted:
|
||||
'既存メッセージが削除されたことをプラットフォームが通知します。',
|
||||
message_reaction:
|
||||
'ユーザーがメッセージへのリアクションを追加または削除します。',
|
||||
feedback_received:
|
||||
'プラットフォームまたはユーザーからフィードバックを受信します。',
|
||||
friend_request_received: '誰かがボットを友達に追加しようとしています。',
|
||||
friend_added: '友達関係が作成されました。',
|
||||
group_member_joined: 'ボットがいるグループにメンバーが参加しました。',
|
||||
group_member_left: 'ボットがいるグループからメンバーが退出しました。',
|
||||
group_member_banned: 'グループメンバーがBANまたは削除されました。',
|
||||
bot_invited_to_group: 'ボットがグループに招待されました。',
|
||||
bot_removed_from_group: 'ボットがグループから削除されました。',
|
||||
bot_muted: 'ボットがグループでミュートされました。',
|
||||
bot_unmuted: 'ボットのグループでのミュートが解除されました。',
|
||||
platform_specific: 'アダプター固有のプラットフォームイベントです。',
|
||||
},
|
||||
conditions: '条件',
|
||||
conditionsDescription:
|
||||
'すべての条件に一致した場合のみこのバインディングが発火します。空の場合は常に発火します。',
|
||||
conditionsEmpty: '条件なし。常に発火します。',
|
||||
addFilter: '条件を追加',
|
||||
filterChatType: 'セッションタイプ',
|
||||
filterChatId: 'セッション ID',
|
||||
filterMessageText: 'メッセージ本文',
|
||||
filterMessageElement: 'メッセージ要素',
|
||||
operator_eq: '等しい',
|
||||
operator_neq: '等しくない',
|
||||
operator_contains: '含む',
|
||||
operator_not_contains: '含まない',
|
||||
operator_starts_with: '前方一致',
|
||||
operator_regex: '正規表現',
|
||||
routingRules: '条件付きルーティングルール',
|
||||
routingRulesDescription:
|
||||
'ルールは順番に評価され、最初に一致したルールのパイプラインにルーティングされます。一致しない場合はデフォルトパイプラインが使用されます。',
|
||||
|
||||
@@ -370,6 +370,34 @@ const zhHans = {
|
||||
disable: '禁用',
|
||||
enable: '启用',
|
||||
disabledBindings: '已禁用',
|
||||
adapterEventsTitle: '此适配器可接收的事件',
|
||||
adapterEventsDescription:
|
||||
'已识别 {{count}} 类事件。路由会按顺序匹配,未命中时不会交给处理器。',
|
||||
adapterEventsMore: '另有 {{count}} 类',
|
||||
advancedEventValues: '高级事件值',
|
||||
eventGroup: '事件组',
|
||||
testRoute: '测试路由',
|
||||
dryRunTitle: '测试事件路由',
|
||||
dryRunDescription:
|
||||
'选择一个事件并提供示例载荷,检查当前路由配置会命中哪个处理器。',
|
||||
dryRunEventType: '事件类型',
|
||||
dryRunPayload: '示例载荷 JSON',
|
||||
dryRunPayloadHint:
|
||||
'可填写 message_text、chat_type、chat_id 等简单字段,用于匹配触发条件。',
|
||||
dryRunPayloadJsonError: '请输入合法 JSON。',
|
||||
dryRunPayloadObjectError: '载荷必须是 JSON 对象。',
|
||||
dryRunNeedsSavedBot: '请先保存机器人后再测试路由。',
|
||||
dryRunFailed: '路由测试失败,请稍后重试。',
|
||||
dryRunAction: '开始测试',
|
||||
dryRunRunning: '测试中…',
|
||||
dryRunMatched: '已命中路由',
|
||||
dryRunNotMatched: '未命中路由',
|
||||
dryRunTarget: '目标处理器',
|
||||
dryRunNoTarget: '无目标',
|
||||
dryRunMatchedRule: '命中规则',
|
||||
dryRunRuleIndex: '第 {{index}} 条路由',
|
||||
dryRunNoRule: '无命中规则',
|
||||
dryRunDiagnostics: '诊断步骤',
|
||||
eventCustom: '自定义事件',
|
||||
eventWildcard: '全部事件',
|
||||
eventNamespaceWildcard: '{{namespace}}.*',
|
||||
@@ -390,6 +418,26 @@ const zhHans = {
|
||||
bot_unmuted: '机器人被解除禁言',
|
||||
platform_specific: '平台特定事件',
|
||||
},
|
||||
eventDescriptions: {
|
||||
all: '匹配此适配器收到的全部事件。',
|
||||
namespace: '匹配同一事件分组下的多个具体事件。',
|
||||
custom: '自定义或暂未提供说明的事件。',
|
||||
message_received: '用户或群组向机器人发送新消息。',
|
||||
message_edited: '平台通知已有消息内容发生变更。',
|
||||
message_deleted: '平台通知已有消息被删除。',
|
||||
message_reaction: '用户对消息添加或移除表态。',
|
||||
feedback_received: '收到来自平台或用户的反馈事件。',
|
||||
friend_request_received: '有人请求添加机器人为好友。',
|
||||
friend_added: '好友关系建立成功。',
|
||||
group_member_joined: '有成员加入机器人所在群组。',
|
||||
group_member_left: '有成员离开机器人所在群组。',
|
||||
group_member_banned: '群成员被封禁或移出。',
|
||||
bot_invited_to_group: '机器人被邀请加入群组。',
|
||||
bot_removed_from_group: '机器人被移出群组。',
|
||||
bot_muted: '机器人在群组中被禁言。',
|
||||
bot_unmuted: '机器人在群组中解除禁言。',
|
||||
platform_specific: '适配器保留的平台专属事件。',
|
||||
},
|
||||
conditions: '触发条件',
|
||||
conditionsDescription: '满足所有条件时才触发此绑定,不添加则无条件触发。',
|
||||
conditionsEmpty: '无条件,始终触发。',
|
||||
|
||||
Reference in New Issue
Block a user