@boltic/cli 1.0.6-beta.11 → 1.0.6-beta.3
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 +17 -0
- package/README.md +0 -1
- package/commands/integration.js +0 -26
- package/helper/folder.js +1 -5
- package/package.json +2 -9
- package/templates/schemas.js +5 -23
- package/LICENSE +0 -21
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(mkdir:*)",
|
|
5
|
+
"Bash(npm test)",
|
|
6
|
+
"Bash(npm test:*)",
|
|
7
|
+
"Bash(ls:*)",
|
|
8
|
+
"Bash(npx jest:*)",
|
|
9
|
+
"Bash(rm:*)",
|
|
10
|
+
"Bash(grep:*)",
|
|
11
|
+
"Bash(touch:*)",
|
|
12
|
+
"Bash(npm run lint)",
|
|
13
|
+
"Bash(node:*)"
|
|
14
|
+
],
|
|
15
|
+
"deny": []
|
|
16
|
+
}
|
|
17
|
+
}
|
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
> A powerful CLI tool for creating, managing, and publishing Boltic integrations.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@boltic/cli)
|
|
6
|
-
[](https://github.com/<your-username>/<your-repo>)
|
|
7
6
|
[](./LICENSE)
|
|
8
7
|
|
|
9
8
|
---
|
package/commands/integration.js
CHANGED
|
@@ -151,19 +151,6 @@ async function handleSync(args) {
|
|
|
151
151
|
if (fs.existsSync(specPath)) {
|
|
152
152
|
const specContent = JSON.parse(fs.readFileSync(specPath, "utf8"));
|
|
153
153
|
// Update integration with spec.json content
|
|
154
|
-
|
|
155
|
-
if (
|
|
156
|
-
specContent.trigger_type &&
|
|
157
|
-
specContent.trigger_type !== "CloudTrigger"
|
|
158
|
-
) {
|
|
159
|
-
console.error(
|
|
160
|
-
chalk.red(
|
|
161
|
-
`Error: Invalid trigger_type "${specContent.trigger_type}". It should be "CloudTrigger" or null.`
|
|
162
|
-
)
|
|
163
|
-
);
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
154
|
const updatedIntegration = await updateIntegration(
|
|
168
155
|
apiUrl,
|
|
169
156
|
token,
|
|
@@ -262,19 +249,6 @@ async function handlePublish(args) {
|
|
|
262
249
|
if (fs.existsSync(specPath)) {
|
|
263
250
|
const specContent = JSON.parse(fs.readFileSync(specPath, "utf8"));
|
|
264
251
|
// Update integration with spec.json content
|
|
265
|
-
|
|
266
|
-
if (
|
|
267
|
-
specContent.trigger_type &&
|
|
268
|
-
specContent.trigger_type !== "CloudTrigger"
|
|
269
|
-
) {
|
|
270
|
-
console.error(
|
|
271
|
-
chalk.red(
|
|
272
|
-
`Error: Invalid trigger_type "${specContent.trigger_type}". It should be "CloudTrigger" or null.`
|
|
273
|
-
)
|
|
274
|
-
);
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
252
|
const updatedIntegration = await updateIntegration(
|
|
279
253
|
apiUrl,
|
|
280
254
|
token,
|
package/helper/folder.js
CHANGED
|
@@ -57,11 +57,7 @@ export const createIntegrationFolderStructure = async (
|
|
|
57
57
|
4
|
|
58
58
|
),
|
|
59
59
|
}),
|
|
60
|
-
"schemas/base.json": JSON.stringify(
|
|
61
|
-
base(name, create_catalogue),
|
|
62
|
-
null,
|
|
63
|
-
4
|
|
64
|
-
),
|
|
60
|
+
"schemas/base.json": JSON.stringify(base(name), null, 4),
|
|
65
61
|
...(!isEmpty(trigger_type) && {
|
|
66
62
|
"schemas/webhook.json": JSON.stringify(webhook(name), null, 4),
|
|
67
63
|
}),
|
package/package.json
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boltic/cli",
|
|
3
|
-
"version": "1.0.6-beta.
|
|
3
|
+
"version": "1.0.6-beta.3",
|
|
4
4
|
"description": "A powerful CLI tool for managing Boltic Workflow integrations",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"boltic": "index.js"
|
|
8
8
|
},
|
|
9
9
|
"author": "Ahmed Sakri <ahmedsakri@gofynd.com>",
|
|
10
|
-
"
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "https://github.com/bolticio/cli.git"
|
|
13
|
-
},
|
|
14
|
-
"homepage": "https://github.com/bolticio/cli#readme",
|
|
15
|
-
"bugs": {
|
|
16
|
-
"url": "https://github.com/bolticio/cli/issues"
|
|
17
|
-
},
|
|
10
|
+
"homepage": "https://www.boltic.io",
|
|
18
11
|
"scripts": {
|
|
19
12
|
"start": "node index.js",
|
|
20
13
|
"dev": "nodemon index.js",
|
package/templates/schemas.js
CHANGED
|
@@ -45,24 +45,10 @@ const authentication = {
|
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const base = (name
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
meta: {
|
|
53
|
-
displayName: "Service Account",
|
|
54
|
-
displayType: "hidden",
|
|
55
|
-
placeholder: "Select Service Account",
|
|
56
|
-
description:
|
|
57
|
-
"Your service account credentials are encrypted & can be removed at any time.",
|
|
58
|
-
options: [],
|
|
59
|
-
value: `__BOLTIC_INTEGRATION_${name.toUpperCase()}`,
|
|
60
|
-
validation: {
|
|
61
|
-
required: true,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
}
|
|
65
|
-
: {
|
|
48
|
+
const base = (name) => {
|
|
49
|
+
return {
|
|
50
|
+
parameters: [
|
|
51
|
+
{
|
|
66
52
|
name: "secret",
|
|
67
53
|
meta: {
|
|
68
54
|
displayName: "Service Account",
|
|
@@ -86,11 +72,7 @@ const base = (name, create_catalogue) => {
|
|
|
86
72
|
required: true,
|
|
87
73
|
},
|
|
88
74
|
},
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
parameters: [
|
|
93
|
-
secretParameter,
|
|
75
|
+
},
|
|
94
76
|
{
|
|
95
77
|
name: "resource",
|
|
96
78
|
meta: {
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Boltic.io
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|