@boltic/cli 1.0.6-beta.0 → 1.0.6-beta.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/.claude/settings.local.json +15 -0
- package/README.md +0 -4
- package/cli.js +6 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@boltic/cli)
|
|
6
6
|
[](./LICENSE)
|
|
7
|
-
[](https://nodejs.org/)
|
|
8
7
|
|
|
9
8
|
---
|
|
10
9
|
|
|
@@ -43,17 +42,14 @@ You’ll be prompted to enter:
|
|
|
43
42
|
- **Name**: Letters and underscores only (e.g., My_Integration)
|
|
44
43
|
- **Icon**: Select an SVG file from your computer
|
|
45
44
|
- **Integration Type**:
|
|
46
|
-
|
|
47
45
|
- Workflow Activity: Reusable components that perform specific tasks
|
|
48
46
|
- Workflow Trigger: Components that start your workflow based on external events
|
|
49
47
|
- You can choose to create both types for the same integration
|
|
50
48
|
|
|
51
49
|
- **Descriptions**
|
|
52
|
-
|
|
53
50
|
- Human-readable and AI-generated
|
|
54
51
|
|
|
55
52
|
- **Integration Group**
|
|
56
|
-
|
|
57
53
|
- e.g., Analytics, CRM, ERP, Marketing, Payment, Social Media, Other
|
|
58
54
|
|
|
59
55
|
### ✏️ Edit an Integration
|
package/cli.js
CHANGED
|
@@ -14,7 +14,8 @@ const createCLI = (consoleUrl, apiUrl, serviceName, env) => {
|
|
|
14
14
|
const commands = {
|
|
15
15
|
login: {
|
|
16
16
|
description: "Authenticate the user and save access token",
|
|
17
|
-
action: () =>
|
|
17
|
+
action: async () =>
|
|
18
|
+
await AuthCommands.handleLogin(consoleUrl, apiUrl, env),
|
|
18
19
|
},
|
|
19
20
|
integration: {
|
|
20
21
|
description: "Manage integrations (create, list)",
|
|
@@ -74,9 +75,10 @@ const createCLI = (consoleUrl, apiUrl, serviceName, env) => {
|
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
// Check if user is authenticated for all commands except login, help, and version
|
|
78
|
+
// Check if user is authenticated for all commands except login, logout, help, and version
|
|
78
79
|
if (
|
|
79
80
|
command !== "login" &&
|
|
81
|
+
command !== "logout" &&
|
|
80
82
|
command !== "help" &&
|
|
81
83
|
command !== "version"
|
|
82
84
|
) {
|
|
@@ -112,7 +114,7 @@ async function showHelp(commands) {
|
|
|
112
114
|
packageJson = JSON.parse(
|
|
113
115
|
fs.readFileSync(path.join(process.cwd(), "package.json"))
|
|
114
116
|
);
|
|
115
|
-
} catch (
|
|
117
|
+
} catch (_) {
|
|
116
118
|
// Fallback version if package.json not found
|
|
117
119
|
packageJson = { version: "1.0.0" };
|
|
118
120
|
}
|
|
@@ -145,7 +147,7 @@ async function showVersion() {
|
|
|
145
147
|
packageJson = JSON.parse(
|
|
146
148
|
fs.readFileSync(path.join(process.cwd(), "package.json"))
|
|
147
149
|
);
|
|
148
|
-
} catch (
|
|
150
|
+
} catch (_) {
|
|
149
151
|
// Fallback version if package.json not found
|
|
150
152
|
packageJson = { version: "1.0.0" };
|
|
151
153
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boltic/cli",
|
|
3
|
-
"version": "1.0.6-beta.
|
|
3
|
+
"version": "1.0.6-beta.1",
|
|
4
4
|
"description": "A powerful CLI tool for managing Boltic Workflow integrations",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"chalk": "^5.3.0",
|
|
36
36
|
"keytar": "^7.9.0",
|
|
37
37
|
"open": "^10.1.0",
|
|
38
|
-
"uuid": "^11.1.0"
|
|
38
|
+
"uuid": "^11.1.0",
|
|
39
|
+
"lodash.isempty": "^4.4.0"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@babel/core": "^7.26.9",
|
|
@@ -51,7 +52,6 @@
|
|
|
51
52
|
"husky": "^9.1.7",
|
|
52
53
|
"jest": "^29.7.0",
|
|
53
54
|
"lint-staged": "^15.4.3",
|
|
54
|
-
"lodash.isempty": "^4.4.0",
|
|
55
55
|
"nodemon": "^3.1.9",
|
|
56
56
|
"prettier": "^3.5.3"
|
|
57
57
|
}
|