@super-protocol/sp-cli 0.0.2-alpha.1 → 0.0.2-beta.10
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 +145 -260
- package/dist/commands/account/info.d.ts +21 -0
- package/dist/commands/account/info.js +43 -0
- package/dist/commands/auth/login.d.ts +2 -10
- package/dist/commands/auth/login.js +25 -75
- package/dist/commands/base.d.ts +2 -4
- package/dist/commands/base.js +8 -10
- package/dist/commands/config/add.js +9 -5
- package/dist/commands/config/base.d.ts +4 -3
- package/dist/commands/config/base.js +12 -14
- package/dist/commands/config/create.js +4 -4
- package/dist/commands/config/list.js +2 -2
- package/dist/commands/config/use.js +5 -3
- package/dist/commands/files/download.d.ts +15 -0
- package/dist/commands/files/download.js +53 -0
- package/dist/commands/files/upload.d.ts +18 -0
- package/dist/commands/files/upload.js +77 -0
- package/dist/commands/storage/base.d.ts +13 -0
- package/dist/commands/storage/base.js +123 -0
- package/dist/commands/storage/create.d.ts +11 -0
- package/dist/commands/storage/create.js +53 -0
- package/dist/commands/storage/select.d.ts +9 -0
- package/dist/commands/storage/select.js +46 -0
- package/dist/commands/storage/update.d.ts +14 -0
- package/dist/commands/storage/update.js +187 -0
- package/dist/config/config-file.schema.d.ts +4 -4
- package/dist/config/config-file.schema.js +1 -1
- package/dist/config/config.schema.d.ts +16 -15
- package/dist/config/config.schema.js +2 -10
- package/dist/config/resource.schema.d.ts +31 -0
- package/dist/config/resource.schema.js +14 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +2 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +2 -0
- package/dist/lib/container.d.ts +6 -7
- package/dist/lib/container.js +26 -26
- package/dist/managers/account-manager.js +13 -3
- package/dist/managers/config-file-manager.d.ts +1 -1
- package/dist/managers/config-file-manager.js +13 -8
- package/dist/middlewares/auth-middleware.js +5 -1
- package/dist/services/auth.service.d.ts +24 -0
- package/dist/services/auth.service.js +93 -0
- package/dist/services/storage.service.d.ts +71 -0
- package/dist/services/storage.service.js +308 -0
- package/dist/utils/helper.d.ts +5 -0
- package/dist/utils/helper.js +22 -0
- package/dist/utils/progress.d.ts +8 -0
- package/dist/utils/progress.js +27 -0
- package/oclif.manifest.json +368 -131
- package/package.json +12 -6
package/package.json
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@super-protocol/sp-cli",
|
|
3
3
|
"description": "SuperProtocol Command line interface",
|
|
4
|
-
"version": "0.0.2-
|
|
4
|
+
"version": "0.0.2-beta.10",
|
|
5
5
|
"author": "SuperProtocol",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"bin": {
|
|
11
|
-
"sp": "./bin/run.js"
|
|
11
|
+
"sp": "./bin/run.js",
|
|
12
|
+
"spcli": "./bin/run.js"
|
|
12
13
|
},
|
|
13
14
|
"bugs": "https://github.com/Super-Protocol/sp-cli/issues",
|
|
14
15
|
"dependencies": {
|
|
15
|
-
"@
|
|
16
|
+
"@clack/prompts": "^1.0.0-alpha.6",
|
|
16
17
|
"@oclif/core": "^4.7.2",
|
|
18
|
+
"@oclif/plugin-autocomplete": "^3.2.39",
|
|
17
19
|
"@oclif/plugin-help": "^6.2.33",
|
|
18
|
-
"@oclif/plugin-plugins": "^5.4.50",
|
|
19
20
|
"@oclif/plugin-warn-if-update-available": "^3.1.50",
|
|
20
21
|
"@sinclair/typebox": "^0.33.22",
|
|
21
|
-
"@super-protocol/
|
|
22
|
+
"@super-protocol/dto-js": "^1.3.0",
|
|
23
|
+
"@super-protocol/provider-client": "^0.1.8",
|
|
24
|
+
"@super-protocol/sp-files-addon": "^0.12.7",
|
|
22
25
|
"cookie": "^1.0.2",
|
|
23
26
|
"jsonwebtoken": "^9.0.2",
|
|
24
27
|
"pino": "^9.14.0",
|
|
25
28
|
"pino-pretty": "^13.1.2",
|
|
26
29
|
"tough-cookie": "^6.0.0",
|
|
30
|
+
"typebox": "^1.0.55",
|
|
27
31
|
"typescript-retry-decorator": "^2.4.2",
|
|
28
32
|
"viem": "^2.38.3"
|
|
29
33
|
},
|
|
@@ -63,6 +67,9 @@
|
|
|
63
67
|
"type": "module",
|
|
64
68
|
"oclif": {
|
|
65
69
|
"bin": "sp",
|
|
70
|
+
"binAliases": [
|
|
71
|
+
"spcli"
|
|
72
|
+
],
|
|
66
73
|
"dirname": "sp",
|
|
67
74
|
"commands": {
|
|
68
75
|
"strategy": "pattern",
|
|
@@ -75,7 +82,6 @@
|
|
|
75
82
|
},
|
|
76
83
|
"plugins": [
|
|
77
84
|
"@oclif/plugin-help",
|
|
78
|
-
"@oclif/plugin-plugins",
|
|
79
85
|
"@oclif/plugin-warn-if-update-available"
|
|
80
86
|
],
|
|
81
87
|
"warn-if-update-available": {
|