@corellium/corellium-cli 1.0.4 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/README.md +1 -1
  2. package/docs/OVERVIEW.md +1 -1
  3. package/index.js +2 -2
  4. package/node_modules/@babel/cli/node_modules/commander/package.json +58 -27
  5. package/node_modules/@babel/cli/node_modules/make-dir/package.json +93 -62
  6. package/node_modules/@babel/cli/node_modules/pify/package.json +85 -54
  7. package/node_modules/@babel/cli/node_modules/semver/package.json +51 -20
  8. package/node_modules/@babel/cli/node_modules/slash/package.json +68 -37
  9. package/node_modules/@babel/cli/package.json +69 -37
  10. package/node_modules/@corellium/client-api/package.json +40 -15
  11. package/node_modules/@jridgewell/resolve-uri/package.json +75 -40
  12. package/node_modules/@jridgewell/sourcemap-codec/package.json +74 -43
  13. package/node_modules/@jridgewell/trace-mapping/package.json +72 -40
  14. package/node_modules/@mapbox/node-pre-gyp/package.json +61 -27
  15. package/node_modules/@nicolo-ribaudo/chokidar-2/package.json +55 -22
  16. package/node_modules/abbrev/package.json +52 -18
  17. package/node_modules/agent-base/package.json +62 -33
  18. package/node_modules/ansi-regex/package.json +89 -58
  19. package/node_modules/ansi-styles/package.json +95 -59
  20. package/node_modules/anymatch/package.json +56 -28
  21. package/node_modules/aproba/package.json +50 -23
  22. package/node_modules/are-we-there-yet/node_modules/readable-stream/package.json +60 -32
  23. package/node_modules/are-we-there-yet/package.json +62 -32
  24. package/node_modules/ascii-art/package.json +83 -51
  25. package/node_modules/ascii-art-ansi/package.json +61 -30
  26. package/node_modules/ascii-art-braille/package.json +32 -7
  27. package/node_modules/ascii-art-font/package.json +47 -17
  28. package/node_modules/ascii-art-graph/package.json +34 -10
  29. package/node_modules/ascii-art-image/node_modules/ascii-art-braille/package.json +32 -7
  30. package/node_modules/ascii-art-image/package.json +36 -11
  31. package/node_modules/ascii-art-table/package.json +35 -10
  32. package/node_modules/ascii-art-utf/package.json +47 -18
  33. package/node_modules/async/package.json +55 -29
  34. package/node_modules/async-arrays/package.json +62 -34
  35. package/node_modules/asynckit/package.json +74 -45
  36. package/node_modules/axios/package.json +72 -46
  37. package/node_modules/balanced-match/package.json +49 -22
  38. package/node_modules/binary-extensions/package.json +73 -41
  39. package/node_modules/brace-expansion/package.json +50 -23
  40. package/node_modules/braces/package.json +76 -30
  41. package/node_modules/call-bind/package.json +125 -83
  42. package/node_modules/canvas/package.json +86 -43
  43. package/node_modules/chokidar/package.json +74 -40
  44. package/node_modules/chownr/package.json +56 -24
  45. package/node_modules/cli/package.json +70 -23
  46. package/node_modules/cliui/package.json +87 -53
  47. package/node_modules/color/node_modules/color-convert/package.json +60 -26
  48. package/node_modules/color/node_modules/color-name/package.json +45 -18
  49. package/node_modules/color/package.json +57 -26
  50. package/node_modules/color-convert/package.json +59 -25
  51. package/node_modules/color-difference/package.json +52 -26
  52. package/node_modules/color-model/package.json +44 -17
  53. package/node_modules/color-name/package.json +60 -32
  54. package/node_modules/color-string/package.json +67 -26
  55. package/node_modules/color-support/package.json +60 -26
  56. package/node_modules/combined-stream/package.json +52 -19
  57. package/node_modules/component-emitter/package.json +45 -17
  58. package/node_modules/concat-map/package.json +89 -45
  59. package/node_modules/console-control-strings/package.json +55 -22
  60. package/node_modules/convert-source-map/package.json +55 -28
  61. package/node_modules/cookiejar/package.json +44 -16
  62. package/node_modules/core-util-is/package.json +51 -21
  63. package/node_modules/d3/package.json +70 -43
  64. package/node_modules/d3-array/package.json +55 -24
  65. package/node_modules/d3-axis/package.json +54 -27
  66. package/node_modules/d3-brush/package.json +60 -33
  67. package/node_modules/d3-chord/package.json +55 -28
  68. package/node_modules/d3-collection/package.json +54 -25
  69. package/node_modules/d3-color/package.json +2 -2
  70. package/node_modules/d3-contour/package.json +54 -27
  71. package/node_modules/d3-dispatch/package.json +60 -28
  72. package/node_modules/d3-drag/package.json +61 -32
  73. package/node_modules/d3-dsv/node_modules/commander/package.json +56 -25
  74. package/node_modules/d3-dsv/package.json +64 -36
  75. package/node_modules/d3-ease/package.json +56 -28
  76. package/node_modules/d3-fetch/package.json +58 -31
  77. package/node_modules/d3-force/package.json +57 -30
  78. package/node_modules/d3-format/package.json +57 -29
  79. package/node_modules/d3-geo/package.json +62 -35
  80. package/node_modules/d3-hierarchy/package.json +60 -33
  81. package/node_modules/d3-interpolate/package.json +63 -31
  82. package/node_modules/d3-path/package.json +57 -28
  83. package/node_modules/d3-polygon/package.json +55 -28
  84. package/node_modules/d3-quadtree/package.json +57 -29
  85. package/node_modules/d3-random/package.json +53 -26
  86. package/node_modules/d3-scale/package.json +56 -29
  87. package/node_modules/d3-scale-chromatic/package.json +60 -33
  88. package/node_modules/d3-selection/package.json +60 -29
  89. package/node_modules/d3-shape/package.json +59 -32
  90. package/node_modules/d3-time/package.json +57 -28
  91. package/node_modules/d3-time-format/package.json +61 -33
  92. package/node_modules/d3-timer/package.json +57 -28
  93. package/node_modules/d3-transition/package.json +64 -35
  94. package/node_modules/d3-voronoi/package.json +51 -24
  95. package/node_modules/d3-zoom/package.json +61 -34
  96. package/node_modules/debug/package.json +87 -37
  97. package/node_modules/decompress-response/package.json +84 -53
  98. package/node_modules/delayed-stream/package.json +53 -19
  99. package/node_modules/delegates/package.json +45 -11
  100. package/node_modules/detect-libc/package.json +60 -26
  101. package/node_modules/dirname-shim/package.json +60 -26
  102. package/node_modules/dotenv/package.json +64 -37
  103. package/node_modules/duplexer/package.json +49 -18
  104. package/node_modules/emoji-regex/package.json +58 -32
  105. package/node_modules/escalade/package.json +59 -28
  106. package/node_modules/extended-emitter/package.json +65 -37
  107. package/node_modules/fast-safe-stringify/package.json +73 -33
  108. package/node_modules/fill-range/package.json +72 -28
  109. package/node_modules/follow-redirects/package.json +77 -42
  110. package/node_modules/form-data/package.json +74 -42
  111. package/node_modules/formidable/package.json +52 -22
  112. package/node_modules/fs-minipass/package.json +52 -24
  113. package/node_modules/fs-readdir-recursive/package.json +50 -20
  114. package/node_modules/fs.realpath/package.json +53 -21
  115. package/node_modules/fsevents/package.json +63 -38
  116. package/node_modules/ftp-response-parser/node_modules/isarray/package.json +54 -22
  117. package/node_modules/ftp-response-parser/node_modules/readable-stream/package.json +55 -22
  118. package/node_modules/ftp-response-parser/node_modules/string_decoder/package.json +45 -17
  119. package/node_modules/ftp-response-parser/package.json +64 -23
  120. package/node_modules/function-bind/package.json +61 -28
  121. package/node_modules/gauge/package.json +52 -25
  122. package/node_modules/generate-password/package.json +54 -28
  123. package/node_modules/get-caller-file/package.json +53 -27
  124. package/node_modules/get-intrinsic/package.json +124 -91
  125. package/node_modules/glob/package.json +68 -34
  126. package/node_modules/glob-parent/package.json +70 -27
  127. package/node_modules/has/package.json +55 -26
  128. package/node_modules/has-symbols/package.json +133 -104
  129. package/node_modules/has-unicode/package.json +52 -25
  130. package/node_modules/https-proxy-agent/package.json +59 -30
  131. package/node_modules/iconv-lite/package.json +77 -48
  132. package/node_modules/inflight/package.json +48 -20
  133. package/node_modules/inherits/package.json +54 -17
  134. package/node_modules/is-binary-path/package.json +75 -43
  135. package/node_modules/is-extglob/package.json +52 -22
  136. package/node_modules/is-fullwidth-code-point/package.json +79 -45
  137. package/node_modules/is-glob/package.json +68 -26
  138. package/node_modules/is-number/package.json +65 -26
  139. package/node_modules/jsftp/node_modules/debug/package.json +67 -28
  140. package/node_modules/jsftp/package.json +59 -22
  141. package/node_modules/json2csv/node_modules/commander/package.json +56 -25
  142. package/node_modules/json2csv/package.json +64 -37
  143. package/node_modules/jsonparse/package.json +53 -18
  144. package/node_modules/lodash/package.json +61 -15
  145. package/node_modules/lodash.get/package.json +67 -16
  146. package/node_modules/lru-cache/package.json +61 -27
  147. package/node_modules/make-dir/node_modules/semver/package.json +51 -20
  148. package/node_modules/make-dir/package.json +93 -62
  149. package/node_modules/maplex/package.json +54 -22
  150. package/node_modules/methods/package.json +64 -22
  151. package/node_modules/mime/package.json +48 -20
  152. package/node_modules/mime-db/package.json +67 -25
  153. package/node_modules/mime-types/package.json +64 -20
  154. package/node_modules/mimic-response/package.json +76 -45
  155. package/node_modules/minimatch/package.json +61 -25
  156. package/node_modules/minipass/package.json +64 -30
  157. package/node_modules/minizlib/package.json +59 -27
  158. package/node_modules/mkdirp/package.json +57 -27
  159. package/node_modules/ms/package.json +58 -24
  160. package/node_modules/multi-progress/package.json +46 -20
  161. package/node_modules/nan/package.json +87 -27
  162. package/node_modules/node-fetch/package.json +104 -77
  163. package/node_modules/nopt/package.json +54 -22
  164. package/node_modules/normalize-path/package.json +63 -25
  165. package/node_modules/npmlog/package.json +55 -23
  166. package/node_modules/object-assign/package.json +51 -20
  167. package/node_modules/object-inspect/package.json +81 -53
  168. package/node_modules/once/package.json +56 -19
  169. package/node_modules/parse-listing/package.json +56 -27
  170. package/node_modules/path-is-absolute/package.json +47 -16
  171. package/node_modules/picomatch/package.json +60 -28
  172. package/node_modules/progress/package.json +65 -21
  173. package/node_modules/qs/package.json +105 -78
  174. package/node_modules/readdirp/package.json +83 -47
  175. package/node_modules/require-directory/package.json +57 -29
  176. package/node_modules/rimraf/package.json +61 -23
  177. package/node_modules/rw/package.json +46 -19
  178. package/node_modules/safe-buffer/package.json +38 -10
  179. package/node_modules/safer-buffer/package.json +43 -18
  180. package/node_modules/semver/package.json +70 -36
  181. package/node_modules/set-blocking/package.json +56 -29
  182. package/node_modules/side-channel/package.json +98 -70
  183. package/node_modules/sift/package.json +62 -30
  184. package/node_modules/signal-exit/package.json +58 -29
  185. package/node_modules/simple-concat/package.json +46 -22
  186. package/node_modules/simple-get/package.json +33 -9
  187. package/node_modules/simple-swizzle/node_modules/is-arrayish/package.json +59 -28
  188. package/node_modules/simple-swizzle/package.json +57 -23
  189. package/node_modules/strangler/package.json +67 -39
  190. package/node_modules/stream-combiner/package.json +48 -15
  191. package/node_modules/string-tools/package.json +50 -16
  192. package/node_modules/string-width/package.json +97 -59
  193. package/node_modules/string_decoder/package.json +47 -18
  194. package/node_modules/strip-ansi/package.json +94 -57
  195. package/node_modules/superagent/node_modules/form-data/package.json +74 -42
  196. package/node_modules/superagent/node_modules/readable-stream/package.json +60 -32
  197. package/node_modules/superagent/package.json +59 -13
  198. package/node_modules/tar/package.json +59 -27
  199. package/node_modules/through/package.json +50 -17
  200. package/node_modules/to-regex-range/package.json +61 -25
  201. package/node_modules/tr46/package.json +51 -24
  202. package/node_modules/unorm/package.json +75 -34
  203. package/node_modules/util-deprecate/package.json +49 -19
  204. package/node_modules/uuid/package.json +102 -74
  205. package/node_modules/webidl-conversions/package.json +53 -18
  206. package/node_modules/whatwg-url/package.json +49 -15
  207. package/node_modules/wide-align/package.json +53 -21
  208. package/node_modules/wolfy87-eventemitter/package.json +49 -25
  209. package/node_modules/wrap-ansi/package.json +97 -65
  210. package/node_modules/wrappy/package.json +50 -21
  211. package/node_modules/y18n/package.json +73 -43
  212. package/node_modules/yallist/package.json +55 -20
  213. package/node_modules/yargs/package.json +99 -72
  214. package/node_modules/yargs-parser/package.json +83 -52
  215. package/package.json +2 -1
  216. package/src/commands/Client.js +2 -2
  217. package/src/commands/agent/apps.js +2 -1
  218. package/src/commands/agent/file.js +2 -1
  219. package/src/commands/agent/ready.js +2 -1
  220. package/src/commands/extensions/delete.js +2 -1
  221. package/src/commands/extensions/list.js +2 -1
  222. package/src/commands/extensions/load.js +2 -1
  223. package/src/commands/extensions/validate.js +2 -1
  224. package/src/commands/firmware/list.js +2 -1
  225. package/src/commands/firmware/load.js +2 -1
  226. package/src/commands/images/create.js +2 -1
  227. package/src/commands/images/delete.js +2 -1
  228. package/src/commands/images/list.js +2 -1
  229. package/src/commands/instances/Instance.js +27 -0
  230. package/src/commands/instances/create.js +11 -4
  231. package/src/commands/instances/delete.js +20 -5
  232. package/src/commands/instances/index.js +2 -1
  233. package/src/commands/instances/list.js +3 -2
  234. package/src/commands/instances/start.js +2 -1
  235. package/src/commands/instances/stop.js +2 -1
  236. package/src/commands/instances/upgrade.js +90 -0
  237. package/src/commands/login.js +14 -2
  238. package/src/commands/logout.js +2 -1
  239. package/src/commands/projects/create.js +2 -1
  240. package/src/commands/projects/delete.js +2 -1
  241. package/src/commands/projects/list.js +2 -1
  242. package/src/commands/webplayer/create.js +2 -1
  243. package/src/commands/webplayer/destroy.js +2 -1
  244. package/src/commands/webplayer/list.js +2 -1
  245. package/src/commands/webplayer/login.js +2 -1
  246. package/src/error.js +14 -1
  247. package/src/profile.js +1 -1
  248. package/src/utils.js +11 -4
  249. package/example/WebPlayerSample.js +0 -319
