No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

17 líneas
982B

  1. {
  2. "hooks": {
  3. "PostToolUse": [
  4. {
  5. "matcher": "Write|Edit",
  6. "hooks": [
  7. {
  8. "type": "command",
  9. "command": "node -e 'let d=\"\";process.stdin.on(\"data\",c=>d+=c);process.stdin.on(\"end\",()=>{try{const j=JSON.parse(d);const fp=(j.tool_input&&j.tool_input.file_path)||(j.tool_response&&j.tool_response.filePath)||\"\";const path=require(\"path\");const b=path.win32.basename(fp);let o=null;if(b===\"CLAUDE.md\")o=\"AGENTS.md\";else if(b===\"AGENTS.md\")o=\"CLAUDE.md\";if(o){console.log(JSON.stringify({systemMessage:b+\" changed — remember to mirror the update into \"+o+\" so both stay in sync.\",hookSpecificOutput:{hookEventName:\"PostToolUse\",additionalContext:b+\" was just modified. Check whether the same change should be mirrored into \"+o+\" (using its own phrasing) so the two files stay consistent.\"}}));}}catch(e){}});' 2>/dev/null || true",
  10. "timeout": 15
  11. }
  12. ]
  13. }
  14. ]
  15. }
  16. }

Powered by TurnKey Linux.