@windyroad/retrospective 0.6.0-preview.179 → 0.8.0-preview.181
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/hooks/hooks.json
CHANGED
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"hooks": {
|
|
3
3
|
"SessionStart": [
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "command",
|
|
8
|
+
"command": "${CLAUDE_PLUGIN_ROOT}/bin/check-deps.sh wr-retrospective wr-itil wr-risk-scorer"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"matcher": "startup",
|
|
14
|
+
"hooks": [
|
|
15
|
+
{
|
|
16
|
+
"type": "command",
|
|
17
|
+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start-briefing.sh"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
5
21
|
],
|
|
6
22
|
"Stop": [
|
|
7
|
-
{
|
|
23
|
+
{
|
|
24
|
+
"hooks": [
|
|
25
|
+
{
|
|
26
|
+
"type": "command",
|
|
27
|
+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/retrospective-reminder.sh"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
8
31
|
]
|
|
9
32
|
}
|
|
10
33
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# wr-retrospective — SessionStart hook (P100 slice 2, ADR-040)
|
|
3
|
+
# Surfaces the "Critical Points" roll-up from docs/briefing/README.md at session start.
|
|
4
|
+
# Fires only on matcher="startup" per hooks.json; silent no-op if briefing tree is absent.
|
|
5
|
+
|
|
6
|
+
set -euo pipefail
|
|
7
|
+
|
|
8
|
+
BRIEFING_README="${CLAUDE_PROJECT_DIR:-.}/docs/briefing/README.md"
|
|
9
|
+
|
|
10
|
+
# No briefing tree yet (adopter hasn't run /wr-retrospective:run-retro) — silent exit.
|
|
11
|
+
[ -f "$BRIEFING_README" ] || exit 0
|
|
12
|
+
|
|
13
|
+
# Extract everything under "## Critical Points (Session-Start Surface)" up to (but not
|
|
14
|
+
# including) the next level-2 heading.
|
|
15
|
+
CRITICAL_POINTS=$(awk '
|
|
16
|
+
/^## Critical Points \(Session-Start Surface\)/ { in_section=1; next }
|
|
17
|
+
in_section && /^## / { exit }
|
|
18
|
+
in_section { print }
|
|
19
|
+
' "$BRIEFING_README")
|
|
20
|
+
|
|
21
|
+
# Section missing (e.g. older briefing README format) — silent exit.
|
|
22
|
+
[ -n "$CRITICAL_POINTS" ] || exit 0
|
|
23
|
+
|
|
24
|
+
cat <<EOF
|
|
25
|
+
CROSS-SESSION BRIEFING — critical points (source: docs/briefing/README.md).
|
|
26
|
+
Read that file for the full topic index + per-topic files when context warrants.
|
|
27
|
+
|
|
28
|
+
$CRITICAL_POINTS
|
|
29
|
+
EOF
|
package/package.json
CHANGED