@agents-at-scale/ark 0.1.35-rc1 → 0.1.35
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/commands/cluster/index.d.ts +1 -2
- package/dist/commands/cluster/index.js +5 -3
- package/dist/commands/completion.js +2 -159
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.js +321 -38
- package/dist/commands/generate/config.js +24 -5
- package/dist/commands/generate/generators/agent.js +2 -2
- package/dist/commands/generate/generators/mcpserver.d.ts +1 -2
- package/dist/commands/generate/generators/mcpserver.js +5 -26
- package/dist/commands/generate/generators/project.js +41 -22
- package/dist/commands/generate/generators/team.js +2 -2
- package/dist/commands/generate/index.d.ts +1 -2
- package/dist/commands/generate/index.js +1 -1
- package/dist/components/statusChecker.d.ts +23 -13
- package/dist/components/statusChecker.js +129 -275
- package/dist/config.d.ts +22 -3
- package/dist/config.js +161 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -40
- package/dist/lib/cluster.d.ts +1 -2
- package/dist/lib/cluster.js +16 -37
- package/dist/lib/config.d.ts +80 -26
- package/dist/lib/config.js +205 -70
- package/dist/lib/consts.d.ts +1 -0
- package/dist/lib/consts.js +2 -0
- package/dist/lib/errors.js +1 -1
- package/dist/lib/exec.d.ts +4 -0
- package/dist/lib/exec.js +11 -0
- package/dist/lib/types.d.ts +3 -10
- package/dist/ui/MainMenu.d.ts +1 -5
- package/dist/ui/MainMenu.js +91 -222
- package/dist/ui/statusFormatter.d.ts +7 -22
- package/dist/ui/statusFormatter.js +39 -39
- package/package.json +5 -17
- package/dist/arkServices.d.ts +0 -42
- package/dist/arkServices.js +0 -138
- package/dist/arkServices.spec.d.ts +0 -1
- package/dist/arkServices.spec.js +0 -24
- package/dist/charts/charts.d.ts +0 -5
- package/dist/charts/charts.js +0 -6
- package/dist/charts/dependencies.d.ts +0 -6
- package/dist/charts/dependencies.js +0 -50
- package/dist/charts/types.d.ts +0 -40
- package/dist/charts/types.js +0 -1
- package/dist/commands/agents/index.d.ts +0 -3
- package/dist/commands/agents/index.js +0 -51
- package/dist/commands/agents/index.spec.d.ts +0 -1
- package/dist/commands/agents/index.spec.js +0 -67
- package/dist/commands/agents/selector.d.ts +0 -8
- package/dist/commands/agents/selector.js +0 -53
- package/dist/commands/agents.d.ts +0 -2
- package/dist/commands/agents.js +0 -53
- package/dist/commands/chat/index.d.ts +0 -3
- package/dist/commands/chat/index.js +0 -29
- package/dist/commands/chat.d.ts +0 -2
- package/dist/commands/chat.js +0 -45
- package/dist/commands/cluster/get.d.ts +0 -2
- package/dist/commands/cluster/get.js +0 -39
- package/dist/commands/cluster/get.spec.d.ts +0 -1
- package/dist/commands/cluster/get.spec.js +0 -92
- package/dist/commands/cluster/index.spec.d.ts +0 -1
- package/dist/commands/cluster/index.spec.js +0 -24
- package/dist/commands/completion/index.d.ts +0 -3
- package/dist/commands/completion/index.js +0 -268
- package/dist/commands/completion/index.spec.d.ts +0 -1
- package/dist/commands/completion/index.spec.js +0 -34
- package/dist/commands/config/index.d.ts +0 -3
- package/dist/commands/config/index.js +0 -42
- package/dist/commands/config/index.spec.d.ts +0 -1
- package/dist/commands/config/index.spec.js +0 -78
- package/dist/commands/dashboard/index.d.ts +0 -4
- package/dist/commands/dashboard/index.js +0 -39
- package/dist/commands/dashboard.d.ts +0 -3
- package/dist/commands/dashboard.js +0 -39
- package/dist/commands/dev/index.d.ts +0 -3
- package/dist/commands/dev/index.js +0 -9
- package/dist/commands/dev/tool/check.d.ts +0 -2
- package/dist/commands/dev/tool/check.js +0 -142
- package/dist/commands/dev/tool/clean.d.ts +0 -2
- package/dist/commands/dev/tool/clean.js +0 -153
- package/dist/commands/dev/tool/generate.d.ts +0 -2
- package/dist/commands/dev/tool/generate.js +0 -28
- package/dist/commands/dev/tool/index.d.ts +0 -2
- package/dist/commands/dev/tool/index.js +0 -14
- package/dist/commands/dev/tool/init.d.ts +0 -2
- package/dist/commands/dev/tool/init.js +0 -320
- package/dist/commands/dev/tool/shared.d.ts +0 -5
- package/dist/commands/dev/tool/shared.js +0 -256
- package/dist/commands/dev/tool/status.d.ts +0 -2
- package/dist/commands/dev/tool/status.js +0 -136
- package/dist/commands/dev/tool-generate.spec.d.ts +0 -1
- package/dist/commands/dev/tool-generate.spec.js +0 -163
- package/dist/commands/dev/tool.d.ts +0 -2
- package/dist/commands/dev/tool.js +0 -559
- package/dist/commands/dev/tool.spec.d.ts +0 -1
- package/dist/commands/dev/tool.spec.js +0 -48
- package/dist/commands/install/index.d.ts +0 -8
- package/dist/commands/install/index.js +0 -302
- package/dist/commands/install/index.spec.d.ts +0 -1
- package/dist/commands/install/index.spec.js +0 -135
- package/dist/commands/install.d.ts +0 -3
- package/dist/commands/install.js +0 -147
- package/dist/commands/models/create.d.ts +0 -1
- package/dist/commands/models/create.js +0 -213
- package/dist/commands/models/create.spec.d.ts +0 -1
- package/dist/commands/models/create.spec.js +0 -125
- package/dist/commands/models/index.d.ts +0 -3
- package/dist/commands/models/index.js +0 -60
- package/dist/commands/models/index.spec.d.ts +0 -1
- package/dist/commands/models/index.spec.js +0 -76
- package/dist/commands/models/selector.d.ts +0 -8
- package/dist/commands/models/selector.js +0 -53
- package/dist/commands/routes/index.d.ts +0 -3
- package/dist/commands/routes/index.js +0 -93
- package/dist/commands/routes.d.ts +0 -2
- package/dist/commands/routes.js +0 -101
- package/dist/commands/status/index.d.ts +0 -4
- package/dist/commands/status/index.js +0 -232
- package/dist/commands/status.d.ts +0 -3
- package/dist/commands/status.js +0 -33
- package/dist/commands/targets/index.d.ts +0 -3
- package/dist/commands/targets/index.js +0 -65
- package/dist/commands/targets/index.spec.d.ts +0 -1
- package/dist/commands/targets/index.spec.js +0 -105
- package/dist/commands/targets.d.ts +0 -2
- package/dist/commands/targets.js +0 -65
- package/dist/commands/teams/index.d.ts +0 -3
- package/dist/commands/teams/index.js +0 -49
- package/dist/commands/teams/index.spec.d.ts +0 -1
- package/dist/commands/teams/index.spec.js +0 -70
- package/dist/commands/teams/selector.d.ts +0 -8
- package/dist/commands/teams/selector.js +0 -55
- package/dist/commands/tools/index.d.ts +0 -3
- package/dist/commands/tools/index.js +0 -49
- package/dist/commands/tools/index.spec.d.ts +0 -1
- package/dist/commands/tools/index.spec.js +0 -70
- package/dist/commands/tools/selector.d.ts +0 -8
- package/dist/commands/tools/selector.js +0 -53
- package/dist/commands/uninstall/index.d.ts +0 -3
- package/dist/commands/uninstall/index.js +0 -107
- package/dist/commands/uninstall/index.spec.d.ts +0 -1
- package/dist/commands/uninstall/index.spec.js +0 -117
- package/dist/commands/uninstall.d.ts +0 -2
- package/dist/commands/uninstall.js +0 -83
- package/dist/components/ChatUI.d.ts +0 -16
- package/dist/components/ChatUI.js +0 -801
- package/dist/components/StatusView.d.ts +0 -10
- package/dist/components/StatusView.js +0 -39
- package/dist/lib/arkApiClient.d.ts +0 -53
- package/dist/lib/arkApiClient.js +0 -102
- package/dist/lib/arkApiProxy.d.ts +0 -9
- package/dist/lib/arkApiProxy.js +0 -22
- package/dist/lib/arkServiceProxy.d.ts +0 -14
- package/dist/lib/arkServiceProxy.js +0 -95
- package/dist/lib/arkStatus.d.ts +0 -10
- package/dist/lib/arkStatus.js +0 -79
- package/dist/lib/arkStatus.spec.d.ts +0 -1
- package/dist/lib/arkStatus.spec.js +0 -49
- package/dist/lib/chatClient.d.ts +0 -33
- package/dist/lib/chatClient.js +0 -99
- package/dist/lib/cluster.spec.d.ts +0 -1
- package/dist/lib/cluster.spec.js +0 -338
- package/dist/lib/commandUtils.d.ts +0 -4
- package/dist/lib/commandUtils.js +0 -18
- package/dist/lib/commandUtils.test.d.ts +0 -1
- package/dist/lib/commandUtils.test.js +0 -44
- package/dist/lib/commands.d.ts +0 -16
- package/dist/lib/commands.js +0 -29
- package/dist/lib/commands.spec.d.ts +0 -1
- package/dist/lib/commands.spec.js +0 -146
- package/dist/lib/config.spec.d.ts +0 -1
- package/dist/lib/config.spec.js +0 -99
- package/dist/lib/config.test.d.ts +0 -1
- package/dist/lib/config.test.js +0 -93
- package/dist/lib/consts.spec.d.ts +0 -1
- package/dist/lib/consts.spec.js +0 -15
- package/dist/lib/dev/tools/analyzer.d.ts +0 -30
- package/dist/lib/dev/tools/analyzer.js +0 -190
- package/dist/lib/dev/tools/discover_tools.py +0 -392
- package/dist/lib/dev/tools/mcp-types.d.ts +0 -28
- package/dist/lib/dev/tools/mcp-types.js +0 -86
- package/dist/lib/dev/tools/types.d.ts +0 -50
- package/dist/lib/dev/tools/types.js +0 -1
- package/dist/lib/errors.spec.d.ts +0 -1
- package/dist/lib/errors.spec.js +0 -221
- package/dist/lib/output.d.ts +0 -36
- package/dist/lib/output.js +0 -89
- package/dist/lib/output.spec.d.ts +0 -1
- package/dist/lib/output.spec.js +0 -123
- package/dist/lib/portUtils.d.ts +0 -8
- package/dist/lib/portUtils.js +0 -39
- package/dist/lib/startup.d.ts +0 -5
- package/dist/lib/startup.js +0 -73
- package/dist/lib/startup.spec.d.ts +0 -1
- package/dist/lib/startup.spec.js +0 -168
- package/dist/types/types.d.ts +0 -40
- package/dist/types/types.js +0 -1
- package/dist/ui/AgentSelector.d.ts +0 -8
- package/dist/ui/AgentSelector.js +0 -53
- package/dist/ui/ModelSelector.d.ts +0 -8
- package/dist/ui/ModelSelector.js +0 -53
- package/dist/ui/TeamSelector.d.ts +0 -8
- package/dist/ui/TeamSelector.js +0 -55
- package/dist/ui/ToolSelector.d.ts +0 -8
- package/dist/ui/ToolSelector.js +0 -53
- package/dist/ui/statusFormatter.spec.d.ts +0 -1
- package/dist/ui/statusFormatter.spec.js +0 -58
|
@@ -159,7 +159,7 @@ class McpServerGenerator {
|
|
|
159
159
|
// Get tool definitions
|
|
160
160
|
const tools = await this.getToolDefinitions();
|
|
161
161
|
// Check if destination exists
|
|
162
|
-
if (
|
|
162
|
+
if (fs.existsSync(answers.destination)) {
|
|
163
163
|
const overwrite = await inquirer.prompt([
|
|
164
164
|
{
|
|
165
165
|
type: 'confirm',
|
|
@@ -174,18 +174,9 @@ class McpServerGenerator {
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
return {
|
|
177
|
-
|
|
178
|
-
description: answers.description || '',
|
|
179
|
-
technology: answers.technology || 'node',
|
|
180
|
-
packageSource: answers.packageSource || 'local',
|
|
181
|
-
packageName: answers.packageName,
|
|
182
|
-
destination: answers.destination || defaultDestination,
|
|
183
|
-
requiresAuth: answers.requiresAuth || false,
|
|
184
|
-
hasCustomConfig: answers.hasCustomConfig || false,
|
|
185
|
-
maintainerName: answers.maintainerName || '',
|
|
186
|
-
homeUrl: answers.homeUrl,
|
|
177
|
+
...answers,
|
|
187
178
|
tools,
|
|
188
|
-
packageManager: this.getPackageManager(answers.technology
|
|
179
|
+
packageManager: this.getPackageManager(answers.technology),
|
|
189
180
|
sourceUrls: answers.homeUrl ? [answers.homeUrl] : [],
|
|
190
181
|
sampleQuery: this.generateSampleQuery(tools),
|
|
191
182
|
};
|
|
@@ -316,19 +307,7 @@ class McpServerGenerator {
|
|
|
316
307
|
}
|
|
317
308
|
// Generate from template
|
|
318
309
|
// Set template variables using the same structure expected by templates
|
|
319
|
-
|
|
320
|
-
const templateVars = {};
|
|
321
|
-
Object.entries(config).forEach(([key, value]) => {
|
|
322
|
-
if (typeof value === 'string' ||
|
|
323
|
-
typeof value === 'number' ||
|
|
324
|
-
typeof value === 'boolean') {
|
|
325
|
-
templateVars[key] = value;
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
templateVars[key] = JSON.stringify(value);
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
this.templateEngine.setVariables(templateVars);
|
|
310
|
+
this.templateEngine.setVariables(config);
|
|
332
311
|
await this.templateEngine.processTemplate(templatePath, config.destination);
|
|
333
312
|
// Make build script executable (owner only for security)
|
|
334
313
|
const buildScriptPath = path.join(config.destination, 'build.sh');
|
|
@@ -338,7 +317,7 @@ class McpServerGenerator {
|
|
|
338
317
|
console.log(chalk.green(`✅ MCP server generated successfully at ${config.destination}`));
|
|
339
318
|
}
|
|
340
319
|
catch (error) {
|
|
341
|
-
console.error(chalk.red('Failed to generate MCP server:'), error
|
|
320
|
+
console.error(chalk.red('Failed to generate MCP server:'), error.message);
|
|
342
321
|
process.exit(1);
|
|
343
322
|
}
|
|
344
323
|
}
|
|
@@ -8,7 +8,7 @@ import { TemplateDiscovery } from '../templateDiscovery.js';
|
|
|
8
8
|
import { toKebabCase, validateNameStrict, isValidKubernetesName, } from '../utils/nameUtils.js';
|
|
9
9
|
import { getInquirerProjectTypeChoices, GENERATOR_DEFAULTS, CLI_CONFIG, } from '../config.js';
|
|
10
10
|
import { SecurityUtils } from '../../../lib/security.js';
|
|
11
|
-
import
|
|
11
|
+
import { EnhancedPrompts, ProgressIndicator } from '../../../lib/progress.js';
|
|
12
12
|
export function createProjectGenerator() {
|
|
13
13
|
return {
|
|
14
14
|
name: 'project',
|
|
@@ -38,40 +38,61 @@ class ProjectGenerator {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
async generate(name, destination, options) {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
const progress = new ProgressIndicator('ARK Agent Project Generator');
|
|
42
|
+
// Add steps to progress indicator
|
|
43
|
+
progress.addStep('prerequisites', 'Checking prerequisites');
|
|
44
|
+
progress.addStep('configuration', 'Gathering project configuration');
|
|
45
|
+
if (!options.skipModels) {
|
|
46
|
+
progress.addStep('models', 'Configuring model providers');
|
|
47
|
+
}
|
|
48
|
+
if (!options.skipGit) {
|
|
49
|
+
progress.addStep('git', 'Setting up git repository');
|
|
50
|
+
}
|
|
51
|
+
progress.addStep('generation', 'Generating project files');
|
|
52
|
+
progress.addStep('completion', 'Finalizing project setup');
|
|
43
53
|
try {
|
|
44
54
|
// Check prerequisites
|
|
55
|
+
progress.startStep('prerequisites');
|
|
45
56
|
await this.checkPrerequisites();
|
|
46
|
-
|
|
57
|
+
progress.completeStep('prerequisites', 'Prerequisites validated');
|
|
47
58
|
// Get project configuration
|
|
48
|
-
|
|
59
|
+
progress.startStep('configuration');
|
|
49
60
|
const config = await this.getProjectConfig(name, destination, options);
|
|
50
|
-
|
|
61
|
+
progress.completeStep('configuration', `Project "${config.name}" configured`);
|
|
51
62
|
// Discover and configure models (only if not skipped)
|
|
52
63
|
if (config.configureModels) {
|
|
53
|
-
|
|
64
|
+
progress.startStep('models');
|
|
54
65
|
await this.configureModels(config);
|
|
55
|
-
|
|
66
|
+
progress.completeStep('models', `Model provider: ${config.selectedModels || 'none'}`);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
progress.skipStep('models', 'Model configuration skipped');
|
|
56
70
|
}
|
|
57
71
|
// Configure git if requested (only if not skipped)
|
|
58
72
|
if (config.initGit) {
|
|
59
|
-
|
|
73
|
+
progress.startStep('git');
|
|
60
74
|
await this.configureGit(config);
|
|
61
|
-
|
|
75
|
+
progress.completeStep('git', 'Git repository configured');
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
progress.skipStep('git', 'Git setup skipped');
|
|
62
79
|
}
|
|
63
80
|
// Generate the project
|
|
64
|
-
|
|
81
|
+
progress.startStep('generation');
|
|
65
82
|
await this.generateProject(config);
|
|
66
|
-
|
|
83
|
+
progress.completeStep('generation', 'Project files created');
|
|
67
84
|
// Finalize
|
|
68
|
-
|
|
85
|
+
progress.startStep('completion');
|
|
69
86
|
this.showNextSteps(config);
|
|
70
|
-
|
|
71
|
-
|
|
87
|
+
progress.completeStep('completion', 'Project ready');
|
|
88
|
+
progress.complete('Project generation');
|
|
72
89
|
}
|
|
73
90
|
catch (error) {
|
|
74
|
-
|
|
91
|
+
// Find the current step and mark it as failed
|
|
92
|
+
const currentStep = progress['steps'].find((s) => s.status === 'running');
|
|
93
|
+
if (currentStep) {
|
|
94
|
+
progress.failStep(currentStep.name, `Failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
95
|
+
}
|
|
75
96
|
throw error;
|
|
76
97
|
}
|
|
77
98
|
}
|
|
@@ -84,7 +105,7 @@ class ProjectGenerator {
|
|
|
84
105
|
}
|
|
85
106
|
catch {
|
|
86
107
|
requirements.push({ tool: 'git', available: false, required: false });
|
|
87
|
-
|
|
108
|
+
EnhancedPrompts.showWarning('Git not found - git features will be disabled');
|
|
88
109
|
}
|
|
89
110
|
// Check for deployment tools (optional for project generation)
|
|
90
111
|
const deploymentTools = ['kubectl', 'helm'];
|
|
@@ -100,14 +121,12 @@ class ProjectGenerator {
|
|
|
100
121
|
}
|
|
101
122
|
}
|
|
102
123
|
if (missingDeploymentTools.length > 0) {
|
|
103
|
-
|
|
104
|
-
|
|
124
|
+
EnhancedPrompts.showInfo(`Optional tools not found: ${missingDeploymentTools.join(', ')}`);
|
|
125
|
+
EnhancedPrompts.showTip('Install kubectl and helm later to deploy your project to a cluster');
|
|
105
126
|
}
|
|
106
127
|
}
|
|
107
128
|
async getProjectConfig(name, destination, options) {
|
|
108
|
-
|
|
109
|
-
console.log(chalk.cyan('Project Configuration'));
|
|
110
|
-
console.log(chalk.gray(`${'─'.repeat(50)}\n`));
|
|
129
|
+
EnhancedPrompts.showSeparator('Project Configuration');
|
|
111
130
|
// Use command line options if provided, otherwise prompt
|
|
112
131
|
let projectType = options.projectType;
|
|
113
132
|
let parentDir = destination;
|
|
@@ -391,11 +391,11 @@ class TeamGenerator {
|
|
|
391
391
|
console.log(chalk.gray(` 1. Review and customise the team configuration`));
|
|
392
392
|
if (config.createQuery) {
|
|
393
393
|
console.log(chalk.gray(` 2. Review and customise the query configuration`));
|
|
394
|
-
console.log(chalk.gray(` 3. Deploy with: helm upgrade --install ${config.projectName}
|
|
394
|
+
console.log(chalk.gray(` 3. Deploy with: helm upgrade --install ${config.projectName} . --namespace ${config.projectName}`));
|
|
395
395
|
console.log(chalk.gray(` 4. Test with: kubectl get teams,queries`));
|
|
396
396
|
}
|
|
397
397
|
else {
|
|
398
|
-
console.log(chalk.gray(` 2. Deploy with: helm upgrade --install ${config.projectName}
|
|
398
|
+
console.log(chalk.gray(` 2. Deploy with: helm upgrade --install ${config.projectName} . --namespace ${config.projectName}`));
|
|
399
399
|
console.log(chalk.gray(` 3. Test with: kubectl get teams`));
|
|
400
400
|
}
|
|
401
401
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
import type { ArkConfig } from '../../lib/config.js';
|
|
3
2
|
export interface GeneratorOptions {
|
|
4
3
|
name?: string;
|
|
5
4
|
destination?: string;
|
|
@@ -22,4 +21,4 @@ export interface Generator {
|
|
|
22
21
|
templatePath: string;
|
|
23
22
|
generate(name: string, destination: string, options: GeneratorOptions): Promise<void>;
|
|
24
23
|
}
|
|
25
|
-
export declare function createGenerateCommand(
|
|
24
|
+
export declare function createGenerateCommand(): Command;
|
|
@@ -1,29 +1,38 @@
|
|
|
1
1
|
import { StatusData, CommandVersionConfig } from '../lib/types.js';
|
|
2
|
+
import { ArkClient } from '../lib/arkClient.js';
|
|
2
3
|
export declare const getNodeVersion: () => CommandVersionConfig;
|
|
3
4
|
export declare const getNpmVersion: () => CommandVersionConfig;
|
|
4
5
|
export declare const getKubectlVersion: () => CommandVersionConfig;
|
|
5
6
|
export declare const getDockerVersion: () => CommandVersionConfig;
|
|
6
7
|
export declare const getHelmVersion: () => CommandVersionConfig;
|
|
7
|
-
export declare const getMinikubeVersion: () => CommandVersionConfig;
|
|
8
|
-
export declare const getKindVersion: () => CommandVersionConfig;
|
|
9
8
|
export declare class StatusChecker {
|
|
9
|
+
private arkClient;
|
|
10
|
+
private kubernetesManager;
|
|
11
|
+
constructor(arkClient: ArkClient);
|
|
12
|
+
/**
|
|
13
|
+
* Check if a command is available in the system
|
|
14
|
+
*/
|
|
15
|
+
private isCommandAvailable;
|
|
10
16
|
/**
|
|
11
17
|
* Get version of a command
|
|
12
18
|
*/
|
|
13
19
|
private getCommandVersion;
|
|
14
20
|
/**
|
|
15
|
-
* Check
|
|
16
|
-
|
|
21
|
+
* Check health of a service by URL
|
|
22
|
+
*/
|
|
23
|
+
private checkServiceHealth;
|
|
24
|
+
/**
|
|
25
|
+
* Check if ark-api is running and healthy
|
|
17
26
|
*/
|
|
18
|
-
private
|
|
27
|
+
private checkArkApi;
|
|
19
28
|
/**
|
|
20
|
-
*
|
|
29
|
+
* Return a "not installed" status for a service
|
|
21
30
|
*/
|
|
22
|
-
private
|
|
31
|
+
private createNotInstalledStatus;
|
|
23
32
|
/**
|
|
24
|
-
* Check
|
|
33
|
+
* Check Kubernetes service health via pods and endpoints
|
|
25
34
|
*/
|
|
26
|
-
private
|
|
35
|
+
private checkKubernetesService;
|
|
27
36
|
/**
|
|
28
37
|
* Check system dependencies
|
|
29
38
|
*/
|
|
@@ -31,8 +40,9 @@ export declare class StatusChecker {
|
|
|
31
40
|
/**
|
|
32
41
|
* Run all checks and return results
|
|
33
42
|
*/
|
|
34
|
-
checkAll(): Promise<StatusData
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
43
|
+
checkAll(serviceUrls?: Record<string, string>, arkApiUrl?: string): Promise<StatusData>;
|
|
44
|
+
/**
|
|
45
|
+
* Get appropriate health check path for different service types
|
|
46
|
+
*/
|
|
47
|
+
private getHealthPath;
|
|
38
48
|
}
|