@norskvideo/ctl-dev-kit 0.1.40 → 0.1.41

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.
@@ -102,10 +102,31 @@ jobs:
102
102
  [ -n "$new_studio_lib" ] && [ "$new_studio_lib" != "null" ] || { echo "could not resolve norsk-studio npm nightly"; exit 1; }
103
103
  studio_line="${new_studio_lib%%-*}" # e.g. 1.28.0 — keep the image on this line
104
104
  old_studio_img="$(jq -r '.latest.studio | split(":")[1]' manifest.seed.json)"
105
- new_studio_img="$(curl -fsSL "https://hub.docker.com/v2/repositories/norskvideo/norsk-studio/tags?page_size=100&ordering=last_updated" \
106
- | jq -r '.results[].name' \
105
+ # FOLLOW THE NIGHTLY CHANNEL — do not pick the newest tag NAME on the
106
+ # line. Newest-name selects on publish recency, so any build landing a
107
+ # <line>-<date>-<sha> tag wins, including one off a feature branch. Not
108
+ # hypothetical: a norsk-studio `reasoning` build took both the nightly
109
+ # tag and the newest-name slot on 2026-08-25, this job pinned it at
110
+ # 04:29, and every signed probe workflow was refused at launch that
111
+ # morning because the fix on main was not in it. norsk-studio now
112
+ # refuses to publish `nightly` from anything but main, so the channel is
113
+ # the trustworthy signal — and this follows it rather than guessing.
114
+ #
115
+ # Resolve nightly's digest, then name the version-specific tag carrying
116
+ # the same digest. The moving tag is not pinnable itself: it moves under
117
+ # you, and a launch has to record the exact image it ran.
118
+ hub="https://hub.docker.com/v2/repositories/norskvideo/norsk-studio"
119
+ nightly_digest="$(curl -fsSL "$hub/tags/nightly" | jq -r '.digest // empty')"
120
+ [ -n "$nightly_digest" ] || { echo "could not resolve the norsk-studio nightly tag's digest"; exit 1; }
121
+ new_studio_img="$(curl -fsSL "$hub/tags?page_size=100&ordering=last_updated" \
122
+ | jq -r --arg d "$nightly_digest" '.results[] | select(.digest == $d) | .name' \
107
123
  | grep -E "^${studio_line}-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9a-f]+$" | head -1 || true)"
108
- [ -n "$new_studio_img" ] || { echo "no published norsk-studio image on the $studio_line line — npm/docker version lines have diverged"; exit 1; }
124
+ [ -n "$new_studio_img" ] || {
125
+ echo "norsk-studio nightly ($nightly_digest) has no version-specific tag on the $studio_line line."
126
+ echo "Either the npm and docker version lines have diverged, or nightly has moved to a"
127
+ echo "different line than the npm nightly ($new_studio_lib). Not guessing — fix the channel."
128
+ exit 1
129
+ }
109
130
  echo "studio lib: ${old_studio_lib:-<no npm pins>} -> $new_studio_lib"
110
131
  echo "studio image: $old_studio_img -> $new_studio_img"
111
132
  if [ "$old_studio_img" != "$new_studio_img" ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-dev-kit",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",