@vizamodo/viza-cli 1.2.48 → 1.3.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.
|
@@ -21,7 +21,8 @@ function maybeRenderLog(result, policy) {
|
|
|
21
21
|
async function dispatchIntent(input, mode = "dispatch") {
|
|
22
22
|
const dispatchInput = {
|
|
23
23
|
intent: input.intent,
|
|
24
|
-
|
|
24
|
+
commandType: input.commandType,
|
|
25
|
+
infraKey: input.infraKey,
|
|
25
26
|
payload: input.payload,
|
|
26
27
|
runnerLabel: input.runnerLabel,
|
|
27
28
|
};
|
|
@@ -44,7 +45,7 @@ export async function dispatchIntentAndWait(input, opts = {}) {
|
|
|
44
45
|
const cliVersion = getCliVersion();
|
|
45
46
|
const meta = {
|
|
46
47
|
cliVersion,
|
|
47
|
-
subtitle: input.
|
|
48
|
+
subtitle: input.commandType,
|
|
48
49
|
clearScreen: true,
|
|
49
50
|
};
|
|
50
51
|
showDispatchBanner(input, meta);
|
|
@@ -7,8 +7,9 @@ export async function awsLogin(ctx) {
|
|
|
7
7
|
type: "sso",
|
|
8
8
|
};
|
|
9
9
|
await dispatchIntentAndWait({
|
|
10
|
-
intent: ctx.intent
|
|
11
|
-
|
|
10
|
+
intent: ctx.intent,
|
|
11
|
+
infraKey: "aws",
|
|
12
|
+
commandType: "viza.aws.login",
|
|
12
13
|
targetTeam: ctx.targetTeam,
|
|
13
14
|
runnerLabel: "native",
|
|
14
15
|
payload: plainPayload,
|
|
@@ -20,8 +21,9 @@ export async function awsCreateSsoUrl(ctx) {
|
|
|
20
21
|
provider: "aws",
|
|
21
22
|
};
|
|
22
23
|
await dispatchIntentAndWait({
|
|
23
|
-
intent: ctx.intent
|
|
24
|
-
|
|
24
|
+
intent: ctx.intent,
|
|
25
|
+
infraKey: "aws",
|
|
26
|
+
commandType: "viza.aws.sso-url",
|
|
25
27
|
targetTeam: ctx.targetTeam,
|
|
26
28
|
runnerLabel: "native",
|
|
27
29
|
payload: plainPayload,
|
package/dist/src/ui/banner.js
CHANGED
|
@@ -42,7 +42,7 @@ function pickBannerConfig(targetTeam) {
|
|
|
42
42
|
export function showDispatchBanner(input, meta) {
|
|
43
43
|
const cfg = pickBannerConfig(input.targetTeam);
|
|
44
44
|
// Default subtitle: event type (or caller-provided subtitle)
|
|
45
|
-
const subtitle = meta?.subtitle ?? `Command: ${input.
|
|
45
|
+
const subtitle = meta?.subtitle ?? `Command: ${input.commandType}`;
|
|
46
46
|
showBanner({
|
|
47
47
|
title: cfg.title,
|
|
48
48
|
subtitle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizamodo/viza-cli",
|
|
3
|
-
"version": "1.2
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Viza unified command line interface",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"release:prod": "rm -rf dist && npx npm-check-updates -u && npm install && git add package.json package-lock.json && git commit -m 'chore(deps): auto update dependencies before release' || echo 'No changes' && node versioning.js && npm login && npm publish --tag latest --access public && git push"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vizamodo/viza-dispatcher": "^1.4.
|
|
19
|
+
"@vizamodo/viza-dispatcher": "^1.4.53",
|
|
20
20
|
"adm-zip": "^0.5.16",
|
|
21
21
|
"chalk": "^5.6.2",
|
|
22
22
|
"commander": "^14.0.2",
|