pontus-x_cli 1.0.2 → 1.1.4

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.
Files changed (107) hide show
  1. package/README.md +124 -38
  2. package/bin/dev.js +5 -5
  3. package/bin/run.js +4 -5
  4. package/dist/commands/access.d.ts +1 -1
  5. package/dist/commands/access.js +3 -3
  6. package/dist/commands/access.js.map +1 -1
  7. package/dist/commands/change-price.d.ts +3 -3
  8. package/dist/commands/change-price.js +12 -11
  9. package/dist/commands/change-price.js.map +1 -1
  10. package/dist/commands/check-participant-compliance.d.ts +1 -1
  11. package/dist/commands/check-participant-compliance.js +13 -11
  12. package/dist/commands/check-participant-compliance.js.map +1 -1
  13. package/dist/commands/compute-results.d.ts +1 -1
  14. package/dist/commands/compute-results.js +7 -7
  15. package/dist/commands/compute-results.js.map +1 -1
  16. package/dist/commands/compute-status.d.ts +1 -1
  17. package/dist/commands/compute-status.js +7 -7
  18. package/dist/commands/compute-status.js.map +1 -1
  19. package/dist/commands/compute.d.ts +5 -4
  20. package/dist/commands/compute.js +60 -14
  21. package/dist/commands/compute.js.map +1 -1
  22. package/dist/commands/edit-additional-metadata.d.ts +13 -0
  23. package/dist/commands/edit-additional-metadata.js +88 -0
  24. package/dist/commands/edit-additional-metadata.js.map +1 -0
  25. package/dist/commands/edit-algo.d.ts +3 -3
  26. package/dist/commands/edit-algo.js +22 -13
  27. package/dist/commands/edit-algo.js.map +1 -1
  28. package/dist/commands/edit-asset-url.d.ts +3 -3
  29. package/dist/commands/edit-asset-url.js +12 -11
  30. package/dist/commands/edit-asset-url.js.map +1 -1
  31. package/dist/commands/edit-trusted-algos.d.ts +1 -1
  32. package/dist/commands/edit-trusted-algos.js +10 -6
  33. package/dist/commands/edit-trusted-algos.js.map +1 -1
  34. package/dist/commands/export-private-key.d.ts +2 -2
  35. package/dist/commands/export-private-key.js +27 -27
  36. package/dist/commands/export-private-key.js.map +1 -1
  37. package/dist/commands/generate-asset-credentials.d.ts +1 -1
  38. package/dist/commands/generate-asset-credentials.js +11 -11
  39. package/dist/commands/generate-asset-credentials.js.map +1 -1
  40. package/dist/commands/generate-did-web.d.ts +1 -1
  41. package/dist/commands/generate-did-web.js +11 -11
  42. package/dist/commands/generate-did-web.js.map +1 -1
  43. package/dist/commands/generate-participant-credentials.d.ts +1 -1
  44. package/dist/commands/generate-participant-credentials.js +10 -10
  45. package/dist/commands/generate-participant-credentials.js.map +1 -1
  46. package/dist/commands/get.d.ts +1 -1
  47. package/dist/commands/get.js +3 -3
  48. package/dist/commands/get.js.map +1 -1
  49. package/dist/commands/login.d.ts +2 -2
  50. package/dist/commands/login.js +16 -13
  51. package/dist/commands/login.js.map +1 -1
  52. package/dist/commands/logout.d.ts +1 -1
  53. package/dist/commands/logout.js +7 -7
  54. package/dist/commands/logout.js.map +1 -1
  55. package/dist/commands/publish.d.ts +5 -3
  56. package/dist/commands/publish.js +95 -27
  57. package/dist/commands/publish.js.map +1 -1
  58. package/dist/commands/render.d.ts +12 -0
  59. package/dist/commands/render.js +126 -0
  60. package/dist/commands/render.js.map +1 -0
  61. package/dist/commands/revoke.d.ts +7 -6
  62. package/dist/commands/revoke.js +92 -23
  63. package/dist/commands/revoke.js.map +1 -1
  64. package/dist/commands/self-description.d.ts +3 -3
  65. package/dist/commands/self-description.js +13 -8
  66. package/dist/commands/self-description.js.map +1 -1
  67. package/dist/config.d.ts +3 -6
  68. package/dist/config.js +55 -107
  69. package/dist/config.js.map +1 -1
  70. package/dist/index.d.ts +1 -1
  71. package/dist/index.js.map +1 -1
  72. package/dist/lib/aquarius.d.ts +7 -0
  73. package/dist/lib/aquarius.js +71 -0
  74. package/dist/lib/aquarius.js.map +1 -0
  75. package/dist/lib/gaia-x_compliance/generate-credentials/index.js +26 -25
  76. package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -1
  77. package/dist/lib/manifest.d.ts +4 -0
  78. package/dist/lib/manifest.js +29 -0
  79. package/dist/lib/manifest.js.map +1 -0
  80. package/dist/lib/spec.d.ts +12 -0
  81. package/dist/lib/spec.js +266 -0
  82. package/dist/lib/spec.js.map +1 -0
  83. package/dist/lib/wallet.d.ts +1 -0
  84. package/dist/lib/wallet.js +14 -0
  85. package/dist/lib/wallet.js.map +1 -0
  86. package/dist/lib/yaml.d.ts +2 -0
  87. package/dist/lib/yaml.js +53 -0
  88. package/dist/lib/yaml.js.map +1 -0
  89. package/dist/scripts/json-schema.d.ts +1 -0
  90. package/dist/scripts/json-schema.js +24 -0
  91. package/dist/scripts/json-schema.js.map +1 -0
  92. package/dist/types/manifest-schema.json +52 -0
  93. package/dist/types/manifest.d.ts +17 -0
  94. package/dist/types/manifest.js +14 -0
  95. package/dist/types/manifest.js.map +1 -0
  96. package/dist/types/schema.d.ts +1 -2
  97. package/dist/types/schema.js +3 -2
  98. package/dist/types/schema.js.map +1 -1
  99. package/dist/types/schema.json +24 -72
  100. package/dist/utils/connection.d.ts +3 -3
  101. package/dist/utils/connection.js +2 -2
  102. package/dist/utils/connection.js.map +1 -1
  103. package/oclif.manifest.json +169 -19
  104. package/package.json +20 -18
  105. package/dist/lib/publishFromFile.d.ts +0 -2
  106. package/dist/lib/publishFromFile.js +0 -143
  107. package/dist/lib/publishFromFile.js.map +0 -1
