pontus-x_cli 1.2.7 → 2.0.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.
Files changed (83) hide show
  1. package/README.md +131 -43
  2. package/dist/commands/access.js +17 -2
  3. package/dist/commands/access.js.map +1 -1
  4. package/dist/commands/change-currency.d.ts +13 -0
  5. package/dist/commands/change-currency.js +69 -0
  6. package/dist/commands/change-currency.js.map +1 -0
  7. package/dist/commands/change-price.js +7 -5
  8. package/dist/commands/change-price.js.map +1 -1
  9. package/dist/commands/compute-results.d.ts +1 -1
  10. package/dist/commands/compute-results.js +5 -6
  11. package/dist/commands/compute-results.js.map +1 -1
  12. package/dist/commands/compute-status.d.ts +1 -1
  13. package/dist/commands/compute-status.js +12 -8
  14. package/dist/commands/compute-status.js.map +1 -1
  15. package/dist/commands/compute.d.ts +3 -3
  16. package/dist/commands/compute.js +70 -52
  17. package/dist/commands/compute.js.map +1 -1
  18. package/dist/commands/edit-additional-metadata.d.ts +1 -1
  19. package/dist/commands/edit-additional-metadata.js +16 -11
  20. package/dist/commands/edit-additional-metadata.js.map +1 -1
  21. package/dist/commands/edit-algo.js +12 -4
  22. package/dist/commands/edit-algo.js.map +1 -1
  23. package/dist/commands/edit-asset-allowed.d.ts +1 -1
  24. package/dist/commands/edit-asset-allowed.js +73 -43
  25. package/dist/commands/edit-asset-allowed.js.map +1 -1
  26. package/dist/commands/edit-asset-url.js +13 -5
  27. package/dist/commands/edit-asset-url.js.map +1 -1
  28. package/dist/commands/edit-compute-network.d.ts +14 -0
  29. package/dist/commands/edit-compute-network.js +78 -0
  30. package/dist/commands/edit-compute-network.js.map +1 -0
  31. package/dist/commands/edit-keywords.d.ts +13 -0
  32. package/dist/commands/edit-keywords.js +57 -0
  33. package/dist/commands/edit-keywords.js.map +1 -0
  34. package/dist/commands/edit-trusted-algos.d.ts +1 -1
  35. package/dist/commands/edit-trusted-algos.js +53 -45
  36. package/dist/commands/edit-trusted-algos.js.map +1 -1
  37. package/dist/commands/edit-trusted-publishers.js +13 -5
  38. package/dist/commands/edit-trusted-publishers.js.map +1 -1
  39. package/dist/commands/generate-asset-credentials.js +1 -1
  40. package/dist/commands/generate-asset-credentials.js.map +1 -1
  41. package/dist/commands/generate-manifest.d.ts +3 -3
  42. package/dist/commands/generate-manifest.js +20 -20
  43. package/dist/commands/generate-manifest.js.map +1 -1
  44. package/dist/commands/generate-private-keys.d.ts +2 -2
  45. package/dist/commands/generate-private-keys.js +26 -26
  46. package/dist/commands/generate-private-keys.js.map +1 -1
  47. package/dist/commands/get.js +2 -2
  48. package/dist/commands/get.js.map +1 -1
  49. package/dist/commands/publish.d.ts +2 -1
  50. package/dist/commands/publish.js +54 -7
  51. package/dist/commands/publish.js.map +1 -1
  52. package/dist/commands/render.js +46 -27
  53. package/dist/commands/render.js.map +1 -1
  54. package/dist/commands/revoke.js +11 -5
  55. package/dist/commands/revoke.js.map +1 -1
  56. package/dist/commands/self-description.js +8 -3
  57. package/dist/commands/self-description.js.map +1 -1
  58. package/dist/config.d.ts +17 -14
  59. package/dist/config.js +75 -49
  60. package/dist/config.js.map +1 -1
  61. package/dist/lib/aquarius.js +95 -27
  62. package/dist/lib/aquarius.js.map +1 -1
  63. package/dist/lib/gaia-x_compliance/generate-credentials/index.js +35 -20
  64. package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -1
  65. package/dist/lib/spec.d.ts +3 -3
  66. package/dist/lib/spec.js +66 -30
  67. package/dist/lib/spec.js.map +1 -1
  68. package/dist/scripts/patch-nautilus.cjs +15 -0
  69. package/dist/scripts/patch-nautilus.cjs.map +1 -0
  70. package/dist/scripts/patch-nautilus.d.cts +1 -0
  71. package/dist/types/manifest-schema.json +2 -8
  72. package/dist/types/schema.json +467 -62
  73. package/dist/utils/asset.d.ts +2 -2
  74. package/dist/utils/asset.js +23 -23
  75. package/dist/utils/asset.js.map +1 -1
  76. package/dist/utils/connection.d.ts +2 -1
  77. package/dist/utils/connection.js +84 -4
  78. package/dist/utils/connection.js.map +1 -1
  79. package/dist/utils/login.d.ts +2 -2
  80. package/dist/utils/login.js +13 -13
  81. package/dist/utils/login.js.map +1 -1
  82. package/oclif.manifest.json +169 -15
  83. package/package.json +6 -6
