Initial commit
This commit is contained in:
commit
57fc3525eb
7311 files changed
+1291398
No files matched your search
@@ -0,0 +1,905 @@
|
||||
{
|
||||
"chat.deepseek.com": {
|
||||
"presets": {
|
||||
"专家模式": {
|
||||
"selectors": {
|
||||
"input_box": "textarea",
|
||||
"send_btn": "div.bf38813a div[role='button'].ds-button--primary, div.bf38813a > div > div[role='button'], div:has(textarea) div[role='button'].ds-button--primary, div.ds-button.ds-button--primary[role='button']",
|
||||
"upload_btn": "div.bf38813a > div[role='button']",
|
||||
"file_input": "input[type='file']",
|
||||
"result_container": "css:div.ds-markdown",
|
||||
"new_chat_btn": "div._5a8ac7a",
|
||||
"generating_indicator": "css:._7436101.bcc55ca1",
|
||||
"专家": "div[data-model-type=\"expert\"]"
|
||||
},
|
||||
"stream_config": {
|
||||
"mode": "network",
|
||||
"hard_timeout": 300,
|
||||
"network": {
|
||||
"listen_pattern": "api/v0/chat/completion",
|
||||
"parser": "deepseek",
|
||||
"silence_threshold": 3,
|
||||
"response_interval": 0.5
|
||||
}
|
||||
},
|
||||
"workflow": [
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "准备新对话",
|
||||
"value": {
|
||||
"variables": {},
|
||||
"steps": [
|
||||
{
|
||||
"action": "CLICK",
|
||||
"target": "new_chat_btn",
|
||||
"optional": true,
|
||||
"value": null,
|
||||
"label": "新建对话(入口不存在时沿用当前会话)"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "只在需要时切换模式",
|
||||
"value": {
|
||||
"variables": {
|
||||
"mode_target": "专家",
|
||||
"selected_selector": "div[data-model-type=\"expert\"][aria-pressed=\"true\"], div[data-model-type=\"expert\"][aria-selected=\"true\"], div[data-model-type=\"expert\"][data-state=\"active\"], div[data-model-type=\"expert\"][data-state=\"checked\"]"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"action": "CAPTURE",
|
||||
"target": "",
|
||||
"label": "读取目标模式的选中标记",
|
||||
"value": {
|
||||
"name": "mode_selected",
|
||||
"source": "exists",
|
||||
"timeout": 0.2,
|
||||
"selector": "{selected_selector}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "IF",
|
||||
"label": "未确认选中时选择一次",
|
||||
"value": {
|
||||
"condition": {
|
||||
"left": "{mode_selected}",
|
||||
"op": "eq",
|
||||
"right": false
|
||||
},
|
||||
"then": [
|
||||
{
|
||||
"action": "CLICK",
|
||||
"target": "{mode_target}",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "选择目标模式(缺少入口则停止)"
|
||||
}
|
||||
],
|
||||
"else": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "发送并读取回复",
|
||||
"value": {
|
||||
"variables": {},
|
||||
"steps": [
|
||||
{
|
||||
"action": "FILL_INPUT",
|
||||
"target": "input_box",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "填写本次请求"
|
||||
},
|
||||
{
|
||||
"action": "KEY_PRESS",
|
||||
"target": "Enter",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "回车发送"
|
||||
},
|
||||
{
|
||||
"action": "STREAM_WAIT",
|
||||
"target": "result_container",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "监听并读取回复"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"stealth": false,
|
||||
"image_extraction": {
|
||||
"enabled": false,
|
||||
"modalities": {
|
||||
"image": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"late_wait_timeout_seconds": 45,
|
||||
"blind_wait_timeout_seconds": 1
|
||||
},
|
||||
"audio": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"capture_timeout_seconds": 12
|
||||
},
|
||||
"video": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"late_wait_timeout_seconds": 90
|
||||
}
|
||||
},
|
||||
"selector": "img",
|
||||
"audio_selector": "audio, audio source",
|
||||
"video_selector": "video, video source",
|
||||
"container_selector": null,
|
||||
"force_postprocess": false,
|
||||
"debounce_seconds": 2,
|
||||
"wait_for_load": true,
|
||||
"load_timeout_seconds": 5,
|
||||
"download_blobs": true,
|
||||
"max_size_mb": 10,
|
||||
"canvas_export_mime": "image/jpeg",
|
||||
"canvas_export_quality": 0.88,
|
||||
"src_allow_patterns": [],
|
||||
"mode": "all",
|
||||
"audio_capture_enabled": true,
|
||||
"audio_capture_mute_playback": true,
|
||||
"audio_capture_preload_enabled": true,
|
||||
"audio_capture_reload_before_workflow": false,
|
||||
"audio_capture_preserve_graph": true,
|
||||
"audio_capture_terminal_settle_seconds": 0.35,
|
||||
"audio_trigger_selector": "",
|
||||
"audio_trigger_labels": [
|
||||
"朗读",
|
||||
"语音朗读",
|
||||
"收听",
|
||||
"read aloud",
|
||||
"listen",
|
||||
"tts",
|
||||
"voice"
|
||||
],
|
||||
"audio_capture_max_wait_seconds": 12,
|
||||
"audio_capture_min_wait_seconds": 2,
|
||||
"audio_capture_hard_max_wait_seconds": 45,
|
||||
"audio_capture_estimated_chars_per_second": 4.8,
|
||||
"audio_capture_wait_padding_seconds": 1.2,
|
||||
"audio_network_capture": {
|
||||
"enabled": false,
|
||||
"timeout_seconds": 2.5,
|
||||
"transport": "page_websocket_probe",
|
||||
"url_patterns": [
|
||||
"voicegenie",
|
||||
"speech",
|
||||
"audio",
|
||||
"tts"
|
||||
],
|
||||
"extractor": "voicegenie_ogg_pages",
|
||||
"settle_seconds": 0.35,
|
||||
"max_payload_bytes": 10485760
|
||||
},
|
||||
"audio_browser_tts_fallback": {
|
||||
"enabled": false,
|
||||
"provider": "doubao_samantha",
|
||||
"speaker": "2",
|
||||
"speech_rate": 0,
|
||||
"pitch": 0,
|
||||
"format": "aac",
|
||||
"timeout_seconds": 30,
|
||||
"pc_version": "3.20.2",
|
||||
"aid": "497858",
|
||||
"real_aid": "497858",
|
||||
"language": "zh",
|
||||
"device_platform": "web",
|
||||
"pkg_type": "release_version",
|
||||
"region": "CN",
|
||||
"sys_region": "CN",
|
||||
"use_olympus_account": "1",
|
||||
"samantha_web": "1"
|
||||
},
|
||||
"audio_capture_poll_seconds": 0.25,
|
||||
"audio_capture_silence_seconds": 1.2,
|
||||
"audio_capture_activity_threshold": 0.006,
|
||||
"audio_capture_activity_silence_seconds": 0.65
|
||||
},
|
||||
"file_paste": {
|
||||
"enabled": true,
|
||||
"threshold": 163840,
|
||||
"temp_file_type": "chunk",
|
||||
"hint_text": "完全专注于文件内容",
|
||||
"txt_hint_text": "完全专注于文件内容",
|
||||
"pdf_hint_text": "完全专注于文件内容",
|
||||
"error_hint_text": "输入文本长度超过限制,已中止发送",
|
||||
"reacquire_input_after_upload": false,
|
||||
"post_upload_input_selector": "",
|
||||
"post_upload_settle": 0.0,
|
||||
"upload_signal_timeout": 2.5,
|
||||
"upload_signal_grace": 3.0,
|
||||
"state_probe": {
|
||||
"enabled": false,
|
||||
"code": ""
|
||||
},
|
||||
"send_confirmation": {
|
||||
"attachment_sensitivity": "high",
|
||||
"post_click_observe_window": 2.4,
|
||||
"pre_retry_probe_window": 0.18,
|
||||
"retry_observe_window": 1.2,
|
||||
"attachment_observe_window": 8.0,
|
||||
"max_retry_count": 2,
|
||||
"retry_interval": 0.6,
|
||||
"retry_cooldown_window": 1.5,
|
||||
"retry_action": "click_send_btn",
|
||||
"retry_key_combo": "Enter",
|
||||
"retry_on_unconfirmed_send": true,
|
||||
"accept_attachment_change": false,
|
||||
"accept_attachment_disappear": false,
|
||||
"accept_probe_confirmation": true,
|
||||
"retry_block_on_stop_button": true,
|
||||
"retry_block_if_generating": true,
|
||||
"trust_network_activity": true,
|
||||
"trust_generating_indicator": true,
|
||||
"trust_send_disabled_with_input_shrink": true
|
||||
},
|
||||
"attachment_monitor": {
|
||||
"root_selectors": [
|
||||
"div:has(> div > div > textarea)",
|
||||
"div:has(textarea):not(._020ab5b):not(._24fad49)",
|
||||
"div._77cefa5",
|
||||
"div.aaff8b8f"
|
||||
],
|
||||
"attachment_selectors": [
|
||||
".ds-animated-size-item",
|
||||
"div[class*='d5fa3d1b']",
|
||||
"div:has(> img[src^='blob:'])",
|
||||
"img[src^='blob:']",
|
||||
".b40079d7 ._6d1b417 > div",
|
||||
".c8b3f8a6"
|
||||
],
|
||||
"pending_selectors": [],
|
||||
"busy_text_markers": [
|
||||
"上传中",
|
||||
"loading",
|
||||
"processing"
|
||||
],
|
||||
"send_button_disabled_markers": [
|
||||
"disabled",
|
||||
"ds-button--disabled"
|
||||
],
|
||||
"require_attachment_present": true,
|
||||
"require_upload_signal_before_ready": false,
|
||||
"continue_once_on_unconfirmed_send": true,
|
||||
"idle_timeout": 3.0,
|
||||
"hard_max_wait": 90.0
|
||||
}
|
||||
},
|
||||
"prompt_padding": {
|
||||
"enabled": false,
|
||||
"marker_text": "测试号,无实际意义",
|
||||
"segments_per_side": 12,
|
||||
"random_insert_enabled": false,
|
||||
"random_insert_chars": ""
|
||||
}
|
||||
},
|
||||
"快速模式": {
|
||||
"selectors": {
|
||||
"input_box": "textarea",
|
||||
"send_btn": "div.bf38813a div[role='button'].ds-button--primary, div.bf38813a > div > div[role='button'], div:has(textarea) div[role='button'].ds-button--primary, div.ds-button.ds-button--primary[role='button']",
|
||||
"upload_btn": "div.bf38813a > div[role='button']",
|
||||
"file_input": "input[type='file']",
|
||||
"result_container": "css:div.ds-markdown",
|
||||
"new_chat_btn": "div._5a8ac7a",
|
||||
"generating_indicator": "css:._7436101.bcc55ca1",
|
||||
"快速": "div[data-model-type=\"default\"]"
|
||||
},
|
||||
"stream_config": {
|
||||
"mode": "network",
|
||||
"hard_timeout": 300,
|
||||
"network": {
|
||||
"listen_pattern": "api/v0/chat/completion",
|
||||
"parser": "deepseek",
|
||||
"silence_threshold": 3,
|
||||
"response_interval": 0.5
|
||||
}
|
||||
},
|
||||
"workflow": [
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "准备新对话",
|
||||
"value": {
|
||||
"variables": {},
|
||||
"steps": [
|
||||
{
|
||||
"action": "CLICK",
|
||||
"target": "new_chat_btn",
|
||||
"optional": true,
|
||||
"value": null,
|
||||
"label": "新建对话(入口不存在时沿用当前会话)"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "只在需要时切换模式",
|
||||
"value": {
|
||||
"variables": {
|
||||
"mode_target": "快速",
|
||||
"selected_selector": "div[data-model-type=\"default\"][aria-pressed=\"true\"], div[data-model-type=\"default\"][aria-selected=\"true\"], div[data-model-type=\"default\"][data-state=\"active\"], div[data-model-type=\"default\"][data-state=\"checked\"]"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"action": "CAPTURE",
|
||||
"target": "",
|
||||
"label": "读取目标模式的选中标记",
|
||||
"value": {
|
||||
"name": "mode_selected",
|
||||
"source": "exists",
|
||||
"timeout": 0.2,
|
||||
"selector": "{selected_selector}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "IF",
|
||||
"label": "未确认选中时选择一次",
|
||||
"value": {
|
||||
"condition": {
|
||||
"left": "{mode_selected}",
|
||||
"op": "eq",
|
||||
"right": false
|
||||
},
|
||||
"then": [
|
||||
{
|
||||
"action": "CLICK",
|
||||
"target": "{mode_target}",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "选择目标模式(缺少入口则停止)"
|
||||
}
|
||||
],
|
||||
"else": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "发送并读取回复",
|
||||
"value": {
|
||||
"variables": {},
|
||||
"steps": [
|
||||
{
|
||||
"action": "FILL_INPUT",
|
||||
"target": "input_box",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "填写本次请求"
|
||||
},
|
||||
{
|
||||
"action": "KEY_PRESS",
|
||||
"target": "Enter",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "回车发送"
|
||||
},
|
||||
{
|
||||
"action": "STREAM_WAIT",
|
||||
"target": "result_container",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "监听并读取回复"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"stealth": false,
|
||||
"image_extraction": {
|
||||
"enabled": false,
|
||||
"modalities": {
|
||||
"image": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"late_wait_timeout_seconds": 45,
|
||||
"blind_wait_timeout_seconds": 1
|
||||
},
|
||||
"audio": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"capture_timeout_seconds": 12
|
||||
},
|
||||
"video": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"late_wait_timeout_seconds": 90
|
||||
}
|
||||
},
|
||||
"selector": "img",
|
||||
"audio_selector": "audio, audio source",
|
||||
"video_selector": "video, video source",
|
||||
"container_selector": null,
|
||||
"force_postprocess": false,
|
||||
"debounce_seconds": 2,
|
||||
"wait_for_load": true,
|
||||
"load_timeout_seconds": 5,
|
||||
"download_blobs": true,
|
||||
"max_size_mb": 10,
|
||||
"canvas_export_mime": "image/jpeg",
|
||||
"canvas_export_quality": 0.88,
|
||||
"src_allow_patterns": [],
|
||||
"mode": "all",
|
||||
"audio_capture_enabled": true,
|
||||
"audio_capture_mute_playback": true,
|
||||
"audio_capture_preload_enabled": true,
|
||||
"audio_capture_reload_before_workflow": false,
|
||||
"audio_capture_preserve_graph": true,
|
||||
"audio_capture_terminal_settle_seconds": 0.35,
|
||||
"audio_trigger_selector": "",
|
||||
"audio_trigger_labels": [
|
||||
"朗读",
|
||||
"语音朗读",
|
||||
"收听",
|
||||
"read aloud",
|
||||
"listen",
|
||||
"tts",
|
||||
"voice"
|
||||
],
|
||||
"audio_capture_max_wait_seconds": 12,
|
||||
"audio_capture_min_wait_seconds": 2,
|
||||
"audio_capture_hard_max_wait_seconds": 45,
|
||||
"audio_capture_estimated_chars_per_second": 4.8,
|
||||
"audio_capture_wait_padding_seconds": 1.2,
|
||||
"audio_network_capture": {
|
||||
"enabled": false,
|
||||
"timeout_seconds": 2.5,
|
||||
"transport": "page_websocket_probe",
|
||||
"url_patterns": [
|
||||
"voicegenie",
|
||||
"speech",
|
||||
"audio",
|
||||
"tts"
|
||||
],
|
||||
"extractor": "voicegenie_ogg_pages",
|
||||
"settle_seconds": 0.35,
|
||||
"max_payload_bytes": 10485760
|
||||
},
|
||||
"audio_browser_tts_fallback": {
|
||||
"enabled": false,
|
||||
"provider": "doubao_samantha",
|
||||
"speaker": "2",
|
||||
"speech_rate": 0,
|
||||
"pitch": 0,
|
||||
"format": "aac",
|
||||
"timeout_seconds": 30,
|
||||
"pc_version": "3.20.2",
|
||||
"aid": "497858",
|
||||
"real_aid": "497858",
|
||||
"language": "zh",
|
||||
"device_platform": "web",
|
||||
"pkg_type": "release_version",
|
||||
"region": "CN",
|
||||
"sys_region": "CN",
|
||||
"use_olympus_account": "1",
|
||||
"samantha_web": "1"
|
||||
},
|
||||
"audio_capture_poll_seconds": 0.25,
|
||||
"audio_capture_silence_seconds": 1.2,
|
||||
"audio_capture_activity_threshold": 0.006,
|
||||
"audio_capture_activity_silence_seconds": 0.65
|
||||
},
|
||||
"file_paste": {
|
||||
"enabled": true,
|
||||
"threshold": 2621440,
|
||||
"temp_file_type": "txt",
|
||||
"hint_text": "完全专注于文件内容",
|
||||
"txt_hint_text": "完全专注于文件内容",
|
||||
"pdf_hint_text": "完全专注于文件内容",
|
||||
"error_hint_text": "输入文本长度超过限制,已中止发送",
|
||||
"reacquire_input_after_upload": false,
|
||||
"post_upload_input_selector": "",
|
||||
"post_upload_settle": 0.0,
|
||||
"upload_signal_timeout": 2.5,
|
||||
"upload_signal_grace": 3.0,
|
||||
"state_probe": {
|
||||
"enabled": false,
|
||||
"code": ""
|
||||
},
|
||||
"send_confirmation": {
|
||||
"attachment_sensitivity": "high",
|
||||
"post_click_observe_window": 2.4,
|
||||
"pre_retry_probe_window": 0.18,
|
||||
"retry_observe_window": 1.2,
|
||||
"attachment_observe_window": 8.0,
|
||||
"max_retry_count": 2,
|
||||
"retry_interval": 0.6,
|
||||
"retry_cooldown_window": 1.5,
|
||||
"retry_action": "click_send_btn",
|
||||
"retry_key_combo": "Enter",
|
||||
"retry_on_unconfirmed_send": true,
|
||||
"accept_attachment_change": false,
|
||||
"accept_attachment_disappear": false,
|
||||
"accept_probe_confirmation": true,
|
||||
"retry_block_on_stop_button": true,
|
||||
"retry_block_if_generating": true,
|
||||
"trust_network_activity": true,
|
||||
"trust_generating_indicator": true,
|
||||
"trust_send_disabled_with_input_shrink": true
|
||||
},
|
||||
"attachment_monitor": {
|
||||
"root_selectors": [
|
||||
"div:has(> div > div > textarea)",
|
||||
"div:has(textarea):not(._020ab5b):not(._24fad49)",
|
||||
"div._77cefa5",
|
||||
"div.aaff8b8f"
|
||||
],
|
||||
"attachment_selectors": [
|
||||
".ds-animated-size-item",
|
||||
"div[class*='d5fa3d1b']",
|
||||
"div:has(> img[src^='blob:'])",
|
||||
"img[src^='blob:']",
|
||||
".b40079d7 ._6d1b417 > div",
|
||||
".c8b3f8a6"
|
||||
],
|
||||
"pending_selectors": [],
|
||||
"busy_text_markers": [
|
||||
"上传中",
|
||||
"loading",
|
||||
"processing"
|
||||
],
|
||||
"send_button_disabled_markers": [
|
||||
"disabled",
|
||||
"ds-button--disabled"
|
||||
],
|
||||
"require_attachment_present": true,
|
||||
"require_upload_signal_before_ready": false,
|
||||
"continue_once_on_unconfirmed_send": true,
|
||||
"idle_timeout": 3.0,
|
||||
"hard_max_wait": 90.0
|
||||
}
|
||||
},
|
||||
"prompt_padding": {
|
||||
"enabled": false,
|
||||
"marker_text": "测试号,无实际意义",
|
||||
"segments_per_side": 12,
|
||||
"random_insert_enabled": false,
|
||||
"random_insert_chars": ""
|
||||
}
|
||||
},
|
||||
"实验性预设-此预设可能增加封号风险": {
|
||||
"selectors": {
|
||||
"input_box": "textarea",
|
||||
"send_btn": "div.bf38813a div[role='button'].ds-button--primary, div.bf38813a > div > div[role='button'], div:has(textarea) div[role='button'].ds-button--primary, div.ds-button.ds-button--primary[role='button']",
|
||||
"upload_btn": "div.bf38813a > div[role='button']",
|
||||
"file_input": "input[type='file']",
|
||||
"result_container": "css:div.ds-markdown",
|
||||
"new_chat_btn": "div._5a8ac7a",
|
||||
"generating_indicator": "css:._7436101.bcc55ca1",
|
||||
"专家": "div[data-model-type=\"expert\"]"
|
||||
},
|
||||
"stream_config": {
|
||||
"mode": "network",
|
||||
"hard_timeout": 300,
|
||||
"request_transport": {
|
||||
"mode": "page_fetch",
|
||||
"profile": "deepseek_completion",
|
||||
"options": {
|
||||
"model_type": "expert",
|
||||
"context_mode": "full_prompt",
|
||||
"search_enabled": "auto",
|
||||
"thinking_enabled": "auto",
|
||||
"fallback_mode": "workflow",
|
||||
"client_version": "2.0.0",
|
||||
"app_version": "2.0.0"
|
||||
}
|
||||
},
|
||||
"network": {
|
||||
"listen_pattern": "api/v0/chat/completion",
|
||||
"parser": "deepseek",
|
||||
"silence_threshold": 3,
|
||||
"response_interval": 0.5
|
||||
}
|
||||
},
|
||||
"workflow": [
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "准备新对话",
|
||||
"value": {
|
||||
"variables": {},
|
||||
"steps": [
|
||||
{
|
||||
"action": "CLICK",
|
||||
"target": "new_chat_btn",
|
||||
"optional": true,
|
||||
"value": null,
|
||||
"label": "新建对话(入口不存在时沿用当前会话)"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "只在需要时切换模式",
|
||||
"value": {
|
||||
"variables": {
|
||||
"mode_target": "专家",
|
||||
"selected_selector": "div[data-model-type=\"expert\"][aria-pressed=\"true\"], div[data-model-type=\"expert\"][aria-selected=\"true\"], div[data-model-type=\"expert\"][data-state=\"active\"], div[data-model-type=\"expert\"][data-state=\"checked\"]"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"action": "CAPTURE",
|
||||
"target": "",
|
||||
"label": "读取目标模式的选中标记",
|
||||
"value": {
|
||||
"name": "mode_selected",
|
||||
"source": "exists",
|
||||
"timeout": 0.2,
|
||||
"selector": "{selected_selector}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "IF",
|
||||
"label": "未确认选中时选择一次",
|
||||
"value": {
|
||||
"condition": {
|
||||
"left": "{mode_selected}",
|
||||
"op": "eq",
|
||||
"right": false
|
||||
},
|
||||
"then": [
|
||||
{
|
||||
"action": "CLICK",
|
||||
"target": "{mode_target}",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "选择目标模式(缺少入口则停止)"
|
||||
}
|
||||
],
|
||||
"else": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "READONLY_HINT",
|
||||
"target": "",
|
||||
"optional": false,
|
||||
"value": {
|
||||
"title": "实验性预设说明",
|
||||
"text": "当前预设会保留“新对话 / 切到专家模式”等前置步骤,并把页面直发显示为独立步骤。若检测到图片、文件或直发失败,则会自动回退到后续原工作流发送方式。",
|
||||
"tone": "info"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action": "GROUP",
|
||||
"label": "发送并读取回复",
|
||||
"value": {
|
||||
"variables": {},
|
||||
"steps": [
|
||||
{
|
||||
"action": "PAGE_FETCH",
|
||||
"target": "",
|
||||
"optional": true,
|
||||
"value": null,
|
||||
"label": "尝试页面直发(成功则跳过后续填写与回车)"
|
||||
},
|
||||
{
|
||||
"action": "FILL_INPUT",
|
||||
"target": "input_box",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "填写本次请求"
|
||||
},
|
||||
{
|
||||
"action": "KEY_PRESS",
|
||||
"target": "Enter",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "回车发送"
|
||||
},
|
||||
{
|
||||
"action": "STREAM_WAIT",
|
||||
"target": "result_container",
|
||||
"optional": false,
|
||||
"value": null,
|
||||
"label": "监听并读取回复"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"stealth": false,
|
||||
"image_extraction": {
|
||||
"enabled": false,
|
||||
"modalities": {
|
||||
"image": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"late_wait_timeout_seconds": 45,
|
||||
"blind_wait_timeout_seconds": 1
|
||||
},
|
||||
"audio": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"capture_timeout_seconds": 12
|
||||
},
|
||||
"video": {
|
||||
"enabled": false,
|
||||
"run_policy": "disabled",
|
||||
"quick_probe_timeout_seconds": 1,
|
||||
"late_wait_timeout_seconds": 90
|
||||
}
|
||||
},
|
||||
"selector": "img",
|
||||
"audio_selector": "audio, audio source",
|
||||
"video_selector": "video, video source",
|
||||
"container_selector": null,
|
||||
"force_postprocess": false,
|
||||
"debounce_seconds": 2,
|
||||
"wait_for_load": true,
|
||||
"load_timeout_seconds": 5,
|
||||
"download_blobs": true,
|
||||
"max_size_mb": 10,
|
||||
"canvas_export_mime": "image/jpeg",
|
||||
"canvas_export_quality": 0.88,
|
||||
"src_allow_patterns": [],
|
||||
"mode": "all",
|
||||
"audio_capture_enabled": true,
|
||||
"audio_capture_mute_playback": true,
|
||||
"audio_capture_preload_enabled": true,
|
||||
"audio_capture_reload_before_workflow": false,
|
||||
"audio_capture_preserve_graph": true,
|
||||
"audio_capture_terminal_settle_seconds": 0.35,
|
||||
"audio_trigger_selector": "",
|
||||
"audio_trigger_labels": [
|
||||
"朗读",
|
||||
"语音朗读",
|
||||
"收听",
|
||||
"read aloud",
|
||||
"listen",
|
||||
"tts",
|
||||
"voice"
|
||||
],
|
||||
"audio_capture_max_wait_seconds": 12,
|
||||
"audio_capture_min_wait_seconds": 2,
|
||||
"audio_capture_hard_max_wait_seconds": 45,
|
||||
"audio_capture_estimated_chars_per_second": 4.8,
|
||||
"audio_capture_wait_padding_seconds": 1.2,
|
||||
"audio_network_capture": {
|
||||
"enabled": false,
|
||||
"timeout_seconds": 2.5,
|
||||
"transport": "page_websocket_probe",
|
||||
"url_patterns": [
|
||||
"voicegenie",
|
||||
"speech",
|
||||
"audio",
|
||||
"tts"
|
||||
],
|
||||
"extractor": "voicegenie_ogg_pages",
|
||||
"settle_seconds": 0.35,
|
||||
"max_payload_bytes": 10485760
|
||||
},
|
||||
"audio_browser_tts_fallback": {
|
||||
"enabled": false,
|
||||
"provider": "doubao_samantha",
|
||||
"speaker": "2",
|
||||
"speech_rate": 0,
|
||||
"pitch": 0,
|
||||
"format": "aac",
|
||||
"timeout_seconds": 30,
|
||||
"pc_version": "3.20.2",
|
||||
"aid": "497858",
|
||||
"real_aid": "497858",
|
||||
"language": "zh",
|
||||
"device_platform": "web",
|
||||
"pkg_type": "release_version",
|
||||
"region": "CN",
|
||||
"sys_region": "CN",
|
||||
"use_olympus_account": "1",
|
||||
"samantha_web": "1"
|
||||
},
|
||||
"audio_capture_poll_seconds": 0.25,
|
||||
"audio_capture_silence_seconds": 1.2,
|
||||
"audio_capture_activity_threshold": 0.006,
|
||||
"audio_capture_activity_silence_seconds": 0.65
|
||||
},
|
||||
"file_paste": {
|
||||
"enabled": true,
|
||||
"threshold": 163840,
|
||||
"temp_file_type": "txt",
|
||||
"hint_text": "完全专注于文件内容",
|
||||
"txt_hint_text": "完全专注于文件内容",
|
||||
"pdf_hint_text": "完全专注于文件内容",
|
||||
"error_hint_text": "输入文本长度超过限制,已中止发送",
|
||||
"reacquire_input_after_upload": false,
|
||||
"post_upload_input_selector": "",
|
||||
"post_upload_settle": 0.0,
|
||||
"upload_signal_timeout": 2.5,
|
||||
"upload_signal_grace": 3.0,
|
||||
"state_probe": {
|
||||
"enabled": false,
|
||||
"code": ""
|
||||
},
|
||||
"send_confirmation": {
|
||||
"attachment_sensitivity": "high",
|
||||
"post_click_observe_window": 2.4,
|
||||
"pre_retry_probe_window": 0.18,
|
||||
"retry_observe_window": 1.2,
|
||||
"attachment_observe_window": 8.0,
|
||||
"max_retry_count": 2,
|
||||
"retry_interval": 0.6,
|
||||
"retry_cooldown_window": 1.5,
|
||||
"retry_action": "click_send_btn",
|
||||
"retry_key_combo": "Enter",
|
||||
"retry_on_unconfirmed_send": true,
|
||||
"accept_attachment_change": false,
|
||||
"accept_attachment_disappear": false,
|
||||
"accept_probe_confirmation": true,
|
||||
"retry_block_on_stop_button": true,
|
||||
"retry_block_if_generating": true,
|
||||
"trust_network_activity": true,
|
||||
"trust_generating_indicator": true,
|
||||
"trust_send_disabled_with_input_shrink": true
|
||||
},
|
||||
"attachment_monitor": {
|
||||
"root_selectors": [
|
||||
"div:has(> div > div > textarea)",
|
||||
"div:has(textarea):not(._020ab5b):not(._24fad49)",
|
||||
"div._77cefa5",
|
||||
"div.aaff8b8f"
|
||||
],
|
||||
"attachment_selectors": [
|
||||
".ds-animated-size-item",
|
||||
"div[class*='d5fa3d1b']",
|
||||
"div:has(> img[src^='blob:'])",
|
||||
"img[src^='blob:']",
|
||||
".b40079d7 ._6d1b417 > div",
|
||||
".c8b3f8a6"
|
||||
],
|
||||
"pending_selectors": [],
|
||||
"busy_text_markers": [
|
||||
"上传中",
|
||||
"loading",
|
||||
"processing"
|
||||
],
|
||||
"send_button_disabled_markers": [
|
||||
"disabled",
|
||||
"ds-button--disabled"
|
||||
],
|
||||
"require_attachment_present": true,
|
||||
"require_upload_signal_before_ready": false,
|
||||
"continue_once_on_unconfirmed_send": true,
|
||||
"idle_timeout": 3.0,
|
||||
"hard_max_wait": 90.0
|
||||
}
|
||||
},
|
||||
"prompt_padding": {
|
||||
"enabled": false,
|
||||
"marker_text": "测试号,无实际意义",
|
||||
"segments_per_side": 12,
|
||||
"random_insert_enabled": false,
|
||||
"random_insert_chars": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"default_preset": "专家模式",
|
||||
"advanced": {
|
||||
"independent_cookies": false,
|
||||
"independent_cookies_auto_takeover": false
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,63 @@
|
||||
# Gemini / DeepSeek:结构化工作流与 DeepSeek 单预设收敛
|
||||
|
||||
> 后续用户要求已覆盖最初的 DeepSeek 三预设方案:目前只保留「主预设」,不读取或切换模型、不包含实验性直发。模型沿用网页当前选择。下文 Gemini 升级仍保持不变。
|
||||
|
||||
## 范围与兼容
|
||||
|
||||
- 实际配置键为 `gemini.google.com`,现有 `gemini.com` 路由别名保持不变。
|
||||
- Gemini 的 4 个预设保留名称与默认选择;DeepSeek 删除原专家、快速、实验性预设,统一为默认「主预设」。
|
||||
- Gemini 只调整 workflow;DeepSeek 主预设以原普通「专家模式」的非工作流配置为基础,保留网络解析器、附件/文件粘贴、媒体提取、提示词填充、站点级配置和发送确认,只移除闲置的模型选择定位器。其他 AI 站点不变。
|
||||
- 不引入隐藏的运行时模板引用。每套配置仍可独立导出、导入和编辑。DeepSeek 删除多余预设是后续用户的明确要求。
|
||||
- Gemini 的差异集中到组变量:目标模型匹配式与临时会话开关。DeepSeek 不再含模型状态变量。
|
||||
|
||||
## 流程调整
|
||||
|
||||
### Gemini
|
||||
|
||||
保留原中文界面提示,并将流程组织为三个步骤组:
|
||||
|
||||
1. **准备新对话与隐私模式**:只调用原新对话入口一次,去掉重复的 `Ctrl+Shift+O`。私密预设读取临时对话按钮的 `aria-pressed`,已经开启则不重复点击;非隐私预设不进入此分支。私密预设的入口缺失时停止,不再静默忽略。
|
||||
2. **只在需要时切换模型**:读取现有模型按钮文本,匹配预设模型时跳过菜单动作;不匹配则读取 `aria-expanded`,仅在菜单关闭时展开,再选择原预设模型。展开时等待目标选项可见、选择后等待选项隐藏,替代原固定等待。
|
||||
3. **发送并读取回复**:保留填写、发送、监听及原发送确认配置,不增加另一种重复发送动作。
|
||||
|
||||
没有猜测或变更供应商当前模型名称。原名为 `3.5 flash lite` 的预设,其选择器实际匹配 `3.1 Flash-Lite`,此次保留原定位,不擅自“修正”为未验证的模型。
|
||||
|
||||
### DeepSeek(当前方案:仅主预设)
|
||||
|
||||
仅保留两个组、四个执行动作(含组一共 6 个节点):
|
||||
|
||||
1. **准备新对话**:调用原可选新对话入口。
|
||||
2. **发送并读取回复**:填写本次请求 → 回车发送 → 监听并读取回复。
|
||||
|
||||
不包含模型选择、模型状态读取、条件判断、固定等待或 PAGE_FETCH。脚本不改变网页当前模型,用户需要时直接在网页上选择。主预设从普通预设继承设置,不继承实验性直发参数。默认预设为「主预设」。旧预设的显式 API 调用名应改为主预设。
|
||||
|
||||
当前工作区 `commands.json` 无旧预设引用,也没有 `sites.local.json` 本地默认覆盖。若部署环境的标签页仍绑定旧预设,应重新选择「主预设」。不修改历史请求记录与市场缓存。
|
||||
|
||||
## 自动收录过滤
|
||||
|
||||
- 原问题:未知域名即使没有 HTML、AI 分析失败,仍将通用 `textarea / submit / div` 回退配置写入站点库。
|
||||
- 修正:通用回退只返回给当前调用,不放入 `sites`,不写入文件,因而不会出现在目录。
|
||||
- 搜索首页与账号页可用 `config/site_rules.json` 的 `auto_discovery: false` 精确排除。规则支持 `www` 别名,但不会扩展到所有子域:排除 `google.com` 不影响 `gemini.google.com` 和 `aistudio.google.com`。
|
||||
- 未知站点必须由分析器明确返回布尔 `is_chat_site: true`,且具有非通用的回复容器和输入定位,两者都要实际匹配被分析的 HTML 快照,才允许自动入库。搜索、登录、普通表单、证据不足的页面不会被默认当作 AI 聊天页。
|
||||
- 这不是供应商白名单。新的第三方 AI 聊天页仍可识别;用户显式添加或导入的配置仍可使用,不受自动收录策略限制。
|
||||
- 已误收录的 `www.google.com` 通用预设从本次配置中移除;升级脚本只删除与归档一致的旧条目,不删除后来被用户定制过的 Google 配置。
|
||||
|
||||
## 备份与验证
|
||||
|
||||
`gemini-deepseek-v2.before.json` 保存升级前两个站点及误收录 Google 条目,可通过站点导入恢复。只想回退一个站点时,请从文件选择对应来源,避免恢复无关条目。
|
||||
|
||||
显式升级脚本:`python scripts/upgrade_gemini_deepseek.py`。非启动迁移,可重复执行;处理 Gemini 的 4 个指定预设与 DeepSeek 单预设合并;已有单独的主预设不会被重复重建。
|
||||
|
||||
回归:
|
||||
|
||||
```sh
|
||||
python -m pytest -q tests/test_site_workflow_upgrade.py tests/test_site_discovery.py
|
||||
# 本地服务启动后,检查实际控制台加载与 Google 条目移除(拦截写入)
|
||||
python tests/browser_upgraded_sites.py
|
||||
```
|
||||
|
||||
覆盖配置差异边界、Gemini 的状态分支、菜单已展开场景、临时会话差异、DeepSeek 仅四个动作且保持网页模型不变、搜索域名过滤、未知回退不入库、正向识别与手动配置兼容;包含合成网页上实际 CSS/XPath 定位、点击、输入及回车测试。
|
||||
|
||||
**边界**:未登录真实 Gemini / DeepSeek 验证。网页没有可读的选中标记时,只做一次原点击,不能宣称已验证模型状态;现有中文定位器仍依赖页面实际结构。DeepSeek 不再执行实验性直发。
|
||||
|
||||
最新合并前备份:`deepseek-single-preset.before.json`,包含上一版 3 个完整预设;需要回滚时可显式导入。
|
||||
Reference in new issue
Block a user