package/README.md CHANGED
@@ -22,7 +22,7 @@ $ npm install -g pontus-x_cli
22
22
  $ pontus-x_cli COMMAND
23
23
  running command...
24
24
  $ pontus-x_cli (--version)
25
- pontus-x_cli/1.0.2 linux-x64 node-v25.2.1
25
+ pontus-x_cli/1.1.4 linux-x64 node-v25.6.1
26
26
  $ pontus-x_cli --help [COMMAND]
27
27
  USAGE
28
28
  $ pontus-x_cli COMMAND
@@ -30,6 +30,33 @@ USAGE
30
30
  ```
31
31
  <!-- usagestop -->
32
32
 
33
+ ## Spec declarative format
34
+
35
+ Example:
36
+
37
+ ```yaml
38
+ metadata:
39
+ type: algorithm
40
+ author: Universitat de Lleida (UdL)
41
+ name: Exploratory Data Analysis
42
+ description: description.md
43
+ ...
44
+ ```
45
+
46
+ Check [samples/publish](samples/publish) folder for more examples.
47
+
48
+ ## Manifest declarative format
49
+
50
+ Example:
51
+
52
+ ```yaml
53
+ accounts:
54
+ - name: Universitat de Lleida (UdL)
55
+ address: '0xd999baae98ac5246568fd726be8832c49626867d'
56
+ privateKeyPath: keys/d999baae98ac5246568fd726be8832c49626867d.json
57
+ passwordEnvKey: UDL_KEY_PASSWORD
58
+ ```
59
+
33
60
  # Commands
34
61
 
35
62
  <!-- commands -->
@@ -40,6 +67,7 @@ USAGE
40
67
  * [`pontus-x_cli compute ALGO`](#pontus-x_cli-compute-algo)
41
68
  * [`pontus-x_cli compute-results JOBID`](#pontus-x_cli-compute-results-jobid)
42
69
  * [`pontus-x_cli compute-status JOBID`](#pontus-x_cli-compute-status-jobid)
70
+ * [`pontus-x_cli edit-additional-metadata DID METADATAFILE`](#pontus-x_cli-edit-additional-metadata-did-metadatafile)
43
71
  * [`pontus-x_cli edit-algo DID IMAGE TAG CHECKSUM ENTRYPOINT`](#pontus-x_cli-edit-algo-did-image-tag-checksum-entrypoint)
44
72
  * [`pontus-x_cli edit-asset-url DID URL`](#pontus-x_cli-edit-asset-url-did-url)
45
73
  * [`pontus-x_cli edit-trusted-algos DID`](#pontus-x_cli-edit-trusted-algos-did)
@@ -52,7 +80,8 @@ USAGE
52
80
  * [`pontus-x_cli login KEYFILE`](#pontus-x_cli-login-keyfile)
53
81
  * [`pontus-x_cli logout`](#pontus-x_cli-logout)
54
82
  * [`pontus-x_cli publish PATH`](#pontus-x_cli-publish-path)
55
- * [`pontus-x_cli revoke DIDS`](#pontus-x_cli-revoke-dids)
83
+ * [`pontus-x_cli render [DID]`](#pontus-x_cli-render-did)
84
+ * [`pontus-x_cli revoke`](#pontus-x_cli-revoke)
56
85
  * [`pontus-x_cli self-description DID SDURL`](#pontus-x_cli-self-description-did-sdurl)
57
86
 
58
87
  ## `pontus-x_cli access DID`
@@ -73,7 +102,7 @@ EXAMPLES
73
102
  $ pontus-x_cli access did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686
74
103
  ```
75
104
 
76
- _See code: [src/commands/access.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/access.ts)_
105
+ _See code: [src/commands/access.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/access.ts)_
77
106
 
78
107
  ## `pontus-x_cli autocomplete [SHELL]`
79
108
 
@@ -128,7 +157,7 @@ EXAMPLES
128
157
  $ pontus-x_cli change-price did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a 10
129
158
  ```
130
159
 
131
- _See code: [src/commands/change-price.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/change-price.ts)_
160
+ _See code: [src/commands/change-price.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/change-price.ts)_
132
161
 
133
162
  ## `pontus-x_cli check-participant-compliance`
134
163
 
@@ -149,7 +178,7 @@ EXAMPLES
149
178
  $ pontus-x_cli check-participant-compliance -p ./CEP.data.json --vp ./CEP.vp.json
150
179
  ```
151
180
 
152
- _See code: [src/commands/check-participant-compliance.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/check-participant-compliance.ts)_
181
+ _See code: [src/commands/check-participant-compliance.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/check-participant-compliance.ts)_
153
182
 
154
183
  ## `pontus-x_cli compute ALGO`
155
184
 