@@ -29,6 +29,53 @@
29
29
  "access.js"
30
30
  ]
31
31
  },
32
+ "change-currency": {
33
+ "aliases": [],
34
+ "args": {
35
+ "did": {
36
+ "description": "DID of the asset",
37
+ "name": "did",
38
+ "required": true
39
+ },
40
+ "newCurrency": {
41
+ "description": "New currency for the asset",
42
+ "name": "newCurrency",
43
+ "options": [
44
+ "EURAU",
45
+ "EUROe"
46
+ ],
47
+ "required": true
48
+ }
49
+ },
50
+ "description": "Change the currency keeping the existing price for an asset with the given DID",
51
+ "examples": [
52
+ "<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a EURAU"
53
+ ],
54
+ "flags": {
55
+ "yes": {
56
+ "char": "y",
57
+ "description": "Automatic yes to prompts",
58
+ "name": "yes",
59
+ "required": false,
60
+ "allowNo": false,
61
+ "type": "boolean"
62
+ }
63
+ },
64
+ "hasDynamicHelp": false,
65
+ "hiddenAliases": [],
66
+ "id": "change-currency",
67
+ "pluginAlias": "pontus-x_cli",
68
+ "pluginName": "pontus-x_cli",
69
+ "pluginType": "core",
70
+ "strict": true,
71
+ "enableJsonFlag": false,
72
+ "isESM": false,
73
+ "relativePath": [
74
+ "dist",
75
+ "commands",
76
+ "change-currency.js"
77
+ ]
78
+ },
32
79
  "change-price": {
33
80
  "aliases": [],
34
81
  "args": {
@@ -124,15 +171,14 @@
124
171
  },
125
172
  "description": "Get the compute job results.",
126
173
  "examples": [
127
- "<%= config.bin %> <%= command.id %> 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat"
174
+ "<%= config.bin %> <%= command.id %> 0x1234...-215bae450c8f40f59bfc5d1ccada3931"
128
175
  ],
129
176
  "flags": {
130
177
  "provider": {
131
178
  "char": "p",
132
- "description": "The Provider URL",
179
+ "description": "Ocean Node URL (defaults to configured oceanNodeUri)",
133
180
  "name": "provider",
134
- "required": true,
135
- "default": "https://provider.agrospai.udl.cat",
181
+ "required": false,
136
182
  "hasDynamicHelp": false,
137
183
  "multiple": false,
138
184
  "type": "option"
@@ -164,15 +210,14 @@
164
210
  },
165
211
  "description": "Check compute job status.",
166
212
  "examples": [
167
- "<%= config.bin %> <%= command.id %> 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat"
213
+ "<%= config.bin %> <%= command.id %> 0x1234...-215bae450c8f40f59bfc5d1ccada3931"
168
214
  ],
169
215
  "flags": {
170
216
  "provider": {
171
217
  "char": "p",
172
- "description": "The Provider URL",
218
+ "description": "Ocean Node URL (defaults to configured oceanNodeUri)",
173
219
  "name": "provider",
174
- "required": true,
175
- "default": "https://provider.agrospai.udl.cat",
220
+ "required": false,
176
221
  "hasDynamicHelp": false,
177
222
  "multiple": false,
178
223
  "type": "option"
@@ -246,7 +291,8 @@
246
291
  "multiple": false,
247
292
  "options": [
248
293
  "PONTUSXDEV",
249
- "PONTUSXTEST"
294
+ "PONTUSXTEST",
295
+ "OP_SEPOLIA"
250
296
  ],
251
297
  "type": "option"
252
298
  }
@@ -423,7 +469,8 @@
423
469
  "multiple": false,
424
470
  "options": [
425
471
  "PONTUSXDEV",
426
- "PONTUSXTEST"
472
+ "PONTUSXTEST",
473
+ "OP_SEPOLIA"
427
474
  ],
428
475
  "type": "option"
429
476
  }
@@ -486,6 +533,105 @@
486
533
  "edit-asset-url.js"
487
534
  ]
488
535
  },
