relayrunner 0.9.1 → 0.9.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -54,7 +54,11 @@ const HelloMessage = z.object({
54
54
  isolated: z.object({
55
55
  os,
56
56
  arch: arch$1
57
- }).optional()
57
+ }).optional(),
58
+ vm: z.object({
59
+ cpus: z.number().int().positive().max(1e4),
60
+ memoryGb: z.number().int().positive().max(1e5)
61
+ }).optional().catch(void 0)
58
62
  });
59
63
  const StatusMessage = z.object({
60
64
  v: version$1,
@@ -170,7 +174,7 @@ function parse(version) {
170
174
  ] : null;
171
175
  }
172
176
  // version.ts
173
- const cliVersion = "0.9.1";
177
+ const cliVersion = "0.9.2";
174
178
  // paths.ts
175
179
  function relayrunnerHome() {
176
180
  return resolve(process.env.RELAYRUNNER_HOME || join(homedir(), ".relayrunner"));
@@ -3323,6 +3327,7 @@ async function connectMachine(args) {
3323
3327
  let launchers = [];
3324
3328
  let vmLauncher;
3325
3329
  let isolatedOnly;
3330
+ let vmSize;
3326
3331
  if (isolated) {
3327
3332
  const firewall = firewallInstalled();
3328
3333
  if (firewall) log(args["local-network"] ? "The firewall on this Mac is on, so --local-network has no effect. Turn it off with `relayrunner firewall off`." : "The firewall on this Mac is on.");
@@ -3335,6 +3340,10 @@ async function connectMachine(args) {
3335
3340
  debug: debugLog()
3336
3341
  });
3337
3342
  runnerVersion = isolation.runnerVersion;
3343
+ vmSize = {
3344
+ cpus: isolation.cpus,
3345
+ memoryGb: isolation.memoryGb
3346
+ };
3338
3347
  const launcher = isolatedLauncher(isolation);
3339
3348
  if (args.macos) vmLauncher = launcher;
3340
3349
  else {
@@ -3385,7 +3394,8 @@ async function connectMachine(args) {
3385
3394
  ...platform,
3386
3395
  runnerVersion,
3387
3396
  cliVersion,
3388
- device
3397
+ device,
3398
+ ...vmSize && { vm: vmSize }
3389
3399
  },
3390
3400
  slots,
3391
3401
  runJob: async (run, slot, report) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "relayrunner",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Run GitHub Actions jobs on your machine through the RelayRunner gateway.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {