@edgible-team/cli 1.2.2 → 1.2.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.
Files changed (47) hide show
  1. package/LICENSE +2 -0
  2. package/dist/client/api-client.d.ts +51 -0
  3. package/dist/client/api-client.d.ts.map +1 -1
  4. package/dist/client/api-client.js +65 -0
  5. package/dist/commands/ai.d.ts.map +1 -1
  6. package/dist/commands/ai.js +23 -20
  7. package/dist/commands/application.d.ts.map +1 -1
  8. package/dist/commands/application.js +713 -94
  9. package/dist/generated/compose-constants.d.ts +14 -0
  10. package/dist/generated/compose-constants.d.ts.map +1 -0
  11. package/dist/generated/compose-constants.js +22 -0
  12. package/dist/services/application/ApplicationService.d.ts +41 -0
  13. package/dist/services/application/ApplicationService.d.ts.map +1 -1
  14. package/dist/services/application/ApplicationService.js +107 -0
  15. package/dist/types/AgentConfig.d.ts +13 -0
  16. package/dist/types/AgentConfig.d.ts.map +1 -1
  17. package/dist/types/ApiRequests.d.ts +8 -0
  18. package/dist/types/ApiRequests.d.ts.map +1 -1
  19. package/dist/types/Application.d.ts +6 -0
  20. package/dist/types/Application.d.ts.map +1 -1
  21. package/dist/types/CaddyJson.d.ts +43 -1
  22. package/dist/types/CaddyJson.d.ts.map +1 -1
  23. package/dist/types/models/ApplicationApiKey.d.ts +63 -0
  24. package/dist/types/models/ApplicationApiKey.d.ts.map +1 -0
  25. package/dist/types/models/ApplicationApiKey.js +5 -0
  26. package/dist/types/models/ApplicationAuthExchangeToken.d.ts +69 -0
  27. package/dist/types/models/ApplicationAuthExchangeToken.d.ts.map +1 -0
  28. package/dist/types/models/ApplicationAuthExchangeToken.js +5 -0
  29. package/dist/types/models/ApplicationAuthSession.d.ts +68 -0
  30. package/dist/types/models/ApplicationAuthSession.d.ts.map +1 -0
  31. package/dist/types/models/ApplicationAuthSession.js +5 -0
  32. package/dist/types/models/ApplicationData.d.ts +33 -0
  33. package/dist/types/models/ApplicationData.d.ts.map +1 -1
  34. package/dist/types/models/ApplicationShortCode.d.ts +79 -0
  35. package/dist/types/models/ApplicationShortCode.d.ts.map +1 -0
  36. package/dist/types/models/ApplicationShortCode.js +5 -0
  37. package/dist/types/route.d.ts +4 -0
  38. package/dist/types/route.d.ts.map +1 -1
  39. package/dist/types/validation/schemas.d.ts +21 -0
  40. package/dist/types/validation/schemas.d.ts.map +1 -1
  41. package/dist/types/validation/schemas.js +14 -1
  42. package/package.json +2 -2
  43. package/recipes/compose/open-webui/docker-compose.yml +26 -1
  44. package/dist/detection/tools.d.ts +0 -16
  45. package/dist/detection/tools.d.ts.map +0 -1
  46. package/dist/detection/tools.js +0 -305
  47. package/recipes/compose/open-webui/.env +0 -1
