@omen.foundation/node-microservice-runtime 0.1.86 → 0.1.87

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.86",
3
+ "version": "0.1.87",
4
4
  "description": "Beamable microservice runtime for Node.js/TypeScript services.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -509,16 +509,16 @@ async function uploadDockerImage({
509
509
  progress,
510
510
  }) {
511
511
  const baseUrl = `${registryUrl}${uniqueName}/`;
512
- // Try using gamePid in headers - backend checks registry using game PID scope
513
- // The uniqueName is calculated with gamePid, so headers should match
512
+ // Match C# CLI and backend: use realm PID in headers (backend checks registry using rc.projectId)
513
+ // uniqueName uses gamePid (matches backend's rc.gameId), but headers use realm PID
514
514
  const headers = {
515
515
  'x-ks-clientid': cid,
516
- 'x-ks-projectid': gamePid || pid, // Use gamePid if available, fallback to realm PID
516
+ 'x-ks-projectid': pid, // Use realm PID (matches backend's rc.projectId in DockerRegistryClient)
517
517
  'x-ks-token': token, // Access token from login
518
518
  };
519
519
  if (process.env.BEAMO_DEBUG === '1' || process.env.BEAMO_NODE_DEBUG === '1') {
520
520
  console.error(`[beamo-node] Uploading to: ${baseUrl}`);
521
- console.error(`[beamo-node] Upload headers PID: ${gamePid || pid} (gamePid: ${gamePid}, realm: ${pid})`);
521
+ console.error(`[beamo-node] Upload headers PID: ${pid} (realm), gamePid: ${gamePid}`);
522
522
  }
523
523
 
524
524
  const { manifestEntry, configBuffer, layers } = await readDockerImageTar(imageTarPath);