@@ -157,23 +186,26 @@ Compute the algorithm on one or more datasets.
157
186
 
158
187
  ```
159
188
  USAGE
160
- $ pontus-x_cli compute ALGO -d <value>... [-y]
189
+ $ pontus-x_cli compute ALGO [-d <value>...] [-t <value>...] [-y]
161
190
 
162
191
  ARGUMENTS
163
192
  ALGO Algorithm DID
164
193
 
165
194
  FLAGS
166
- -d, --datasets=<value>... (required) Dataset DIDs
195
+ -d, --datasets=<value>... Dataset DIDs
196
+ -t, --tags=<value>... Tags to filter datasets (they must have all the provided tags)
167
197
  -y, --yes Automatic yes to prompts
168
198
 
169
199
  DESCRIPTION
170
200
  Compute the algorithm on one or more datasets.
171
201
 
172
202
  EXAMPLES
173
- $ pontus-x_cli compute did:op:34e2ff9baf030318b13ff3940ab0885bb11fee49a8597123392983f5a0db8a35 -d did:op:d8a36ff74d36e54ce245d27689330fc39debb2fdfeac09d4a08b24b68cf5053d
203
+ $ pontus-x_cli compute did:op:34e2f... -d did:op:d8a36... -d did:op:12b45...
204
+
205
+ $ pontus-x_cli compute did:op:34e2f... -t tag1 -t tag2
174
206
  ```
175
207
 
176
- _See code: [src/commands/compute.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/compute.ts)_
208
+ _See code: [src/commands/compute.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/compute.ts)_
177
209
 
178
210
  ## `pontus-x_cli compute-results JOBID`
179
211
 
@@ -196,7 +228,7 @@ EXAMPLES
196
228
  $ pontus-x_cli compute-results 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat
197
229
  ```
198
230
 
199
- _See code: [src/commands/compute-results.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/compute-results.ts)_
231
+ _See code: [src/commands/compute-results.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/compute-results.ts)_
200
232
 
201
233
  ## `pontus-x_cli compute-status JOBID`
202
234
 
@@ -219,7 +251,31 @@ EXAMPLES
219
251
  $ pontus-x_cli compute-status 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat
220
252
  ```
221
253
 
222
- _See code: [src/commands/compute-status.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/compute-status.ts)_
254
+ _See code: [src/commands/compute-status.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/compute-status.ts)_
255
+
256
+ ## `pontus-x_cli edit-additional-metadata DID METADATAFILE`
257
+
258
+ Change the container additional metadata for a given DID
259
+
260
+ ```
261
+ USAGE
262
+ $ pontus-x_cli edit-additional-metadata DID METADATAFILE [-y]
263
+
264
+ ARGUMENTS
265
+ DID Algorithm DID
266
+ METADATAFILE JSON metadata file path
267
+
268
+ FLAGS
269
+ -y, --yes Skip confirmation prompt
270
+
271
+ DESCRIPTION
272
+ Change the container additional metadata for a given DID
273
+
274
+ EXAMPLES
275
+ $ pontus-x_cli edit-additional-metadata did:op:dcdb747f8feff3122c6d6c0f45a339a6e09415e721f98f61cc2c1d62ab35a21f ./metadata.json
276
+ ```
277
+
278
+ _See code: [src/commands/edit-additional-metadata.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/edit-additional-metadata.ts)_
223
279
 
224
280
  ## `pontus-x_cli edit-algo DID IMAGE TAG CHECKSUM ENTRYPOINT`
225
281
 
@@ -246,7 +302,7 @@ EXAMPLES
246
302
  $ pontus-x_cli edit-algo did:op:dcdb747f8feff3122c6d6c0f45a339a6e09415e721f98f61cc2c1d62ab35a21f rogargon/pandas-profiling 4.16 sha256:81dca5439f07dff4d56097546a9fce7335be3de8e2622dc105c64e54376f86b5 "python /algorithm/src/main.py"
247
303
  ```
248
304
 
249
- _See code: [src/commands/edit-algo.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/edit-algo.ts)_
305
+ _See code: [src/commands/edit-algo.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/edit-algo.ts)_
250
306
 
251
307
  ## `pontus-x_cli edit-asset-url DID URL`
252
308
 
@@ -270,7 +326,7 @@ EXAMPLES
270
326
  $ pontus-x_cli edit-asset-url did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686 https://raw.githubusercontent.com/plotly/datasets/refs/heads/master/titanic.csv
271
327
  ```
272
328
 
273
- _See code: [src/commands/edit-asset-url.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/edit-asset-url.ts)_
329
+ _See code: [src/commands/edit-asset-url.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/edit-asset-url.ts)_
274
330
 
275
331
  ## `pontus-x_cli edit-trusted-algos DID`
276
332
 
@@ -294,7 +350,7 @@ EXAMPLES
294
350
  $ pontus-x_cli edit-trusted-algos did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a --algos did:op:8f9994d01975cadd0196a2f7f811ed850e5d02a7223e7c5a31faaebe7371c81a did:op:0b970c95211cb8ef4574383386376646081bb7eb949b2a75e1e2171ea25949a7
295
351
  ```
296
352
 
297
- _See code: [src/commands/edit-trusted-algos.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/edit-trusted-algos.ts)_
353
+ _See code: [src/commands/edit-trusted-algos.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/edit-trusted-algos.ts)_
298
354
 
299
355
  ## `pontus-x_cli export-private-key`
300
356
 
@@ -302,7 +358,7 @@ Export your private key as a JSON file, to use later with the login command or f
302
358
 
303
359
  ```
304
360
  USAGE
