@zeppos/zeus-cli 1.3.3 → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeppos/zeus-cli",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "zeus mini-program tools",
5
5
  "main": "index.ts",
6
6
  "author": "zepp",
@@ -21,7 +21,7 @@
21
21
  "qrcode-terminal": "^0.12.0",
22
22
  "vorpal": "^1.12.0",
23
23
  "yargs": "^17.5.1",
24
- "@zeppos/zpm": "^3.0.0",
24
+ "@zeppos/zpm": "^3.0.1",
25
25
  "axios": "^0.27.2",
26
26
  "chalk": "^4.1.2",
27
27
  "chokidar": "^3.5.3",
@@ -13,459 +13,18 @@ var __assign = (this && this.__assign) || function () {
13
13
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
- var _a;
17
16
  exports.__esModule = true;
18
- exports.deviceInternalCodeName = exports.OSV2DeviceTargetNames = exports.OSV2Devices = exports.deviceTargets = exports.DeviceScreenType = exports.DeviceSource = exports.DevicePlatformName = exports.DeviceTarget = void 0;
17
+ exports.deviceInternalCodeName = exports.OSV2DeviceTargetNames = exports.OSV2Devices = exports.deviceTargets = exports.DeviceScreenType = void 0;
19
18
  var lodash_1 = require("lodash");
20
19
  var device_server_1 = __importDefault(require("./device-server"));
21
20
  var tools_1 = require("../tools/tools");
22
- var DeviceTarget;
23
- (function (DeviceTarget) {
24
- DeviceTarget["MADRID"] = "madrid";
25
- DeviceTarget["VERONA"] = "verona";
26
- DeviceTarget["ZURICH"] = "zurich";
27
- DeviceTarget["TEIDE"] = "teide";
28
- DeviceTarget["PROVENCE"] = "provence";
29
- DeviceTarget["BARI"] = "bari";
30
- DeviceTarget["BERLIN"] = "berlin";
31
- DeviceTarget["LILLE"] = "lille";
32
- DeviceTarget["VIENNA"] = "vienna";
33
- DeviceTarget["ANDES"] = "andes";
34
- DeviceTarget["MONACO"] = "monaco";
35
- DeviceTarget["SWIFT"] = "swift";
36
- DeviceTarget["SWORDFISH"] = "swordfishw";
37
- DeviceTarget["CHEETAH"] = "cheetahw";
38
- DeviceTarget["HANNOVER"] = "hannover";
39
- DeviceTarget["ETNA"] = "etna";
40
- DeviceTarget["ALTAI"] = "altai";
41
- })(DeviceTarget = exports.DeviceTarget || (exports.DeviceTarget = {}));
42
- var DevicePlatformName;
43
- (function (DevicePlatformName) {
44
- DevicePlatformName["MADRID"] = "gtr3-pro";
45
- DevicePlatformName["MADRIDW"] = "gtr3-pro-w";
46
- DevicePlatformName["Madrid2"] = "gtr3-pro-meilin";
47
- DevicePlatformName["VERONA"] = "gtr3";
48
- DevicePlatformName["VERONAW"] = "gtr3-w";
49
- DevicePlatformName["ZURICH"] = "gts3";
50
- DevicePlatformName["ZURICHW"] = "gts3-w";
51
- DevicePlatformName["TEIDE"] = "t-rex2";
52
- DevicePlatformName["TEIDEW"] = "t-rex2-w";
53
- DevicePlatformName["PROVENCE"] = "gts4-mini";
54
- DevicePlatformName["PROVENCEW"] = "gts4-mini-w";
55
- DevicePlatformName["BARI_NFC"] = "amazfit-band7-nfc";
56
- DevicePlatformName["BARI"] = "amazfit-band7";
57
- DevicePlatformName["BARI_W"] = "amazfit-band7-w";
58
- DevicePlatformName["BERLIN"] = "gtr4";
59
- DevicePlatformName["BERLIN_W"] = "gtr4-w";
60
- DevicePlatformName["LILLE"] = "gts4";
61
- DevicePlatformName["LILLE_W"] = "gts4-w";
62
- DevicePlatformName["VIENNA"] = "falcon";
63
- DevicePlatformName["VIENNA_W"] = "falcon-w";
64
- DevicePlatformName["ANDES"] = "t-rex-ultra";
65
- DevicePlatformName["ANDES_W"] = "t-rex-ultra-w";
66
- DevicePlatformName["MONACO"] = "monaco";
67
- DevicePlatformName["MONACO_WN"] = "monaco-wn";
68
- DevicePlatformName["MONACO_W"] = "monaco-w";
69
- DevicePlatformName["SWIFT"] = "swift";
70
- DevicePlatformName["SWIFT_W"] = "swift-w";
71
- DevicePlatformName["SWORDFISH_W"] = "swordfish-w";
72
- DevicePlatformName["CHEETAH_W"] = "cheetah-w";
73
- DevicePlatformName["HANNOVER"] = "hannover";
74
- DevicePlatformName["ETNA"] = "etna";
75
- DevicePlatformName["ETNA_W"] = "etna-w";
76
- DevicePlatformName["ALTAI"] = "altai";
77
- })(DevicePlatformName = exports.DevicePlatformName || (exports.DevicePlatformName = {}));
78
- var DeviceSource;
79
- (function (DeviceSource) {
80
- DeviceSource[DeviceSource["MADRID"] = 229] = "MADRID";
81
- DeviceSource[DeviceSource["MADRIDW"] = 230] = "MADRIDW";
82
- DeviceSource[DeviceSource["Madrid2"] = 6095106] = "Madrid2";
83
- DeviceSource[DeviceSource["VERONA"] = 226] = "VERONA";
84
- DeviceSource[DeviceSource["VERONAW"] = 227] = "VERONAW";
85
- DeviceSource[DeviceSource["ZURICH"] = 224] = "ZURICH";
86
- DeviceSource[DeviceSource["ZURICHW"] = 225] = "ZURICHW";
87
- DeviceSource[DeviceSource["TEIDE"] = 418] = "TEIDE";
88
- DeviceSource[DeviceSource["TEIDEW"] = 419] = "TEIDEW";
89
- DeviceSource[DeviceSource["PROVENCE"] = 246] = "PROVENCE";
90
- DeviceSource[DeviceSource["PROVENCEW"] = 247] = "PROVENCEW";
91
- DeviceSource[DeviceSource["BARI_NFC"] = 252] = "BARI_NFC";
92
- DeviceSource[DeviceSource["BARI"] = 253] = "BARI";
93
- DeviceSource[DeviceSource["BARI_W"] = 254] = "BARI_W";
94
- DeviceSource[DeviceSource["BERLIN"] = 7930112] = "BERLIN";
95
- DeviceSource[DeviceSource["BERLIN_W"] = 7930113] = "BERLIN_W";
96
- DeviceSource[DeviceSource["LILLE"] = 7995648] = "LILLE";
97
- DeviceSource[DeviceSource["LILLE_W"] = 7995649] = "LILLE_W";
98
- DeviceSource[DeviceSource["VIENNA"] = 414] = "VIENNA";
99
- DeviceSource[DeviceSource["VIENNA_W"] = 415] = "VIENNA_W";
100
- DeviceSource[DeviceSource["ANDES"] = 6553856] = "ANDES";
101
- DeviceSource[DeviceSource["ANDES_W"] = 6553857] = "ANDES_W";
102
- DeviceSource[DeviceSource["MONACO"] = 8519936] = "MONACO";
103
- DeviceSource[DeviceSource["MONACO_WN"] = 8519937] = "MONACO_WN";
104
- DeviceSource[DeviceSource["MONACO_W"] = 8519939] = "MONACO_W";
105
- DeviceSource[DeviceSource["SWIFT"] = 8192256] = "SWIFT";
106
- DeviceSource[DeviceSource["SWIFT_W"] = 8192257] = "SWIFT_W";
107
- DeviceSource[DeviceSource["SWORDFISH_W"] = 8257793] = "SWORDFISH_W";
108
- DeviceSource[DeviceSource["CHEETAH_W"] = 8126721] = "CHEETAH_W";
109
- DeviceSource[DeviceSource["HANNOVER"] = 8323329] = "HANNOVER";
110
- DeviceSource[DeviceSource["ETNA"] = 8388864] = "ETNA";
111
- DeviceSource[DeviceSource["ETNA_W"] = 8388865] = "ETNA_W";
112
- DeviceSource[DeviceSource["ALTAI"] = 8454401] = "ALTAI";
113
- })(DeviceSource = exports.DeviceSource || (exports.DeviceSource = {}));
114
21
  var DeviceScreenType;
115
22
  (function (DeviceScreenType) {
116
23
  DeviceScreenType["R"] = "r";
117
24
  DeviceScreenType["S"] = "s";
118
25
  DeviceScreenType["B"] = "b";
119
26
  })(DeviceScreenType = exports.DeviceScreenType || (exports.DeviceScreenType = {}));
120
- exports.deviceTargets = __assign((_a = {}, _a[DeviceTarget.MADRID] = {
121
- deviceName: 'Amazfit GTR 3 Pro',
122
- platforms: [
123
- {
124
- name: DevicePlatformName.MADRID,
125
- deviceSource: DeviceSource.MADRID
126
- },
127
- {
128
- name: DevicePlatformName.MADRIDW,
129
- deviceSource: DeviceSource.MADRIDW
130
- },
131
- {
132
- name: DevicePlatformName.Madrid2,
133
- deviceSource: DeviceSource.Madrid2
134
- },
135
- ],
136
- screen: {
137
- type: DeviceScreenType.R,
138
- width: 480,
139
- height: 480
140
- },
141
- apiLevelLimit: {
142
- min: '1.0.0',
143
- max: '1.99.99'
144
- }
145
- }, _a[DeviceTarget.VERONA] = {
146
- deviceName: 'Amazfit GTR 3',
147
- platforms: [
148
- {
149
- name: DevicePlatformName.VERONA,
150
- deviceSource: DeviceSource.VERONA
151
- },
152
- {
153
- name: DevicePlatformName.VERONAW,
154
- deviceSource: DeviceSource.VERONAW
155
- },
156
- ],
157
- screen: {
158
- type: DeviceScreenType.R,
159
- width: 454,
160
- height: 454
161
- },
162
- apiLevelLimit: {
163
- min: '1.0.0',
164
- max: '1.99.99'
165
- }
166
- }, _a[DeviceTarget.ZURICH] = {
167
- deviceName: 'Amazfit GTS 3',
168
- platforms: [
169
- {
170
- name: DevicePlatformName.ZURICH,
171
- deviceSource: DeviceSource.ZURICH
172
- },
173
- {
174
- name: DevicePlatformName.ZURICHW,
175
- deviceSource: DeviceSource.ZURICHW
176
- },
177
- ],
178
- screen: {
179
- type: DeviceScreenType.S,
180
- width: 390,
181
- height: 450
182
- },
183
- apiLevelLimit: {
184
- min: '1.0.0',
185
- max: '1.99.99'
186
- }
187
- }, _a[DeviceTarget.TEIDE] = {
188
- deviceName: 'Amazfit T-Rex 2',
189
- platforms: [
190
- {
191
- name: DevicePlatformName.TEIDE,
192
- deviceSource: DeviceSource.TEIDE
193
- },
194
- {
195
- name: DevicePlatformName.TEIDEW,
196
- deviceSource: DeviceSource.TEIDEW
197
- },
198
- ],
199
- screen: {
200
- type: DeviceScreenType.R,
201
- width: 454,
202
- height: 454
203
- },
204
- apiLevelLimit: {
205
- min: '1.0.0',
206
- max: '1.99.99'
207
- }
208
- }, _a[DeviceTarget.PROVENCE] = {
209
- deviceName: 'Amazfit GTS 4 Mini',
210
- platforms: [
211
- {
212
- name: DevicePlatformName.PROVENCE,
213
- deviceSource: DeviceSource.PROVENCE
214
- },
215
- {
216
- name: DevicePlatformName.PROVENCEW,
217
- deviceSource: DeviceSource.PROVENCEW
218
- },
219
- ],
220
- screen: {
221
- type: DeviceScreenType.S,
222
- width: 336,
223
- height: 384
224
- },
225
- apiLevelLimit: {
226
- min: '1.0.0',
227
- max: '1.99.99'
228
- }
229
- }, _a[DeviceTarget.BARI] = {
230
- deviceName: 'Amazfit Band 7',
231
- platforms: [
232
- {
233
- name: DevicePlatformName.BARI_NFC,
234
- deviceSource: DeviceSource.BARI_NFC
235
- },
236
- {
237
- name: DevicePlatformName.BARI,
238
- deviceSource: DeviceSource.BARI
239
- },
240
- {
241
- name: DevicePlatformName.BARI_W,
242
- deviceSource: DeviceSource.BARI_W
243
- },
244
- ],
245
- screen: {
246
- type: DeviceScreenType.B,
247
- width: 194,
248
- height: 368
249
- },
250
- apiLevelLimit: {
251
- min: '1.0.0',
252
- max: '1.99.99'
253
- }
254
- }, _a[DeviceTarget.BERLIN] = {
255
- deviceName: 'Amazfit GTR 4',
256
- platforms: [
257
- {
258
- name: DevicePlatformName.BERLIN,
259
- deviceSource: DeviceSource.BERLIN
260
- },
261
- {
262
- name: DevicePlatformName.BERLIN_W,
263
- deviceSource: DeviceSource.BERLIN_W
264
- },
265
- ],
266
- screen: {
267
- type: DeviceScreenType.R,
268
- width: 466,
269
- height: 466
270
- },
271
- apiLevelLimit: {
272
- min: '1.0.0',
273
- max: '2.99.99'
274
- }
275
- }, _a[DeviceTarget.LILLE] = {
276
- deviceName: 'Amazfit GTS 4',
277
- platforms: [
278
- {
279
- name: DevicePlatformName.LILLE,
280
- deviceSource: DeviceSource.LILLE
281
- },
282
- {
283
- name: DevicePlatformName.LILLE_W,
284
- deviceSource: DeviceSource.LILLE_W
285
- },
286
- ],
287
- screen: {
288
- type: DeviceScreenType.S,
289
- width: 390,
290
- height: 450
291
- },
292
- apiLevelLimit: {
293
- min: '1.0.0',
294
- max: '2.99.99'
295
- }
296
- }, _a[DeviceTarget.VIENNA] = {
297
- deviceName: 'Amazfit Falcon',
298
- platforms: [
299
- {
300
- name: DevicePlatformName.VIENNA,
301
- deviceSource: DeviceSource.VIENNA
302
- },
303
- {
304
- name: DevicePlatformName.VIENNA_W,
305
- deviceSource: DeviceSource.VIENNA_W
306
- },
307
- ],
308
- screen: {
309
- type: DeviceScreenType.R,
310
- width: 416,
311
- height: 416
312
- },
313
- apiLevelLimit: {
314
- min: '1.0.0',
315
- max: '1.99.99'
316
- }
317
- }, _a[DeviceTarget.ANDES] = {
318
- deviceName: 'Amazfit T-Rex Ultra',
319
- platforms: [
320
- {
321
- name: DevicePlatformName.ANDES,
322
- deviceSource: DeviceSource.ANDES
323
- },
324
- {
325
- name: DevicePlatformName.ANDES_W,
326
- deviceSource: DeviceSource.ANDES_W
327
- },
328
- ],
329
- screen: {
330
- type: DeviceScreenType.R,
331
- width: 454,
332
- height: 454
333
- },
334
- apiLevelLimit: {
335
- min: '1.0.0',
336
- max: '2.99.99'
337
- }
338
- }, _a[DeviceTarget.MONACO] = {
339
- deviceName: 'Amazfit Balance',
340
- platforms: [
341
- {
342
- name: DevicePlatformName.MONACO,
343
- deviceSource: DeviceSource.MONACO
344
- },
345
- {
346
- name: DevicePlatformName.MONACO_WN,
347
- deviceSource: DeviceSource.MONACO_WN
348
- },
349
- {
350
- name: DevicePlatformName.MONACO_W,
351
- deviceSource: DeviceSource.MONACO_W
352
- },
353
- ],
354
- screen: {
355
- type: DeviceScreenType.R,
356
- width: 480,
357
- height: 480
358
- },
359
- apiLevelLimit: {
360
- min: '1.0.0',
361
- max: '3.99.99'
362
- }
363
- }, _a[DeviceTarget.SWIFT] = {
364
- deviceName: 'Amazfit Cheetah (Round)',
365
- platforms: [
366
- {
367
- name: DevicePlatformName.SWIFT,
368
- deviceSource: DeviceSource.SWIFT
369
- },
370
- {
371
- name: DevicePlatformName.SWIFT_W,
372
- deviceSource: DeviceSource.SWIFT_W
373
- },
374
- ],
375
- screen: {
376
- type: DeviceScreenType.R,
377
- width: 454,
378
- height: 454
379
- },
380
- apiLevelLimit: {
381
- min: '1.0.0'
382
- }
383
- }, _a[DeviceTarget.SWORDFISH] = {
384
- deviceName: 'Amazfit Cheetah (Square)',
385
- platforms: [
386
- {
387
- name: DevicePlatformName.SWORDFISH_W,
388
- deviceSource: DeviceSource.SWORDFISH_W
389
- },
390
- ],
391
- screen: {
392
- type: DeviceScreenType.S,
393
- width: 390,
394
- height: 450
395
- },
396
- apiLevelLimit: {
397
- min: '1.0.0'
398
- }
399
- }, _a[DeviceTarget.CHEETAH] = {
400
- deviceName: 'Amazfit Cheetah Pro',
401
- platforms: [
402
- {
403
- name: DevicePlatformName.CHEETAH_W,
404
- deviceSource: DeviceSource.CHEETAH_W
405
- },
406
- ],
407
- screen: {
408
- type: DeviceScreenType.R,
409
- width: 480,
410
- height: 480
411
- },
412
- apiLevelLimit: {
413
- min: '1.0.0'
414
- }
415
- }, _a[DeviceTarget.HANNOVER] = {
416
- deviceName: 'Amazfit Active',
417
- platforms: [
418
- {
419
- name: DevicePlatformName.HANNOVER,
420
- deviceSource: DeviceSource.HANNOVER
421
- },
422
- ],
423
- screen: {
424
- type: DeviceScreenType.S,
425
- width: 390,
426
- height: 450
427
- },
428
- apiLevelLimit: {
429
- min: '1.0.0'
430
- }
431
- }, _a[DeviceTarget.ETNA] = {
432
- deviceName: 'Amazfit Active Edge',
433
- platforms: [
434
- {
435
- name: DevicePlatformName.ETNA,
436
- deviceSource: DeviceSource.ETNA
437
- },
438
- {
439
- name: DevicePlatformName.ETNA_W,
440
- deviceSource: DeviceSource.ETNA_W
441
- },
442
- ],
443
- screen: {
444
- type: DeviceScreenType.S,
445
- width: 360,
446
- height: 360
447
- },
448
- apiLevelLimit: {
449
- min: '1.0.0'
450
- }
451
- }, _a[DeviceTarget.ALTAI] = {
452
- deviceName: 'Amazfit Bip 5',
453
- platforms: [
454
- {
455
- name: DevicePlatformName.ALTAI,
456
- deviceSource: DeviceSource.ALTAI
457
- },
458
- ],
459
- screen: {
460
- type: DeviceScreenType.S,
461
- width: 320,
462
- height: 380
463
- },
464
- apiLevelLimit: {
465
- min: '1.0.0',
466
- max: '2.99.99'
467
- }
468
- }, _a), device_server_1["default"]);
27
+ exports.deviceTargets = __assign({}, device_server_1["default"]);
469
28
  exports.OSV2Devices = Object.values(exports.deviceTargets).reduce(function (targetDevices, target) {
470
29
  var _a = target.platforms, platforms = _a === void 0 ? [] : _a, _b = target.apiLevelLimit, apiLevelLimit = _b === void 0 ? {} : _b;
471
30
  var min = apiLevelLimit.min, max = apiLevelLimit.max;
@@ -13,7 +13,7 @@
13
13
  "dev": "nodemon -e ts,tsx --exec \"rm -rf dist && tsc && ts-node build.ts\" --ignore types/ --ignore dist/"
14
14
  },
15
15
  "dependencies": {
16
- "@zeppos/zpm": "^3.0.0",
16
+ "@zeppos/zpm": "^3.0.1",
17
17
  "axios": "^0.27.2",
18
18
  "chalk": "^4.1.2",
19
19
  "chokidar": "^3.5.3",