homebridge 2.0.0-alpha.4 → 2.0.0-alpha.40

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 (89) hide show
  1. package/README.md +1 -1
  2. package/bin/homebridge.js +22 -0
  3. package/config-sample.json +12 -1
  4. package/dist/api.d.ts +226 -0
  5. package/dist/api.d.ts.map +1 -0
  6. package/dist/api.js +166 -0
  7. package/dist/api.js.map +1 -0
  8. package/dist/bridgeService.d.ts +125 -0
  9. package/dist/bridgeService.d.ts.map +1 -0
  10. package/dist/bridgeService.js +396 -0
  11. package/dist/bridgeService.js.map +1 -0
  12. package/dist/childBridgeFork.d.ts +38 -0
  13. package/dist/childBridgeFork.d.ts.map +1 -0
  14. package/dist/childBridgeFork.js +241 -2
  15. package/dist/childBridgeFork.js.map +1 -7
  16. package/dist/childBridgeService.d.ts +203 -0
  17. package/dist/childBridgeService.d.ts.map +1 -0
  18. package/dist/childBridgeService.js +451 -0
  19. package/dist/childBridgeService.js.map +1 -0
  20. package/dist/cli.d.ts +3 -0
  21. package/dist/cli.d.ts.map +1 -0
  22. package/dist/cli.js +90 -2
  23. package/dist/cli.js.map +1 -7
  24. package/dist/externalPortService.d.ts +33 -0
  25. package/dist/externalPortService.d.ts.map +1 -0
  26. package/dist/externalPortService.js +59 -0
  27. package/dist/externalPortService.js.map +1 -0
  28. package/dist/index.d.ts +85 -1099
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +20 -2
  31. package/dist/index.js.map +1 -7
  32. package/dist/ipcService.d.ts +30 -0
  33. package/dist/ipcService.d.ts.map +1 -0
  34. package/dist/ipcService.js +49 -0
  35. package/dist/ipcService.js.map +1 -0
  36. package/dist/logger.d.ts +78 -0
  37. package/dist/logger.d.ts.map +1 -0
  38. package/dist/logger.js +138 -0
  39. package/dist/logger.js.map +1 -0
  40. package/dist/matterConfigValidator.d.ts +34 -0
  41. package/dist/matterConfigValidator.d.ts.map +1 -0
  42. package/dist/matterConfigValidator.js +249 -0
  43. package/dist/matterConfigValidator.js.map +1 -0
  44. package/dist/matterService.d.ts +168 -0
  45. package/dist/matterService.d.ts.map +1 -0
  46. package/dist/matterService.js +677 -0
  47. package/dist/matterService.js.map +1 -0
  48. package/dist/matterTypes.d.ts +20 -0
  49. package/dist/matterTypes.d.ts.map +1 -0
  50. package/dist/matterTypes.js +278 -0
  51. package/dist/matterTypes.js.map +1 -0
  52. package/dist/platformAccessory.d.ts +56 -0
  53. package/dist/platformAccessory.d.ts.map +1 -0
  54. package/dist/platformAccessory.js +105 -0
  55. package/dist/platformAccessory.js.map +1 -0
  56. package/dist/plugin.d.ts +30 -0
  57. package/dist/plugin.d.ts.map +1 -0
  58. package/dist/plugin.js +182 -0
  59. package/dist/plugin.js.map +1 -0
  60. package/dist/pluginManager.d.ts +77 -0
  61. package/dist/pluginManager.d.ts.map +1 -0
  62. package/dist/pluginManager.js +375 -0
  63. package/dist/pluginManager.js.map +1 -0
  64. package/dist/server.d.ts +61 -0
  65. package/dist/server.d.ts.map +1 -0
  66. package/dist/server.js +467 -0
  67. package/dist/server.js.map +1 -0
  68. package/dist/storageService.d.ts +13 -0
  69. package/dist/storageService.d.ts.map +1 -0
  70. package/dist/storageService.js +41 -0
  71. package/dist/storageService.js.map +1 -0
  72. package/dist/user.d.ts +13 -0
  73. package/dist/user.d.ts.map +1 -0
  74. package/dist/user.js +29 -0
  75. package/dist/user.js.map +1 -0
  76. package/dist/util/mac.d.ts +5 -0
  77. package/dist/util/mac.d.ts.map +1 -0
  78. package/dist/util/mac.js +14 -0
  79. package/dist/util/mac.js.map +1 -0
  80. package/dist/util/matter-cli.d.ts +3 -0
  81. package/dist/util/matter-cli.d.ts.map +1 -0
  82. package/dist/util/matter-cli.js +211 -0
  83. package/dist/util/matter-cli.js.map +1 -0
  84. package/dist/version.d.ts +3 -0
  85. package/dist/version.d.ts.map +1 -0
  86. package/dist/version.js +16 -0
  87. package/dist/version.js.map +1 -0
  88. package/package.json +31 -34
  89. package/bin/homebridge +0 -19