536
+ "edit-compute-network": {
537
+ "aliases": [],
538
+ "args": {
539
+ "did": {
540
+ "description": "DID of the asset",
541
+ "name": "did",
542
+ "required": true
543
+ }
544
+ },
545
+ "description": "Enable or disable algorithm network access for an asset's compute service",
546
+ "examples": [
547
+ "<%= config.bin %> <%= command.id %> did:ope:37d12a459bed3461cb4553aeac7e8484a7ff144e618fd5a604fb01d73b965d40 --enable",
548
+ "<%= config.bin %> <%= command.id %> did:ope:37d12a459bed3461cb4553aeac7e8484a7ff144e618fd5a604fb01d73b965d40 --disable"
549
+ ],
550
+ "flags": {
551
+ "enable": {
552
+ "char": "e",
553
+ "description": "Enable algorithm network access",
554
+ "name": "enable",
555
+ "allowNo": true,
556
+ "type": "boolean"
557
+ },
558
+ "disable": {
559
+ "char": "d",
560
+ "description": "Disable algorithm network access",
561
+ "exclusive": [
562
+ "enable"
563
+ ],
564
+ "name": "disable",
565
+ "allowNo": false,
566
+ "type": "boolean"
567
+ },
568
+ "yes": {
569
+ "char": "y",
570
+ "description": "Skip confirmation prompt",
571
+ "name": "yes",
572
+ "required": false,
573
+ "allowNo": false,
574
+ "type": "boolean"
575
+ }
576
+ },
577
+ "hasDynamicHelp": false,
578
+ "hiddenAliases": [],
579
+ "id": "edit-compute-network",
580
+ "pluginAlias": "pontus-x_cli",
581
+ "pluginName": "pontus-x_cli",
582
+ "pluginType": "core",
583
+ "strict": true,
584
+ "enableJsonFlag": false,
585
+ "isESM": false,
586
+ "relativePath": [
587
+ "dist",
588
+ "commands",
589
+ "edit-compute-network.js"
590
+ ]
591
+ },
592
+ "edit-keywords": {
593
+ "aliases": [],
594
+ "args": {
595
+ "did": {
596
+ "description": "Algorithm DID",
597
+ "name": "did",
598
+ "required": true
599
+ },
600
+ "keywords": {
601
+ "description": "Comma separated list of keywords",
602
+ "name": "keywords",
603
+ "required": true
604
+ }
605
+ },
606
+ "description": "Change the list of keywords of the indicated DID",
607
+ "examples": [
608
+ "<%= config.bin %> <%= command.id %> did:op:dcdb747f8feff3122c6d6c0f45a339a6e09415e721f98f61cc2c1d62ab35a21f agrospai,agriculture,data"
609
+ ],
610
+ "flags": {
611
+ "yes": {
612
+ "char": "y",
613
+ "description": "Skip confirmation prompt",
614
+ "name": "yes",
615
+ "required": false,
616
+ "allowNo": false,
617
+ "type": "boolean"
618
+ }
619
+ },
620
+ "hasDynamicHelp": false,
621
+ "hiddenAliases": [],
622
+ "id": "edit-keywords",
623
+ "pluginAlias": "pontus-x_cli",
624
+ "pluginName": "pontus-x_cli",
625
+ "pluginType": "core",
626
+ "strict": true,
627
+ "enableJsonFlag": false,
628
+ "isESM": false,
629
+ "relativePath": [
630
+ "dist",
631
+ "commands",
632
+ "edit-keywords.js"
633
+ ]
634
+ },
489
635
  "edit-trusted-algos": {
490
636
  "aliases": [],
491
637
  "args": {},
@@ -540,7 +686,8 @@
540
686
  "multiple": false,
541
687
  "options": [
542
688
  "PONTUSXDEV",
543
- "PONTUSXTEST"
689
+ "PONTUSXTEST",
690
+ "OP_SEPOLIA"
544
691
  ],
545
692
  "type": "option"
546
693
  }