305
- $ pontus-x_cli export-private-key [-p <value>] [-k <value>] [-f <value>]
361
+ $ pontus-x_cli export-private-key [-f <value>] [-p <value>] [-k <value>]
306
362
 
307
363
  FLAGS
308
364
  -f, --filepath=<value> File path to save the encrypted private key (default is <address>.json)
@@ -316,7 +372,7 @@ EXAMPLES
316
372
  $ pontus-x_cli export-private-key
317
373
  ```
318
374
 
319
- _See code: [src/commands/export-private-key.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/export-private-key.ts)_
375
+ _See code: [src/commands/export-private-key.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/export-private-key.ts)_
320
376
 
321
377
  ## `pontus-x_cli generate-asset-credentials DID`
322
378
 
@@ -342,7 +398,7 @@ EXAMPLES
342
398
  $ pontus-x_cli generate-asset-credentials -p ./CEP.data.json -d ./did.json -c certificate.key did:op:01f8bc1e797a854dc718bd7a802acb07c5fc39f706b03dd454bceb66be6828c6
343
399
  ```
344
400
 
345
- _See code: [src/commands/generate-asset-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/generate-asset-credentials.ts)_
401
+ _See code: [src/commands/generate-asset-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/generate-asset-credentials.ts)_
346
402
 
347
403
  ## `pontus-x_cli generate-did-web`
348
404
 
@@ -363,7 +419,7 @@ EXAMPLES
363
419
  $ pontus-x_cli generate-did-web -d <https://compliance.agrospai.udl.cat> -c certificate-chain.crt
364
420
  ```
365
421
 
366
- _See code: [src/commands/generate-did-web.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/generate-did-web.ts)_
422
+ _See code: [src/commands/generate-did-web.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/generate-did-web.ts)_
367
423
 
368
424
  ## `pontus-x_cli generate-participant-credentials`
369
425
 
@@ -386,7 +442,7 @@ EXAMPLES
386
442
  $ pontus-x_cli generate-participant-credentials -p ./CEP.data.json -d ./did.json -c certificate.key
387
443
  ```
388
444
 
389
- _See code: [src/commands/generate-participant-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/generate-participant-credentials.ts)_
445
+ _See code: [src/commands/generate-participant-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/generate-participant-credentials.ts)_
390
446
 
391
447
  ## `pontus-x_cli get DID`
392
448
 
@@ -406,7 +462,7 @@ EXAMPLES
406
462
  $ pontus-x_cli get did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a
407
463
  ```
408
464
 
409
- _See code: [src/commands/get.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/get.ts)_
465
+ _See code: [src/commands/get.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/get.ts)_
410
466
 
411
467
  ## `pontus-x_cli help [COMMAND]`
412
468
 
@@ -449,7 +505,7 @@ EXAMPLES
449
505
  $ pontus-x_cli login d999baae98ac5246568fd726be8832c49626867d.json
450
506
  ```
451
507
 
452
- _See code: [src/commands/login.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/login.ts)_
508
+ _See code: [src/commands/login.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/login.ts)_
453
509
 
454
510
  ## `pontus-x_cli logout`
455
511
 
@@ -466,7 +522,7 @@ EXAMPLES
466
522
  $ pontus-x_cli logout
467
523
  ```
468
524
 
469
- _See code: [src/commands/logout.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/logout.ts)_
525
+ _See code: [src/commands/logout.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/logout.ts)_
470
526
 
471
527
  ## `pontus-x_cli publish PATH`
472
528
 
@@ -474,19 +530,23 @@ Publish the asset as instructed in the provided script folder.
474
530
 
475
531
  ```
476
532
  USAGE
477
- $ pontus-x_cli publish PATH -p <value> [--dry-run]
533
+ $ pontus-x_cli publish PATH [--dry-run] [-m <value>] [-p <value>] [-r]
478
534
 
479
535
  ARGUMENTS
480
- PATH Path to the JSON/YAML or TS file describing the asset to publish
536
+ PATH Path to find a JSON/YAML or TS file describing the asset to publish
481
537
 
482
538
  FLAGS
