@edgible-team/cli 1.2.8 → 1.2.9
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/ai/teardown.js +24 -23
- package/dist/commands/application/api-keys/create.d.ts.map +1 -1
- package/dist/commands/application/api-keys/create.js +5 -20
- package/dist/commands/application/api-keys/delete.d.ts.map +1 -1
- package/dist/commands/application/api-keys/delete.js +5 -20
- package/dist/commands/application/api-keys/list.d.ts.map +1 -1
- package/dist/commands/application/api-keys/list.js +5 -21
- package/dist/commands/application/delete.d.ts.map +1 -1
- package/dist/commands/application/delete.js +7 -23
- package/dist/commands/application/get.d.ts.map +1 -1
- package/dist/commands/application/get.js +9 -4
- package/dist/commands/application/short-codes/create.d.ts.map +1 -1
- package/dist/commands/application/short-codes/create.js +5 -20
- package/dist/commands/application/short-codes/delete.d.ts.map +1 -1
- package/dist/commands/application/short-codes/delete.js +5 -20
- package/dist/commands/application/short-codes/list.d.ts.map +1 -1
- package/dist/commands/application/short-codes/list.js +5 -21
- package/dist/commands/application/short-codes/toggle.d.ts.map +1 -1
- package/dist/commands/application/short-codes/toggle.js +5 -20
- package/dist/commands/base/command-wrapper.d.ts +0 -4
- package/dist/commands/base/command-wrapper.d.ts.map +1 -1
- package/dist/commands/base/command-wrapper.js +0 -16
- package/dist/commands/utils/application-prompt.d.ts +23 -0
- package/dist/commands/utils/application-prompt.d.ts.map +1 -0
- package/dist/commands/utils/application-prompt.js +79 -0
- package/dist/commands/utils/output-formatter.d.ts +1 -0
- package/dist/commands/utils/output-formatter.d.ts.map +1 -1
- package/dist/commands/utils/output-formatter.js +1 -1
- package/dist/validation/validator.d.ts +0 -4
- package/dist/validation/validator.d.ts.map +1 -1
- package/dist/validation/validator.js +0 -9
- package/package.json +1 -1
- package/dist/commands/base/BaseCommand.d.ts +0 -53
- package/dist/commands/base/BaseCommand.d.ts.map +0 -1
- package/dist/commands/base/BaseCommand.js +0 -93
- package/dist/commands/base/CommandHandler.d.ts +0 -28
- package/dist/commands/base/CommandHandler.d.ts.map +0 -1
- package/dist/commands/base/CommandHandler.js +0 -7
- package/dist/commands/base/middleware.d.ts +0 -34
- package/dist/commands/base/middleware.d.ts.map +0 -1
- package/dist/commands/base/middleware.js +0 -77
- package/dist/utils/PathMigration.d.ts +0 -45
- package/dist/utils/PathMigration.d.ts.map +0 -1
- package/dist/utils/PathMigration.js +0 -219
- package/dist/utils/progress.d.ts +0 -74
- package/dist/utils/progress.d.ts.map +0 -1
- package/dist/utils/progress.js +0 -167
package/dist/utils/progress.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simple spinner implementation for progress indication
|
|
3
|
-
*/
|
|
4
|
-
export declare class Spinner {
|
|
5
|
-
private interval;
|
|
6
|
-
private frames;
|
|
7
|
-
private currentFrame;
|
|
8
|
-
private message;
|
|
9
|
-
private startTime;
|
|
10
|
-
constructor(message: string);
|
|
11
|
-
/**
|
|
12
|
-
* Start the spinner
|
|
13
|
-
*/
|
|
14
|
-
start(): void;
|
|
15
|
-
/**
|
|
16
|
-
* Update the spinner message
|
|
17
|
-
*/
|
|
18
|
-
update(message: string): void;
|
|
19
|
-
/**
|
|
20
|
-
* Stop the spinner with success message
|
|
21
|
-
*/
|
|
22
|
-
succeed(message?: string): void;
|
|
23
|
-
/**
|
|
24
|
-
* Stop the spinner with failure message
|
|
25
|
-
*/
|
|
26
|
-
fail(message?: string): void;
|
|
27
|
-
/**
|
|
28
|
-
* Stop the spinner with info message
|
|
29
|
-
*/
|
|
30
|
-
info(message?: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* Stop the spinner without any message
|
|
33
|
-
*/
|
|
34
|
-
stop(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Get elapsed time in milliseconds
|
|
37
|
-
*/
|
|
38
|
-
elapsed(): number;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Create and start a new spinner
|
|
42
|
-
*/
|
|
43
|
-
export declare function spinner(message: string): Spinner;
|
|
44
|
-
/**
|
|
45
|
-
* Progress bar implementation
|
|
46
|
-
*/
|
|
47
|
-
export declare class ProgressBar {
|
|
48
|
-
private total;
|
|
49
|
-
private current;
|
|
50
|
-
private width;
|
|
51
|
-
private message;
|
|
52
|
-
constructor(total: number, filled?: number, message?: string);
|
|
53
|
-
/**
|
|
54
|
-
* Update progress and render
|
|
55
|
-
*/
|
|
56
|
-
update(current: number): void;
|
|
57
|
-
/**
|
|
58
|
-
* Increment progress and render
|
|
59
|
-
*/
|
|
60
|
-
increment(amount?: number): void;
|
|
61
|
-
/**
|
|
62
|
-
* Render the progress bar
|
|
63
|
-
*/
|
|
64
|
-
render(): void;
|
|
65
|
-
/**
|
|
66
|
-
* Complete the progress bar
|
|
67
|
-
*/
|
|
68
|
-
complete(message?: string): void;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Create a new progress bar
|
|
72
|
-
*/
|
|
73
|
-
export declare function progressBar(total: number, message?: string): ProgressBar;
|
|
74
|
-
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/utils/progress.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAA+B;IAC/C,OAAO,CAAC,MAAM,CAAgE;IAC9E,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,SAAS,CAAO;gBAEZ,OAAO,EAAE,MAAM;IAK3B;;OAEG;IACH,KAAK,IAAI,IAAI;IAmBb;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI7B;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAS/B;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAS5B;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAS5B;;OAEG;IACH,IAAI,IAAI,IAAI;IAQZ;;OAEG;IACH,OAAO,IAAI,MAAM;CAGlB;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAIhD;AAED;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,OAAO,CAAS;gBAEZ,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,EAAE,OAAO,GAAE,MAAW;IAMnE;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAK7B;;OAEG;IACH,SAAS,CAAC,MAAM,GAAE,MAAU,GAAG,IAAI;IAKnC;;OAEG;IACH,MAAM,IAAI,IAAI;IAgBd;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;CAQjC;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,MAAW,GAAG,WAAW,CAE5E"}
|
package/dist/utils/progress.js
DELETED
|
@@ -1,167 +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.ProgressBar = exports.Spinner = void 0;
|
|
7
|
-
exports.spinner = spinner;
|
|
8
|
-
exports.progressBar = progressBar;
|
|
9
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
10
|
-
const output_1 = require("./output");
|
|
11
|
-
/**
|
|
12
|
-
* Simple spinner implementation for progress indication
|
|
13
|
-
*/
|
|
14
|
-
class Spinner {
|
|
15
|
-
constructor(message) {
|
|
16
|
-
this.interval = null;
|
|
17
|
-
this.frames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
18
|
-
this.currentFrame = 0;
|
|
19
|
-
this.message = message;
|
|
20
|
-
this.startTime = new Date();
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Start the spinner
|
|
24
|
-
*/
|
|
25
|
-
start() {
|
|
26
|
-
if (output_1.outputConfig.plainMode) {
|
|
27
|
-
console.log(this.message);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const writeMessage = () => {
|
|
31
|
-
const frame = output_1.outputConfig.colorEnabled
|
|
32
|
-
? chalk_1.default.cyan(this.frames[this.currentFrame])
|
|
33
|
-
: this.frames[this.currentFrame];
|
|
34
|
-
process.stdout.write(`\r${frame} ${this.message}`);
|
|
35
|
-
this.currentFrame = (this.currentFrame + 1) % this.frames.length;
|
|
36
|
-
};
|
|
37
|
-
writeMessage();
|
|
38
|
-
this.interval = setInterval(writeMessage, 80);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Update the spinner message
|
|
42
|
-
*/
|
|
43
|
-
update(message) {
|
|
44
|
-
this.message = message;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Stop the spinner with success message
|
|
48
|
-
*/
|
|
49
|
-
succeed(message) {
|
|
50
|
-
this.stop();
|
|
51
|
-
if (message) {
|
|
52
|
-
console.log(chalk_1.default.green(`✓ ${message}`));
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
console.log(chalk_1.default.green(`✓ ${this.message}`));
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Stop the spinner with failure message
|
|
60
|
-
*/
|
|
61
|
-
fail(message) {
|
|
62
|
-
this.stop();
|
|
63
|
-
if (message) {
|
|
64
|
-
console.log(chalk_1.default.red(`✗ ${message}`));
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
console.log(chalk_1.default.red(`✗ ${this.message}`));
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Stop the spinner with info message
|
|
72
|
-
*/
|
|
73
|
-
info(message) {
|
|
74
|
-
this.stop();
|
|
75
|
-
if (message) {
|
|
76
|
-
console.log(chalk_1.default.blue(`ℹ ${message}`));
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
console.log(chalk_1.default.blue(`ℹ ${this.message}`));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Stop the spinner without any message
|
|
84
|
-
*/
|
|
85
|
-
stop() {
|
|
86
|
-
if (this.interval) {
|
|
87
|
-
clearInterval(this.interval);
|
|
88
|
-
this.interval = null;
|
|
89
|
-
process.stdout.write('\r' + ' '.repeat(process.stdout.columns) + '\r');
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Get elapsed time in milliseconds
|
|
94
|
-
*/
|
|
95
|
-
elapsed() {
|
|
96
|
-
return Date.now() - this.startTime.getTime();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
exports.Spinner = Spinner;
|
|
100
|
-
/**
|
|
101
|
-
* Create and start a new spinner
|
|
102
|
-
*/
|
|
103
|
-
function spinner(message) {
|
|
104
|
-
const spinnerInstance = new Spinner(message);
|
|
105
|
-
spinnerInstance.start();
|
|
106
|
-
return spinnerInstance;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Progress bar implementation
|
|
110
|
-
*/
|
|
111
|
-
class ProgressBar {
|
|
112
|
-
constructor(total, filled = 0, message = '') {
|
|
113
|
-
this.current = 0;
|
|
114
|
-
this.width = 40;
|
|
115
|
-
this.total = total;
|
|
116
|
-
this.current = filled;
|
|
117
|
-
this.message = message;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Update progress and render
|
|
121
|
-
*/
|
|
122
|
-
update(current) {
|
|
123
|
-
this.current = current;
|
|
124
|
-
this.render();
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Increment progress and render
|
|
128
|
-
*/
|
|
129
|
-
increment(amount = 1) {
|
|
130
|
-
this.current = Math.min(this.current + amount, this.total);
|
|
131
|
-
this.render();
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Render the progress bar
|
|
135
|
-
*/
|
|
136
|
-
render() {
|
|
137
|
-
const percentage = Math.min(100, (this.current / this.total) * 100);
|
|
138
|
-
const filled = Math.floor((this.current / this.total) * this.width);
|
|
139
|
-
const empty = this.width - filled;
|
|
140
|
-
const filledBar = '█'.repeat(filled);
|
|
141
|
-
const emptyBar = '░'.repeat(empty);
|
|
142
|
-
const bar = output_1.outputConfig.colorEnabled
|
|
143
|
-
? chalk_1.default.green(filledBar) + chalk_1.default.gray(emptyBar)
|
|
144
|
-
: filledBar + emptyBar;
|
|
145
|
-
const text = `${this.message} ${bar} ${percentage.toFixed(0)}% (${this.current}/${this.total})`;
|
|
146
|
-
process.stdout.write('\r' + text);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Complete the progress bar
|
|
150
|
-
*/
|
|
151
|
-
complete(message) {
|
|
152
|
-
this.current = this.total;
|
|
153
|
-
this.render();
|
|
154
|
-
console.log(''); // New line
|
|
155
|
-
if (message) {
|
|
156
|
-
console.log(message);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
exports.ProgressBar = ProgressBar;
|
|
161
|
-
/**
|
|
162
|
-
* Create a new progress bar
|
|
163
|
-
*/
|
|
164
|
-
function progressBar(total, message = '') {
|
|
165
|
-
return new ProgressBar(total, 0, message);
|
|
166
|
-
}
|
|
167
|
-
//# sourceMappingURL=progress.js.map
|