mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
Merge remote-tracking branch 'origin/main' into feat/channels-telegram
This commit is contained in:
commit
811ccdd02d
101 changed files with 10988 additions and 1091 deletions
|
|
@ -107,7 +107,7 @@ export interface SettingsSchema {
|
|||
|
||||
/**
|
||||
* Common items schema for hook definitions.
|
||||
* Used by both UserPromptSubmit and Stop hooks.
|
||||
* Used by all hook event types in the hooks configuration.
|
||||
*/
|
||||
const HOOK_DEFINITION_ITEMS: SettingItemDefinition = {
|
||||
type: 'object',
|
||||
|
|
@ -1493,6 +1493,7 @@ const SETTINGS_SCHEMA = {
|
|||
description: 'Hooks that execute when notifications are sent.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
PreToolUse: {
|
||||
type: 'array',
|
||||
|
|
@ -1503,6 +1504,7 @@ const SETTINGS_SCHEMA = {
|
|||
description: 'Hooks that execute before tool execution.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
PostToolUse: {
|
||||
type: 'array',
|
||||
|
|
@ -1513,6 +1515,7 @@ const SETTINGS_SCHEMA = {
|
|||
description: 'Hooks that execute after successful tool execution.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
PostToolUseFailure: {
|
||||
type: 'array',
|
||||
|
|
@ -1523,6 +1526,7 @@ const SETTINGS_SCHEMA = {
|
|||
description: 'Hooks that execute when tool execution fails. ',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
SessionStart: {
|
||||
type: 'array',
|
||||
|
|
@ -1533,6 +1537,7 @@ const SETTINGS_SCHEMA = {
|
|||
description: 'Hooks that execute when a new session starts or resumes.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
SessionEnd: {
|
||||
type: 'array',
|
||||
|
|
@ -1543,6 +1548,7 @@ const SETTINGS_SCHEMA = {
|
|||
description: 'Hooks that execute when a session ends.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
PreCompact: {
|
||||
type: 'array',
|
||||
|
|
@ -1553,6 +1559,7 @@ const SETTINGS_SCHEMA = {
|
|||
description: 'Hooks that execute before conversation compaction.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
SubagentStart: {
|
||||
type: 'array',
|
||||
|
|
@ -1564,6 +1571,7 @@ const SETTINGS_SCHEMA = {
|
|||
'Hooks that execute when a subagent (Task tool call) is started.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
SubagentStop: {
|
||||
type: 'array',
|
||||
|
|
@ -1575,6 +1583,7 @@ const SETTINGS_SCHEMA = {
|
|||
'Hooks that execute right before a subagent (Task tool call) concludes its response.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
PermissionRequest: {
|
||||
type: 'array',
|
||||
|
|
@ -1586,6 +1595,7 @@ const SETTINGS_SCHEMA = {
|
|||
'Hooks that execute when a permission dialog is displayed.',
|
||||
showInDialog: false,
|
||||
mergeStrategy: MergeStrategy.CONCAT,
|
||||
items: HOOK_DEFINITION_ITEMS,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue