@omen.foundation/node-microservice-runtime 0.1.98 → 0.1.99

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.98",
3
+ "version": "0.1.99",
4
4
  "description": "Beamable microservice runtime for Node.js/TypeScript services.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -473,15 +473,11 @@ async function resolveGamePid(apiHost, token, cid, pid, explicitGamePid) {
473
473
  console.error(`[beamo-node] [STEP: Resolve Game PID]`);
474
474
  console.error(`[beamo-node] Explicit Game PID: ${explicitGamePid || '(none)'}`);
475
475
  console.error(`[beamo-node] Realm PID: ${pid}`);
476
+ console.error(`[beamo-node] NOTE: Always resolving root project (Game ID) from API, ignoring explicit value`);
476
477
  }
477
478
 
478
- if (explicitGamePid) {
479
- if (process.env.BEAMO_DEBUG === '1' || process.env.BEAMO_NODE_DEBUG === '1') {
480
- console.error(`[beamo-node] Using explicit game PID: ${explicitGamePid}`);
481
- }
482
- return explicitGamePid;
483
- }
484
-
479
+ // Always resolve the root project from the API (matching C# CLI's FindRoot().Pid)
480
+ // The explicit game PID might be incorrect (could be realm PID instead of root)
485
481
  const scope = pid ? `${cid}.${pid}` : cid;
486
482
  try {
487
483
  const url = new URL(`/basic/realms/game`, apiHost);
@@ -535,7 +531,11 @@ async function resolveGamePid(apiHost, token, cid, pid, explicitGamePid) {
535
531
  const resolved = current?.pid ?? pid;
536
532
 
537
533
  if (process.env.BEAMO_DEBUG === '1' || process.env.BEAMO_NODE_DEBUG === '1') {
538
- console.error(`[beamo-node] Resolved Game PID: ${resolved}`);
534
+ console.error(`[beamo-node] Resolved Game PID (root): ${resolved}`);
535
+ if (explicitGamePid && explicitGamePid !== resolved) {
536
+ console.error(`[beamo-node] ⚠️ WARNING: Explicit Game PID (${explicitGamePid}) does not match resolved root (${resolved})`);
537
+ console.error(`[beamo-node] Using resolved root (${resolved}) for imageNameMD5 calculation`);
538
+ }
539
539
  }
540
540
  return resolved;
541
541
  } catch (error) {