@ludeo/cloud-common 1.2.262 → 1.2.264-beta-yahil-1

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.
@@ -0,0 +1,14 @@
1
+ import { LudeoEvent } from '../../../infra';
2
+ import { CloudResourceContext } from '../../contexts';
3
+ export declare class DetectRuntimeArtifactsRequestPayload {
4
+ machineResourceId: string;
5
+ gameResourceId: string;
6
+ site: string;
7
+ sourceService?: string;
8
+ }
9
+ export declare class DetectRuntimeArtifactsRequest extends LudeoEvent {
10
+ static readonly EVENT_NAME = "site-controller.detect-runtime-artifacts-request";
11
+ constructor(payload: DetectRuntimeArtifactsRequestPayload, context: CloudResourceContext);
12
+ payload: DetectRuntimeArtifactsRequestPayload;
13
+ context: CloudResourceContext;
14
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DetectRuntimeArtifactsRequest = exports.DetectRuntimeArtifactsRequestPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const infra_1 = require("../../../infra");
15
+ const decorators_1 = require("../../../decorators");
16
+ const contexts_1 = require("../../contexts");
17
+ class DetectRuntimeArtifactsRequestPayload {
18
+ }
19
+ exports.DetectRuntimeArtifactsRequestPayload = DetectRuntimeArtifactsRequestPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], DetectRuntimeArtifactsRequestPayload.prototype, "machineResourceId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], DetectRuntimeArtifactsRequestPayload.prototype, "gameResourceId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], DetectRuntimeArtifactsRequestPayload.prototype, "site", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], DetectRuntimeArtifactsRequestPayload.prototype, "sourceService", void 0);
37
+ class DetectRuntimeArtifactsRequest extends infra_1.LudeoEvent {
38
+ constructor(payload, context) {
39
+ super(DetectRuntimeArtifactsRequest.EVENT_NAME);
40
+ this.payload = payload;
41
+ this.context = context;
42
+ }
43
+ }
44
+ exports.DetectRuntimeArtifactsRequest = DetectRuntimeArtifactsRequest;
45
+ DetectRuntimeArtifactsRequest.EVENT_NAME = 'site-controller.detect-runtime-artifacts-request';
46
+ __decorate([
47
+ (0, decorators_1.ValidateNestedType)(() => DetectRuntimeArtifactsRequestPayload),
48
+ __metadata("design:type", DetectRuntimeArtifactsRequestPayload)
49
+ ], DetectRuntimeArtifactsRequest.prototype, "payload", void 0);
50
+ __decorate([
51
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
52
+ __metadata("design:type", contexts_1.CloudResourceContext)
53
+ ], DetectRuntimeArtifactsRequest.prototype, "context", void 0);
54
+ //# sourceMappingURL=detect-runtime-artifacts-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detect-runtime-artifacts-request.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/detect-runtime-artifacts-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,0CAA4C;AAC5C,oDAAyD;AACzD,6CAAsD;AAGtD,MAAa,oCAAoC;CAahD;AAbD,oFAaC;AAXC;IADC,IAAA,wBAAM,GAAE;;+EACiB;AAG1B;IADC,IAAA,wBAAM,GAAE;;4EACc;AAGvB;IADC,IAAA,0BAAQ,GAAE;;kEACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EACY;AAGzB,MAAa,6BAA8B,SAAQ,kBAAU;IAG3D,YAAY,OAA6C,EAAE,OAA6B;QACtF,KAAK,CAAC,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAPH,sEAcC;AAbiB,wCAAU,GAAG,kDAAkD,CAAC;AAShF;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;8BACtD,oCAAoC;8DAAC;AAG9C;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;8DAAC"}
@@ -8,6 +8,7 @@ export * from "./ludeocast-build-distribution-termination-ended";
8
8
  export * from "./ludeocast-build-distribution-copy-ended";
9
9
  export * from "./ludeocast-resource-status-update";
10
10
  export * from "./ludeocast-logs-export-ended";
11
+ export * from "./detect-runtime-artifacts-request";
11
12
  export * from "../base/base";
12
13
  export * from "../base/constants";
13
14
  export * from "./init.command";
