@norskvideo/ctl-dev-kit 0.2.105 → 0.2.107

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.
@@ -246,11 +246,18 @@ jobs:
246
246
  # The image name is CI's own rule: PUBLISH_IMAGE when set, else the build
247
247
  # script's IMAGE_TAG default, tag stripped -- a licence matches the repo
248
248
  # part alone, never the tag.
249
+ #
250
+ # PRODUCT_NAME is read as smoke.yml reads it: an sdk-app keeps it in
251
+ # src/product/version.ts (norsk-relay) or shared/src/version.ts
252
+ # (norsk-conversion); the first that exists is read.
249
253
  - name: Check this repo records its own licence
250
254
  run: |
251
255
  set -euo pipefail
252
- product="$(sed -nE 's/.*PRODUCT_NAME[[:space:]]*=[[:space:]]*"([^"]+)".*/\1/p' src/product/version.ts | head -1)"
253
- [ -n "$product" ] || { echo "::error::could not read PRODUCT_NAME from src/product/version.ts"; exit 1; }
256
+ vf=""
257
+ for f in shared/src/version.ts src/product/version.ts; do [ -f "$f" ] && { vf="$f"; break; }; done
258
+ [ -n "$vf" ] || { echo "::error::no shared/src/version.ts or src/product/version.ts"; exit 1; }
259
+ product="$(sed -nE 's/.*PRODUCT_NAME[[:space:]]*=[[:space:]]*"([^"]+)".*/\1/p' "$vf" | head -1)"
260
+ [ -n "$product" ] || { echo "::error::could not read PRODUCT_NAME from $vf"; exit 1; }
254
261
  pub="$(sed -nE 's/^[[:space:]]*PUBLISH_IMAGE:[[:space:]]*"?([^" ]*)"?[[:space:]]*$/\1/p' .github/workflows/build-image.yml | head -1)"
255
262
  def="$(sed -nE 's/.*IMAGE_TAG:-([^}]+)\}.*/\1/p' deployment/build-image.sh | head -1)"
256
263
  ref="${pub:-$def}"
@@ -1220,7 +1220,6 @@ ${runtimeScreen} proxy: {
1220
1220
  // (workflow.yml mount, license env/file mount, etc).
1221
1221
  export function renderCompose(config: ProductConfig): string {
1222
1222
  const studioEnv: Record<string, string> = {
1223
- NORSK_HOST: "media",
1224
1223
  // Studio declares this product to the engine at the V2 licence handshake;
1225
1224
  // without it Studio falls back to its baked default and the instance would
1226
1225
  // demand a Studio entitlement rather than its own.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-dev-kit",
3
- "version": "0.2.105",
3
+ "version": "0.2.107",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./create-product": "./create-product/create-product.ts",