@omen.foundation/node-microservice-runtime 0.1.92 → 0.1.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omen.foundation/node-microservice-runtime",
3
- "version": "0.1.92",
3
+ "version": "0.1.94",
4
4
  "description": "Beamable microservice runtime for Node.js/TypeScript services.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1015,8 +1015,13 @@ async function updateManifest({
1015
1015
  console.error(`[beamo-node] Headers:`, JSON.stringify(publishHeaders, null, 2));
1016
1016
  console.error(`[beamo-node] Service: ${serviceId}`);
1017
1017
  console.error(`[beamo-node] CID: ${cid}`);
1018
- console.error(`[beamo-node] PID: ${pid}`);
1018
+ console.error(`[beamo-node] Realm PID (from X-BEAM-SCOPE): ${pid}`);
1019
1019
  console.error(`[beamo-node] Short Image ID: ${shortImageId}`);
1020
+ console.error(`[beamo-node] Expected Backend Check:`);
1021
+ console.error(`[beamo-node] - Backend will calculate imageNameMD5 using: rc.cid, rc.gameId, serviceName`);
1022
+ console.error(`[beamo-node] - Backend will check: {registryURI}/{imageNameMD5}/manifests/{imageId}`);
1023
+ console.error(`[beamo-node] - Backend will use headers: X-KS-PROJECTID: rc.projectId (from X-BEAM-SCOPE)`);
1024
+ console.error(`[beamo-node] - NOTE: rc.gameId might differ from realm PID if backend resolves it differently`);
1020
1025
  console.error(`[beamo-node] Request Body:`, JSON.stringify(requestBody, null, 2));
1021
1026
  console.error(`[beamo-node] Service Entry in Manifest:`, JSON.stringify(mappedServices.find(s => s.serviceName === serviceId), null, 2));
1022
1027
  }
@@ -1249,10 +1254,13 @@ async function main() {
1249
1254
  const fullImageId = inspect.stdout.trim();
1250
1255
  const imageTarPath = path.join(tempRoot, `${serviceId.replace(/[^a-z0-9-_]/gi, '_')}.tar`);
1251
1256
  if (process.env.BEAMO_DEBUG === '1' || process.env.BEAMO_NODE_DEBUG === '1') {
1257
+ // Calculate short digest manually (shortDigest function defined later)
1258
+ const longImageId = fullImageId.includes(':') ? fullImageId.split(':')[1] : fullImageId;
1259
+ const shortImageIdPreview = longImageId.substring(0, 12);
1252
1260
  console.error(`[beamo-node] [STEP: Extract Image ID]`);
1253
1261
  console.error(`[beamo-node] Docker Tag: ${dockerTag}`);
1254
1262
  console.error(`[beamo-node] Full Image ID: ${fullImageId}`);
1255
- console.error(`[beamo-node] Short Image ID: ${shortDigest(fullImageId)}`);
1263
+ console.error(`[beamo-node] Short Image ID (preview): ${shortImageIdPreview}`);
1256
1264
  console.error(`[beamo-node] Image Tar Path: ${imageTarPath}`);
1257
1265
  }
1258
1266
  await runCommand('docker', ['image', 'save', dockerTag, '-o', imageTarPath], { silent: true });