@pmate/cli 0.24.22 → 0.24.24

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/index.js +10 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10145,12 +10145,10 @@ var LoginCommandHandler = class {
10145
10145
  return input.profiles[0].id;
10146
10146
  }
10147
10147
  if (!process.stdin.isTTY || !process.stdout.isTTY) {
10148
- const selected = input.profiles[0];
10149
- ui.warn("Multiple profiles found; non-interactive login selected the first profile.", {
10150
- app: input.appId,
10151
- profileId: selected.id
10152
- });
10153
- return selected.id;
10148
+ const profileIds = input.profiles.map((profile) => profile.id).join(", ");
10149
+ throw new Error(
10150
+ `Multiple profiles found for app ${input.appId}. Run "pmate login --app ${input.appId} --profile-id <id>" with one of: ${profileIds}`
10151
+ );
10154
10152
  }
10155
10153
  ui.info(`Multiple profiles found for ${input.appId}. Select one:`);
10156
10154
  input.profiles.forEach((profile, index) => {
@@ -18479,6 +18477,9 @@ var AppCommandHandler = class {
18479
18477
  ui.plain(` ${name}: ${value}`);
18480
18478
  }
18481
18479
  }
18480
+ if (record.splash?.image) {
18481
+ ui.plain(`Splash: ${record.splash.image}`);
18482
+ }
18482
18483
  if (record.deploys && Object.keys(record.deploys).length > 0) {
18483
18484
  ui.plain("Deploys:");
18484
18485
  for (const [platform, serviceRef] of Object.entries(record.deploys)) {
@@ -18896,7 +18897,9 @@ var ServiceRuntimeRunner = class {
18896
18897
  exposeType: "internal",
18897
18898
  repository: String(deploy.repository ?? ""),
18898
18899
  dir: String(deploy.dir ?? ""),
18899
- server: String(deploy.server ?? "")
18900
+ server: String(deploy.server ?? ""),
18901
+ ...deploy.domain ? { domain: deploy.domain } : {},
18902
+ ...deploy.subdomain ? { subdomain: deploy.subdomain } : {}
18900
18903
  };
18901
18904
  }
18902
18905
  const exposeType = deploy.serviceType === "ws" ? "websocket" : "rest";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/cli",
3
- "version": "0.24.22",
3
+ "version": "0.24.24",
4
4
  "description": "CLI utilities for the pMate project",
5
5
  "license": "MIT",
6
6
  "bin": {