@@ -1,305 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ToolDetector = void 0;
7
- const child_process_1 = require("child_process");
8
- const chalk_1 = __importDefault(require("chalk"));
9
- class ToolDetector {
10
- static async detectTools() {
11
- const detectedTools = [];
12
- for (const tool of this.tools) {
13
- try {
14
- const version = this.getToolVersion(tool.command);
15
- if (version !== null) {
16
- detectedTools.push({
17
- ...tool,
18
- available: true,
19
- version: version
20
- });
21
- }
22
- else {
23
- detectedTools.push({
24
- ...tool,
25
- available: false
26
- });
27
- }
28
- }
29
- catch (error) {
30
- // Tool not available
31
- detectedTools.push({
32
- ...tool,
33
- available: false
34
- });
35
- }
36
- }
37
- return detectedTools;
38
- }
39
- static getToolVersion(command) {
40
- try {
41
- // Special handling for different tools
42
- if (command === 'docker') {
43
- const output = (0, child_process_1.execSync)('docker --version', { encoding: 'utf8', timeout: 5000 });
44
- return output.trim().replace('Docker version ', '');
45
- }
46
- if (command === 'kubectl') {
47
- const output = (0, child_process_1.execSync)('kubectl version --client', { encoding: 'utf8', timeout: 5000 });
48
- const lines = output.split('\n');
49
- const versionLine = lines.find(line => line.includes('Client Version:'));
50
- return versionLine ? versionLine.trim().replace('Client Version: ', '') : 'Unknown';
51
- }
52
- if (command === 'aws') {
53
- const output = (0, child_process_1.execSync)('aws --version', { encoding: 'utf8', timeout: 5000 });
54
- return output.trim().replace('aws-cli/', '');
55
- }
56
- if (command === 'az') {
57
- const output = (0, child_process_1.execSync)('az --version', { encoding: 'utf8', timeout: 5000 });
58
- const lines = output.split('\n');
59
- const versionLine = lines.find(line => line.includes('azure-cli'));
60
- return versionLine ? versionLine.trim().replace('azure-cli ', '') : 'Unknown';
61
- }
62
- if (command === 'gcloud') {
63
- const output = (0, child_process_1.execSync)('gcloud --version', { encoding: 'utf8', timeout: 5000 });
64
- const lines = output.split('\n');
65
- const versionLine = lines.find(line => line.includes('Google Cloud SDK'));
66
- return versionLine ? versionLine.trim().replace('Google Cloud SDK ', '') : 'Unknown';
67
- }
68
- if (command === 'terraform') {
69
- const output = (0, child_process_1.execSync)('terraform --version', { encoding: 'utf8', timeout: 5000 });
70
- const lines = output.split('\n');
71
- const versionLine = lines.find(line => line.includes('Terraform v'));
72
- return versionLine ? versionLine.trim().replace('Terraform v', '') : 'Unknown';
73
- }
74
- if (command === 'powershell') {
75
- // Check if we're on Windows and PowerShell is available
76
- if (process.platform === 'win32') {
77
- const output = (0, child_process_1.execSync)('powershell -Command "$PSVersionTable.PSVersion"', { encoding: 'utf8', timeout: 5000 });
78
- return output.trim();
79
- }
80
- return null;
81
- }
82
- // Generic version detection
83
- const output = (0, child_process_1.execSync)(`${command} --version`, { encoding: 'utf8', timeout: 5000 });
84
- const lines = output.split('\n');
85
- const versionLine = lines[0];
86
- return versionLine ? versionLine.trim() : 'Unknown';
87
- }
88
- catch (error) {
89
- return null;
90
- }
91
- }
92
- static displayDetectedTools(tools) {
93
- const availableTools = tools.filter(tool => tool.available);
94
- const unavailableTools = tools.filter(tool => !tool.available);
95
- if (availableTools.length === 0) {
96
- console.log(chalk_1.default.yellow('⚠ No container/VM/workload management tools detected'));
97
- return;
98
- }
99
- console.log(chalk_1.default.blue.bold('\n🔧 Detected Infrastructure Tools:\n'));
100
- // Group tools by category
101
- const categories = {
102
- container: availableTools.filter(tool => tool.category === 'container'),
103
- vm: availableTools.filter(tool => tool.category === 'vm'),
104
- orchestration: availableTools.filter(tool => tool.category === 'orchestration'),
105
- cloud: availableTools.filter(tool => tool.category === 'cloud'),
106
- other: availableTools.filter(tool => tool.category === 'other')
107
- };
108
- Object.entries(categories).forEach(([category, categoryTools]) => {
109
- if (categoryTools.length > 0) {
110
- console.log(chalk_1.default.cyan.bold(`📦 ${category.charAt(0).toUpperCase() + category.slice(1)}:`));
111
- categoryTools.forEach(tool => {
112
- const versionText = tool.version ? ` (${tool.version})` : '';
113
- console.log(chalk_1.default.green(` ✓ ${tool.name}${versionText}`));
114
- console.log(chalk_1.default.gray(` ${tool.description}`));
115
- });
116
- console.log('');
117
- }
118
- });
119
- if (unavailableTools.length > 0) {
120
- console.log(chalk_1.default.gray(`💡 ${unavailableTools.length} additional tools not detected (${unavailableTools.map(t => t.name).join(', ')})`));
121
- }
122
- }
123
- static getToolSummary(tools) {
124
- const availableTools = tools.filter(tool => tool.available);
125
- const categories = new Set(availableTools.map(tool => tool.category));
126
- return `${availableTools.length} tools detected across ${categories.size} categories`;
127
- }
128
- }
129
- exports.ToolDetector = ToolDetector;
130
- ToolDetector.tools = [
131
- // Container runtimes
132
- {
133
- name: 'Docker',
134
- command: 'docker',
135
- category: 'container',
136
- description: 'Container runtime and platform',
137
- available: false
138
- },
139
- {
140
- name: 'Podman',
141
- command: 'podman',
142
- category: 'container',
143
- description: 'Daemonless container engine',
144
- available: false
145
- },
146
- {
147
- name: 'Containerd',
148
- command: 'ctr',
149
- category: 'container',
150
- description: 'Container runtime',
151
- available: false
152
- },
153
- {
154
- name: 'LXC',
155
- command: 'lxc',
156
- category: 'container',
157
- description: 'Linux containers',
158
- available: false
159
- },
160
- // VM Management
161
- {
162
- name: 'VirtualBox',
163
- command: 'vboxmanage',
164
- category: 'vm',
165
- description: 'Virtual machine management',
166
- available: false
167
- },
168
- {
169
- name: 'VMware',
170
- command: 'vmrun',
171
- category: 'vm',
172
- description: 'VMware virtualization',
173
- available: false
174
- },
175
- {
176
- name: 'QEMU',
177
- command: 'qemu-system-x86_64',
178
- category: 'vm',
179
- description: 'Machine emulator and virtualizer',
180
- available: false
181
- },
182
- {
183
- name: 'KVM',
184
- command: 'kvm',
185
- category: 'vm',
186
- description: 'Kernel-based Virtual Machine',
187
- available: false
188
- },
189
- {
190
- name: 'Hyper-V',
191
- command: 'powershell',
192
- category: 'vm',
193
- description: 'Windows virtualization platform',
194
- available: false
195
- },
196
- // Orchestration
197
- {
198
- name: 'Kubernetes',
199
- command: 'kubectl',
200
- category: 'orchestration',
201
- description: 'Container orchestration platform',
202
- available: false
203
- },
204
- {
205
- name: 'Docker Compose',
206
- command: 'docker-compose',
207
- category: 'orchestration',
208
- description: 'Multi-container Docker applications',
209
- available: false
210
- },
211
- {
212
- name: 'Docker Swarm',
213
- command: 'docker',
214
- category: 'orchestration',
215
- description: 'Docker native clustering',
216
- available: false
217
- },
218
- {
219
- name: 'Nomad',
220
- command: 'nomad',
221
- category: 'orchestration',
222
- description: 'Workload orchestrator',
223
- available: false
224
- },
225
- {
226
- name: 'Mesos',
227
- command: 'mesos-master',
228
- category: 'orchestration',
229
- description: 'Distributed systems kernel',
230
- available: false
231
- },
232
- // Cloud CLI Tools
233
- {
234
- name: 'AWS CLI',
235
- command: 'aws',
236
- category: 'cloud',
237
- description: 'Amazon Web Services CLI',
238
- available: false
239
- },
240
- {
241
- name: 'Azure CLI',
242
- command: 'az',
243
- category: 'cloud',
244
- description: 'Microsoft Azure CLI',
245
- available: false
246
- },
247
- {
248
- name: 'Google Cloud CLI',
249
- command: 'gcloud',
250
- category: 'cloud',
251
- description: 'Google Cloud Platform CLI',
252
- available: false
253
- },
254
- {
255
- name: 'DigitalOcean CLI',
256
- command: 'doctl',
257
- category: 'cloud',
258
- description: 'DigitalOcean CLI',
259
- available: false
260
- },
261
- {
262
- name: 'Terraform',
263
- command: 'terraform',
264
- category: 'cloud',
265
- description: 'Infrastructure as Code',
266
- available: false
267
- },
268
- {
269
- name: 'Ansible',
270
- command: 'ansible',
271
- category: 'cloud',
272
- description: 'Configuration management',
273
- available: false
274
- },
275
- // Other Infrastructure Tools
276
- {
277
- name: 'Vagrant',
278
- command: 'vagrant',
279
- category: 'other',
280
- description: 'Development environment management',
281
- available: false
282
- },
283
- {
284
- name: 'Packer',
285
- command: 'packer',
286
- category: 'other',
287
- description: 'Machine image creation',
288
- available: false
289
- },
290
- {
291
- name: 'Helm',
292
- command: 'helm',
293
- category: 'other',
294
- description: 'Kubernetes package manager',
295
- available: false
296
- },
297
- {
298
- name: 'Istio',
299
- command: 'istioctl',
300
- category: 'other',
301
- description: 'Service mesh platform',
302
- available: false
303
- }
304
- ];
305
- //# sourceMappingURL=tools.js.map
@@ -1 +0,0 @@
1
- OLLAMA_BASE_URL="https://ollama-api.ded8dbdc-54d1-4997-aa8d-cde1ee5cbf39.edgible.com"