@bussolabs/closeyourit-cli 0.17.1 → 0.19.0
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/README.md +6 -0
- package/dist/commands/servers/ignored-containers.d.ts +15 -0
- package/dist/commands/servers/ignored-containers.js +51 -0
- package/dist/commands/vulnerabilities/ignore.d.ts +13 -0
- package/dist/commands/vulnerabilities/ignore.js +28 -0
- package/dist/commands/vulnerabilities/list.d.ts +14 -0
- package/dist/commands/vulnerabilities/list.js +54 -0
- package/dist/commands/vulnerabilities/promote.d.ts +10 -0
- package/dist/commands/vulnerabilities/promote.js +23 -0
- package/dist/commands/vulnerabilities/reopen.d.ts +10 -0
- package/dist/commands/vulnerabilities/reopen.js +22 -0
- package/dist/commands/vulnerabilities/rescan.d.ts +10 -0
- package/dist/commands/vulnerabilities/rescan.js +20 -0
- package/dist/commands/vulnerabilities/runtimes.d.ts +11 -0
- package/dist/commands/vulnerabilities/runtimes.js +38 -0
- package/dist/commands/vulnerabilities/show.d.ts +10 -0
- package/dist/commands/vulnerabilities/show.js +35 -0
- package/dist/lib/alert-events.d.ts +8 -1
- package/dist/lib/alert-events.js +36 -1
- package/dist/lib/output.js +10 -0
- package/oclif.manifest.json +3415 -2967
- package/opencli.json +307 -3
- package/package.json +8 -8
package/opencli.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"opencli": "0.1",
|
|
4
4
|
"info": {
|
|
5
5
|
"title": "closeyourit",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.19.0",
|
|
7
7
|
"description": "CLI for CloseYourIt — manage org, errors, tokens and tickets with your user token",
|
|
8
8
|
"license": {
|
|
9
9
|
"name": "MIT",
|
|
@@ -264,7 +264,35 @@
|
|
|
264
264
|
"server_disk",
|
|
265
265
|
"server_temp",
|
|
266
266
|
"server_service_failed",
|
|
267
|
-
"server_smart_failing"
|
|
267
|
+
"server_smart_failing",
|
|
268
|
+
"error_spike",
|
|
269
|
+
"log_alert",
|
|
270
|
+
"server_db_down",
|
|
271
|
+
"server_db_connections",
|
|
272
|
+
"server_replication_lag",
|
|
273
|
+
"agents_stalled",
|
|
274
|
+
"server_container_down",
|
|
275
|
+
"agents_host_failing",
|
|
276
|
+
"uptime_slow",
|
|
277
|
+
"analytics_traffic_drop",
|
|
278
|
+
"analytics_traffic_spike",
|
|
279
|
+
"idea_created",
|
|
280
|
+
"idea_commented",
|
|
281
|
+
"workload_due_soon",
|
|
282
|
+
"dataset_training_completed",
|
|
283
|
+
"dataset_training_failed",
|
|
284
|
+
"agents_host_stale",
|
|
285
|
+
"vulnerability_new",
|
|
286
|
+
"runtime_eol",
|
|
287
|
+
"embedding_down",
|
|
288
|
+
"server_container_up",
|
|
289
|
+
"server_db_connection_usage",
|
|
290
|
+
"server_data_volume_disk",
|
|
291
|
+
"server_inode",
|
|
292
|
+
"server_replication_down",
|
|
293
|
+
"server_replication_up",
|
|
294
|
+
"server_container_restart_loop",
|
|
295
|
+
"server_container_stable"
|
|
268
296
|
]
|
|
269
297
|
}
|
|
270
298
|
]
|
|
@@ -606,7 +634,35 @@
|
|
|
606
634
|
"server_disk",
|
|
607
635
|
"server_temp",
|
|
608
636
|
"server_service_failed",
|
|
609
|
-
"server_smart_failing"
|
|
637
|
+
"server_smart_failing",
|
|
638
|
+
"error_spike",
|
|
639
|
+
"log_alert",
|
|
640
|
+
"server_db_down",
|
|
641
|
+
"server_db_connections",
|
|
642
|
+
"server_replication_lag",
|
|
643
|
+
"agents_stalled",
|
|
644
|
+
"server_container_down",
|
|
645
|
+
"agents_host_failing",
|
|
646
|
+
"uptime_slow",
|
|
647
|
+
"analytics_traffic_drop",
|
|
648
|
+
"analytics_traffic_spike",
|
|
649
|
+
"idea_created",
|
|
650
|
+
"idea_commented",
|
|
651
|
+
"workload_due_soon",
|
|
652
|
+
"dataset_training_completed",
|
|
653
|
+
"dataset_training_failed",
|
|
654
|
+
"agents_host_stale",
|
|
655
|
+
"vulnerability_new",
|
|
656
|
+
"runtime_eol",
|
|
657
|
+
"embedding_down",
|
|
658
|
+
"server_container_up",
|
|
659
|
+
"server_db_connection_usage",
|
|
660
|
+
"server_data_volume_disk",
|
|
661
|
+
"server_inode",
|
|
662
|
+
"server_replication_down",
|
|
663
|
+
"server_replication_up",
|
|
664
|
+
"server_container_restart_loop",
|
|
665
|
+
"server_container_stable"
|
|
610
666
|
]
|
|
611
667
|
}
|
|
612
668
|
]
|
|
@@ -6982,6 +7038,38 @@
|
|
|
6982
7038
|
"closeyourit servers delete <server-id> --confirm"
|
|
6983
7039
|
]
|
|
6984
7040
|
},
|
|
7041
|
+
{
|
|
7042
|
+
"name": "ignored-containers",
|
|
7043
|
+
"description": "Read or set the container names this server does not treat as services",
|
|
7044
|
+
"options": [
|
|
7045
|
+
{
|
|
7046
|
+
"name": "--clear",
|
|
7047
|
+
"description": "Remove every ignored container name"
|
|
7048
|
+
},
|
|
7049
|
+
{
|
|
7050
|
+
"name": "--set",
|
|
7051
|
+
"description": "Comma-separated names to ignore (replaces the list)",
|
|
7052
|
+
"arguments": [
|
|
7053
|
+
{
|
|
7054
|
+
"name": "SET",
|
|
7055
|
+
"required": true
|
|
7056
|
+
}
|
|
7057
|
+
]
|
|
7058
|
+
}
|
|
7059
|
+
],
|
|
7060
|
+
"arguments": [
|
|
7061
|
+
{
|
|
7062
|
+
"name": "ID",
|
|
7063
|
+
"required": true,
|
|
7064
|
+
"description": "Server id"
|
|
7065
|
+
}
|
|
7066
|
+
],
|
|
7067
|
+
"examples": [
|
|
7068
|
+
"closeyourit servers ignored-containers <server-id>",
|
|
7069
|
+
"closeyourit servers ignored-containers <server-id> --set buildkit,runner",
|
|
7070
|
+
"closeyourit servers ignored-containers <server-id> --clear"
|
|
7071
|
+
]
|
|
7072
|
+
},
|
|
6985
7073
|
{
|
|
6986
7074
|
"name": "list",
|
|
6987
7075
|
"description": "List the monitored servers in your organization (fleet snapshot)",
|
|
@@ -10085,6 +10173,222 @@
|
|
|
10085
10173
|
}
|
|
10086
10174
|
]
|
|
10087
10175
|
},
|
|
10176
|
+
{
|
|
10177
|
+
"name": "vulnerabilities",
|
|
10178
|
+
"commands": [
|
|
10179
|
+
{
|
|
10180
|
+
"name": "ignore",
|
|
10181
|
+
"description": "Ignore a vulnerability: you accept living with the risk",
|
|
10182
|
+
"aliases": [
|
|
10183
|
+
"vulns:ignore"
|
|
10184
|
+
],
|
|
10185
|
+
"options": [
|
|
10186
|
+
{
|
|
10187
|
+
"name": "--note",
|
|
10188
|
+
"description": "Why you are keeping it (shown alongside the ignored row)",
|
|
10189
|
+
"arguments": [
|
|
10190
|
+
{
|
|
10191
|
+
"name": "NOTE",
|
|
10192
|
+
"required": true
|
|
10193
|
+
}
|
|
10194
|
+
]
|
|
10195
|
+
}
|
|
10196
|
+
],
|
|
10197
|
+
"arguments": [
|
|
10198
|
+
{
|
|
10199
|
+
"name": "ID",
|
|
10200
|
+
"required": true,
|
|
10201
|
+
"description": "Vulnerability finding id"
|
|
10202
|
+
}
|
|
10203
|
+
],
|
|
10204
|
+
"examples": [
|
|
10205
|
+
"closeyourit vulnerabilities ignore <finding-id>",
|
|
10206
|
+
"closeyourit vulnerabilities ignore <finding-id> --note \"Not reachable from our code.\""
|
|
10207
|
+
]
|
|
10208
|
+
},
|
|
10209
|
+
{
|
|
10210
|
+
"name": "list",
|
|
10211
|
+
"description": "List known vulnerabilities of the project dependencies (cross-project)",
|
|
10212
|
+
"aliases": [
|
|
10213
|
+
"vulns:list"
|
|
10214
|
+
],
|
|
10215
|
+
"options": [
|
|
10216
|
+
{
|
|
10217
|
+
"name": "--project",
|
|
10218
|
+
"aliases": [
|
|
10219
|
+
"-p"
|
|
10220
|
+
],
|
|
10221
|
+
"description": "Filter by project id (UUID) or key",
|
|
10222
|
+
"arguments": [
|
|
10223
|
+
{
|
|
10224
|
+
"name": "PROJECT",
|
|
10225
|
+
"required": true
|
|
10226
|
+
}
|
|
10227
|
+
]
|
|
10228
|
+
},
|
|
10229
|
+
{
|
|
10230
|
+
"name": "--severity",
|
|
10231
|
+
"description": "Filter by severity (critical, high, moderate, low, unknown)",
|
|
10232
|
+
"arguments": [
|
|
10233
|
+
{
|
|
10234
|
+
"name": "SEVERITY",
|
|
10235
|
+
"required": true
|
|
10236
|
+
}
|
|
10237
|
+
]
|
|
10238
|
+
},
|
|
10239
|
+
{
|
|
10240
|
+
"name": "--status",
|
|
10241
|
+
"description": "Filter by status (open, resolved, ignored)",
|
|
10242
|
+
"arguments": [
|
|
10243
|
+
{
|
|
10244
|
+
"name": "STATUS",
|
|
10245
|
+
"required": true
|
|
10246
|
+
}
|
|
10247
|
+
]
|
|
10248
|
+
},
|
|
10249
|
+
{
|
|
10250
|
+
"name": "--package",
|
|
10251
|
+
"description": "Filter by package name (partial match)",
|
|
10252
|
+
"arguments": [
|
|
10253
|
+
{
|
|
10254
|
+
"name": "PACKAGE",
|
|
10255
|
+
"required": true
|
|
10256
|
+
}
|
|
10257
|
+
]
|
|
10258
|
+
},
|
|
10259
|
+
{
|
|
10260
|
+
"name": "--page",
|
|
10261
|
+
"description": "Page number",
|
|
10262
|
+
"arguments": [
|
|
10263
|
+
{
|
|
10264
|
+
"name": "PAGE",
|
|
10265
|
+
"required": true
|
|
10266
|
+
}
|
|
10267
|
+
]
|
|
10268
|
+
}
|
|
10269
|
+
],
|
|
10270
|
+
"examples": [
|
|
10271
|
+
"closeyourit vulnerabilities list",
|
|
10272
|
+
"closeyourit vulnerabilities list --severity critical",
|
|
10273
|
+
"closeyourit vulnerabilities list --project acme-api --status open",
|
|
10274
|
+
"closeyourit vulnerabilities list --package nokogiri --json"
|
|
10275
|
+
]
|
|
10276
|
+
},
|
|
10277
|
+
{
|
|
10278
|
+
"name": "promote",
|
|
10279
|
+
"description": "Open a ticket from a vulnerability (automatic promotion only fires on high/critical)",
|
|
10280
|
+
"aliases": [
|
|
10281
|
+
"vulns:promote"
|
|
10282
|
+
],
|
|
10283
|
+
"arguments": [
|
|
10284
|
+
{
|
|
10285
|
+
"name": "ID",
|
|
10286
|
+
"required": true,
|
|
10287
|
+
"description": "Vulnerability finding id"
|
|
10288
|
+
}
|
|
10289
|
+
],
|
|
10290
|
+
"examples": [
|
|
10291
|
+
"closeyourit vulnerabilities promote <finding-id>"
|
|
10292
|
+
]
|
|
10293
|
+
},
|
|
10294
|
+
{
|
|
10295
|
+
"name": "reopen",
|
|
10296
|
+
"description": "Reopen an ignored vulnerability: you changed your mind",
|
|
10297
|
+
"aliases": [
|
|
10298
|
+
"vulns:reopen"
|
|
10299
|
+
],
|
|
10300
|
+
"arguments": [
|
|
10301
|
+
{
|
|
10302
|
+
"name": "ID",
|
|
10303
|
+
"required": true,
|
|
10304
|
+
"description": "Vulnerability finding id"
|
|
10305
|
+
}
|
|
10306
|
+
],
|
|
10307
|
+
"examples": [
|
|
10308
|
+
"closeyourit vulnerabilities reopen <finding-id>"
|
|
10309
|
+
]
|
|
10310
|
+
},
|
|
10311
|
+
{
|
|
10312
|
+
"name": "rescan",
|
|
10313
|
+
"description": "Rescan a project now, without waiting for the nightly run",
|
|
10314
|
+
"aliases": [
|
|
10315
|
+
"vulns:rescan"
|
|
10316
|
+
],
|
|
10317
|
+
"options": [
|
|
10318
|
+
{
|
|
10319
|
+
"name": "--project",
|
|
10320
|
+
"aliases": [
|
|
10321
|
+
"-p"
|
|
10322
|
+
],
|
|
10323
|
+
"description": "Project id (UUID) or key",
|
|
10324
|
+
"required": true,
|
|
10325
|
+
"arguments": [
|
|
10326
|
+
{
|
|
10327
|
+
"name": "PROJECT",
|
|
10328
|
+
"required": true
|
|
10329
|
+
}
|
|
10330
|
+
]
|
|
10331
|
+
}
|
|
10332
|
+
],
|
|
10333
|
+
"examples": [
|
|
10334
|
+
"closeyourit vulnerabilities rescan --project acme-api"
|
|
10335
|
+
]
|
|
10336
|
+
},
|
|
10337
|
+
{
|
|
10338
|
+
"name": "runtimes",
|
|
10339
|
+
"description": "List the support state of the declared runtimes (Ruby, Node, Flutter…)",
|
|
10340
|
+
"aliases": [
|
|
10341
|
+
"vulns:runtimes"
|
|
10342
|
+
],
|
|
10343
|
+
"options": [
|
|
10344
|
+
{
|
|
10345
|
+
"name": "--project",
|
|
10346
|
+
"aliases": [
|
|
10347
|
+
"-p"
|
|
10348
|
+
],
|
|
10349
|
+
"description": "Filter by project id (UUID) or key",
|
|
10350
|
+
"arguments": [
|
|
10351
|
+
{
|
|
10352
|
+
"name": "PROJECT",
|
|
10353
|
+
"required": true
|
|
10354
|
+
}
|
|
10355
|
+
]
|
|
10356
|
+
},
|
|
10357
|
+
{
|
|
10358
|
+
"name": "--page",
|
|
10359
|
+
"description": "Page number",
|
|
10360
|
+
"arguments": [
|
|
10361
|
+
{
|
|
10362
|
+
"name": "PAGE",
|
|
10363
|
+
"required": true
|
|
10364
|
+
}
|
|
10365
|
+
]
|
|
10366
|
+
}
|
|
10367
|
+
],
|
|
10368
|
+
"examples": [
|
|
10369
|
+
"closeyourit vulnerabilities runtimes",
|
|
10370
|
+
"closeyourit vulnerabilities runtimes --project acme-api --json"
|
|
10371
|
+
]
|
|
10372
|
+
},
|
|
10373
|
+
{
|
|
10374
|
+
"name": "show",
|
|
10375
|
+
"description": "Show a single vulnerability: advisory, package, manifest and the fixing version",
|
|
10376
|
+
"aliases": [
|
|
10377
|
+
"vulns:show"
|
|
10378
|
+
],
|
|
10379
|
+
"arguments": [
|
|
10380
|
+
{
|
|
10381
|
+
"name": "ID",
|
|
10382
|
+
"required": true,
|
|
10383
|
+
"description": "Vulnerability finding id"
|
|
10384
|
+
}
|
|
10385
|
+
],
|
|
10386
|
+
"examples": [
|
|
10387
|
+
"closeyourit vulnerabilities show <finding-id>"
|
|
10388
|
+
]
|
|
10389
|
+
}
|
|
10390
|
+
]
|
|
10391
|
+
},
|
|
10088
10392
|
{
|
|
10089
10393
|
"name": "whoami",
|
|
10090
10394
|
"description": "Show the authenticated account, organization, token prefix and permissions",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bussolabs/closeyourit-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "CLI for CloseYourIt — manage org, errors, tokens and tickets with your user token",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"node": ">=20"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@oclif/core": "^4",
|
|
28
|
-
"@oclif/plugin-help": "^6"
|
|
27
|
+
"@oclif/core": "^4.13.3",
|
|
28
|
+
"@oclif/plugin-help": "^6.2.58"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^22",
|
|
32
|
-
"@vitest/coverage-v8": "^2.
|
|
33
|
-
"oclif": "^4",
|
|
34
|
-
"typescript": "^5",
|
|
35
|
-
"vitest": "^2"
|
|
31
|
+
"@types/node": "^22.20.1",
|
|
32
|
+
"@vitest/coverage-v8": "^3.2.7",
|
|
33
|
+
"oclif": "^4.23.30",
|
|
34
|
+
"typescript": "^5.9.3",
|
|
35
|
+
"vitest": "^3.2.7"
|
|
36
36
|
},
|
|
37
37
|
"oclif": {
|
|
38
38
|
"bin": "closeyourit",
|