@@ -1,57 +1,41 @@
1
1
  {
2
- "name": "yargs",
3
- "version": "17.5.1",
4
- "description": "yargs the modern, pirate-themed, successor to optimist.",
5
- "main": "./index.cjs",
6
- "exports": {
7
- "./package.json": "./package.json",
8
- ".": [
9
- {
10
- "import": "./index.mjs",
11
- "require": "./index.cjs"
12
- },
13
- "./index.cjs"
14
- ],
15
- "./helpers": {
16
- "import": "./helpers/helpers.mjs",
17
- "require": "./helpers/index.js"
18
- },
19
- "./browser": {
20
- "import": "./browser.mjs",
21
- "types": "./browser.d.ts"
22
- },
23
- "./yargs": [
24
- {
25
- "import": "./yargs.mjs",
26
- "require": "./yargs"
27
- },
28
- "./yargs"
2
+ "_args": [
3
+ [
4
+ "yargs@17.5.1",
5
+ "/Users/haydenbleasel/GitHub/corellium-cli"
29
6
  ]
7
+ ],
8
+ "_from": "yargs@17.5.1",
9
+ "_id": "yargs@17.5.1",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==",
12
+ "_location": "/yargs",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "yargs@17.5.1",
18
+ "name": "yargs",
19
+ "escapedName": "yargs",
20
+ "rawSpec": "17.5.1",
21
+ "saveSpec": null,
22
+ "fetchSpec": "17.5.1"
23
+ },
24
+ "_requiredBy": [
25
+ "/"
26
+ ],
27
+ "_resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz",
28
+ "_spec": "17.5.1",
29
+ "_where": "/Users/haydenbleasel/GitHub/corellium-cli",
30
+ "bugs": {
31
+ "url": "https://github.com/yargs/yargs/issues"
30
32
  },
31
- "type": "module",
32
- "module": "./index.mjs",
33
33
  "contributors": [
34
34
  {
35
35
  "name": "Yargs Contributors",
36
36
  "url": "https://github.com/yargs/yargs/graphs/contributors"
37
37
  }
38
38
  ],
39
- "files": [
40
- "browser.mjs",
41
- "browser.d.ts",
42
- "index.cjs",
43
- "helpers/*.js",
44
- "helpers/*",
45
- "index.mjs",
46
- "yargs",
47
- "yargs.mjs",
48
- "build",
49
- "locales",
50
- "LICENSE",
51
- "lib/platform-shims/*.mjs",
52
- "!*.d.ts",
53
- "!**/*.d.ts"
54
- ],
55
39
  "dependencies": {
56
40
  "cliui": "^7.0.2",
57
41
  "escalade": "^3.1.1",
@@ -61,6 +45,7 @@
61
45
  "y18n": "^5.0.5",
62
46
  "yargs-parser": "^21.0.0"
63
47
  },
48
+ "description": "yargs the modern, pirate-themed, successor to optimist.",
64
49
  "devDependencies": {
65
50
  "@types/chai": "^4.2.11",
66
51
  "@types/mocha": "^9.0.0",
@@ -85,27 +70,50 @@
85
70
  "which": "^2.0.0",
86
71
  "yargs-test-extends": "^1.0.1"
87
72
  },
88
- "scripts": {
89
- "fix": "gts fix && npm run fix:js",
90
- "fix:js": "eslint . --ext cjs --ext mjs --ext js --fix",
91
- "posttest": "npm run check",
92
- "test": "c8 mocha --enable-source-maps ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
93
- "test:esm": "c8 mocha --enable-source-maps ./test/esm/*.mjs --check-leaks",
94
- "coverage": "c8 report --check-coverage",
95
- "prepare": "npm run compile",
96
- "pretest": "npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
97
- "compile": "rimraf build && tsc",
98
- "postcompile": "npm run build:cjs",
99
- "build:cjs": "rollup -c rollup.config.cjs",
100
- "postbuild:cjs": "rimraf ./build/index.cjs.d.ts",
101
- "check": "gts lint && npm run check:js",
102
- "check:js": "eslint . --ext cjs --ext mjs --ext js",
103
- "clean": "gts clean"
73
+ "engines": {
74
+ "node": ">=12"
104
75
  },
105
- "repository": {
106
- "type": "git",
107
- "url": "https://github.com/yargs/yargs.git"
76
+ "exports": {
77
+ "./package.json": "./package.json",
78
+ ".": [
79
+ {
80
+ "import": "./index.mjs",
81
+ "require": "./index.cjs"
82
+ },
83
+ "./index.cjs"
84
+ ],
85
+ "./helpers": {
86
+ "import": "./helpers/helpers.mjs",
87
+ "require": "./helpers/index.js"
88
+ },
89
+ "./browser": {
90
+ "import": "./browser.mjs",
91
+ "types": "./browser.d.ts"
92
+ },
93
+ "./yargs": [
94
+ {
95
+ "import": "./yargs.mjs",
96
+ "require": "./yargs"
97
+ },
98
+ "./yargs"
99
+ ]
108
100
  },
101
+ "files": [
102
+ "browser.mjs",
103
+ "browser.d.ts",
104
+ "index.cjs",
105
+ "helpers/*.js",
106
+ "helpers/*",
107
+ "index.mjs",
108
+ "yargs",
109
+ "yargs.mjs",
110
+ "build",
111
+ "locales",
112
+ "LICENSE",
113
+ "lib/platform-shims/*.mjs",
114
+ "!*.d.ts",
115
+ "!**/*.d.ts"
116
+ ],
109
117
  "homepage": "https://yargs.js.org/",
110
118
  "keywords": [
111
119
  "argument",
@@ -117,11 +125,30 @@
117
125
  "command"
118
126
  ],
119
127
  "license": "MIT",
120
- "engines": {
121
- "node": ">=12"
122
- }
123
-
124
- ,"_resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz"
125
- ,"_integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA=="
126
- ,"_from": "yargs@17.5.1"
127
- }
128
+ "main": "./index.cjs",
129
+ "module": "./index.mjs",
130
+ "name": "yargs",
131
+ "repository": {
132
+ "type": "git",
133
+ "url": "git+https://github.com/yargs/yargs.git"
134
+ },
135
+ "scripts": {
136
+ "build:cjs": "rollup -c rollup.config.cjs",
137
+ "check": "gts lint && npm run check:js",
138
+ "check:js": "eslint . --ext cjs --ext mjs --ext js",
139
+ "clean": "gts clean",
140
+ "compile": "rimraf build && tsc",
141
+ "coverage": "c8 report --check-coverage",
142
+ "fix": "gts fix && npm run fix:js",
143
+ "fix:js": "eslint . --ext cjs --ext mjs --ext js --fix",
144
+ "postbuild:cjs": "rimraf ./build/index.cjs.d.ts",
145
+ "postcompile": "npm run build:cjs",
146
+ "posttest": "npm run check",
147
+ "prepare": "npm run compile",
148
+ "pretest": "npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
149
+ "test": "c8 mocha --enable-source-maps ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
150
+ "test:esm": "c8 mocha --enable-source-maps ./test/esm/*.mjs --check-leaks"
151
+ },
152
+ "type": "module",
153
+ "version": "17.5.1"
154
+ }
@@ -1,52 +1,40 @@
1
1
  {
2
- "name": "yargs-parser",
3
- "version": "21.0.1",
4
- "description": "the mighty option parser used by yargs",
5
- "main": "build/index.cjs",
6
- "exports": {
7
- ".": [
8
- {
9
- "import": "./build/lib/index.js",
10
- "require": "./build/index.cjs"
11
- },
12
- "./build/index.cjs"
2
+ "_args": [
3
+ [
4
+ "yargs-parser@21.0.1",
5
+ "/Users/haydenbleasel/GitHub/corellium-cli"
13
6
  ]
7
+ ],
8
+ "_from": "yargs-parser@21.0.1",
9
+ "_id": "yargs-parser@21.0.1",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==",
12
+ "_location": "/yargs-parser",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "yargs-parser@21.0.1",
18
+ "name": "yargs-parser",
19
+ "escapedName": "yargs-parser",
20
+ "rawSpec": "21.0.1",
21
+ "saveSpec": null,
22
+ "fetchSpec": "21.0.1"
14
23
  },
15
- "type": "module",
16
- "module": "./build/lib/index.js",
17
- "scripts": {
18
- "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'",
19
- "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'",
20
- "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
21
- "test": "c8 --reporter=text --reporter=html mocha test/*.cjs",
22
- "test:esm": "c8 --reporter=text --reporter=html mocha test/*.mjs",
23
- "test:browser": "start-server-and-test 'serve ./ -p 8080' http://127.0.0.1:8080/package.json 'node ./test/browser/yargs-test.cjs'",
24
- "pretest:typescript": "npm run pretest",
25
- "test:typescript": "c8 mocha ./build/test/typescript/*.js",
26
- "coverage": "c8 report --check-coverage",
27
- "precompile": "rimraf build",
28
- "compile": "tsc",
29
- "postcompile": "npm run build:cjs",
30
- "build:cjs": "rollup -c",
31
- "prepare": "npm run compile"
24
+ "_requiredBy": [
25
+ "/yargs"
26
+ ],
27
+ "_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz",
28
+ "_spec": "21.0.1",
29
+ "_where": "/Users/haydenbleasel/GitHub/corellium-cli",
30
+ "author": {
31
+ "name": "Ben Coe",
32
+ "email": "ben@npmjs.com"
32
33
  },
33
- "repository": {
34
- "type": "git",
35
- "url": "https://github.com/yargs/yargs-parser.git"
34
+ "bugs": {
35
+ "url": "https://github.com/yargs/yargs-parser/issues"
36
36
  },
37
- "keywords": [
38
- "argument",
39
- "parser",
40
- "yargs",
41
- "command",
42
- "cli",
43
- "parsing",
44
- "option",
45
- "args",
46
- "argument"
47
- ],
48
- "author": "Ben Coe <ben@npmjs.com>",
49
- "license": "ISC",
37
+ "description": "the mighty option parser used by yargs",
50
38
  "devDependencies": {
51
39
  "@types/chai": "^4.2.11",
52
40
  "@types/mocha": "^9.0.0",
@@ -72,21 +60,64 @@
72
60
  "ts-transform-default-export": "^1.0.2",
73
61
  "typescript": "^4.0.0"
74
62
  },
63
+ "engines": {
64
+ "node": ">=12"
65
+ },
66
+ "exports": {
67
+ ".": [
68
+ {
69
+ "import": "./build/lib/index.js",
70
+ "require": "./build/index.cjs"
71
+ },
72
+ "./build/index.cjs"
73
+ ]
74
+ },
75
75
  "files": [
76
76
  "browser.js",
77
77
  "build",
78
78
  "!*.d.ts"
79
79
  ],
80
- "engines": {
81
- "node": ">=12"
80
+ "homepage": "https://github.com/yargs/yargs-parser#readme",
81
+ "keywords": [
82
+ "argument",
83
+ "parser",
84
+ "yargs",
85
+ "command",
86
+ "cli",
87
+ "parsing",
88
+ "option",
89
+ "args",
90
+ "argument"
91
+ ],
92
+ "license": "ISC",
93
+ "main": "build/index.cjs",
94
+ "module": "./build/lib/index.js",
95
+ "name": "yargs-parser",
96
+ "repository": {
97
+ "type": "git",
98
+ "url": "git+https://github.com/yargs/yargs-parser.git"
99
+ },
100
+ "scripts": {
101
+ "build:cjs": "rollup -c",
102
+ "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'",
103
+ "compile": "tsc",
104
+ "coverage": "c8 report --check-coverage",
105
+ "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'",
106
+ "postcompile": "npm run build:cjs",
107
+ "precompile": "rimraf build",
108
+ "prepare": "npm run compile",
109
+ "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
110
+ "pretest:typescript": "npm run pretest",
111
+ "test": "c8 --reporter=text --reporter=html mocha test/*.cjs",
112
+ "test:browser": "start-server-and-test 'serve ./ -p 8080' http://127.0.0.1:8080/package.json 'node ./test/browser/yargs-test.cjs'",
113
+ "test:esm": "c8 --reporter=text --reporter=html mocha test/*.mjs",
114
+ "test:typescript": "c8 mocha ./build/test/typescript/*.js"
82
115
  },
83
116
  "standardx": {
84
117
  "ignore": [
85
118
  "build"
86
119
  ]
87
- }
88
-
89
- ,"_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz"
90
- ,"_integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg=="
91
- ,"_from": "yargs-parser@21.0.1"
92
- }
120
+ },
121
+ "type": "module",
122
+ "version": "21.0.1"
123
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corellium/corellium-cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.7",
4
4
  "description": "Corellium CLI Tool",
5
5
  "scripts": {
6
6
  "corellium-cli": "node index.js",
@@ -30,6 +30,7 @@
30
30
  "generate-password": "^1.7.0",
31
31
  "multi-progress": "^4.0.0",
32
32
  "progress": "^2.0.3",
33
+ "prompts": "^2.4.2",
33
34
  "uuid": "^8.3.2",
34
35
  "xhr2": "^0.2.0",
35
36
  "yargs": "^17.5.1"
@@ -7,8 +7,8 @@ const { readProfile } = require('../profile')
7
7
  class Client {
8
8
  constructor (argv) {
9
9
  this.argv = Object.assign({}, argv)
10
- this.project = argv.project
11
- this.instance = argv.instance
10
+ this.project = argv.project || argv.projectId
11
+ this.instance = argv.instance || argv.instanceId
12
12
  this._profile = readProfile()
13
13
  }
14
14
 
@@ -5,7 +5,8 @@ const { getErrorMessage } = require('../../error')
5
5
  const log = require('../../logging')
6
6
 
7
7
  async function builder (yargs) {
8
- yargs.option('detailed-errors', {
8
+ yargs.option('verbose', {
9
+ alias: 'v',
9
10
  type: 'boolean',
10
11
  describe: 'Console will receive verbose error output'
11
12
  }).option('project', {
@@ -5,7 +5,8 @@ const { getErrorMessage } = require('../../error')
5
5
  const log = require('../../logging')
6
6
 
7
7
  async function builder (yargs) {
8
- yargs.option('detailed-errors', {
8
+ yargs.option('verbose', {
9
+ alias: 'v',
9
10
  type: 'boolean',
10
11
  describe: 'Console will receive verbose error output'
11
12
  }).option('project', {
@@ -4,7 +4,8 @@ const { getErrorMessage } = require('../../error')
4
4
  const log = require('../../logging')
5
5
 
6
6
  async function builder (yargs) {
7
- yargs.option('detailed-errors', {
7
+ yargs.option('verbose', {
8
+ alias: 'v',
8
9
  type: 'boolean',
9
10
  describe: 'Console will receive verbose error output'
10
11
  }).option('project', {
@@ -7,7 +7,8 @@ async function builder (yargs) {
7
7
  type: 'string',
8
8
  describe: 'Extension ID (UUID)',
9
9
  demandOption: true
10
- }).option('detailed-errors', {
10
+ }).option('verbose', {
11
+ alias: 'v',
11
12
  type: 'boolean',
12
13
  describe: 'Console will receive verbose error output'
13
14
  })
@@ -4,7 +4,8 @@ const { displayTable } = require('../../table')
4
4
  const { getAxios } = require('../../utils')
5
5
 
6
6
  async function builder (yargs) {
7
- yargs.option('detailed-errors', {
7
+ yargs.option('verbose', {
8
+ alias: 'v',
8
9
  type: 'boolean',
9
10
  describe: 'Console will receive verbose error output'
10
11
  }).option('format', {
@@ -11,7 +11,8 @@ async function builder (yargs) {
11
11
  type: 'string',
12
12
  describe: 'One or more extension file paths',
13
13
  demandOption: true
14
- }).option('detailed-errors', {
14
+ }).option('verbose', {
15
+ alias: 'v',
15
16
  type: 'boolean',
16
17
  describe: 'Console will receive verbose error output'
17
18
  })
@@ -8,7 +8,8 @@ async function builder (yargs) {
8
8
  type: 'string',
9
9
  describe: 'Path to extension json',
10
10
  demandOption: true
11
- }).option('detailed-errors', {
11
+ }).option('verbose', {
12
+ alias: 'v',
12
13
  type: 'boolean',
13
14
  describe: 'Console will receive verbose error output'
14
15
  })
@@ -3,7 +3,8 @@ const { displayTable } = require('../../table')
3
3
  const { getApi } = require('../../utils')
4
4
 
5
5
  async function builder (yargs) {
6
- yargs.option('detailed-errors', {
6
+ yargs.option('verbose', {
7
+ alias: 'v',
7
8
  type: 'boolean',
8
9
  describe: 'Console will receive verbose error output'
9
10
  }).option('format', {
@@ -11,7 +11,8 @@ async function builder (yargs) {
11
11
  type: 'string',
12
12
  describe: 'One or more firmware file paths',
13
13
  demandOption: true
14
- }).option('detailed-errors', {
14
+ }).option('verbose', {
15
+ alias: 'v',
15
16
  type: 'boolean',
16
17
  describe: 'Console will receive verbose error output'
17
18
  })
@@ -15,7 +15,8 @@ async function builder (yargs) {
15
15
  string: true,
16
16
  choices: ['json', 'csv']
17
17
  })
18
- .option('detailed-errors', {
18
+ .option('verbose', {
19
+ alias: 'v',
19
20
  type: 'boolean',
20
21
  describe: 'Console will receive verbose error output'
21
22
  })
@@ -7,7 +7,8 @@ async function builder (yargs) {
7
7
  type: 'string',
8
8
  describe: 'Image id',
9
9
  demandOption: true
10
- }).option('detailed-errors', {
10
+ }).option('verbose', {
11
+ alias: 'v',
11
12
  type: 'boolean',
12
13
  describe: 'Console will receive verbose error output'
13
14
  })
@@ -4,7 +4,8 @@ const { displayTable } = require('../../table')
4
4
  const { getApi } = require('../../utils')
5
5
 
6
6
  async function builder (yargs) {
7
- yargs.option('detailed-errors', {
7
+ yargs.option('verbose', {
8
+ alias: 'v',
8
9
  type: 'boolean',
9
10
  describe: 'Console will receive verbose error output'
10
11
  }).option('format', {
@@ -0,0 +1,27 @@
1
+ const Client = require('../Client')
2
+
3
+ /**
4
+ * Instance class
5
+ */
6
+ class InstanceCLI extends Client {
7
+ instanceBasePath = () => `v1/instances/${this.instance}`
8
+
9
+ /**
10
+ * Upgrade iOS version on instance
11
+ * @returns {Promise<any>}
12
+ */
13
+ upgrade = async (options) => {
14
+ const { os, osbuild } = options
15
+ return await this._fetch('POST', `${this.instanceBasePath()}/upgrade`, { os, osbuild })
16
+ }
17
+
18
+ /**
19
+ * Fetch instance information
20
+ * @returns {Promise<any>}
21
+ */
22
+ info = async () => {
23
+ return await this._fetch('GET', `${this.instanceBasePath()}`, {})
24
+ }
25
+ }
26
+
27
+ module.exports = InstanceCLI
@@ -3,7 +3,8 @@ const { getApi, waitForState } = require('../../utils')
3
3
 
4
4
  async function builder (yargs) {
5
5
  yargs
6
- .option('detailed-errors', {
6
+ .option('verbose', {
7
+ alias: 'v',
7
8
  type: 'boolean',
8
9
  describe: 'Console will receive verbose error output'
9
10
  })
@@ -28,6 +29,11 @@ async function builder (yargs) {
28
29
  describe: 'Project ID to associate with instance',
29
30
  demandOption: true
30
31
  })
32
+ .option('name', {
33
+ type: 'string',
34
+ describe: 'Optional name of instance',
35
+ demandOption: false
36
+ })
31
37
  .option('wait', {
32
38
  type: 'boolean',
33
39
  describe: 'Wait for the instance to be ready',
@@ -39,10 +45,11 @@ async function handler (argv) {
39
45
  const flavor = argv.flavor
40
46
  const os = argv.os
41
47
  const project = argv.project
48
+ const name = argv.name
42
49
  const api = await getApi()
43
50
 
44
51
  try {
45
- const instance = await api.v1CreateInstance({ flavor, os, project })
52
+ const instance = await api.v1CreateInstance({ flavor, os, project, name })
46
53
  // Wait 360 attempts for the instance to be created (30 minutes)
47
54
  if (argv.wait) {
48
55
  await waitForState(instance.id, api.v1GetInstance.bind(api), 'on', 360)
@@ -50,7 +57,7 @@ async function handler (argv) {
50
57
  console.log(instance.id)
51
58
  } catch (error) {
52
59
  const errorMessage = getErrorMessage(error)
53
- console.error(`Failed to create image: ${errorMessage}`)
60
+ console.error(`Failed to create instance: ${errorMessage}`)
54
61
 
55
62
  if (argv.detailedErrors) {
56
63
  console.log(error)
@@ -61,6 +68,6 @@ async function handler (argv) {
61
68
  module.exports = {
62
69
  builder,
63
70
  handler,
64
- command: 'create <flavor> <os> <project> [wait]',
71
+ command: 'create <flavor> <os> <project> [name] [wait]',
65
72
  describe: 'Create instance and associate with a project'
66
73
  }
@@ -1,16 +1,23 @@
1
1
  const { getErrorMessage } = require('../../error')
2
2
  const asciiArt = require('ascii-art')
3
- const { getApi } = require('../../utils')
3
+ const { getApi, sleep } = require('../../utils')
4
4
 
5
5
  async function builder (yargs) {
6
6
  yargs.positional('instanceId', {
7
7
  type: 'string',
8
8
  describe: 'Instance id',
9
9
  demandOption: true
10
- }).option('detailed-errors', {
11
- type: 'boolean',
12
- describe: 'Console will receive verbose error output'
13
10
  })
11
+ .option('verbose', {
12
+ alias: 'v',
13
+ type: 'boolean',
14
+ describe: 'Console will receive verbose error output'
15
+ })
16
+ .option('wait', {
17
+ type: 'boolean',
18
+ describe: 'Wait for the instance delete to complete',
19
+ demandOption: false
20
+ })
14
21
  }
15
22
 
16
23
  async function handler (argv) {
@@ -18,6 +25,14 @@ async function handler (argv) {
18
25
  const instanceId = argv.instanceId
19
26
  try {
20
27
  await api.v1DeleteInstance(instanceId)
28
+ if (argv.wait) {
29
+ let remaining
30
+ do {
31
+ await sleep(1000)
32
+ const instances = await api.v1GetInstances()
33
+ remaining = instances.find((i) => i.id === instanceId)
34
+ } while (remaining)
35
+ }
21
36
  console.log(
22
37
  asciiArt.style(`Successfully deleted instance ${instanceId}`, 'green', true)
23
38
  )
@@ -34,6 +49,6 @@ async function handler (argv) {
34
49
  module.exports = {
35
50
  builder,
36
51
  handler,
37
- command: 'delete <instanceId>',
52
+ command: 'delete <instanceId> [wait]',
38
53
  describe: 'Delete instance'
39
54
  }
@@ -3,7 +3,8 @@ const subcommands = [
3
3
  require('./list'),
4
4
  require('./delete'),
5
5
  require('./stop'),
6
- require('./start')
6
+ require('./start'),
7
+ require('./upgrade')
7
8
  ]
8
9
 
9
10
  let _yargs