@ganakailabs/cloudeval-cli 0.18.4
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/LICENSE +77 -0
- package/NOTICE +10 -0
- package/README.md +23 -0
- package/THIRD_PARTY_NOTICES.md +124 -0
- package/dist/App-64BACPSQ.js +7023 -0
- package/dist/Banner-BIUMDX72.js +12 -0
- package/dist/Onboarding-HVCYIPTL.js +8 -0
- package/dist/ReportDashboard-6JFJJVRW.js +229 -0
- package/dist/chunk-3DVPEIVB.js +185 -0
- package/dist/chunk-4QIKW5TJ.js +3472 -0
- package/dist/chunk-GY4W535V.js +131 -0
- package/dist/chunk-RQ2GBK43.js +6 -0
- package/dist/chunk-TA4WC462.js +174 -0
- package/dist/chunk-UOCT7M4J.js +43 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.js +14026 -0
- package/dist/dist-I4IPYCRC.js +144 -0
- package/package.json +108 -0
- package/sbom.spdx.json +1627 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentProfileRequestError,
|
|
3
|
+
BUNDLED_AGENT_PROFILES,
|
|
4
|
+
SECRET_REDACTION,
|
|
5
|
+
assertSecureBaseUrl,
|
|
6
|
+
buildQuickProjectPayload,
|
|
7
|
+
checkUserStatus,
|
|
8
|
+
clearAuthSession,
|
|
9
|
+
completeActiveAssistantMessage,
|
|
10
|
+
completeOnboarding,
|
|
11
|
+
createCredential,
|
|
12
|
+
createQuickProject,
|
|
13
|
+
createTopUpCheckoutSession,
|
|
14
|
+
ensureDefaultProject,
|
|
15
|
+
ensurePlaygroundProject,
|
|
16
|
+
extractEmailFromToken,
|
|
17
|
+
fetchReportResource,
|
|
18
|
+
getAccessibleProjects,
|
|
19
|
+
getAgentProfile,
|
|
20
|
+
getAuthHeader,
|
|
21
|
+
getAuthStatus,
|
|
22
|
+
getAuthToken,
|
|
23
|
+
getBillingConfig,
|
|
24
|
+
getBillingEntitlement,
|
|
25
|
+
getBillingNotifications,
|
|
26
|
+
getBillingUsageLedger,
|
|
27
|
+
getBillingUsageSummary,
|
|
28
|
+
getBundledAgentProfile,
|
|
29
|
+
getBundledAgentProfiles,
|
|
30
|
+
getCLIHeaders,
|
|
31
|
+
getCapabilities,
|
|
32
|
+
getConnection,
|
|
33
|
+
getCostReport,
|
|
34
|
+
getCostReportFull,
|
|
35
|
+
getCostReportHistory,
|
|
36
|
+
getCredential,
|
|
37
|
+
getCredentialTemplates,
|
|
38
|
+
getCreditStatus,
|
|
39
|
+
getIdentity,
|
|
40
|
+
getProjects,
|
|
41
|
+
getReport,
|
|
42
|
+
getReportDetail,
|
|
43
|
+
getReportJobStatus,
|
|
44
|
+
getSubscriptionBillingInfo,
|
|
45
|
+
getSubscriptionStatus,
|
|
46
|
+
getTopUpPacks,
|
|
47
|
+
getWafReport,
|
|
48
|
+
getWafReportFull,
|
|
49
|
+
getWafReportHistory,
|
|
50
|
+
initialChatState,
|
|
51
|
+
isAgentProfileAuthRequiredError,
|
|
52
|
+
isAgentProfileDiscoveryFallbackError,
|
|
53
|
+
isAuthLookupFailure,
|
|
54
|
+
isSensitiveSecretKey,
|
|
55
|
+
listAgentProfiles,
|
|
56
|
+
listConnections,
|
|
57
|
+
listCredentials,
|
|
58
|
+
listReports,
|
|
59
|
+
login,
|
|
60
|
+
loginWithDeviceCode,
|
|
61
|
+
logout,
|
|
62
|
+
normalizeApiBase,
|
|
63
|
+
normalizeReportEnvelope,
|
|
64
|
+
normalizeReportList,
|
|
65
|
+
parseTemplateUrl,
|
|
66
|
+
redactSensitiveSecrets,
|
|
67
|
+
redactSensitiveText,
|
|
68
|
+
reduceChunk,
|
|
69
|
+
revokeCredential,
|
|
70
|
+
runReports,
|
|
71
|
+
streamChat
|
|
72
|
+
} from "./chunk-4QIKW5TJ.js";
|
|
73
|
+
export {
|
|
74
|
+
AgentProfileRequestError,
|
|
75
|
+
BUNDLED_AGENT_PROFILES,
|
|
76
|
+
SECRET_REDACTION,
|
|
77
|
+
assertSecureBaseUrl,
|
|
78
|
+
buildQuickProjectPayload,
|
|
79
|
+
checkUserStatus,
|
|
80
|
+
clearAuthSession,
|
|
81
|
+
completeActiveAssistantMessage,
|
|
82
|
+
completeOnboarding,
|
|
83
|
+
createCredential,
|
|
84
|
+
createQuickProject,
|
|
85
|
+
createTopUpCheckoutSession,
|
|
86
|
+
ensureDefaultProject,
|
|
87
|
+
ensurePlaygroundProject,
|
|
88
|
+
extractEmailFromToken,
|
|
89
|
+
fetchReportResource,
|
|
90
|
+
getAccessibleProjects,
|
|
91
|
+
getAgentProfile,
|
|
92
|
+
getAuthHeader,
|
|
93
|
+
getAuthStatus,
|
|
94
|
+
getAuthToken,
|
|
95
|
+
getBillingConfig,
|
|
96
|
+
getBillingEntitlement,
|
|
97
|
+
getBillingNotifications,
|
|
98
|
+
getBillingUsageLedger,
|
|
99
|
+
getBillingUsageSummary,
|
|
100
|
+
getBundledAgentProfile,
|
|
101
|
+
getBundledAgentProfiles,
|
|
102
|
+
getCLIHeaders,
|
|
103
|
+
getCapabilities,
|
|
104
|
+
getConnection,
|
|
105
|
+
getCostReport,
|
|
106
|
+
getCostReportFull,
|
|
107
|
+
getCostReportHistory,
|
|
108
|
+
getCredential,
|
|
109
|
+
getCredentialTemplates,
|
|
110
|
+
getCreditStatus,
|
|
111
|
+
getIdentity,
|
|
112
|
+
getProjects,
|
|
113
|
+
getReport,
|
|
114
|
+
getReportDetail,
|
|
115
|
+
getReportJobStatus,
|
|
116
|
+
getSubscriptionBillingInfo,
|
|
117
|
+
getSubscriptionStatus,
|
|
118
|
+
getTopUpPacks,
|
|
119
|
+
getWafReport,
|
|
120
|
+
getWafReportFull,
|
|
121
|
+
getWafReportHistory,
|
|
122
|
+
initialChatState,
|
|
123
|
+
isAgentProfileAuthRequiredError,
|
|
124
|
+
isAgentProfileDiscoveryFallbackError,
|
|
125
|
+
isAuthLookupFailure,
|
|
126
|
+
isSensitiveSecretKey,
|
|
127
|
+
listAgentProfiles,
|
|
128
|
+
listConnections,
|
|
129
|
+
listCredentials,
|
|
130
|
+
listReports,
|
|
131
|
+
login,
|
|
132
|
+
loginWithDeviceCode,
|
|
133
|
+
logout,
|
|
134
|
+
normalizeApiBase,
|
|
135
|
+
normalizeReportEnvelope,
|
|
136
|
+
normalizeReportList,
|
|
137
|
+
parseTemplateUrl,
|
|
138
|
+
redactSensitiveSecrets,
|
|
139
|
+
redactSensitiveText,
|
|
140
|
+
reduceChunk,
|
|
141
|
+
revokeCredential,
|
|
142
|
+
runReports,
|
|
143
|
+
streamChat
|
|
144
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ganakailabs/cloudeval-cli",
|
|
3
|
+
"version": "0.18.4",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "CloudEval terminal, automation, and MCP CLI.",
|
|
7
|
+
"homepage": "https://docs.cloudeval.ai/reference/cli-overview",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/ganakailabs/cloudeval-cli.git",
|
|
11
|
+
"directory": "packages/cli"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/ganakailabs/cloudeval-cli/issues"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"bin": {
|
|
20
|
+
"cloudeval": "dist/cli.js",
|
|
21
|
+
"cloud": "dist/cli.js",
|
|
22
|
+
"eva": "dist/cli.js"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"README.md",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"NOTICE",
|
|
29
|
+
"THIRD_PARTY_NOTICES.md",
|
|
30
|
+
"sbom.spdx.json"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"prepack": "node ../../scripts/prepare-npm-package.mjs",
|
|
34
|
+
"postpack": "node ../../scripts/cleanup-npm-package.mjs",
|
|
35
|
+
"build": "pnpm -C ../shared build && pnpm -C ../core build && tsup",
|
|
36
|
+
"build:standalone": "tsup --minify",
|
|
37
|
+
"build:executable": "pnpm build:executable-bundle && pnpm exec pkg dist/cli.executable.js --targets node18-macos-x64,node18-macos-arm64,node18-linux-x64,node18-linux-arm64,node18-win-x64 --output dist/bin/cloudeval && node scripts/alias-executables.js",
|
|
38
|
+
"build:executable:current": "pnpm -C ../shared build && pnpm -C ../core build && node scripts/patch-yoga-wasm.js && YOGA_WASM=$(node scripts/prepare-yoga-wasm.js) && bun build src/cli.tsx --compile --outfile dist/bin/cloudeval && cp \"$YOGA_WASM\" dist/bin/yoga.wasm && rm -f \"$YOGA_WASM\" && node scripts/alias-executables.js",
|
|
39
|
+
"build:executable-bundle": "tsup --config tsup.executable.config.ts",
|
|
40
|
+
"build:executable:bun": "pnpm -C ../shared build && pnpm -C ../core build && node scripts/patch-yoga-wasm.js && node scripts/prepare-yoga-wasm.js && bun build src/cli.tsx --compile --outfile dist/bin/cloudeval && cp yoga.wasm dist/bin/yoga.wasm && rm -f yoga.wasm",
|
|
41
|
+
"build:executable:ncc": "pnpm build && pnpm exec ncc build dist/cli.js -o dist/ncc -m && pnpm exec pkg dist/ncc/index.js --targets node18-macos-arm64 --output-path dist/bin",
|
|
42
|
+
"docker:build": "docker build -t cloudeval-cli -f Dockerfile ../../",
|
|
43
|
+
"docker:run": "docker run -it --rm cloudeval-cli",
|
|
44
|
+
"run": "node dist/cli.js",
|
|
45
|
+
"dev": "tsx src/cli.tsx",
|
|
46
|
+
"lint": "pnpm -C ../shared build && pnpm -C ../core build && tsc --noEmit -p tsconfig.json",
|
|
47
|
+
"test": "pnpm -C ../shared build && pnpm -C ../core build && tsx --test src/askProgress.test.ts src/hitlPrompt.test.ts src/baseUrl.test.ts src/frontendLinks.test.ts src/outputFormatter.test.ts src/localHooks.test.ts src/projectDiagramImage.test.ts src/loginOnboardingMode.test.ts src/runtime/prepareInk.test.ts src/ui/animationPolicy.test.ts src/ui/components/Banner.test.ts src/ui/components/InputBox.test.ts src/ui/components/Transcript.test.ts src/ui/billingSummary.test.ts src/ui/inputSanitizer.test.ts src/ui/inputViewport.test.ts src/ui/keyBindings.test.ts src/ui/layout.test.ts src/ui/scrollBehavior.test.ts src/ui/promptSuggestions.test.ts src/ui/commandCompletion.test.ts src/ui/interactionModel.test.ts src/ui/userDisplayName.test.ts src/ui/workspaceTabs.test.ts src/ui/workspaceDataStore.test.ts src/ui/overviewDashboard.test.ts src/ui/reportsDashboard.test.ts src/completionEngine.test.ts src/shellCompletion.test.ts src/updateCommand.test.ts src/mcpSetupCommand.test.ts src/mcpCommand.test.ts src/sessionsStore.test.ts src/recipes/catalog.test.ts src/reports/reportRender.test.ts src/reports/reportCommand.test.ts",
|
|
48
|
+
"test:cli:noninteractive": "pnpm -C ../shared build && pnpm -C ../core build && tsx --test src/nonInteractiveCli.test.ts",
|
|
49
|
+
"test:cli:noninteractive:packaged": "pnpm build:executable:current && CLOUDEVAL_CLI_BIN=./dist/bin/cloudeval pnpm test:cli:noninteractive",
|
|
50
|
+
"test:cli:noninteractive:live": "pnpm build:executable:current && CLOUDEVAL_CLI_BIN=./dist/bin/cloudeval tsx --test src/liveNonInteractiveCli.test.ts",
|
|
51
|
+
"bundle": "pnpm build:standalone && pnpm pack --pack-destination ./dist"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"asciichart": "^1.5.25",
|
|
55
|
+
"cli-highlight": "^2.1.11",
|
|
56
|
+
"commander": "^12.1.0",
|
|
57
|
+
"ink": "^4.4.1",
|
|
58
|
+
"ink-scroll-view": "^0.3.6",
|
|
59
|
+
"ink-spinner": "^4.0.0",
|
|
60
|
+
"ink-syntax-highlight": "^2.0.2",
|
|
61
|
+
"ink-text-input": "^5.0.1",
|
|
62
|
+
"marked": "^17.0.1",
|
|
63
|
+
"marked-terminal": "^7.3.0",
|
|
64
|
+
"react": "^18.3.1",
|
|
65
|
+
"react-devtools-core": "^4.28.5",
|
|
66
|
+
"sql.js": "^1.14.1"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@cloudeval/core": "workspace:*",
|
|
70
|
+
"@cloudeval/shared": "workspace:*",
|
|
71
|
+
"@types/asciichart": "^1.5.8",
|
|
72
|
+
"@types/node": "^20.14.11",
|
|
73
|
+
"@types/react": "^18.3.11",
|
|
74
|
+
"@types/sql.js": "^1.4.11",
|
|
75
|
+
"@vercel/ncc": "^0.38.1",
|
|
76
|
+
"pkg": "^5.8.1",
|
|
77
|
+
"tsup": "^8.3.0",
|
|
78
|
+
"tsx": "^4.15.7",
|
|
79
|
+
"typescript": "^5.6.3"
|
|
80
|
+
},
|
|
81
|
+
"pkg": {
|
|
82
|
+
"scripts": [
|
|
83
|
+
"dist/cli.executable.js",
|
|
84
|
+
"node_modules/ink/**/*.js",
|
|
85
|
+
"node_modules/react/**/*.js",
|
|
86
|
+
"node_modules/commander/**/*.js",
|
|
87
|
+
"node_modules/.pnpm/**/node_modules/ink/**/*.js",
|
|
88
|
+
"node_modules/.pnpm/**/node_modules/react/**/*.js",
|
|
89
|
+
"node_modules/.pnpm/**/node_modules/commander/**/*.js"
|
|
90
|
+
],
|
|
91
|
+
"assets": [
|
|
92
|
+
"node_modules/ink/**/*",
|
|
93
|
+
"node_modules/react/**/*",
|
|
94
|
+
"node_modules/commander/**/*",
|
|
95
|
+
"node_modules/.pnpm/**/node_modules/ink/**/*",
|
|
96
|
+
"node_modules/.pnpm/**/node_modules/react/**/*",
|
|
97
|
+
"node_modules/.pnpm/**/node_modules/commander/**/*"
|
|
98
|
+
],
|
|
99
|
+
"targets": [
|
|
100
|
+
"node18-macos-x64",
|
|
101
|
+
"node18-macos-arm64",
|
|
102
|
+
"node18-linux-x64",
|
|
103
|
+
"node18-linux-arm64",
|
|
104
|
+
"node18-win-x64"
|
|
105
|
+
],
|
|
106
|
+
"outputPath": "dist/bin"
|
|
107
|
+
}
|
|
108
|
+
}
|