483
- -p, --provider=<value> (required) [default: https://provider.agrospai.udl.cat] The Provider URL
539
+ -m, --manifest=<value> [default: ./manifest.yaml] Path to the manifest file
540
+ -p, --provider=<value> [default: https://provider.agrospai.udl.cat] The Provider URL
541
+ -r, --recursive Recursively publish assets in a directory (only for JSON/YAML files)
484
542
  --dry-run Dry run the publishing process
485
543
 
486
544
  DESCRIPTION
487
545
  Publish the asset as instructed in the provided script folder.
488
546
 
489
547
  EXAMPLES
548
+ $ pontus-x_cli publish samples/publish/algo/
549
+
490
550
  $ pontus-x_cli publish samples/publish/algo/spec.json
491
551
 
492
552
  $ pontus-x_cli publish samples/publish/algo/spec.yaml
@@ -494,21 +554,39 @@ EXAMPLES
494
554
  $ pontus-x_cli publish samples/publish/algo/index.ts
495
555
  ```
496
556
 
497
- _See code: [src/commands/publish.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/publish.ts)_
498
-
499
- ## `pontus-x_cli revoke DIDS`
557
+ _See code: [src/commands/publish.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/publish.ts)_
500
558
 
501
- Publisher revocation of one or more owned DIDs
559
+ ## `pontus-x_cli render [DID]`
502
560
 
503
561
  ```
504
562
  USAGE
505
- $ pontus-x_cli revoke DIDS [-y]
563
+ $ pontus-x_cli render [DID] [-d <value>] [-t <value>...] [-a]
506
564
 
507
565
  ARGUMENTS
508
- DIDS DIDs to revoke
566
+ [DID] Dataset DID
509
567
 
510
568
  FLAGS
511
- -y, --yes Skip confirmation prompt
569
+ -a, --onlyAccess Only render datasets with an access service
570
+ -d, --dst=<value> [default: rendered] Destination folder to save the rendered specs
571
+ -t, --tags=<value>... Tags to filter datasets (they must have all the provided tags)
572
+ ```
573
+
574
+ _See code: [src/commands/render.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/render.ts)_
575
+
576
+ ## `pontus-x_cli revoke`
577
+
578
+ Publisher revocation of one or more owned DIDs
579
+
580
+ ```
581
+ USAGE
582
+ $ pontus-x_cli revoke [-d <value>...] [-m <value>] [-p <value>...] [-r] [-y]
583
+
584
+ FLAGS
585
+ -d, --dids=<value>... DID to revoke
586
+ -m, --manifest=<value> [default: ./manifest.yaml] Path to the manifest file
587
+ -p, --paths=<value>... Path to find a JSON/YAML file describing the assets to revoke
588
+ -r, --recursive Recursively revoke assets in a directory (only for JSON/YAML files)
589
+ -y, --yes Skip confirmation prompt
512
590
 
513
591
  DESCRIPTION
514
592
  Publisher revocation of one or more owned DIDs
@@ -517,7 +595,7 @@ EXAMPLES
517
595
  $ pontus-x_cli revoke did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a did:op:abcee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7b
518
596
  ```
519
597
 
520
- _See code: [src/commands/revoke.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/revoke.ts)_
598
+ _See code: [src/commands/revoke.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/revoke.ts)_
521
599
 
522
600
  ## `pontus-x_cli self-description DID SDURL`
523
601
 
@@ -541,7 +619,7 @@ EXAMPLES
541
619
  $ pontus-x_cli self-description did:op:d22954f2cbf6a85c897ce605c275cc786e099592cc59e3b7dd66b93e784bed8c https://example.com/self-description.json
542
620
  ```
543
621
 
544
- _See code: [src/commands/self-description.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.0.2/src/commands/self-description.ts)_
622
+ _See code: [src/commands/self-description.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/self-description.ts)_
545
623
  <!-- commandsstop -->
546
624
 
547
625
  # Useful information
@@ -590,6 +668,12 @@ npm run build
590
668
  ./bin/run.js COMMAND
591
669
  ```
592
670
 
671
+ ## Build and run the CLI in one command
672
+
673
+ ```bash
674
+ npm run dev -- COMMAND
675
+ ```
676
+
593
677
  ### Global installation
594
678
 
595
679
  ```sh
@@ -631,18 +715,20 @@ test/
631
715
  └── write/
632
716
  ```
633
717
 
634
- * **auth**: commands related to authentication.
635
- * **read**: commands that do not make modifications in the blockchain.
636
- * **write**: commands that make modifications in the blockchain. All write commands are run sequentially to avoid conflicts.
718
+ - **auth**: commands related to authentication.
719
+ - **read**: commands that do not make modifications in the blockchain.
720
+ - **write**: commands that make modifications in the blockchain. All write commands are run sequentially to avoid conflicts.
637
721
 
638
722
  ### Initialization
639
723
 
640
- Because the tests interact with the blockchain, we need to first deploy some assets manually and keep track of their DIDs in the `STATE_FILE` (by default `./.vitest-state.json`).
724
+ Because the tests interact with the blockchain, we need to first deploy some assets manually and keep track of their DIDs. To do that, you can run:
641
725
 
642
726
  ```sh
643
727
  npm run test:init
644
728
  ```
645
729
 
730
+ There are some tests that need the `certificate.key` to be present in the `samples/data` folder. You can obtain it following the instructions in the [How to obtain the certificate key](#how-to-obtain-the-certificate-key) section.
731
+
646
732
  ### Clean up
647
733
 
648
734
  Whenever you want to clean up the deployed assets in the blockchain, you can run:
package/bin/dev.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ts-node
2
2
 
3
- // eslint-disable-next-line unicorn/prefer-top-level-await
4
- ; (async () => {
5
- const oclif = await import('@oclif/core')
6
- await oclif.execute({ development: true, dir: __dirname })
7
- })()
3
+ (async () => {
4
+ require("dotenv").config();
5
+ const oclif = await import("@oclif/core");
6
+ await oclif.execute({ development: true, dir: __dirname });
7
+ })();
package/bin/run.js CHANGED
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // eslint-disable-next-line unicorn/prefer-top-level-await
4
3
  (async () => {
5
- require('dotenv').config()
6
- const oclif = await import('@oclif/core')
7
- await oclif.execute({ dir: __dirname })
8
- })()
4
+ require("dotenv").config();
5
+ const oclif = await import("@oclif/core");
6
+ await oclif.execute({ dir: __dirname });
7
+ })();
@@ -1,4 +1,4 @@
1
- import { Command } from '@oclif/core';
1
+ import { Command } from "@oclif/core";
2
2
  export default class Access extends Command {
3
3
  static args: {
4
4
  did: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
@@ -13,11 +13,11 @@ class Access extends core_1.Command {
13
13
  }
14
14
  }
15
15
  Access.args = {
16
- did: core_1.Args.string({ description: 'DID of the asset', required: true }),
16
+ did: core_1.Args.string({ description: "DID of the asset", required: true }),
17
17
  };
18
- Access.description = 'Access an asset that can be downloaded given its DID';
18
+ Access.description = "Access an asset that can be downloaded given its DID";
19
19
  Access.examples = [
20
- '<%= config.bin %> <%= command.id %> did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686',
20
+ "<%= config.bin %> <%= command.id %> did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686",
21
21
  ];
22
22
  exports.default = Access;
23
23
  //# sourceMappingURL=access.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"access.js","sourceRoot":"","sources":["../../src/commands/access.ts"],"names":[],"mappings":";;AAAA,sCAAyC;AAEzC,oDAA8C;AAE9C,MAAqB,MAAO,SAAQ,cAAO;IASzC,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QACvC,MAAM,EAAC,GAAG,EAAC,GAAG,IAAI,CAAA;QAClB,IAAI,CAAC,GAAG,CAAC,yCAAyC,GAAG,EAAE,CAAC,CAAA;QACxD,MAAM,EAAC,QAAQ,EAAC,GAAG,MAAM,uBAAU,CAAC,OAAO,EAAE,CAAA;QAC7C,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAE,GAAG,EAAC,CAAC,CAAA;QACxD,IAAI,CAAC,GAAG,CAAC,iBAAiB,SAAS,IAAI,CAAC,CAAA;IAC1C,CAAC;;AAfM,WAAI,GAAG;IACZ,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;CACpE,CAAA;AACM,kBAAW,GAAG,sDAAsD,CAAA;AACpE,eAAQ,GAAsB;IACnC,6GAA6G;CAC9G,CAAA;kBAPkB,MAAM"}
1
+ {"version":3,"file":"access.js","sourceRoot":"","sources":["../../src/commands/access.ts"],"names":[],"mappings":";;AAAA,sCAA4C;AAC5C,mDAAgD;AAEhD,MAAqB,MAAO,SAAQ,cAAO;IASzC,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1C,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,GAAG,CAAC,yCAAyC,GAAG,EAAE,CAAC,CAAC;QACzD,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,uBAAU,CAAC,OAAO,EAAE,CAAC;QAChD,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,GAAG,CAAC,iBAAiB,SAAS,IAAI,CAAC,CAAC;IAC3C,CAAC;;AAfM,WAAI,GAAG;IACZ,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CACtE,CAAC;AACK,kBAAW,GAAG,sDAAsD,CAAC;AACrE,eAAQ,GAAsB;IACnC,6GAA6G;CAC9G,CAAC;kBAPiB,MAAM"}
@@ -1,13 +1,13 @@
1
- import { Command } from '@oclif/core';
1
+ import { Command } from "@oclif/core";
2
2
  export default class ChangePrice extends Command {
3
3
  static args: {
4
4
  did: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
5
5
  newPrice: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
6
6
  };
7
+ static description: string;
8
+ static examples: Command.Example[];
7
9
  static flags: {
8
10
  yes: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
11
  };
10
- static description: string;
11
- static examples: Command.Example[];
12
12
  run(): Promise<void>;
13
13
  }
@@ -12,8 +12,9 @@ class ChangePrice extends core_1.Command {
12
12
  const { args, flags } = await this.parse(ChangePrice);
13
13
  const { did, newPrice } = args;
14
14
  const connection = await connection_1.Connection.connect();
15
- const newPriceNumber = Number.parseFloat(newPrice.replace(',', '.'));
16
- if (flags.yes || readline_sync_1.default.keyInYNStrict(`Set the price to ${newPriceNumber.toString()} for asset ${did}? `)) {
15
+ const newPriceNumber = Number.parseFloat(newPrice.replace(",", "."));
16
+ if (flags.yes ||
17
+ readline_sync_1.default.keyInYNStrict(`Set the price to ${newPriceNumber.toString()} for asset ${did}? `)) {
17
18
  try {
18
19
  const aquariusAsset = await connection.nautilus.getAquariusAsset(did);
19
20
  const serviceId = (_b = (_a = aquariusAsset.services) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.id;
@@ -27,23 +28,23 @@ class ChangePrice extends core_1.Command {
27
28
  }
28
29
  }
29
30
  ChangePrice.args = {
30
- did: core_1.Args.string({ description: 'DID of the asset', required: true }),
31
+ did: core_1.Args.string({ description: "DID of the asset", required: true }),
31
32
  newPrice: core_1.Args.string({
32
- description: 'New price for the asset',
33
+ description: "New price for the asset",
33
34
  required: true,
34
35
  }),
35
36
  };
37
+ ChangePrice.description = "Change the price keeping the existing currency for an asset with the given DID";
38
+ ChangePrice.examples = [
39
+ "<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a 10",
40
+ ];
36
41
  ChangePrice.flags = {
37
42
  yes: core_1.Flags.boolean({
38
- char: 'y',
39
- description: 'Automatic yes to prompts',
40
- required: false,
43
+ char: "y",
41
44
  default: false,
45
+ description: "Automatic yes to prompts",
46
+ required: false,
42
47
  }),
43
48
  };
44
- ChangePrice.description = 'Change the price keeping the existing currency for an asset with the given DID';
45
- ChangePrice.examples = [
46
- '<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a 10',
47
- ];
48
49
  exports.default = ChangePrice;
49
50
  //# sourceMappingURL=change-price.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"change-price.js","sourceRoot":"","sources":["../../src/commands/change-price.ts"],"names":[],"mappings":";;;;;AAAA,sCAAgD;AAChD,kEAAwC;AAExC,oDAA8C;AAE9C,MAAqB,WAAY,SAAQ,cAAO;IAqB9C,KAA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Q,CAAC,eAAe,CAClD,aAAa,EACb,SAAS,EACT,cAAc,CAAC,QAAQ,EAAE,CAC1B,CAAC;gBACF,IAAI,CAAC,GAAG,CACN,yCAAyC,UAAU,CAAC,aAAa,CAAC,WAAW,OAAO,EAAE,CAAC,eAAe,IAAI,CAC3G,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,KAAK,CAAC,6BAA6B,KAAK,EAAE,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC;;AAjDM,gBAAI,GAAG;IACZ,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrE,QAAQ,EAAE,WAAI,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,yBAAyB;QACtC,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;AACK,uBAAW,GAChB,gFAAgF,CAAC;AAC5E,oBAAQ,GAAsB;IACnC,gHAAgH;CACjH,CAAC;AACK,iBAAK,GAAG;IACb,GAAG,EAAE,YAAK,CAAC,OAAO,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,KAAK;KAChB,CAAC;CACH,CAAC;kBApBiB,WAAW"}
@@ -1,4 +1,4 @@
1
- import { Command } from '@oclif/core';
1
+ import { Command } from "@oclif/core";
2
2
  export default class CheckParticipantCompliance extends Command {
3
3
  static description: string;
4
4
  static examples: Command.Example[];
@@ -3,24 +3,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const core_1 = require("@oclif/core");
7
- const axios_1 = __importDefault(require("axios"));
8
6
  const node_fs_1 = require("node:fs");
9
7
  const node_path_1 = require("node:path");
8
+ const core_1 = require("@oclif/core");
9
+ const axios_1 = __importDefault(require("axios"));
10
10
  class CheckParticipantCompliance extends core_1.Command {
11
11
  async run() {
12
12
  const { flags } = await this.parse(CheckParticipantCompliance);
13
- const complianceService = 'https://compliance.lab.gaia-x.eu/v1/api/credential-offers';
13
+ const complianceService = "https://compliance.lab.gaia-x.eu/v1/api/credential-offers";
14
14
  const folder = (0, node_path_1.dirname)(flags.participant);
15
- const participantData = JSON.parse((0, node_fs_1.readFileSync)(flags.participant, 'utf8'));
16
- const vp = JSON.parse((0, node_fs_1.readFileSync)(flags.vp, 'utf8'));
15
+ const participantData = JSON.parse((0, node_fs_1.readFileSync)(flags.participant, "utf8"));
16
+ const vp = JSON.parse((0, node_fs_1.readFileSync)(flags.vp, "utf8"));
17
17
  await axios_1.default
18
18
  .post(`${complianceService}?` +
19
19
  `vcid=https://${participantData.issuer_domain}/.well-known/${participantData.participant_name}.compliance.json`, vp)
20
20
  .then((response) => {
21
21
  if (response.status === 201) {
22
22
  const compliance = response.data;
23
- (0, node_fs_1.writeFileSync)((0, node_path_1.resolve)(folder, participantData.participant_name + '.compliance.json'), JSON.stringify(compliance, null, 2), 'utf8');
23
+ (0, node_fs_1.writeFileSync)((0, node_path_1.resolve)(folder, `${participantData.participant_name}.compliance.json`), JSON.stringify(compliance, null, 2), "utf8");
24
24
  console.log(`Gaia-X Compliance verified for ${participantData.participant_legal_name} credentials ` +
25
25
  `and stored in ${participantData.participant_name}.compliance.json`);
26
26
  }
@@ -37,16 +37,18 @@ class CheckParticipantCompliance extends core_1.Command {
37
37
  });
38
38
  }
39
39
  }
40
- CheckParticipantCompliance.description = 'Use Gaia-X Compliance to check a participant Verifiable Presentation';
41
- CheckParticipantCompliance.examples = ['<%= config.bin %> <%= command.id %> -p ./CEP.data.json --vp ./CEP.vp.json'];
40
+ CheckParticipantCompliance.description = "Use Gaia-X Compliance to check a participant Verifiable Presentation";
41
+ CheckParticipantCompliance.examples = [
42
+ "<%= config.bin %> <%= command.id %> -p ./CEP.data.json --vp ./CEP.vp.json",
43
+ ];
42
44
  CheckParticipantCompliance.flags = {
43
45
  participant: core_1.Flags.string({
44
- char: 'p',
45
- description: 'Path to the JSON file including the required participant data',
46
+ char: "p",
47
+ description: "Path to the JSON file including the required participant data",
46
48
  required: true,
47
49
  }),
48
50
  vp: core_1.Flags.string({
49
- description: 'Path to the participant Verifiable Presentation file',
51
+ description: "Path to the participant Verifiable Presentation file",
50
52
  required: true,
51
53
  }),
52
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"check-participant-compliance.js","sourceRoot":"","sources":["../../src/commands/check-participant-compliance.ts"],"names":[],"mappings":";;;;;AAAA,sCAA0C;AAC1C,kDAAuC;AACvC,qCAAmD;AACnD,yCAA0C;AAE1C,MAAqB,0BAA2B,SAAQ,cAAO;IAe7D,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC5D,MAAM,iBAAiB,GAAG,2DAA2D,CAAA;QACrF,MAAM,MAAM,GAAG,IAAA,mBAAO,EAAC,KAAK,CAAC,WAAW,CAAC,CAAA;QACzC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAA;QAC3E,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,KAAK,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;QAErD,MAAM,eAAK;aACR,IAAI,CACH,GAAG,iBAAiB,GAAG;YACrB,gBAAgB,eAAe,CAAC,aAAa,gBAAgB,eAAe,CAAC,gBAAgB,kBAAkB,EACjH,EAAE,CACH;aACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YACjB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAA;gBAChC,IAAA,uBAAa,EACX,IAAA,mBAAO,EAAC,MAAM,EAAE,eAAe,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,EACtE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,EACnC,MAAM,CACP,CAAA;gBACD,OAAO,CAAC,GAAG,CACT,kCAAkC,eAAe,CAAC,sBAAsB,eAAe;oBACrF,iBAAiB,eAAe,CAAC,gBAAgB,kBAAkB,CACtE,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,KAAK,CAAC,mCAAmC,eAAe,CAAC,sBAAsB,EAAE,CAAC,CAAA;gBAC1F,OAAO,CAAC,KAAK,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,CAAA;YAC/B,CAAC;QACH,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;;YACf,OAAO,CAAC,KAAK,CAAC,mCAAmC,eAAe,CAAC,sBAAsB,EAAE,CAAC,CAAA;YAC1F,OAAO,CAAC,KAAK,CAAC,MAAC,KAAoB,CAAC,QAAQ,0CAAE,IAAI,CAAC,CAAA;YACnD,MAAM,KAAK,CAAA;QACb,CAAC,CAAC,CAAA;IACN,CAAC;;AAjDM,sCAAW,GAAG,sEAAsE,CAAA;AACpF,mCAAQ,GAAsB,CAAC,2EAA2E,CAAC,CAAA;AAC3G,gCAAK,GAAG;IACb,WAAW,EAAE,YAAK,CAAC,MAAM,CAAC;QACxB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,+DAA+D;QAC5E,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,EAAE,EAAE,YAAK,CAAC,MAAM,CAAC;QACf,WAAW,EAAE,sDAAsD;QACnE,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAA;kBAbkB,0BAA0B"}
1
+ {"version":3,"file":"check-participant-compliance.js","sourceRoot":"","sources":["../../src/commands/check-participant-compliance.ts"],"names":[],"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CAAC,sBAAsB,EAAE,CAC5E,CAAC;gBACF,OAAO,CAAC,KAAK,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,CAAC;YAChC,CAAC;QACH,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;;YACf,OAAO,CAAC,KAAK,CACX,mCAAmC,eAAe,CAAC,sBAAsB,EAAE,CAC5E,CAAC;YACF,OAAO,CAAC,KAAK,CAAC,MAAC,KAAoB,CAAC,QAAQ,0CAAE,IAAI,CAAC,CAAC;YACpD,MAAM,KAAK,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC;;AA7DM,sCAAW,GAChB,sEAAsE,CAAC;AAClE,mCAAQ,GAAsB;IACnC,2EAA2E;CAC5E,CAAC;AACK,gCAAK,GAAG;IACb,WAAW,EAAE,YAAK,CAAC,MAAM,CAAC;QACxB,IAAI,EAAE,GAAG;QACT,WAAW,EACT,+DAA+D;QACjE,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,EAAE,EAAE,YAAK,CAAC,MAAM,CAAC;QACf,WAAW,EAAE,sDAAsD;QACnE,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;kBAjBiB,0BAA0B"}
@@ -1,4 +1,4 @@
1
- import { Command } from '@oclif/core';
1
+ import { Command } from "@oclif/core";
2
2
  export default class ComputeResults extends Command {
3
3
  static args: {
4
4
  jobId: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
@@ -14,7 +14,7 @@ class ComputeResults extends core_1.Command {
14
14
  if (computeResultUrl)
15
15
  this.log(`Compute results available from: ${computeResultUrl}\n`);
16
16
  else
17
- this.log('No results available yet\n');
17
+ this.log("No results available yet\n");
18
18
  }
19
19
  catch (error) {
20
20
  this.error(`Error starting compute: ${error}`);
@@ -22,18 +22,18 @@ class ComputeResults extends core_1.Command {
22
22
  }
23
23
  }
24
24
  ComputeResults.args = {
25
- jobId: core_1.Args.string({ description: 'Compute job ID', required: true }),
25
+ jobId: core_1.Args.string({ description: "Compute job ID", required: true }),
26
26
  };
27
- ComputeResults.description = 'Get the compute job results.';
27
+ ComputeResults.description = "Get the compute job results.";
28
28
  ComputeResults.examples = [
29
- '<%= config.bin %> <%= command.id %> 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat',
29
+ "<%= config.bin %> <%= command.id %> 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat",
30
30
  ];
31
31
  ComputeResults.flags = {
32
32
  provider: core_1.Flags.string({
33
- char: 'p',
34
- description: 'The Provider URL',
33
+ char: "p",
34
+ default: "https://provider.agrospai.udl.cat",
35
+ description: "The Provider URL",
35
36
  required: true,
36
- default: 'https://provider.agrospai.udl.cat',
37
37
  }),
38
38
  };
39
39
  exports.default = ComputeResults;
@@ -1 +1 @@
1
- {"version":3,"file":"compute-results.js","sourceRoot":"","sources":["../../src/commands/compute-results.ts"],"names":[],"mappings":";;AAAA,sCAAgD;AAEhD,oDAA8C;AAE9C,MAAqB,cAAe,SAAQ,cAAO;IAiBjD,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,IAAI,EAAE,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;QACtD,MAAM,UAAU,GAAG,MAAM,uBAAU,CAAC,OAAO,EAAE,CAAA;QAC7C,IAAI,CAAC;YACH,MAAM,gBAAgB,GAAG,MAAM,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAClE,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,WAAW,EAAE,KAAK,CAAC,QAAQ;aAC5B,CAAC,CAAA;YACF,IAAI,gBAAgB;gBAAE,IAAI,CAAC,GAAG,CAAC,mCAAmC,gBAAgB,IAAI,CAAC,CAAA;;gBAClF,IAAI,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAA;QAC7C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,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