@@ -24,6 +24,7 @@ __exportStar(require("./ludeocast-build-distribution-termination-ended"), export
24
24
  __exportStar(require("./ludeocast-build-distribution-copy-ended"), exports);
25
25
  __exportStar(require("./ludeocast-resource-status-update"), exports);
26
26
  __exportStar(require("./ludeocast-logs-export-ended"), exports);
27
+ __exportStar(require("./detect-runtime-artifacts-request"), exports);
27
28
  __exportStar(require("../base/base"), exports);
28
29
  __exportStar(require("../base/constants"), exports);
29
30
  __exportStar(require("./init.command"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,gEAA8C;AAC9C,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,gFAA8D;AAC9D,mFAAiE;AACjE,4EAA0D;AAE1D,qEAAmD;AACnD,gEAA8C;AAG9C,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC;AACtC,6DAA2C;AAC3C,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v4/events/site-controller/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,gEAA8C;AAC9C,kEAAgD;AAChD,qEAAmD;AACnD,wEAAsD;AAEtD,gFAA8D;AAC9D,mFAAiE;AACjE,4EAA0D;AAE1D,qEAAmD;AACnD,gEAA8C;AAC9C,qEAAmD;AAGnD,+CAA6B;AAC7B,oDAAkC;AAClC,iDAA+B;AAC/B,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC;AACtC,6DAA2C;AAC3C,2DAAyC"}
@@ -17,6 +17,7 @@ export declare class RuntimeArtifactsPayload {
17
17
  downloads: ObjectKeyUrlPair[];
18
18
  artifactPrefix: string;
19
19
  artifactKeyParts?: ArtifactKeyParts;
20
+ skipDownload?: boolean;
20
21
  }
21
22
  export declare class ProtonGameCreationPayload {
22
23
  exeRelativePath: string;
@@ -55,6 +55,11 @@ __decorate([
55
55
  (0, decorators_1.ValidateNestedType)(() => ArtifactKeyParts),
56
56
  __metadata("design:type", ArtifactKeyParts)
57
57
  ], RuntimeArtifactsPayload.prototype, "artifactKeyParts", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, class_validator_1.IsBoolean)(),
61
+ __metadata("design:type", Boolean)
62
+ ], RuntimeArtifactsPayload.prototype, "skipDownload", void 0);
58
63
  class ProtonGameCreationPayload {
59
64
  }
60
65
  exports.ProtonGameCreationPayload = ProtonGameCreationPayload;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAIlF,oDAAyD;AACzD,mEAA2D;AAE3D,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAGD,MAAa,gBAAgB;CAS5B;AATD,4CASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;uDACW;AAGtB;IADC,IAAA,0BAAQ,GAAE;;iDACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;uDACW;AAIxB,MAAa,uBAAuB;CAsBnC;AAtBD,0DAsBC;AApBC;IADC,IAAA,0BAAQ,GAAE;;8DACW;AAKtB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wCAAgB,CAAC;;0DACb;AAM9B;IADC,IAAA,0BAAQ,GAAE;;+DACY;AAQvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC;8BACxB,gBAAgB;iEAAC;AAGtC,MAAa,yBAAyB;CA2BrC;AA3BD,8DA2BC;AAzBC;IADC,IAAA,0BAAQ,GAAE;;kEACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iFAC6C;AAIxD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;uEACsB;AAGhC;IADC,IAAA,wBAAM,GAAE;;0DACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACY;AAIvB;IAFC,IA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1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.262",
3
+ "version": "1.2.264-beta-yahil-1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -0,0 +1,36 @@
1
+ import { IsOptional, IsString, IsUUID } from 'class-validator';
2
+ import { LudeoEvent } from '../../../infra';
3
+ import { ValidateNestedType } from '../../../decorators';
4
+ import { CloudResourceContext } from '../../contexts';
5
+
6
+ /** Ask site-controller to MQTT `detect-artifacts` on a running game (artifact paths resolved from game + machine). */
7
+ export class DetectRuntimeArtifactsRequestPayload {
8
+ @IsUUID()
9
+ machineResourceId: string;
10
+
11
+ @IsUUID()
12
+ gameResourceId: string;
13
+
14
+ @IsString()
15
+ site: string;
16
+
17
+ @IsOptional()
18
+ @IsString()
19
+ sourceService?: string;
20
+ }
21
+
22
+ export class DetectRuntimeArtifactsRequest extends LudeoEvent {
23
+ static readonly EVENT_NAME = 'site-controller.detect-runtime-artifacts-request';
24
+
25
+ constructor(payload: DetectRuntimeArtifactsRequestPayload, context: CloudResourceContext) {
26
+ super(DetectRuntimeArtifactsRequest.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+
31
+ @ValidateNestedType(() => DetectRuntimeArtifactsRequestPayload)
32
+ payload: DetectRuntimeArtifactsRequestPayload;
33
+
34
+ @ValidateNestedType(() => CloudResourceContext)
35
+ context: CloudResourceContext;
36
+ }
@@ -10,6 +10,7 @@ export * from "./ludeocast-build-distribution-copy-ended";
10
10
 
11
11
  export * from "./ludeocast-resource-status-update";
12
12
  export * from "./ludeocast-logs-export-ended";
13
+ export * from "./detect-runtime-artifacts-request";
13
14
 
14
15
  //commands
15
16
  export * from "../base/base";
@@ -1,4 +1,4 @@
1
- import { IsString, IsOptional, IsObject, IsArray, IsUUID } from "class-validator";
1
+ import { IsString, IsOptional, IsObject, IsArray, IsUUID, IsBoolean } from "class-validator";
2
2
  import { LudeocastV2Distributions } from "../build";
3
3
  import { MachineResourceSettings } from "../pools";
4
4
  import { LudeoCastV2MachineResourceProviderSettings } from "../cloud";
@@ -46,6 +46,14 @@ export class RuntimeArtifactsPayload {
46
46
  @IsOptional()
47
47
  @ValidateNestedType(() => ArtifactKeyParts)
48
48
  artifactKeyParts?: ArtifactKeyParts;
49
+
50
+ /**
51
+ * When true, the agent must not presign-download `downloads` (bootstrap / empty bucket).
52
+ * Still mounts the bundle path and runs terminate detection against an on-disk seed.
53
+ */
54
+ @IsOptional()
55
+ @IsBoolean()
56
+ skipDownload?: boolean;
49
57
  }
50
58
 
51
59
  export class ProtonGameCreationPayload {