infra-kit 0.1.72 → 0.1.74
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.
- package/dist/cli.js +29 -15
- package/dist/cli.js.map +4 -4
- package/dist/mcp.js +32 -19
- package/dist/mcp.js.map +4 -4
- package/package.json +5 -5
- package/src/commands/doctor/doctor.ts +105 -0
- package/src/commands/doctor/index.ts +1 -0
- package/src/commands/env-clear/env-clear.ts +99 -0
- package/src/commands/env-clear/index.ts +1 -0
- package/src/commands/env-list/env-list.ts +50 -0
- package/src/commands/env-list/index.ts +1 -0
- package/src/commands/env-load/env-load.ts +94 -0
- package/src/commands/env-load/index.ts +1 -0
- package/src/commands/env-status/env-status.ts +97 -0
- package/src/commands/env-status/index.ts +1 -0
- package/src/entry/cli.ts +40 -3
- package/src/integrations/doppler/doppler-cli-auth.ts +25 -0
- package/src/integrations/doppler/doppler-project.ts +23 -0
- package/src/integrations/doppler/index.ts +2 -0
- package/src/lib/constants.ts +18 -0
- package/src/lib/load-env/load-env.ts +1 -0
- package/src/mcp/tools/index.ts +8 -0
- package/src/integrations/acli/acli-auth/acli-auth.ts +0 -25
- package/src/integrations/acli/acli-auth/index.ts +0 -1
- package/src/integrations/acli/index.ts +0 -1
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import process from 'node:process'
|
|
2
|
-
import { $ } from 'zx'
|
|
3
|
-
|
|
4
|
-
import { logger } from 'src/lib/logger'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Validate Atlassian CLI installation and authentication status and throw an error if not valid
|
|
8
|
-
*/
|
|
9
|
-
export const validateAtlassianCliAndAuth = async () => {
|
|
10
|
-
try {
|
|
11
|
-
await $`acli --version`
|
|
12
|
-
} catch (error: unknown) {
|
|
13
|
-
logger.error({ error }, 'Error: Atlassian CLI (atlassian) is not installed.')
|
|
14
|
-
logger.error('Please install it from: https://developer.atlassian.com/cloud/acli/guides/install-macos/')
|
|
15
|
-
process.exit(1)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
try {
|
|
19
|
-
await $`gh auth status`
|
|
20
|
-
} catch (error: unknown) {
|
|
21
|
-
logger.error({ error }, 'Error: GitHub CLI (gh) is not authenticated.')
|
|
22
|
-
logger.error('Please authenticate it from: https://cli.github.com/manual/gh_auth_login or type "gh auth login"')
|
|
23
|
-
process.exit(1)
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { validateAtlassianCliAndAuth } from './acli-auth'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { validateAtlassianCliAndAuth } from './acli-auth'
|