@bitsocial/bitsocial-cli 0.19.39
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/LICENSE +674 -0
- package/README.md +706 -0
- package/bin/dev +20 -0
- package/bin/dev.cmd +3 -0
- package/bin/postinstall.js +125 -0
- package/bin/run +13 -0
- package/bin/run.cmd +3 -0
- package/dist/challenge-packages/challenge-utils.d.ts +24 -0
- package/dist/challenge-packages/challenge-utils.js +304 -0
- package/dist/cli/base-command.d.ts +11 -0
- package/dist/cli/base-command.js +45 -0
- package/dist/cli/commands/challenge/install.d.ts +12 -0
- package/dist/cli/commands/challenge/install.js +131 -0
- package/dist/cli/commands/challenge/list.d.ts +10 -0
- package/dist/cli/commands/challenge/list.js +37 -0
- package/dist/cli/commands/challenge/remove.d.ts +12 -0
- package/dist/cli/commands/challenge/remove.js +60 -0
- package/dist/cli/commands/community/create.d.ts +12 -0
- package/dist/cli/commands/community/create.js +54 -0
- package/dist/cli/commands/community/delete.d.ts +10 -0
- package/dist/cli/commands/community/delete.js +44 -0
- package/dist/cli/commands/community/edit.d.ts +12 -0
- package/dist/cli/commands/community/edit.js +74 -0
- package/dist/cli/commands/community/get.d.ts +9 -0
- package/dist/cli/commands/community/get.js +32 -0
- package/dist/cli/commands/community/list.d.ts +9 -0
- package/dist/cli/commands/community/list.js +30 -0
- package/dist/cli/commands/community/start.d.ts +13 -0
- package/dist/cli/commands/community/start.js +46 -0
- package/dist/cli/commands/community/stop.d.ts +10 -0
- package/dist/cli/commands/community/stop.js +44 -0
- package/dist/cli/commands/daemon.d.ts +14 -0
- package/dist/cli/commands/daemon.js +484 -0
- package/dist/cli/commands/logs.d.ts +24 -0
- package/dist/cli/commands/logs.js +199 -0
- package/dist/cli/commands/subplebbit/create.d.ts +12 -0
- package/dist/cli/commands/subplebbit/create.js +54 -0
- package/dist/cli/commands/subplebbit/edit.d.ts +12 -0
- package/dist/cli/commands/subplebbit/edit.js +73 -0
- package/dist/cli/commands/subplebbit/get.d.ts +9 -0
- package/dist/cli/commands/subplebbit/get.js +32 -0
- package/dist/cli/commands/subplebbit/list.d.ts +9 -0
- package/dist/cli/commands/subplebbit/list.js +30 -0
- package/dist/cli/commands/subplebbit/start.d.ts +10 -0
- package/dist/cli/commands/subplebbit/start.js +41 -0
- package/dist/cli/commands/subplebbit/stop.d.ts +10 -0
- package/dist/cli/commands/subplebbit/stop.js +43 -0
- package/dist/cli/commands/update/check.d.ts +6 -0
- package/dist/cli/commands/update/check.js +28 -0
- package/dist/cli/commands/update/install.d.ts +12 -0
- package/dist/cli/commands/update/install.js +63 -0
- package/dist/cli/commands/update/versions.d.ts +9 -0
- package/dist/cli/commands/update/versions.js +29 -0
- package/dist/cli/hooks/init/version-hook.d.ts +3 -0
- package/dist/cli/hooks/init/version-hook.js +43 -0
- package/dist/cli/hooks/prerun/parse-dynamic-flags-hook.d.ts +3 -0
- package/dist/cli/hooks/prerun/parse-dynamic-flags-hook.js +94 -0
- package/dist/cli/types.d.ts +4 -0
- package/dist/cli/types.js +1 -0
- package/dist/common-utils/data-migration.d.ts +1 -0
- package/dist/common-utils/data-migration.js +27 -0
- package/dist/common-utils/defaults.d.ts +9 -0
- package/dist/common-utils/defaults.js +10 -0
- package/dist/common-utils/resolvers.d.ts +2 -0
- package/dist/common-utils/resolvers.js +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/ipfs/startIpfs.d.ts +3 -0
- package/dist/ipfs/startIpfs.js +304 -0
- package/dist/seeder.d.ts +1 -0
- package/dist/seeder.js +83 -0
- package/dist/update/npm-registry.d.ts +6 -0
- package/dist/update/npm-registry.js +66 -0
- package/dist/update/semver.d.ts +5 -0
- package/dist/update/semver.js +29 -0
- package/dist/util.d.ts +31 -0
- package/dist/util.js +157 -0
- package/dist/webui/daemon-server.d.ts +10 -0
- package/dist/webui/daemon-server.js +140 -0
- package/package.json +143 -0
package/package.json
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitsocial/bitsocial-cli",
|
|
3
|
+
"version": "0.19.39",
|
|
4
|
+
"description": "Command line interface to Bitsocial API",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"homepage": "https://github.com/bitsocialnet/bitsocial-cli",
|
|
7
|
+
"repository": "git@github.com:bitsocialnet/bitsocial-cli.git",
|
|
8
|
+
"author": "Bitsocial Labs",
|
|
9
|
+
"license": "GPL-3.0-or-later",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"publishConfig": { "access": "public" },
|
|
12
|
+
"exports": null,
|
|
13
|
+
"scripts": {
|
|
14
|
+
"clean": "rm -rf tmp/",
|
|
15
|
+
"build": "tsc --project config/tsconfig.json",
|
|
16
|
+
"build:test": "tsc --project config/test.tsconfig.json",
|
|
17
|
+
"build:watch": "tsc --watch --project config/tsconfig.json",
|
|
18
|
+
"build:test:watch": "tsc --watch --project config/test.tsconfig.json",
|
|
19
|
+
"test:cli": "npm run ci:download-web-uis && vitest run --bail 1 --config config/vitest.config.ts",
|
|
20
|
+
"commit": "cz",
|
|
21
|
+
"prepare": "test -d .git && husky install || true",
|
|
22
|
+
"release": "HUSKY=0 release-it --config config/.release-it.json",
|
|
23
|
+
"postinstall": "node bin/postinstall.js",
|
|
24
|
+
"generate:readme": "oclif readme && sed -i 's@/src/commands/@/src/cli/commands/@g' README.md && sed -i 's@src/commands@src/cli/commands@g' README.md",
|
|
25
|
+
"ci:download-web-uis": "node bin/postinstall.js",
|
|
26
|
+
"ci:daemon:test-before-release": "node --loader ts-node/esm ci-bin/run-daemon-before-release.ts"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"/bin",
|
|
30
|
+
"/dist",
|
|
31
|
+
"!/dist/webuis",
|
|
32
|
+
"!/dist/*.tar.gz",
|
|
33
|
+
"!/dist/*.tsbuildinfo",
|
|
34
|
+
"/npm-shrinkwrap.json",
|
|
35
|
+
"/oclif.manifest.json"
|
|
36
|
+
],
|
|
37
|
+
"bin": {
|
|
38
|
+
"bitsocial": "./bin/run"
|
|
39
|
+
},
|
|
40
|
+
"main": "./dist/index.js",
|
|
41
|
+
"oclif": {
|
|
42
|
+
"bin": "bitsocial",
|
|
43
|
+
"dirname": "bitsocial",
|
|
44
|
+
"commands": "./dist/cli/commands",
|
|
45
|
+
"topicSeparator": " ",
|
|
46
|
+
"plugins": [
|
|
47
|
+
"@oclif/plugin-help",
|
|
48
|
+
"@oclif/plugin-not-found"
|
|
49
|
+
],
|
|
50
|
+
"topics": {
|
|
51
|
+
"challenge": {
|
|
52
|
+
"description": "Manage challenge packages"
|
|
53
|
+
},
|
|
54
|
+
"community": {
|
|
55
|
+
"description": "Access and manage your communities"
|
|
56
|
+
},
|
|
57
|
+
"update": {
|
|
58
|
+
"description": "Check for and install bitsocial CLI updates"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"hooks": {
|
|
62
|
+
"init": [
|
|
63
|
+
"./dist/cli/hooks/init/version-hook"
|
|
64
|
+
],
|
|
65
|
+
"prerun": [
|
|
66
|
+
"./dist/cli/hooks/prerun/parse-dynamic-flags-hook"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"config": {
|
|
71
|
+
"commitizen": {
|
|
72
|
+
"path": "cz-conventional-changelog"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"ts-node": {
|
|
76
|
+
"esm": true,
|
|
77
|
+
"experimentalSpecifierResolution": "node"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=22.0.0"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@commitlint/cli": "20.2.0",
|
|
84
|
+
"@commitlint/config-conventional": "20.3.1",
|
|
85
|
+
"@oclif/test": "4.1.15",
|
|
86
|
+
"@release-it/conventional-changelog": "10.0.1",
|
|
87
|
+
"@tsconfig/node20": "20.1.2",
|
|
88
|
+
"@types/decompress": "4.2.7",
|
|
89
|
+
"@types/express": "4.17.21",
|
|
90
|
+
"@types/node": "22.19.13",
|
|
91
|
+
"@types/prettier": "2.7.1",
|
|
92
|
+
"@types/tcp-port-used": "1.0.4",
|
|
93
|
+
"@types/ws": "^8.18.1",
|
|
94
|
+
"commitizen": "4.2.5",
|
|
95
|
+
"cz-conventional-changelog": "3.3.0",
|
|
96
|
+
"eslint": "8.27.0",
|
|
97
|
+
"eslint-config-oclif": "6.0.127",
|
|
98
|
+
"eslint-config-oclif-typescript": "3.1.14",
|
|
99
|
+
"husky": "8.0.2",
|
|
100
|
+
"nodemon": "2.0.20",
|
|
101
|
+
"oclif": "4.22.59",
|
|
102
|
+
"release-it": "19.2.3",
|
|
103
|
+
"shx": "0.3.4",
|
|
104
|
+
"sinon": "17.0.1",
|
|
105
|
+
"tempy": "1.0.1",
|
|
106
|
+
"ts-node": "10.9.2",
|
|
107
|
+
"vitest": "4.0.17",
|
|
108
|
+
"wait-on": "6.0.1"
|
|
109
|
+
},
|
|
110
|
+
"dependencies": {
|
|
111
|
+
"@bitsocial/bso-resolver": "0.0.4",
|
|
112
|
+
"@multiformats/multiaddr": "13.0.1",
|
|
113
|
+
"@oclif/core": "4.8.0",
|
|
114
|
+
"@oclif/plugin-help": "6.2.36",
|
|
115
|
+
"@oclif/plugin-not-found": "3.2.73",
|
|
116
|
+
"@oclif/table": "0.5.1",
|
|
117
|
+
"@pkcprotocol/pkc-js": "0.0.16",
|
|
118
|
+
"dataobject-parser": "1.2.22",
|
|
119
|
+
"decompress": "4.2.1",
|
|
120
|
+
"env-paths": "2.2.1",
|
|
121
|
+
"exit-hook": "4.0.0",
|
|
122
|
+
"express": "4.19.2",
|
|
123
|
+
"kubo": "0.40.1",
|
|
124
|
+
"tcp-port-used": "1.0.2",
|
|
125
|
+
"tslib": "2.6.2",
|
|
126
|
+
"typescript": "5.9.3"
|
|
127
|
+
},
|
|
128
|
+
"overrides": {},
|
|
129
|
+
"webuis": [
|
|
130
|
+
{
|
|
131
|
+
"url": "https://github.com/plebbit/seedit/releases/tag/v0.5.10",
|
|
132
|
+
"sha256OfHtmlZip": "fd8b3d6cf3ec93055bac01e2e482ee768ff6d6fe1cdddc12f7bcfa0209122deb"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"url": "https://github.com/plebbit/plebones/releases/tag/v0.1.27",
|
|
136
|
+
"sha256OfHtmlZip": "14653b19e88868fda6fef26601f477947e44251cc52bd95d7d6fec158ae67b6f"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"url": "https://github.com/bitsocialnet/5chan/releases/tag/v0.6.4",
|
|
140
|
+
"sha256OfHtmlZip": "b47685f868c868c6afe96e865897876fabac2ddf121a00d194cee36fdff9d348"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|