@vizamodo/viza-cli 1.3.32 → 1.3.36
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.
|
@@ -8,7 +8,6 @@ import { dispatchIntentAndWait } from "../../core/dispatch.js";
|
|
|
8
8
|
*/
|
|
9
9
|
const TARGET_TEAMS = {
|
|
10
10
|
"dev": [
|
|
11
|
-
"viza-deployer",
|
|
12
11
|
"viza-billing",
|
|
13
12
|
"viza-manager",
|
|
14
13
|
"viza-admin",
|
|
@@ -40,8 +39,8 @@ export async function loginAwsCommand(options) {
|
|
|
40
39
|
intent,
|
|
41
40
|
commandType: "viza.aws.login",
|
|
42
41
|
infraKey: "aws",
|
|
43
|
-
env,
|
|
44
|
-
|
|
42
|
+
targetEnv: env,
|
|
43
|
+
allowedTeams: TARGET_TEAMS[env],
|
|
45
44
|
runnerLabel: options.runnerLabel,
|
|
46
45
|
keepLog: options.keepLog === true,
|
|
47
46
|
flowGates: {
|
|
@@ -30,8 +30,8 @@ async function dispatchIntent(input, mode = "dispatch") {
|
|
|
30
30
|
};
|
|
31
31
|
const handle = await dispatcherDispatch(dispatchInput, {
|
|
32
32
|
auth: {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
targetEnv: input.targetEnv,
|
|
34
|
+
allowedTeams: input.allowedTeams,
|
|
35
35
|
},
|
|
36
36
|
}, mode);
|
|
37
37
|
return handle;
|
package/dist/src/ui/banner.js
CHANGED
|
@@ -18,7 +18,7 @@ function pickBannerConfig(env) {
|
|
|
18
18
|
* Maps targetTeam -> title/color/env, and renders meta (github login + viza-cli version).
|
|
19
19
|
*/
|
|
20
20
|
export function showDispatchBanner(input, meta) {
|
|
21
|
-
const cfg = pickBannerConfig(input.
|
|
21
|
+
const cfg = pickBannerConfig(input.targetEnv);
|
|
22
22
|
// Default subtitle: commandType (or caller-provided subtitle)
|
|
23
23
|
const subtitle = `Command: ${input.commandType}`;
|
|
24
24
|
showBanner({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizamodo/viza-cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.36",
|
|
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.73",
|
|
20
20
|
"adm-zip": "^0.5.16",
|
|
21
21
|
"chalk": "^5.6.2",
|
|
22
22
|
"commander": "^14.0.2",
|