feat:add CLI param-override templates with visual editor and apply on first rule match

This commit is contained in:
Seefs
2026-02-25 15:08:23 +08:00
parent 0f09dbda2b
commit e027f38244
8 changed files with 570 additions and 60 deletions

View File

@@ -36,6 +36,10 @@ import {
} from '@douyinfe/semi-ui';
import { IconDelete, IconPlus } from '@douyinfe/semi-icons';
import { copy, showError, showSuccess, verifyJSON } from '../../../../helpers';
import {
CLAUDE_CLI_HEADER_PASSTHROUGH_TEMPLATE,
CODEX_CLI_HEADER_PASSTHROUGH_TEMPLATE,
} from '../../../../constants/channel-affinity-template.constants';
const { Text } = Typography;
@@ -329,6 +333,18 @@ const TEMPLATE_PRESET_CONFIG = {
kind: 'operations',
payload: GEMINI_IMAGE_4K_TEMPLATE,
},
claude_cli_headers_passthrough: {
group: 'scenario',
label: 'Claude CLI 请求头透传',
kind: 'operations',
payload: CLAUDE_CLI_HEADER_PASSTHROUGH_TEMPLATE,
},
codex_cli_headers_passthrough: {
group: 'scenario',
label: 'Codex CLI 请求头透传',
kind: 'operations',
payload: CODEX_CLI_HEADER_PASSTHROUGH_TEMPLATE,
},
};
const FIELD_GUIDE_TARGET_OPTIONS = [