@solidactions/cli 1.7.0 → 1.7.1
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/env-delete.js +1 -1
- package/dist/commands/env-list.js +1 -1
- package/dist/commands/env-map.js +1 -1
- package/dist/commands/env-pull.js +1 -1
- package/dist/commands/env-push.js +1 -1
- package/dist/commands/env-set.js +2 -2
- package/dist/commands/login.js +1 -1
- package/dist/commands/project-list.js +1 -1
- package/dist/commands/project-logs.js +1 -1
- package/dist/commands/pull.js +1 -1
- package/dist/commands/run-list.js +1 -1
- package/dist/commands/run-start.js +1 -1
- package/dist/commands/run-view.js +1 -1
- package/dist/commands/schedule-delete.js +1 -1
- package/dist/commands/schedule-list.js +1 -1
- package/dist/commands/schedule-set.js +1 -1
- package/dist/commands/webhook-list.js +1 -1
- package/dist/utils/api.js +2 -2
- package/package.json +1 -1
|
@@ -90,7 +90,7 @@ async function envDelete(keyOrProject, keyIfProject, options = {}) {
|
|
|
90
90
|
catch (error) {
|
|
91
91
|
if (error.response) {
|
|
92
92
|
if (error.response.status === 401) {
|
|
93
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
93
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
94
94
|
}
|
|
95
95
|
else if (error.response.status === 404) {
|
|
96
96
|
console.error(chalk_1.default.red(isProjectMode ? `Project "${projectName}" not found.` : `Variable "${key}" not found.`));
|
|
@@ -182,7 +182,7 @@ async function envList(projectName, options = {}) {
|
|
|
182
182
|
catch (error) {
|
|
183
183
|
if (error.response) {
|
|
184
184
|
if (error.response.status === 401) {
|
|
185
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
185
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
186
186
|
}
|
|
187
187
|
else if (error.response.status === 404) {
|
|
188
188
|
console.error(chalk_1.default.red(projectName ? `Project "${projectName}" not found for the specified environment.` : 'Resource not found.'));
|
package/dist/commands/env-map.js
CHANGED
|
@@ -58,7 +58,7 @@ async function envMap(projectName, projectKey, globalKey, options = {}) {
|
|
|
58
58
|
catch (error) {
|
|
59
59
|
if (error.response) {
|
|
60
60
|
if (error.response.status === 401) {
|
|
61
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
61
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
62
62
|
}
|
|
63
63
|
else if (error.response.status === 404) {
|
|
64
64
|
console.error(chalk_1.default.red(`Project "${projectName}" not found.`));
|
|
@@ -203,7 +203,7 @@ async function envPull(projectName, options = {}) {
|
|
|
203
203
|
catch (error) {
|
|
204
204
|
if (error.response) {
|
|
205
205
|
if (error.response.status === 401) {
|
|
206
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
206
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
207
207
|
}
|
|
208
208
|
else if (error.response.status === 404) {
|
|
209
209
|
console.error(chalk_1.default.red(`Project "${projectSlug}" not found.`));
|
|
@@ -87,7 +87,7 @@ async function envPush(projectName, sourcePath, options = {}) {
|
|
|
87
87
|
}
|
|
88
88
|
catch (error) {
|
|
89
89
|
if (error.response?.status === 401) {
|
|
90
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
90
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
91
91
|
process.exit(1);
|
|
92
92
|
}
|
|
93
93
|
else if (error.response?.status === 404) {
|
package/dist/commands/env-set.js
CHANGED
|
@@ -61,7 +61,7 @@ async function envSet(keyOrProject, valueOrKey, valueIfProject, options = {}) {
|
|
|
61
61
|
catch (error) {
|
|
62
62
|
if (error.response) {
|
|
63
63
|
if (error.response.status === 401) {
|
|
64
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
64
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
65
65
|
}
|
|
66
66
|
else if (error.response.status === 404) {
|
|
67
67
|
console.error(chalk_1.default.red(`Project "${projectSlug}" not found.`));
|
|
@@ -164,7 +164,7 @@ async function envSet(keyOrProject, valueOrKey, valueIfProject, options = {}) {
|
|
|
164
164
|
catch (error) {
|
|
165
165
|
if (error.response) {
|
|
166
166
|
if (error.response.status === 401) {
|
|
167
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
167
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
168
168
|
}
|
|
169
169
|
else if (error.response.status === 422) {
|
|
170
170
|
console.error(chalk_1.default.red('Validation error:'), error.response.data.message || error.response.data.errors);
|
package/dist/commands/login.js
CHANGED
|
@@ -194,7 +194,7 @@ function whoami() {
|
|
|
194
194
|
const resolved = (0, config_1.resolveConfig)();
|
|
195
195
|
if (!resolved || !resolved.config.apiKey) {
|
|
196
196
|
console.log(chalk_1.default.yellow('Not initialized.'));
|
|
197
|
-
console.log(chalk_1.default.gray('Run "solidactions
|
|
197
|
+
console.log(chalk_1.default.gray('Run "solidactions login <api-key>" to configure.'));
|
|
198
198
|
process.exit(1);
|
|
199
199
|
}
|
|
200
200
|
const { config, sources } = resolved;
|
|
@@ -38,7 +38,7 @@ async function projectList() {
|
|
|
38
38
|
catch (error) {
|
|
39
39
|
if (error.response) {
|
|
40
40
|
if (error.response.status === 401) {
|
|
41
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
41
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
44
44
|
console.error(chalk_1.default.red(`Failed: ${error.response.status}`), error.response.data);
|
|
@@ -26,7 +26,7 @@ async function logsBuild(projectName) {
|
|
|
26
26
|
catch (error) {
|
|
27
27
|
if (error.response) {
|
|
28
28
|
if (error.response.status === 401) {
|
|
29
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
29
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
30
30
|
}
|
|
31
31
|
else if (error.response.status === 404) {
|
|
32
32
|
console.error(chalk_1.default.red(`Project "${projectName}" not found.`));
|
package/dist/commands/pull.js
CHANGED
|
@@ -55,7 +55,7 @@ async function pull(projectName, destPath, options = {}) {
|
|
|
55
55
|
console.error(chalk_1.default.red(`Project "${projectName}" not found.`));
|
|
56
56
|
}
|
|
57
57
|
else if (error.response.status === 401) {
|
|
58
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
58
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
61
|
console.error(chalk_1.default.red(`Failed: ${error.response.status}`));
|
|
@@ -57,7 +57,7 @@ async function runs(projectName, options = {}) {
|
|
|
57
57
|
catch (error) {
|
|
58
58
|
if (error.response) {
|
|
59
59
|
if (error.response.status === 401) {
|
|
60
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
60
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
63
63
|
console.error(chalk_1.default.red(`Failed: ${error.response.status}`), error.response.data);
|
|
@@ -69,7 +69,7 @@ async function run(projectName, workflowName, options) {
|
|
|
69
69
|
catch (error) {
|
|
70
70
|
if (error.response) {
|
|
71
71
|
if (error.response.status === 401) {
|
|
72
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
72
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
73
73
|
}
|
|
74
74
|
else if (error.response.status === 404) {
|
|
75
75
|
console.error(chalk_1.default.red('Project or workflow not found.'));
|
|
@@ -101,7 +101,7 @@ async function runView(runId, options) {
|
|
|
101
101
|
catch (error) {
|
|
102
102
|
if (error.response) {
|
|
103
103
|
if (error.response.status === 401) {
|
|
104
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
104
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
105
105
|
}
|
|
106
106
|
else if (error.response.status === 404) {
|
|
107
107
|
console.error(chalk_1.default.red('Run not found.'));
|
|
@@ -46,7 +46,7 @@ async function scheduleDelete(projectName, scheduleId, options = {}) {
|
|
|
46
46
|
catch (error) {
|
|
47
47
|
if (error.response) {
|
|
48
48
|
if (error.response.status === 401) {
|
|
49
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
49
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
50
50
|
}
|
|
51
51
|
else if (error.response.status === 404) {
|
|
52
52
|
console.error(chalk_1.default.red(`Project "${projectName}" or schedule ${scheduleId} not found.`));
|
|
@@ -41,7 +41,7 @@ async function scheduleList(projectName) {
|
|
|
41
41
|
catch (error) {
|
|
42
42
|
if (error.response) {
|
|
43
43
|
if (error.response.status === 401) {
|
|
44
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
44
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
45
45
|
}
|
|
46
46
|
else if (error.response.status === 404) {
|
|
47
47
|
console.error(chalk_1.default.red(`Project "${projectName}" not found.`));
|
|
@@ -90,7 +90,7 @@ async function scheduleSet(projectName, cron, options) {
|
|
|
90
90
|
catch (error) {
|
|
91
91
|
if (error.response) {
|
|
92
92
|
if (error.response.status === 401) {
|
|
93
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
93
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
94
94
|
}
|
|
95
95
|
else if (error.response.status === 404) {
|
|
96
96
|
console.error(chalk_1.default.red(`Project "${projectName}" not found.`));
|
|
@@ -51,7 +51,7 @@ async function webhookList(projectName, options = {}) {
|
|
|
51
51
|
catch (error) {
|
|
52
52
|
if (error.response) {
|
|
53
53
|
if (error.response.status === 401) {
|
|
54
|
-
console.error(chalk_1.default.red('Authentication failed. Run "solidactions
|
|
54
|
+
console.error(chalk_1.default.red('Authentication failed. Run "solidactions login <api-key>" to re-configure.'));
|
|
55
55
|
}
|
|
56
56
|
else if (error.response.status === 404) {
|
|
57
57
|
console.error(chalk_1.default.red(`Project "${projectName}" not found.`));
|
package/dist/utils/api.js
CHANGED
|
@@ -29,7 +29,7 @@ function getApiHeaders(config, contentType) {
|
|
|
29
29
|
function requireResolvedConfig() {
|
|
30
30
|
const resolved = (0, config_1.resolveConfig)();
|
|
31
31
|
if (!resolved || !resolved.config.apiKey) {
|
|
32
|
-
console.error(chalk_1.default.red('Not initialized. Run `solidactions
|
|
32
|
+
console.error(chalk_1.default.red('Not initialized. Run `solidactions login <api-key>` first.'));
|
|
33
33
|
process.exit(1);
|
|
34
34
|
}
|
|
35
35
|
return resolved;
|
|
@@ -72,7 +72,7 @@ async function ensureWorkspaceSelected(config) {
|
|
|
72
72
|
}
|
|
73
73
|
catch (error) {
|
|
74
74
|
if (error.response?.status === 401) {
|
|
75
|
-
console.error(chalk_1.default.red('Authentication failed. Run `solidactions
|
|
75
|
+
console.error(chalk_1.default.red('Authentication failed. Run `solidactions login <api-key>` to reconfigure.'));
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
78
|
console.error(chalk_1.default.red('Failed to fetch workspaces:'), error.response?.data?.message || error.message);
|