matterbridge 3.3.7-dev-20251106-de2d9ea → 3.3.7-dev-20251108-f254812

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.
@@ -125,6 +125,28 @@ export class PluginManager extends EventEmitter {
125
125
  }
126
126
  }
127
127
  break;
128
+ case 'plugins_start':
129
+ {
130
+ const plugin = await this.start(msg.params.plugin, msg.params.message, msg.params.configure);
131
+ if (plugin) {
132
+ this.server.respond({ ...msg, params: {}, response: { plugin: this.toApiPlugin(plugin) } });
133
+ }
134
+ else {
135
+ this.server.respond({ ...msg, response: { plugin } });
136
+ }
137
+ }
138
+ break;
139
+ case 'plugins_configure':
140
+ {
141
+ const plugin = await this.configure(msg.params.plugin);
142
+ if (plugin) {
143
+ this.server.respond({ ...msg, params: {}, response: { plugin: this.toApiPlugin(plugin) } });
144
+ }
145
+ else {
146
+ this.server.respond({ ...msg, response: { plugin } });
147
+ }
148
+ }
149
+ break;
128
150
  case 'plugins_shutdown':
129
151
  {
130
152
  const plugin = await this.shutdown(msg.params.plugin, msg.params.reason, msg.params.removeAllDevices, msg.params.force);
@@ -346,6 +368,7 @@ export class PluginManager extends EventEmitter {
346
368
  }
347
369
  }
348
370
  async install(packageName) {
371
+ this.log.debug(`Installing plugin ${plg}${packageName}${db}...`);
349
372
  const { spawnCommand } = await import('./utils/spawn.js');
350
373
  try {
351
374
  await spawnCommand(this.matterbridge, 'npm', ['install', '-g', packageName, '--omit=dev', '--verbose'], 'install', packageName);
@@ -364,14 +387,17 @@ export class PluginManager extends EventEmitter {
364
387
  await this.matterbridge.shutdownProcess();
365
388
  }
366
389
  }
390
+ this.log.debug(`Installed plugin ${plg}${packageName}${db} successfully`);
367
391
  return true;
368
392
  }
369
393
  catch (error) {
370
394
  inspectError(this.log, `Failed to install package ${plg}${packageName}${er}`, error);
395
+ this.log.debug(`Failed to install plugin ${plg}${packageName}${db}`);
371
396
  return false;
372
397
  }
373
398
  }
374
399
  async uninstall(packageName) {
400
+ this.log.debug(`Uninstalling plugin ${plg}${packageName}${db}...`);
375
401
  const { spawnCommand } = await import('./utils/spawn.js');
376
402
  packageName = packageName.replace(/@.*$/, '');
377
403
  if (packageName === 'matterbridge')
@@ -384,10 +410,12 @@ export class PluginManager extends EventEmitter {
384
410
  await this.remove(packageName);
385
411
  }
386
412
  await spawnCommand(this.matterbridge, 'npm', ['uninstall', '-g', packageName, '--verbose'], 'uninstall', packageName);
413
+ this.log.debug(`Uninstalled plugin ${plg}${packageName}${db} successfully`);
387
414
  return true;
388
415
  }
389
416
  catch (error) {
390
417
  inspectError(this.log, `Failed to uninstall package ${plg}${packageName}${er}`, error);
418
+ this.log.debug(`Failed to uninstall plugin ${plg}${packageName}${db}`);
391
419
  return false;
392
420
  }
393
421
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "3.3.7-dev-20251106-de2d9ea",
3
+ "version": "3.3.7-dev-20251108-f254812",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge",
9
- "version": "3.3.7-dev-20251106-de2d9ea",
9
+ "version": "3.3.7-dev-20251108-f254812",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@matter/main": "0.15.6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "3.3.7-dev-20251106-de2d9ea",
3
+ "version": "3.3.7-dev-20251108-f254812",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",