mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-17 23:28:04 +02:00
fix(install): harden Claude settings lifecycle
This commit is contained in:
@@ -147,6 +147,24 @@
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"managedMatcherEntry": {
|
||||
"allOf": [
|
||||
{ "$ref": "#/$defs/matcherEntry" },
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["id"],
|
||||
"properties": {
|
||||
"hooks": { "type": "array", "minItems": 1 }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"managedMatcherRequiredEntry": {
|
||||
"allOf": [
|
||||
{ "$ref": "#/$defs/managedMatcherEntry" },
|
||||
{ "type": "object", "required": ["matcher"] }
|
||||
]
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
@@ -180,10 +198,18 @@
|
||||
"SessionEnd"
|
||||
]
|
||||
},
|
||||
"patternProperties": {
|
||||
"^(SessionStart|PreToolUse|PermissionRequest|PostToolUse|PostToolUseFailure|SubagentStart|PreCompact|InstructionsLoaded|TeammateIdle|TaskCompleted|ConfigChange|WorktreeCreate|WorktreeRemove|SessionEnd)$": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/managedMatcherRequiredEntry"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/matcherEntry"
|
||||
"$ref": "#/$defs/managedMatcherEntry"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user