File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33set -euo pipefail
44refuse () { printf ' skill update scope: unsupported dispatch\n' >&2 ; exit 2; }
55[[ $# -ge 1 && $# -le 2 ]] || refuse
6- # Hold Context7 at the current revision until hosted query-docs accepts version (#745).
7- # Both scopes include this skill. After removing the hold, dispatch once with unpin
8- # to release the installed skill's pinned metadata.
9- pin=' plugins/agentic-engineering/skills/context7-mcp 7fe6e09cfa8ad9aba5768da2e37823ccd3837abb'
6+ # A temporary pin is a skill directory and an upstream commit. To release pinned
7+ # metadata on an installed skill, clear the pin and dispatch once with unpin.
8+ pin=' '
109case " $1 :${2:- all} " in
1110 schedule:all|workflow_dispatch:all) printf ' dir=plugins\nbranch=deps/agent-skills-update\npins=%s\n' " $pin " ;;
1211 workflow_dispatch:agentic-engineering) printf ' dir=plugins/agentic-engineering/skills\nbranch=deps/agent-skills-update-agentic-engineering-skills\npins=%s\n' " $pin " ;;
Original file line number Diff line number Diff line change @@ -4,21 +4,20 @@ set -euo pipefail
44here=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
55work=$( mktemp -d)
66trap ' rm -rf "$work"' EXIT
7- expected_pin=' plugins/agentic-engineering/skills/context7-mcp 7fe6e09cfa8ad9aba5768da2e37823ccd3837abb'
8- expected_full=$' dir=plugins\n branch=deps/agent-skills-update\n pins=' " $expected_pin "
7+ expected_full=$' dir=plugins\n branch=deps/agent-skills-update\n pins='
98for event in schedule workflow_dispatch; do
109 bash " $here /skill-update-scope.sh" " $event " > " $work /out"
1110 [[ $( cat " $work /out" ) == " $expected_full " ]] || {
12- printf ' FAIL: full-catalogue %s must pin only Context7 at the compatible revision (#745) \n' " $event " >&2
11+ printf ' FAIL: full-catalogue %s must allow the normal skill update \n' " $event " >&2
1312 exit 1
1413 }
1514done
1615bash " $here /skill-update-scope.sh" workflow_dispatch all > " $work /out"
1716[[ $( cat " $work /out" ) == " $expected_full " ]]
1817bash " $here /skill-update-scope.sh" workflow_dispatch agentic-engineering > " $work /out"
19- expected_scoped=$' dir=plugins/agentic-engineering/skills\n branch=deps/agent-skills-update-agentic-engineering-skills\n pins=' " $expected_pin "
18+ expected_scoped=$' dir=plugins/agentic-engineering/skills\n branch=deps/agent-skills-update-agentic-engineering-skills\n pins='
2019[[ $( cat " $work /out" ) == " $expected_scoped " ]] || {
21- printf ' FAIL: the agentic-engineering scope must apply the same Context7 pin (#745) \n' >&2
20+ printf ' FAIL: the agentic-engineering scope must allow the normal skill update \n' >&2
2221 exit 1
2322}
2423# A scoped producer must still create the canonical per-skill branch accepted
You can’t perform that action at this time.
0 commit comments