feat: Claude Code Monitor — lanes, pipelines and a merged workspace
Internal SmartGift build of a Claude Code monitoring dashboard. Lanes: a durable unit of parallel agent work, one per working directory, tracked across session restarts. Managed lanes are git worktrees the dashboard provisions and can reset or remove behind a three-check destroy guard and a counted preflight; adopted lanes are directories you already own and are never destroyable. Pipelines: a lane moves through pipeline stages. A stage the agent declares with evidence renders green; a stage inferred from the tool-event stream renders dashed amber and never counts as done. Detection is forward-only within a 30-minute window, and never writes the declared stage. Workspace: one page at /run with a lane grid, the selected lane's pipeline, and a full Claude console behind a disclosure.
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env sh
|
||||
#
|
||||
# Commit-msg: lightweight, dependency-free Conventional Commits advisory.
|
||||
# This is intentionally NON-blocking — it only prints a hint when the subject
|
||||
# doesn't look conventional. Commits are gated on tests (see pre-commit), not
|
||||
# on the message format.
|
||||
|
||||
MSG_FILE="$1"
|
||||
SUBJECT="$(head -n1 "$MSG_FILE" 2>/dev/null)"
|
||||
|
||||
# Skip merge/revert/fixup/squash commits — git generates those subjects.
|
||||
case "$SUBJECT" in
|
||||
Merge*|Revert*|fixup!*|squash!*) exit 0 ;;
|
||||
esac
|
||||
|
||||
# type(scope)?!: description — e.g. "feat(tray): poll /api/stats"
|
||||
PATTERN='^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z0-9._/-]+\))?!?: .+'
|
||||
|
||||
if ! printf '%s' "$SUBJECT" | grep -Eq "$PATTERN"; then
|
||||
echo "💡 Tip: commit subjects work best in Conventional Commits form:"
|
||||
echo " <type>(optional-scope): <description>"
|
||||
echo " e.g. feat(tray): poll /api/stats for live counts"
|
||||
echo " (advisory only — your commit will still proceed)"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user