@@ -607,7 +754,8 @@
607
754
  "multiple": false,
608
755
  "options": [
609
756
  "PONTUSXDEV",
610
- "PONTUSXTEST"
757
+ "PONTUSXTEST",
758
+ "OP_SEPOLIA"
611
759
  ],
612
760
  "type": "option"
613
761
  }
@@ -1087,9 +1235,15 @@
1087
1235
  },
1088
1236
  "provider": {
1089
1237
  "char": "p",
1090
- "description": "The Provider URL",
1238
+ "description": "The Ocean Node URL (defaults to OCEAN_NODE_URI from .env)",
1091
1239
  "name": "provider",
1092
- "default": "https://provider.agrospai.udl.cat",
1240
+ "hasDynamicHelp": false,
1241
+ "multiple": false,
1242
+ "type": "option"
1243
+ },
1244
+ "resume": {
1245
+ "description": "Resume an incomplete publish on an existing NFT address",
1246
+ "name": "resume",
1093
1247
  "hasDynamicHelp": false,
1094
1248
  "multiple": false,
1095
1249
  "type": "option"
@@ -1279,5 +1433,5 @@
1279
1433
  ]
1280
1434
  }
1281
1435
  },
1282
- "version": "1.2.7"
1436
+ "version": "2.0.0"
1283
1437
  }
package/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "name": "pontus-x_cli",
3
3
  "description": "Command Line Interface for the Pontus-X Data Space Ecosystem",
4
- "version": "1.2.7",
4
+ "version": "2.0.0",
5
5
  "author": "AgrospAI",
6
6
  "bin": {
7
7
  "pontus-x_cli": "bin/run.js"
8
8
  },
9
9
  "bugs": "https://github.com/AgrospAI/pontus-x_cli/issues",
10
10
  "dependencies": {
11
- "@deltadao/nautilus": "^1.1.0",
11
+ "@deltadao/nautilus": "^2.0.0-beta.3",
12
12
  "@gaia-x/did-web-generator": "^1.1.0",
13
13
  "@gaia-x/json-web-signature-2020": "^2.3.0",
14
14
  "@inquirer/prompts": "^8.2.0",
15
15
  "@inquirer/search": "^4.1.0",
16
- "@oceanprotocol/ddo-js": "^0.1.3",
17
- "@oceanprotocol/lib": "^5.0.4",
16
+ "@oceanprotocol/lib": "^9.2.1",
18
17
  "@oclif/core": "^4",
19
18
  "@oclif/plugin-autocomplete": "^3.2.34",
20
19
  "@oclif/plugin-help": "^6",
@@ -24,7 +23,7 @@
24
23
  "chalk": "^5.6.2",
25
24
  "dotenv": "^16.4.7",
26
25
  "ethereumjs-wallet": "^1.0.2",
27
- "ethers": "^5.7.2",
26
+ "ethers": "^6.17.0",
28
27
  "handlebars": "^4.7.8",
29
28
  "oclif": "^4.22.14",
30
29
  "readline-sync": "^1.4.10",
@@ -36,7 +35,7 @@
36
35
  "@biomejs/biome": "2.3.14",
37
36
  "@oclif/test": "^4",
38
37
  "@types/figlet": "^1.7.0",
39
- "@types/node": "^18",
38
+ "@types/node": "^22",
40
39
  "@types/readline-sync": "^1.4.8",
41
40
  "@vitest/ui": "^3.2.4",
42
41
  "copyfiles": "^2.4.1",
@@ -77,6 +76,7 @@
77
76
  "url": "git+https://github.com/AgrospAI/pontus-x_cli.git"
78
77
  },
79
78
  "scripts": {
79
+ "postinstall": "node src/scripts/patch-nautilus.cjs",
80
80
  "dev": "npm run build && ts-node -r tsconfig-paths/register ./bin/dev.js",
81
81
  "build": "shx rm -rf dist tsconfig.tsbuildinfo && tsc -b && tsc-alias -p tsconfig.json && shx cp -r src/lib/gaia-x_compliance/generate-credentials/templates dist/lib/gaia-x_compliance/generate-credentials/",
82
82
  "format": "npx @biomejs/biome format --write",