@quantum-hub/qhubctl 1.0.0 → 1.1.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.
@@ -55,7 +55,7 @@ class Run extends command_1.AuthenticatedCommand {
55
55
  Object.assign(mergedInput, content);
56
56
  hasValidFile = true;
57
57
  }
58
- catch (error) {
58
+ catch {
59
59
  core_1.ux.warn(`Failed to parse JSON from ${filePath}. Skipping this file.`);
60
60
  }
61
61
  }
@@ -23,38 +23,33 @@
23
23
  "index.js"
24
24
  ]
25
25
  },
26
- "datapool:upload": {
26
+ "init": {
27
27
  "aliases": [],
28
28
  "args": {},
29
- "description": "Upload files to a data pool",
29
+ "description": "Bootstrap project to create a service.",
30
30
  "examples": [
31
- "$ qhubctl datapool upload --file ./data/dataset.csv",
32
- "$ qhubctl datapool upload --file ./data/dataset.csv --file ./data/metadata.json",
33
- "$ qhubctl datapool upload -f ./data/dataset.csv -f ./data/metadata.json --datapool-id 550e8400-e29b-41d4-a716-446655440000"
31
+ "$ qhubctl init"
34
32
  ],
35
33
  "flags": {
36
- "file": {
37
- "char": "f",
38
- "description": "Path to a file to upload (can be specified multiple times)",
39
- "name": "file",
40
- "required": true,
41
- "hasDynamicHelp": false,
42
- "multiple": true,
43
- "type": "option"
44
- },
45
- "datapool-id": {
46
- "char": "d",
47
- "description": "ID of the data pool to upload the files to (optional - will prompt to create a new one if not provided)",
48
- "name": "datapool-id",
34
+ "name": {
35
+ "description": "The name of the service",
36
+ "name": "name",
49
37
  "required": false,
50
38
  "hasDynamicHelp": false,
51
39
  "multiple": false,
52
40
  "type": "option"
41
+ },
42
+ "non-interactive": {
43
+ "description": "Run it in non-interactive mode",
44
+ "name": "non-interactive",
45
+ "required": false,
46
+ "allowNo": false,
47
+ "type": "boolean"
53
48
  }
54
49
  },
55
50
  "hasDynamicHelp": false,
56
51
  "hiddenAliases": [],
57
- "id": "datapool:upload",
52
+ "id": "init",
58
53
  "pluginAlias": "@quantum-hub/qhubctl",
59
54
  "pluginName": "@quantum-hub/qhubctl",
60
55
  "pluginType": "core",
@@ -63,8 +58,8 @@
63
58
  "relativePath": [
64
59
  "dist",
65
60
  "commands",
66
- "datapool",
67
- "upload.js"
61
+ "init",
62
+ "index.js"
68
63
  ]
69
64
  },
70
65
  "get-context": {
@@ -113,33 +108,80 @@
113
108
  "index.js"
114
109
  ]
115
110
  },
116
- "init": {
111
+ "datapool:upload": {
117
112
  "aliases": [],
118
113
  "args": {},
119
- "description": "Bootstrap project to create a service.",
114
+ "description": "Upload files to a data pool",
120
115
  "examples": [
121
- "$ qhubctl init"
116
+ "$ qhubctl datapool upload --file ./data/dataset.csv",
117
+ "$ qhubctl datapool upload --file ./data/dataset.csv --file ./data/metadata.json",
118
+ "$ qhubctl datapool upload -f ./data/dataset.csv -f ./data/metadata.json --datapool-id 550e8400-e29b-41d4-a716-446655440000"
122
119
  ],
123
120
  "flags": {
124
- "name": {
125
- "description": "The name of the service",
126
- "name": "name",
121
+ "file": {
122
+ "char": "f",
123
+ "description": "Path to a file to upload (can be specified multiple times)",
124
+ "name": "file",
125
+ "required": true,
126
+ "hasDynamicHelp": false,
127
+ "multiple": true,
128
+ "type": "option"
129
+ },
130
+ "datapool-id": {
131
+ "char": "d",
132
+ "description": "ID of the data pool to upload the files to (optional - will prompt to create a new one if not provided)",
133
+ "name": "datapool-id",
134
+ "required": false,
135
+ "hasDynamicHelp": false,
136
+ "multiple": false,
137
+ "type": "option"
138
+ }
139
+ },
140
+ "hasDynamicHelp": false,
141
+ "hiddenAliases": [],
142
+ "id": "datapool:upload",
143
+ "pluginAlias": "@quantum-hub/qhubctl",
144
+ "pluginName": "@quantum-hub/qhubctl",
145
+ "pluginType": "core",
146
+ "strict": true,
147
+ "isESM": false,
148
+ "relativePath": [
149
+ "dist",
150
+ "commands",
151
+ "datapool",
152
+ "upload.js"
153
+ ]
154
+ },
155
+ "login": {
156
+ "aliases": [],
157
+ "args": {},
158
+ "description": "Login with your credentials",
159
+ "examples": [
160
+ "$ qhubctl login -t <personal access token>",
161
+ "$ qhubctl login -t <personal access token> --base-path https://api.hub.kipu-quantum.com"
162
+ ],
163
+ "flags": {
164
+ "token": {
165
+ "char": "t",
166
+ "description": "Your personal access token",
167
+ "name": "token",
127
168
  "required": false,
128
169
  "hasDynamicHelp": false,
129
170
  "multiple": false,
130
171
  "type": "option"
131
172
  },
132
- "non-interactive": {
133
- "description": "Run it in non-interactive mode",
134
- "name": "non-interactive",
173
+ "base-path": {
174
+ "description": "Custom base path for authentication (development)",
175
+ "name": "base-path",
135
176
  "required": false,
136
- "allowNo": false,
137
- "type": "boolean"
177
+ "hasDynamicHelp": false,
178
+ "multiple": false,
179
+ "type": "option"
138
180
  }
139
181
  },
140
182
  "hasDynamicHelp": false,
141
183
  "hiddenAliases": [],
142
- "id": "init",
184
+ "id": "login",
143
185
  "pluginAlias": "@quantum-hub/qhubctl",
144
186
  "pluginName": "@quantum-hub/qhubctl",
145
187
  "pluginType": "core",
@@ -148,7 +190,30 @@
148
190
  "relativePath": [
149
191
  "dist",
150
192
  "commands",
151
- "init",
193
+ "login",
194
+ "index.js"
195
+ ]
196
+ },
197
+ "logout": {
198
+ "aliases": [],
199
+ "args": {},
200
+ "description": "Logout",
201
+ "examples": [
202
+ "$ qhubctl logout"
203
+ ],
204
+ "flags": {},
205
+ "hasDynamicHelp": false,
206
+ "hiddenAliases": [],
207
+ "id": "logout",
208
+ "pluginAlias": "@quantum-hub/qhubctl",
209
+ "pluginName": "@quantum-hub/qhubctl",
210
+ "pluginType": "core",
211
+ "strict": true,
212
+ "isESM": false,
213
+ "relativePath": [
214
+ "dist",
215
+ "commands",
216
+ "logout",
152
217
  "index.js"
153
218
  ]
154
219
  },
@@ -231,6 +296,51 @@
231
296
  "index.js"
232
297
  ]
233
298
  },
299
+ "serve": {
300
+ "aliases": [],
301
+ "args": {},
302
+ "description": "Runs your project in a containerized environment and expose it through a local web server, similarly to how Kipu Quantum Hub would run your code. The local web server exposes the same HTTP endpoints to start a service execution, to check the status of running executions, to cancel executions, and to retrieve execution results.",
303
+ "examples": [
304
+ "$ qhubctl serve",
305
+ "$ qhubctl serve -p <port> --log_level <log_level>"
306
+ ],
307
+ "flags": {
308
+ "port": {
309
+ "char": "p",
310
+ "description": "The port on which the local web server accepts requests",
311
+ "name": "port",
312
+ "required": false,
313
+ "hasDynamicHelp": false,
314
+ "multiple": false,
315
+ "type": "option"
316
+ },
317
+ "log_level": {
318
+ "description": "The log level for the service, possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL",
319
+ "name": "log_level",
320
+ "required": false,
321
+ "default": "INFO",
322
+ "hasDynamicHelp": false,
323
+ "multiple": false,
324
+ "type": "option"
325
+ }
326
+ },
327
+ "hasDynamicHelp": false,
328
+ "hiddenAliases": [],
329
+ "id": "serve",
330
+ "pluginAlias": "@quantum-hub/qhubctl",
331
+ "pluginName": "@quantum-hub/qhubctl",
332
+ "pluginType": "core",
333
+ "strict": true,
334
+ "CONTAINER_NAME": "planqk-cli-serve",
335
+ "IMAGE": "registry.gitlab.com/planqk-foss/planqk-cli-serve:latest",
336
+ "isESM": false,
337
+ "relativePath": [
338
+ "dist",
339
+ "commands",
340
+ "serve",
341
+ "index.js"
342
+ ]
343
+ },
234
344
  "run": {
235
345
  "aliases": [],
236
346
  "args": {
@@ -290,116 +400,6 @@
290
400
  "index.js"
291
401
  ]
292
402
  },
293
- "login": {
294
- "aliases": [],
295
- "args": {},
296
- "description": "Login with your credentials",
297
- "examples": [
298
- "$ qhubctl login -t <personal access token>",
299
- "$ qhubctl login -t <personal access token> --base-path https://api.hub.kipu-quantum.com"
300
- ],
301
- "flags": {
302
- "token": {
303
- "char": "t",
304
- "description": "Your personal access token",
305
- "name": "token",
306
- "required": false,
307
- "hasDynamicHelp": false,
308
- "multiple": false,
309
- "type": "option"
310
- },
311
- "base-path": {
312
- "description": "Custom base path for authentication (development)",
313
- "name": "base-path",
314
- "required": false,
315
- "hasDynamicHelp": false,
316
- "multiple": false,
317
- "type": "option"
318
- }
319
- },
320
- "hasDynamicHelp": false,
321
- "hiddenAliases": [],
322
- "id": "login",
323
- "pluginAlias": "@quantum-hub/qhubctl",
324
- "pluginName": "@quantum-hub/qhubctl",
325
- "pluginType": "core",
326
- "strict": true,
327
- "isESM": false,
328
- "relativePath": [
329
- "dist",
330
- "commands",
331
- "login",
332
- "index.js"
333
- ]
334
- },
335
- "logout": {
336
- "aliases": [],
337
- "args": {},
338
- "description": "Logout",
339
- "examples": [
340
- "$ qhubctl logout"
341
- ],
342
- "flags": {},
343
- "hasDynamicHelp": false,
344
- "hiddenAliases": [],
345
- "id": "logout",
346
- "pluginAlias": "@quantum-hub/qhubctl",
347
- "pluginName": "@quantum-hub/qhubctl",
348
- "pluginType": "core",
349
- "strict": true,
350
- "isESM": false,
351
- "relativePath": [
352
- "dist",
353
- "commands",
354
- "logout",
355
- "index.js"
356
- ]
357
- },
358
- "serve": {
359
- "aliases": [],
360
- "args": {},
361
- "description": "Runs your project in a containerized environment and expose it through a local web server, similarly to how Kipu Quantum Hub would run your code. The local web server exposes the same HTTP endpoints to start a service execution, to check the status of running executions, to cancel executions, and to retrieve execution results.",
362
- "examples": [
363
- "$ qhubctl serve",
364
- "$ qhubctl serve -p <port> --log_level <log_level>"
365
- ],
366
- "flags": {
367
- "port": {
368
- "char": "p",
369
- "description": "The port on which the local web server accepts requests",
370
- "name": "port",
371
- "required": false,
372
- "hasDynamicHelp": false,
373
- "multiple": false,
374
- "type": "option"
375
- },
376
- "log_level": {
377
- "description": "The log level for the service, possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL",
378
- "name": "log_level",
379
- "required": false,
380
- "default": "INFO",
381
- "hasDynamicHelp": false,
382
- "multiple": false,
383
- "type": "option"
384
- }
385
- },
386
- "hasDynamicHelp": false,
387
- "hiddenAliases": [],
388
- "id": "serve",
389
- "pluginAlias": "@quantum-hub/qhubctl",
390
- "pluginName": "@quantum-hub/qhubctl",
391
- "pluginType": "core",
392
- "strict": true,
393
- "CONTAINER_NAME": "planqk-cli-serve",
394
- "IMAGE": "registry.gitlab.com/planqk-foss/planqk-cli-serve:latest",
395
- "isESM": false,
396
- "relativePath": [
397
- "dist",
398
- "commands",
399
- "serve",
400
- "index.js"
401
- ]
402
- },
403
403
  "services": {
404
404
  "aliases": [],
405
405
  "args": {},
@@ -448,6 +448,34 @@
448
448
  "index.js"
449
449
  ]
450
450
  },
451
+ "set-context": {
452
+ "aliases": [],
453
+ "args": {
454
+ "contextId": {
455
+ "name": "contextId"
456
+ }
457
+ },
458
+ "description": "Set the current context, i.e., the personal or organization account you are currently working with.",
459
+ "examples": [
460
+ "$ qhubctl set-context",
461
+ "$ qhubctl set-context <context-id>"
462
+ ],
463
+ "flags": {},
464
+ "hasDynamicHelp": false,
465
+ "hiddenAliases": [],
466
+ "id": "set-context",
467
+ "pluginAlias": "@quantum-hub/qhubctl",
468
+ "pluginName": "@quantum-hub/qhubctl",
469
+ "pluginType": "core",
470
+ "strict": true,
471
+ "isESM": false,
472
+ "relativePath": [
473
+ "dist",
474
+ "commands",
475
+ "set-context",
476
+ "index.js"
477
+ ]
478
+ },
451
479
  "up": {
452
480
  "aliases": [],
453
481
  "args": {},
@@ -496,35 +524,7 @@
496
524
  "up",
497
525
  "index.js"
498
526
  ]
499
- },
500
- "set-context": {
501
- "aliases": [],
502
- "args": {
503
- "contextId": {
504
- "name": "contextId"
505
- }
506
- },
507
- "description": "Set the current context, i.e., the personal or organization account you are currently working with.",
508
- "examples": [
509
- "$ qhubctl set-context",
510
- "$ qhubctl set-context <context-id>"
511
- ],
512
- "flags": {},
513
- "hasDynamicHelp": false,
514
- "hiddenAliases": [],
515
- "id": "set-context",
516
- "pluginAlias": "@quantum-hub/qhubctl",
517
- "pluginName": "@quantum-hub/qhubctl",
518
- "pluginType": "core",
519
- "strict": true,
520
- "isESM": false,
521
- "relativePath": [
522
- "dist",
523
- "commands",
524
- "set-context",
525
- "index.js"
526
- ]
527
527
  }
