@matterbridge/core 3.7.4-dev-20260413-8f69203 → 3.7.4-dev-20260414-33cae46

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.
@@ -0,0 +1 @@
1
+ export * from '@matter/main/model';
@@ -0,0 +1 @@
1
+ export * from '@matter/main/model';
@@ -322,6 +322,8 @@ export class Matterbridge extends EventEmitter {
322
322
  await createDirectory(this.matterbridgeDirectory, 'Matterbridge Directory', this.log);
323
323
  await createDirectory(path.join(this.matterbridgeDirectory, 'certs'), 'Matterbridge Frontend Certificate Directory', this.log);
324
324
  await createDirectory(path.join(this.matterbridgeDirectory, 'uploads'), 'Matterbridge Frontend Uploads Directory', this.log);
325
+ await createDirectory(path.join(this.matterbridgeDirectory, MATTER_STORAGE_DIR), 'Matterbridge Matter Storage Directory', this.log);
326
+ await createDirectory(path.join(this.matterbridgeDirectory, NODE_STORAGE_DIR), 'Matterbridge Node Storage Directory', this.log);
325
327
  this.matterbridgePluginDirectory = this.profile ? path.join(this.homeDirectory, 'Matterbridge', 'profiles', this.profile) : path.join(this.homeDirectory, 'Matterbridge');
326
328
  await createDirectory(this.matterbridgePluginDirectory, 'Matterbridge Plugin Directory', this.log);
327
329
  this.matterbridgeCertDirectory = this.profile ? path.join(this.homeDirectory, '.mattercert', 'profiles', this.profile) : path.join(this.homeDirectory, '.mattercert');
@@ -1546,6 +1548,7 @@ export class Matterbridge extends EventEmitter {
1546
1548
  await this.cleanup('No storage service initialized');
1547
1549
  return;
1548
1550
  }
1551
+ await createDirectory(path.join(this.matterbridgeDirectory, MATTER_STORAGE_DIR, 'MatterbridgeController'), `Matter node storage directory for MatterbridgeController`, this.log);
1549
1552
  this.matterStorageManager = await this.matterStorageService.open('MatterbridgeController');
1550
1553
  this.log.info('Matter node storage manager "MatterbridgeController" created');
1551
1554
  this.log.info('Creating context controllerContext...');
@@ -1799,6 +1802,7 @@ export class Matterbridge extends EventEmitter {
1799
1802
  this.log.info(`Starting matter node storage...`);
1800
1803
  this.matterStorageService = this.environment.get(StorageService);
1801
1804
  this.log.info(`Matter node storage service created: ${this.matterStorageService.location}`);
1805
+ await createDirectory(path.join(this.matterbridgeDirectory, MATTER_STORAGE_DIR, 'Matterbridge'), `Matter node storage directory for Matterbridge`, this.log);
1802
1806
  this.matterStorageManager = await this.matterStorageService.open('Matterbridge');
1803
1807
  this.log.info('Matter node storage manager "Matterbridge" created');
1804
1808
  this.matterbridgeContext = await this.createServerNodeContext('Matterbridge', 'Matterbridge', this.aggregatorDeviceType, this.aggregatorVendorId, this.aggregatorVendorName, this.aggregatorProductId, this.aggregatorProductName, this.aggregatorSerialNumber, this.aggregatorUniqueId);
@@ -1829,6 +1833,7 @@ export class Matterbridge extends EventEmitter {
1829
1833
  if (!this.matterStorageService)
1830
1834
  throw new Error('No storage service initialized');
1831
1835
  this.log.info(`Creating server node storage context "${storeId}.persist" for ${storeId}...`);
1836
+ await createDirectory(path.join(this.matterbridgeDirectory, MATTER_STORAGE_DIR, storeId), `Matter node storage directory for ${storeId}`, this.log);
1832
1837
  const storageManager = await this.matterStorageService.open(storeId);
1833
1838
  const storageContext = storageManager.createContext('persist');
1834
1839
  const random = randomBytes(8).toString('hex');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/core",
3
- "version": "3.7.4-dev-20260413-8f69203",
3
+ "version": "3.7.4-dev-20260414-33cae46",
4
4
  "description": "Matterbridge core library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",
@@ -94,6 +94,10 @@
94
94
  "types": "./dist/matter/endpoints.d.ts",
95
95
  "import": "./dist/matter/endpoints.js"
96
96
  },
97
+ "./matter/model": {
98
+ "types": "./dist/matter/model.d.ts",
99
+ "import": "./dist/matter/model.js"
100
+ },
97
101
  "./matter/types": {
98
102
  "types": "./dist/matter/types.d.ts",
99
103
  "import": "./dist/matter/types.js"
@@ -126,10 +130,10 @@
126
130
  ],
127
131
  "dependencies": {
128
132
  "@matter/main": "0.16.11",
129
- "@matterbridge/dgram": "3.7.4-dev-20260413-8f69203",
130
- "@matterbridge/thread": "3.7.4-dev-20260413-8f69203",
131
- "@matterbridge/types": "3.7.4-dev-20260413-8f69203",
132
- "@matterbridge/utils": "3.7.4-dev-20260413-8f69203",
133
+ "@matterbridge/dgram": "3.7.4-dev-20260414-33cae46",
134
+ "@matterbridge/thread": "3.7.4-dev-20260414-33cae46",
135
+ "@matterbridge/types": "3.7.4-dev-20260414-33cae46",
136
+ "@matterbridge/utils": "3.7.4-dev-20260414-33cae46",
133
137
  "escape-html": "1.0.3",
134
138
  "express": "5.2.1",
135
139
  "express-rate-limit": "8.3.2",