Skip to content

Releases: ibarapascal/process-guardian

v0.2.0

16 Mar 03:57

Choose a tag to compare

Added

  • Session PID Tracking: Tracks processes spawned by Bash tool calls via PostToolUse hook
  • Automatically cleans up orphan processes from crashed sessions on next SessionStart
  • SessionEnd hook marks clean exits to distinguish from crashes
  • Triple verification before killing tracked processes (PID + start time + command)
  • /check command now shows tracked session processes alongside allowlist matches
  • Stale tracking file cleanup (>24h) on session start
  • Test suite for session tracking (tests/test-tracking.sh)
  • /check command now shows tracked session processes alongside allowlist matches

Changed

  • get_filter_pattern() now auto-generated from pattern arrays (no manual dual-maintenance)

How It Works

  • PostToolUse(Bash) hook snapshots new PPID=1 processes after each Bash tool call (~50ms overhead)
  • Processes are stored in per-session tracking files with full identification (PID, lstart, command)
  • On next SessionStart: crash exit → auto-kill tracked orphans; clean exit → silently skip
  • Complements existing allowlist scanning (allowlist handles known patterns, tracking handles arbitrary scripts)

v0.1.1

01 Feb 15:58

Choose a tag to compare

Added

  • license and keywords fields in plugin.json for marketplace discovery
  • JSON output format with systemMessage for CLI display to user
  • GitHub Actions auto-release workflow

Fixed

  • Release workflow permissions (contents: write)
  • JSON escaping for special characters in command output

v0.1.0

01 Feb 02:49

Choose a tag to compare