@@ -0,0 +1,451 @@
1
+ import { fork } from 'node:child_process';
2
+ import { dirname, resolve } from 'node:path';
3
+ import process from 'node:process';
4
+ import { fileURLToPath } from 'node:url';
5
+ import fs from 'fs-extra';
6
+ import { Logger } from './logger.js';
7
+ import { User } from './user.js';
8
+ const __filename = fileURLToPath(import.meta.url);
9
+ const __dirname = dirname(__filename);
10
+ // eslint-disable-next-line no-restricted-syntax
11
+ export var ChildProcessMessageEventType;
12
+ (function (ChildProcessMessageEventType) {
13
+ /**
14
+ * Sent from the child process when it is ready to accept config
15
+ */
16
+ ChildProcessMessageEventType["READY"] = "ready";
17
+ /**
18
+ * Sent to the child process with a ChildProcessLoadEventData payload
19
+ */
20
+ ChildProcessMessageEventType["LOAD"] = "load";
21
+ /**
22
+ * Sent from the child process once it has loaded the plugin
23
+ */
24
+ ChildProcessMessageEventType["LOADED"] = "loaded";
25
+ /**
26
+ * Sent to the child process telling it to start
27
+ */
28
+ ChildProcessMessageEventType["START"] = "start";
29
+ /**
30
+ * Sent from the child process when the bridge is online
31
+ */
32
+ ChildProcessMessageEventType["ONLINE"] = "online";
33
+ /**
34
+ * Sent from the child when it wants to request port allocation for an external accessory
35
+ */
36
+ ChildProcessMessageEventType["PORT_REQUEST"] = "portRequest";
37
+ /**
38
+ * Sent from the parent with the port allocation response
39
+ */
40
+ ChildProcessMessageEventType["PORT_ALLOCATED"] = "portAllocated";
41
+ /**
42
+ * Sent from the child to update its current status
43
+ */
44
+ ChildProcessMessageEventType["STATUS_UPDATE"] = "status";
45
+ })(ChildProcessMessageEventType || (ChildProcessMessageEventType = {}));
46
+ // eslint-disable-next-line no-restricted-syntax
47
+ export var ChildBridgeStatus;
48
+ (function (ChildBridgeStatus) {
49
+ /**
50
+ * When the child bridge is loading, or restarting
51
+ */
52
+ ChildBridgeStatus["PENDING"] = "pending";
53
+ /**
54
+ * The child bridge is online and has published it's accessory
55
+ */
56
+ ChildBridgeStatus["OK"] = "ok";
57
+ /**
58
+ * The bridge is shutting down, or the process ended unexpectedly
59
+ */
60
+ ChildBridgeStatus["DOWN"] = "down";
61
+ })(ChildBridgeStatus || (ChildBridgeStatus = {}));
62
+ /**
63
+ * Manages the child processes of platforms/accessories being exposed as separate forked bridges.
64
+ * A child bridge runs a single platform or accessory.
65
+ */
66
+ export class ChildBridgeService {
67
+ type;
68
+ identifier;
69
+ plugin;
70
+ bridgeConfig;
71
+ homebridgeConfig;
72
+ homebridgeOptions;
73
+ api;
74
+ ipcService;
75
+ externalPortService;
76
+ child;
77
+ args = [];
78
+ processEnv = {};
79
+ shuttingDown = false;
80
+ lastBridgeStatus = "pending" /* ChildBridgeStatus.PENDING */;
81
+ pairedStatus = null;
82
+ manuallyStopped = false;
83
+ setupUri = null;
84
+ pluginConfig = [];
85
+ log;
86
+ displayName;
87
+ restartCount = 0;
88
+ maxRestarts = 4;
89
+ constructor(type, identifier, plugin, bridgeConfig, homebridgeConfig, homebridgeOptions, api, ipcService, externalPortService) {
90
+ this.type = type;
91
+ this.identifier = identifier;
92
+ this.plugin = plugin;
93
+ this.bridgeConfig = bridgeConfig;
94
+ this.homebridgeConfig = homebridgeConfig;
95
+ this.homebridgeOptions = homebridgeOptions;
96
+ this.api = api;
97
+ this.ipcService = ipcService;
98
+ this.externalPortService = externalPortService;
99
+ this.log = Logger.withPrefix(this.plugin.getPluginIdentifier());
100
+ this.api.on('shutdown', () => {
101
+ this.shuttingDown = true;
102
+ this.teardown();
103
+ });
104
+ // make sure we don't hit the max listeners limit
105
+ this.api.setMaxListeners(this.api.getMaxListeners() + 1);
106
+ }
107
+ /**
108
+ * Start the child bridge service
109
+ */
110
+ start() {
111
+ this.setProcessFlags();
112
+ this.setProcessEnv();
113
+ this.startChildProcess();
114
+ // set display name
115
+ if (this.pluginConfig.length > 1 || this.pluginConfig.length === 0) {
116
+ this.displayName = this.plugin.getPluginIdentifier();
117
+ }
118
+ else {
119
+ this.displayName = this.pluginConfig[0]?.name || this.plugin.getPluginIdentifier();
120
+ }
121
+ // re-configured log with display name
122
+ this.log = Logger.withPrefix(this.displayName);
123
+ }
124
+ /**
125
+ * Add a config block to a child bridge.
126
+ * Platform child bridges can only contain one config block.
127
+ * @param config
128
+ */
129
+ addConfig(config) {
130
+ this.pluginConfig.push(config);
131
+ }
132
+ get bridgeStatus() {
133
+ return this.lastBridgeStatus;
134
+ }
135
+ set bridgeStatus(value) {
136
+ this.lastBridgeStatus = value;
137
+ this.sendStatusUpdate();
138
+ }
139
+ /**
140
+ * Start the child bridge process
141
+ */
142
+ startChildProcess() {
143
+ this.bridgeStatus = "pending" /* ChildBridgeStatus.PENDING */;
144
+ this.child = fork(resolve(__dirname, 'childBridgeFork.js'), this.args, this.processEnv);
145
+ this.child.stdout?.on('data', (data) => {
146
+ process.stdout.write(data);
147
+ });
148
+ this.child.stderr?.on('data', (data) => {
149
+ process.stderr.write(data);
150
+ });
151
+ this.child.on('error', (e) => {
152
+ this.bridgeStatus = "down" /* ChildBridgeStatus.DOWN */;
153
+ this.log.error('Child bridge process error', e);
154
+ });
155
+ this.child.once('close', (code, signal) => {
156
+ this.handleProcessClose(code, signal);
157
+ });
158
+ // handle incoming ipc messages from the child process
159
+ this.child.on('message', (message) => {
160
+ if (typeof message !== 'object' || !message.id) {
161
+ return;
162
+ }
163
+ switch (message.id) {
164
+ case "ready" /* ChildProcessMessageEventType.READY */: {
165
+ this.log(`Child bridge starting${this.child?.pid ? ` (pid ${this.child.pid})` : ''}...`);
166
+ this.loadPlugin();
167
+ break;
168
+ }
169
+ case "loaded" /* ChildProcessMessageEventType.LOADED */: {
170
+ const version = message.data.version;
171
+ if (this.pluginConfig.length > 1) {
172
+ this.log.success(`Child bridge started successfully with ${this.pluginConfig.length} accessories (plugin v${version}).`);
173
+ }
174
+ else {
175
+ this.log.success(`Child bridge started successfully (plugin v${version}).`);
176
+ }
177
+ this.startBridge();
178
+ break;
179
+ }
180
+ case "online" /* ChildProcessMessageEventType.ONLINE */: {
181
+ this.bridgeStatus = "ok" /* ChildBridgeStatus.OK */;
182
+ break;
183
+ }
184
+ case "portRequest" /* ChildProcessMessageEventType.PORT_REQUEST */: {
185
+ this.handlePortRequest(message.data);
186
+ break;
187
+ }
188
+ case "status" /* ChildProcessMessageEventType.STATUS_UPDATE */: {
189
+ this.pairedStatus = message.data.paired;
190
+ this.setupUri = message.data.setupUri;
191
+ this.sendStatusUpdate();
192
+ break;
193
+ }
194
+ }
195
+ });
196
+ }
197
+ /**
198
+ * Called when the child bridge process exits, if Homebridge is not shutting down, it will restart the process
199
+ * @param code
200
+ * @param signal
201
+ */
202
+ handleProcessClose(code, signal) {
203
+ const isLikelyPluginCrash = code === 1 && signal === null;
204
+ this.log.warn(`Child bridge ended (code ${code}, signal ${signal}).${isLikelyPluginCrash
205
+ ? ' The child bridge ended unexpectedly, which is normally due to the plugin not catching its errors properly. Please report this to the plugin developer by clicking on the'
206
+ + ' \'Report An Issue\' option in the plugin menu dropdown from the Homebridge UI. If there are related logs shown above, please include them in your report.'
207
+ : ''}`);
208
+ if (isLikelyPluginCrash) {
209
+ if (this.restartCount < this.maxRestarts) {
210
+ this.bridgeStatus = "pending" /* ChildBridgeStatus.PENDING */;
211
+ this.restartCount += 1;
212
+ const delay = this.restartCount * 10; // first attempt after 10 seconds, second after 20 seconds, etc.
213
+ this.log(`Child bridge will automatically restart in ${delay} seconds (restart attempt ${this.restartCount} of ${this.maxRestarts}).`);
214
+ setTimeout(() => {
215
+ if (!this.shuttingDown) {
216
+ this.startChildProcess();
217
+ }
218
+ }, delay * 1000);
219
+ }
220
+ else {
221
+ this.bridgeStatus = "down" /* ChildBridgeStatus.DOWN */;
222
+ this.manuallyStopped = true;
223
+ this.log.error(`Child bridge will no longer restart after failing ${this.maxRestarts + 1} times, you will need to manually start this child bridge from the Homebridge UI.`);
224
+ }
225
+ return;
226
+ }
227
+ if (!this.shuttingDown) {
228
+ this.bridgeStatus = "down" /* ChildBridgeStatus.DOWN */;
229
+ this.restartCount = 0;
230
+ this.startChildProcess();
231
+ }
232
+ }
233
+ /**
234
+ * Helper function to send a message to the child process
235
+ * @param type
236
+ * @param data
237
+ */
238
+ sendMessage(type, data) {
239
+ if (this.child && this.child.connected) {
240
+ this.child.send({
241
+ id: type,
242
+ data,
243
+ });
244
+ }
245
+ }
246
+ /**
247
+ * Some plugins may make use of the homebridge process flags
248
+ * These will be passed through to the forked process
249
+ */
250
+ setProcessFlags() {
251
+ if (this.bridgeConfig.debugModeEnabled) {
252
+ this.args.push('-D');
253
+ }
254
+ if (this.homebridgeOptions.forceColourLogging) {
255
+ this.args.push('-C');
256
+ }
257
+ if (this.homebridgeOptions.insecureAccess) {
258
+ this.args.push('-I');
259
+ }
260
+ if (this.homebridgeOptions.noLogTimestamps) {
261
+ this.args.push('-T');
262
+ }
263
+ if (this.homebridgeOptions.keepOrphanedCachedAccessories) {
264
+ this.args.push('-K');
265
+ }
266
+ if (this.homebridgeOptions.customStoragePath) {
267
+ this.args.push('-U', this.homebridgeOptions.customStoragePath);
268
+ }
269
+ if (this.homebridgeOptions.customPluginPath) {
270
+ this.args.push('-P', this.homebridgeOptions.customPluginPath);
271
+ }
272
+ }
273
+ /**
274
+ * Set environment variables for the child process
275
+ */
276
+ setProcessEnv() {
277
+ this.processEnv = {
278
+ env: {
279
+ ...process.env,
280
+ DEBUG: `${process.env.DEBUG || ''} ${this.bridgeConfig.env?.DEBUG || ''}`.trim(),
281
+ NODE_OPTIONS: `${process.env.NODE_OPTIONS || ''} ${this.bridgeConfig.env?.NODE_OPTIONS || ''}`.trim(),
282
+ },
283
+ silent: true,
284
+ };
285
+ }
286
+ /**
287
+ * Tell the child process to load the given plugin
288
+ */
289
+ loadPlugin() {
290
+ const bridgeConfig = {
291
+ name: this.bridgeConfig.name || this.displayName || this.plugin.getPluginIdentifier(),
292
+ port: this.bridgeConfig.port,
293
+ username: this.bridgeConfig.username,
294
+ advertiser: this.homebridgeConfig.bridge.advertiser,
295
+ pin: this.bridgeConfig.pin || this.homebridgeConfig.bridge.pin,
296
+ bind: this.homebridgeConfig.bridge.bind,
297
+ setupID: this.bridgeConfig.setupID,
298
+ manufacturer: this.bridgeConfig.manufacturer || this.homebridgeConfig.bridge.manufacturer,
299
+ model: this.bridgeConfig.model || this.homebridgeConfig.bridge.model,
300
+ firmwareRevision: this.bridgeConfig.firmwareRevision || this.homebridgeConfig.bridge.firmwareRevision,
301
+ serialNumber: this.bridgeConfig.serialNumber || this.bridgeConfig.username,
302
+ };
303
+ const bridgeOptions = {
304
+ cachedAccessoriesDir: User.cachedAccessoryPath(),
305
+ cachedAccessoriesItemName: `cachedAccessories.${this.bridgeConfig.username.replace(/:/g, '').toUpperCase()}`,
306
+ };
307
+ // shallow copy the homebridge options to the bridge options object
308
+ Object.assign(bridgeOptions, this.homebridgeOptions);
309
+ this.sendMessage("load" /* ChildProcessMessageEventType.LOAD */, {
310
+ type: this.type,
311
+ identifier: this.identifier,
312
+ pluginPath: this.plugin.getPluginPath(),
313
+ pluginConfig: this.pluginConfig,
314
+ bridgeConfig,
315
+ bridgeOptions,
316
+ homebridgeConfig: {
317
+ bridge: this.homebridgeConfig.bridge,
318
+ ports: this.homebridgeConfig.ports,
319
+ disabledPlugins: [], // not used by child bridges
320
+ accessories: [], // not used by child bridges
321
+ platforms: [], // not used by child bridges
322
+ },
323
+ });
324
+ }
325
+ /**
326
+ * Tell the child bridge to start broadcasting
327
+ */
328
+ startBridge() {
329
+ this.sendMessage("start" /* ChildProcessMessageEventType.START */);
330
+ }
331
+ /**
332
+ * Handle external port requests from child
333
+ */
334
+ async handlePortRequest(request) {
335
+ const port = await this.externalPortService.requestPort(request.username);
336
+ this.sendMessage("portAllocated" /* ChildProcessMessageEventType.PORT_ALLOCATED */, {
337
+ username: request.username,
338
+ port,
339
+ });
340
+ }
341
+ /**
342
+ * Send sigterm to the child bridge
343
+ */
344
+ teardown() {
345
+ if (this.child && this.child.connected) {
346
+ this.bridgeStatus = "down" /* ChildBridgeStatus.DOWN */;
347
+ this.child.kill('SIGTERM');
348
+ }
349
+ }
350
+ /**
351
+ * Trigger sending child bridge metadata to the process parent via IPC
352
+ */
353
+ sendStatusUpdate() {
354
+ this.ipcService.sendMessage("childBridgeStatusUpdate" /* IpcOutgoingEvent.CHILD_BRIDGE_STATUS_UPDATE */, this.getMetadata());
355
+ }
356
+ /**
357
+ * Restarts the child bridge process
358
+ */
359
+ restartChildBridge() {
360
+ if (this.manuallyStopped) {
361
+ this.restartCount = 0;
362
+ this.startChildBridge();
363
+ }
364
+ else {
365
+ this.log.warn('Child bridge restarting...');
366
+ this.refreshConfig();
367
+ this.teardown();
368
+ }
369
+ }
370
+ /**
371
+ * Stops the child bridge, not starting it again
372
+ */
373
+ stopChildBridge() {
374
+ if (!this.shuttingDown) {
375
+ this.log.warn('Child bridge stopping, will not restart.');
376
+ this.shuttingDown = true;
377
+ this.manuallyStopped = true;
378
+ this.restartCount = 0;
379
+ this.bridgeStatus = "down" /* ChildBridgeStatus.DOWN */;
380
+ this.child?.removeAllListeners('close');
381
+ this.teardown();
382
+ }
383
+ else {
384
+ this.log.warn('Child bridge already shutting down or stopped.');
385
+ }
386
+ }
387
+ /**
388
+ * Starts the child bridge, only if it was manually stopped and is no longer running
389
+ */
390
+ startChildBridge() {
391
+ if (this.manuallyStopped && this.bridgeStatus === "down" /* ChildBridgeStatus.DOWN */ && (!this.child || !this.child.connected)) {
392
+ this.refreshConfig();
393
+ this.startChildProcess();
394
+ this.shuttingDown = false;
395
+ this.manuallyStopped = false;
396
+ }
397
+ else {
398
+ this.log.warn('Child bridge cannot be started, it is still running or was not manually stopped.');
399
+ }
400
+ }
401
+ /**
402
+ * Read the config.json file from disk and refresh the plugin config block for just this plugin
403
+ */
404
+ async refreshConfig() {
405
+ try {
406
+ const homebridgeConfig = await fs.readJson(User.configPath());
407
+ if (this.type === "platform" /* PluginType.PLATFORM */) {
408
+ const config = homebridgeConfig.platforms?.filter(x => x.platform === this.identifier && x._bridge?.username === this.bridgeConfig.username);
409
+ if (config.length) {
410
+ this.pluginConfig = config;
411
+ this.bridgeConfig = this.pluginConfig[0]._bridge || this.bridgeConfig;
412
+ }
413
+ else {
414
+ this.log.warn('Platform config could not be found, using existing config.');
415
+ }
416
+ }
417
+ else if (this.type === "accessory" /* PluginType.ACCESSORY */) {
418
+ const config = homebridgeConfig.accessories?.filter(x => x.accessory === this.identifier && x._bridge?.username === this.bridgeConfig.username);
419
+ if (config.length) {
420
+ this.pluginConfig = config;
421
+ this.bridgeConfig = this.pluginConfig[0]._bridge || this.bridgeConfig;
422
+ }
423
+ else {
424
+ this.log.warn('Accessory config could not be found, using existing config.');
425
+ }
426
+ }
427
+ }
428
+ catch (error) {
429
+ this.log.error('Failed to refresh plugin config:', error.message);
430
+ }
431
+ }
432
+ /**
433
+ * Returns metadata about this child bridge
434
+ */
435
+ getMetadata() {
436
+ return {
437
+ status: this.bridgeStatus,
438
+ paired: this.pairedStatus,
439
+ setupUri: this.setupUri,
440
+ username: this.bridgeConfig.username,
441
+ port: this.bridgeConfig.port,
442
+ pin: this.bridgeConfig.pin || this.homebridgeConfig.bridge.pin,
443
+ name: this.bridgeConfig.name || this.displayName || this.plugin.getPluginIdentifier(),
444
+ plugin: this.plugin.getPluginIdentifier(),
445
+ identifier: this.identifier,
446
+ pid: this.child?.pid,
447
+ manuallyStopped: this.manuallyStopped,
448
+ };
449
+ }
450
+ }
451
+ //# sourceMappingURL=childBridgeService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"childBridgeService.js","sourceRoot":"","sources":["../src/childBridgeService.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,OAAO,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,EAAE,MAAM,UAAU,CAAA;AAIzB,OAAO,EAAE,MAAM,EAAE,MAAM,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,KAAK,CAAC,OAAO,CAAC,CAAA;QACnE,CAAC;IACH,CAAC;IAED;;OAEG;IACI,WAAW;QAChB,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,YAAY;YACzB,MAAM,EAAE,IAAI,CAAC,YAAY;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ;YACpC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI;YAC5B,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG;YAC9D,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE;YACrF,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE;YACzC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG;YACpB,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CAAA;IACH,CAAC;CACF"}
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import 'source-map-support/register.js';
2
+ export default function cli(): void;
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAeA,OAAO,gCAAgC,CAAA;AAYvC,MAAM,CAAC,OAAO,UAAU,GAAG,IAAI,IAAI,CAsFlC"}