528
528
  },
529
- "version": "1.0.0"
529
+ "version": "1.1.1"
530
530
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantum-hub/qhubctl",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Quantum Hub CLI",
5
5
  "author": "Kipu Quantum GmbH",
6
6
  "contributors": [
@@ -26,27 +26,27 @@
26
26
  "/oclif.manifest.json"
27
27
  ],
28
28
  "dependencies": {
29
- "@oclif/core": "^4.5.2",
30
- "@oclif/plugin-autocomplete": "^3.2.34",
31
- "@oclif/plugin-help": "^6.2.32",
32
- "@oclif/plugin-not-found": "^3.2.62",
33
- "@oclif/plugin-version": "^2.2.32",
34
- "@oclif/plugin-warn-if-update-available": "^3.1.46",
29
+ "@oclif/core": "^4.8.1",
30
+ "@oclif/plugin-autocomplete": "^3.2.40",
31
+ "@oclif/plugin-help": "^6.2.37",
32
+ "@oclif/plugin-not-found": "^3.2.74",
33
+ "@oclif/plugin-version": "^2.2.36",
34
+ "@oclif/plugin-warn-if-update-available": "^3.1.55",
35
35
  "@quantum-hub/qhub-api": "^1",
36
36
  "adm-zip": "^0.5.16",
37
- "async-wait-until": "^2.0.27",
38
- "fs-extra": "^11.3.0",
37
+ "async-wait-until": "^2.0.31",
38
+ "fs-extra": "^11.3.3",
39
39
  "ignore": "^7.0.5",
40
- "inquirer": "^12.9.0",
40
+ "inquirer": "^13.3.0",
41
41
  "listr": "^0.14.3",
42
- "terminal-link": "^4.0.0",
43
- "tty-table": "^4.2.3",
44
- "yaml": "^2.8.0"
42
+ "terminal-link": "^5.0.0",
43
+ "tty-table": "^5.0.0",
44
+ "yaml": "^2.8.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@eslint/js": "^9",
48
48
  "@oclif/prettier-config": "^0.2.1",
49
- "@oclif/test": "^4.1.13",
49
+ "@oclif/test": "^4.1.16",
50
50
  "@types/adm-zip": "^0.5.7",
51
51
  "@types/chai": "^5.2.2",
52
52
  "@types/fs-extra": "^11.0.4",
@@ -58,11 +58,11 @@
58
58
  "eslint": "^9.32.0",
59
59
  "mocha": "^11.7.1",
60
60
  "nyc": "^17.1.0",
61
- "oclif": "^4.22.5",
61
+ "oclif": "^4.22.81",
62
62
  "shx": "^0.4.0",
63
63
  "ts-node": "^10.9.2",
64
- "typescript": "^5.8.3",
65
- "typescript-eslint": "^8.38.0"
64
+ "typescript": "^5.9.3",
65
+ "typescript-eslint": "^8.56.1"
66
66
  },
67
67
  "oclif": {
68
68
  "bin": "qhubctl",