@omen.foundation/node-microservice-runtime 0.1.95 → 0.1.97

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.95",
3
+ "version": "0.1.97",
4
4
  "description": "Beamable microservice runtime for Node.js/TypeScript services.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1000,7 +1000,7 @@ async function updateManifest({
1000
1000
  storageReferences,
1001
1001
  };
1002
1002
 
1003
- const publishUrl = new URL('/api/beamo/manifests', apiHost);
1003
+ const publishUrl = new URL('/basic/beamo/manifest', apiHost);
1004
1004
  const publishHeaders = {
1005
1005
  Authorization: `Bearer ${token}`,
1006
1006
  Accept: 'application/json',
@@ -1358,6 +1358,32 @@ async function main() {
1358
1358
  console.error(`[beamo-node] ✓ Image verification passed`);
1359
1359
  }
1360
1360
 
1361
+ // CRITICAL: Perform exact backend check simulation
1362
+ // The backend uses HEAD request with specific headers - let's verify it works
1363
+ if (process.env.BEAMO_DEBUG === '1' || process.env.BEAMO_NODE_DEBUG === '1') {
1364
+ console.error(`[beamo-node] [STEP: Backend Check Simulation]`);
1365
+ console.error(`[beamo-node] Simulating exact backend check...`);
1366
+ const backendCheckUrl = `${registryUrl}${uniqueName}/manifests/${shortImageId}`;
1367
+ console.error(`[beamo-node] Backend will check: ${backendCheckUrl}`);
1368
+ console.error(`[beamo-node] Backend will use headers:`, JSON.stringify(verifyHeaders, null, 2));
1369
+ try {
1370
+ const backendCheckResponse = await fetch(backendCheckUrl, {
1371
+ method: 'HEAD',
1372
+ headers: verifyHeaders,
1373
+ });
1374
+ console.error(`[beamo-node] Backend simulation response status: ${backendCheckResponse.status}`);
1375
+ if (backendCheckResponse.status !== 200) {
1376
+ console.error(`[beamo-node] ⚠️ Backend simulation FAILED - status ${backendCheckResponse.status}`);
1377
+ const responseText = await backendCheckResponse.text().catch(() => '');
1378
+ console.error(`[beamo-node] Response: ${responseText}`);
1379
+ } else {
1380
+ console.error(`[beamo-node] ✓ Backend simulation passed`);
1381
+ }
1382
+ } catch (error) {
1383
+ console.error(`[beamo-node] ⚠️ Backend simulation error: ${error.message}`);
1384
+ }
1385
+ }
1386
+
1361
1387
  // CRITICAL: Before publishing, verify using the backend's expected gameId
1362
1388
  // The backend resolves rc.gameId from the realm hierarchy, which might differ from our resolvedGamePid
1363
1389
  // We need to check what the backend will actually use