viza 1.7.44 → 1.7.45

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.
@@ -2,5 +2,6 @@ export function registerGlobalOptions(program) {
2
2
  program
3
3
  .option("--status", "Show status only (no execution)")
4
4
  .option("--remove-log", "Remove execution logs after completion", false)
5
- .option("--self-hosted", "Use self-hosted runner (viza-builder)", false);
5
+ .option("--self-hosted", "Use self-hosted runner (viza-builder)", false)
6
+ .option("--cloud-runner", "Use cloud managed runner (GitHub-hosted)", false);
6
7
  }
@@ -1,5 +1,5 @@
1
1
  import { resolveEnv } from "../../../context/env.js";
2
- import { resolveResourceHubIntent } from "../../../context/hubIntent.js";
2
+ import { resolveHubIntent } from "../../../context/hubIntent.js";
3
3
  import { dispatchIntentAndWait } from "../../../core/dispatch.js";
4
4
  /**
5
5
  * Target teams for `viza login aws`.
@@ -29,7 +29,8 @@ const TARGET_TEAMS = {
29
29
  export async function deployCommandHubCommand(options) {
30
30
  // 1) Resolve environment
31
31
  const env = resolveEnv(options);
32
- const intent = resolveResourceHubIntent(env);
32
+ const cloudRunner = options.cloudRunner === true;
33
+ const intent = resolveHubIntent(env, cloudRunner);
33
34
  // Resolve allowed teams
34
35
  // - Dispatch mode: restrict by targetEnv
35
36
  // - Status mode: allow union of all env teams (read-only query)
@@ -27,3 +27,9 @@ export function resolveAppHubIntent(env) {
27
27
  export function resolveRuntimeHubIntent() {
28
28
  return RUNTIME_HUB_INTENT;
29
29
  }
30
+ export function resolveHubIntent(env, cloudRunner) {
31
+ if (cloudRunner) {
32
+ return resolveAppHubIntent(env);
33
+ }
34
+ return resolveResourceHubIntent(env);
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viza",
3
- "version": "1.7.44",
3
+ "version": "1.7.45",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {