@omen.foundation/node-microservice-runtime 0.1.85 → 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
|
@@ -509,16 +509,16 @@ async function uploadDockerImage({
|
|
|
509
509
|
progress,
|
|
510
510
|
}) {
|
|
511
511
|
const baseUrl = `${registryUrl}${uniqueName}/`;
|
|
512
|
-
//
|
|
513
|
-
//
|
|
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':
|
|
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: ${
|
|
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);
|
|
@@ -1162,7 +1162,7 @@ async function main() {
|
|
|
1162
1162
|
|
|
1163
1163
|
// Step 7: Discover storage, components, and dependencies
|
|
1164
1164
|
progress.start('Discovering storage objects and components');
|
|
1165
|
-
|
|
1165
|
+
// shortImageId already defined above from verification step
|
|
1166
1166
|
const existingManifest = await fetchCurrentManifest(apiHost, token, cid, pid);
|
|
1167
1167
|
const discoveredStorage = await discoverStorageObjects('src');
|
|
1168
1168
|
const discoveredComponents = await discoverFederationComponents('src');
|