@matterbridge/core 3.9.0-dev-20260612-94fd2e4 → 3.9.0-dev-20260612-80cb9b0
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/dist/backend.js +1 -1
- package/dist/backendExpress.d.ts +1 -0
- package/dist/backendExpress.js +2 -1
- package/dist/backendWsServer.js +1 -1
- package/dist/cli.js +5 -5
- package/dist/cliEmitter.js +2 -2
- package/dist/cliHistory.js +2 -2
- package/dist/deviceManager.js +2 -2
- package/dist/export.js +2 -2
- package/dist/frontend.js +3 -1
- package/dist/helpers.js +2 -2
- package/dist/matterbridge.js +2 -2
- package/dist/matterbridgeAccessoryPlatform.js +2 -2
- package/dist/matterbridgeDeviceTypes.js +2 -2
- package/dist/matterbridgeDynamicPlatform.js +2 -2
- package/dist/matterbridgeEndpoint.js +2 -2
- package/dist/matterbridgeEndpointCommandHandler.js +2 -2
- package/dist/matterbridgeEndpointHelpers.js +2 -2
- package/dist/matterbridgeEndpointTypes.js +2 -2
- package/dist/matterbridgeFactory.js +2 -0
- package/dist/matterbridgePlatform.js +2 -2
- package/dist/pluginManager.js +2 -2
- package/package.json +5 -5
package/dist/backend.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getParameter, hasParameter } from '@matterbridge/utils/cli';
|
|
|
5
5
|
import { getErrorMessage, inspectError, logError } from '@matterbridge/utils/error';
|
|
6
6
|
import { AnsiLogger, rs, UNDERLINE, UNDERLINEOFF } from 'node-ansi-logger';
|
|
7
7
|
if (hasParameter('loader'))
|
|
8
|
-
console.log('\u001B[
|
|
8
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Backend loaded.\u001B[40;0m');
|
|
9
9
|
export class Backend extends EventEmitter {
|
|
10
10
|
debug;
|
|
11
11
|
verbose;
|
package/dist/backendExpress.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare class BackendExpress {
|
|
|
10
10
|
private readonly server;
|
|
11
11
|
private fileLimiter;
|
|
12
12
|
expressApp: express.Application | undefined;
|
|
13
|
+
serverFetchTimeout: number;
|
|
13
14
|
constructor(matterbridge: SharedMatterbridge, backend: Backend);
|
|
14
15
|
destroy(): void;
|
|
15
16
|
private broadcastMsgHandler;
|
package/dist/backendExpress.js
CHANGED
|
@@ -11,7 +11,7 @@ import { rateLimit } from 'express-rate-limit';
|
|
|
11
11
|
import multer from 'multer';
|
|
12
12
|
import { AnsiLogger, er, nf } from 'node-ansi-logger';
|
|
13
13
|
if (hasParameter('loader'))
|
|
14
|
-
console.log('\u001B[
|
|
14
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] BackendExpress loaded.\u001B[40;0m');
|
|
15
15
|
export class BackendExpress {
|
|
16
16
|
debug;
|
|
17
17
|
verbose;
|
|
@@ -24,6 +24,7 @@ export class BackendExpress {
|
|
|
24
24
|
max: 20,
|
|
25
25
|
});
|
|
26
26
|
expressApp;
|
|
27
|
+
serverFetchTimeout = 5000;
|
|
27
28
|
constructor(matterbridge, backend) {
|
|
28
29
|
this.debug = hasParameter('debug') || hasParameter('verbose') || hasParameter('debug-frontend') || hasParameter('verbose-frontend');
|
|
29
30
|
this.verbose = hasParameter('verbose') || hasParameter('verbose-frontend');
|
package/dist/backendWsServer.js
CHANGED
|
@@ -7,7 +7,7 @@ import { fireAndForget, withTimeout } from '@matterbridge/utils/wait';
|
|
|
7
7
|
import { AnsiLogger, CYAN, debugStringify, nf } from 'node-ansi-logger';
|
|
8
8
|
import { WebSocket, WebSocketServer } from 'ws';
|
|
9
9
|
if (hasParameter('loader'))
|
|
10
|
-
console.log('\u001B[
|
|
10
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] BackendWsServer loaded.\u001B[40;0m');
|
|
11
11
|
export class BackendWsServer {
|
|
12
12
|
debug;
|
|
13
13
|
verbose;
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Cli loaded.\u001B[40;0m');
|
|
3
3
|
import { ThreadsManager } from '@matterbridge/thread/manager';
|
|
4
4
|
import { hasAnyParameter, hasParameter } from '@matterbridge/utils/cli';
|
|
5
5
|
import { inspectError } from '@matterbridge/utils/error';
|
|
@@ -123,7 +123,7 @@ async function version() {
|
|
|
123
123
|
}
|
|
124
124
|
function help() {
|
|
125
125
|
console.log(`
|
|
126
|
-
Usage: matterbridge [options] [command]
|
|
126
|
+
Usage: matterbridge [options] [command]
|
|
127
127
|
|
|
128
128
|
Commands:
|
|
129
129
|
--help: show the help
|
|
@@ -139,7 +139,7 @@ function help() {
|
|
|
139
139
|
--list: list the registered plugins
|
|
140
140
|
--loginterfaces: log the network interfaces (usefull for finding the name of the interface to use with -mdnsinterface option)
|
|
141
141
|
--logstorage: log the node storage
|
|
142
|
-
--systemcheck: perform a system check (check Node.js version and network interfaces)
|
|
142
|
+
--systemcheck: perform a system check (check Node.js version and network interfaces)
|
|
143
143
|
|
|
144
144
|
Reset Commands:
|
|
145
145
|
--reset: remove the commissioning for Matterbridge (bridge mode and childbridge mode). Shutdown Matterbridge before using it!
|
|
@@ -175,7 +175,7 @@ function help() {
|
|
|
175
175
|
--homedir: override the home directory (default the os homedir)
|
|
176
176
|
--delay [seconds]: set a delay in seconds before starting Matterbridge in the first 5 minutes from a reboot (default 120)
|
|
177
177
|
--fixed_delay [seconds]: set a fixed delay in seconds before starting Matterbridge (default 120)
|
|
178
|
-
--no-ansi: disable ANSI color output in the logs
|
|
178
|
+
--no-ansi: disable ANSI color output in the logs
|
|
179
179
|
--reset-sessions: reset sessions and resumption records on shutdown (use only if your controller has issue reconnecting on restart)
|
|
180
180
|
`);
|
|
181
181
|
process.exit(0);
|
package/dist/cliEmitter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Cli emitter loaded.\u001B[40;0m');
|
|
3
3
|
import { EventEmitter } from 'node:events';
|
|
4
4
|
export const cliEmitter = new EventEmitter();
|
|
5
5
|
export let lastOsCpuUsage = 0;
|
package/dist/cliHistory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Cli history loaded.\u001B[40;0m');
|
|
3
3
|
import { writeFileSync } from 'node:fs';
|
|
4
4
|
import os from 'node:os';
|
|
5
5
|
import path from 'node:path';
|
package/dist/deviceManager.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Device Manager loaded.\u001B[40;0m');
|
|
3
3
|
import { BroadcastServer } from '@matterbridge/thread/server';
|
|
4
4
|
import { dev } from '@matterbridge/types';
|
|
5
5
|
import { hasParameter } from '@matterbridge/utils/cli';
|
package/dist/export.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Index loaded.\u001B[40;0m');
|
|
3
3
|
export * from './behaviors/activatedCarbonFilterMonitoringServer.js';
|
|
4
4
|
export * from './behaviors/bindingServer.js';
|
|
5
5
|
export * from './behaviors/booleanStateConfigurationServer.js';
|
package/dist/frontend.js
CHANGED
|
@@ -20,7 +20,7 @@ import { cliEmitter, lastOsCpuUsage, lastProcessCpuUsage } from './cliEmitter.js
|
|
|
20
20
|
import { generateHistoryPage } from './cliHistory.js';
|
|
21
21
|
import { capitalizeFirstLetter, getAttribute } from './matterbridgeEndpointHelpers.js';
|
|
22
22
|
if (hasParameter('loader'))
|
|
23
|
-
console.log('\u001B[
|
|
23
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Frontend loaded.\u001B[40;0m');
|
|
24
24
|
export class Frontend extends EventEmitter {
|
|
25
25
|
matterbridge;
|
|
26
26
|
log;
|
|
@@ -835,6 +835,7 @@ export class Frontend extends EventEmitter {
|
|
|
835
835
|
res.status(500).json({ error: `Internal error in plugin ${plugin.name}` });
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
|
+
this.expressApp.use(`/plugins/${plugin.name}/api`, express.json());
|
|
838
839
|
this.expressApp.get(`/plugins/${plugin.name}/api/:path`, apiHandler);
|
|
839
840
|
this.expressApp.post(`/plugins/${plugin.name}/api/:path`, apiHandler);
|
|
840
841
|
this.expressApp.put(`/plugins/${plugin.name}/api/:path`, apiHandler);
|
|
@@ -1159,6 +1160,7 @@ export class Frontend extends EventEmitter {
|
|
|
1159
1160
|
schemaJson: plugin.schemaJson,
|
|
1160
1161
|
hasWhiteList: plugin.configJson?.whiteList !== undefined,
|
|
1161
1162
|
hasBlackList: plugin.configJson?.blackList !== undefined,
|
|
1163
|
+
frontendPath: plugin.frontendPath,
|
|
1162
1164
|
matter: plugin.serverNode ? this.matterbridge.getServerNodeData(plugin.serverNode) : undefined,
|
|
1163
1165
|
});
|
|
1164
1166
|
}
|
package/dist/helpers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeHelpers loaded.\u001B[40;0m');
|
|
3
3
|
import { Endpoint } from '@matter/node';
|
|
4
4
|
import { BindingServer } from '@matter/node/behaviors/binding';
|
|
5
5
|
import { BridgedDeviceBasicInformationServer } from '@matter/node/behaviors/bridged-device-basic-information';
|
package/dist/matterbridge.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Matterbridge loaded.\u001B[40;0m');
|
|
3
3
|
import '@matter/nodejs';
|
|
4
4
|
import EventEmitter from 'node:events';
|
|
5
5
|
import fs, { unlinkSync } from 'node:fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeAccessoryPlatform loaded.\u001B[40;0m');
|
|
3
3
|
import { MatterbridgePlatform } from './matterbridgePlatform.js';
|
|
4
4
|
const MATTERBRIDGE_ACCESSORY_PLATFORM_BRAND = Symbol('MatterbridgeAccessoryPlatform.brand');
|
|
5
5
|
export function isMatterbridgeAccessoryPlatform(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeDeviceTypes loaded.\u001B[40;0m');
|
|
3
3
|
import { AccountLogin } from '@matter/types/clusters/account-login';
|
|
4
4
|
import { Actions } from '@matter/types/clusters/actions';
|
|
5
5
|
import { ActivatedCarbonFilterMonitoring } from '@matter/types/clusters/activated-carbon-filter-monitoring';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeDynamicPlatform loaded.\u001B[40;0m');
|
|
3
3
|
import { MatterbridgePlatform } from './matterbridgePlatform.js';
|
|
4
4
|
const MATTERBRIDGE_DYNAMIC_PLATFORM_BRAND = Symbol('MatterbridgeDynamicPlatform.brand');
|
|
5
5
|
export function isMatterbridgeDynamicPlatform(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeEndpoint loaded.\u001B[40;0m');
|
|
3
3
|
import { Lifecycle, UINT16_MAX, UINT32_MAX } from '@matter/general';
|
|
4
4
|
import { Endpoint, MutableEndpoint, SupportedBehaviors } from '@matter/node';
|
|
5
5
|
import { AirQualityServer } from '@matter/node/behaviors/air-quality';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeEndpointCommandHandler loaded.\u001B[40;0m');
|
|
3
3
|
export class CommandHandler {
|
|
4
4
|
handler = [];
|
|
5
5
|
hasHandler(command) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeEndpointHelpers loaded.\u001B[40;0m');
|
|
3
3
|
import { createHash } from 'node:crypto';
|
|
4
4
|
import { Lifecycle } from '@matter/general';
|
|
5
5
|
import { ClusterBehavior } from '@matter/node';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeEndpointTypes loaded.\u001B[40;0m');
|
|
3
3
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgeFactory loaded.\u001B[40;0m');
|
|
1
3
|
import { ClusterBehavior } from '@matter/node';
|
|
2
4
|
import { getClusterNameById } from '@matter/types/cluster';
|
|
3
5
|
import { db, hk } from 'node-ansi-logger';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] MatterbridgePlatform loaded.\u001B[40;0m');
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { BridgedDeviceBasicInformation } from '@matter/types/clusters/bridged-device-basic-information';
|
|
5
5
|
import { Descriptor } from '@matter/types/clusters/descriptor';
|
package/dist/pluginManager.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
if (process.argv.includes('--loader')
|
|
2
|
-
console.log('\u001B[
|
|
1
|
+
if (process.argv.includes('--loader'))
|
|
2
|
+
console.log('\u001B[32m[' + new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit', fractionalSecondDigits: 3 }) + '] Plugin Manager loaded.\u001B[40;0m');
|
|
3
3
|
import EventEmitter from 'node:events';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { BroadcastServer } from '@matterbridge/thread/server';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matterbridge/core",
|
|
3
|
-
"version": "3.9.0-dev-20260612-
|
|
3
|
+
"version": "3.9.0-dev-20260612-80cb9b0",
|
|
4
4
|
"description": "Matterbridge core library",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"homepage": "https://matterbridge.io/",
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
],
|
|
131
131
|
"dependencies": {
|
|
132
132
|
"@matter/main": "0.17.2",
|
|
133
|
-
"@matterbridge/dgram": "3.9.0-dev-20260612-
|
|
134
|
-
"@matterbridge/thread": "3.9.0-dev-20260612-
|
|
135
|
-
"@matterbridge/types": "3.9.0-dev-20260612-
|
|
136
|
-
"@matterbridge/utils": "3.9.0-dev-20260612-
|
|
133
|
+
"@matterbridge/dgram": "3.9.0-dev-20260612-80cb9b0",
|
|
134
|
+
"@matterbridge/thread": "3.9.0-dev-20260612-80cb9b0",
|
|
135
|
+
"@matterbridge/types": "3.9.0-dev-20260612-80cb9b0",
|
|
136
|
+
"@matterbridge/utils": "3.9.0-dev-20260612-80cb9b0",
|
|
137
137
|
"escape-html": "1.0.3",
|
|
138
138
|
"express": "5.2.1",
|
|
139
139
|
"express-rate-limit": "8.5.2",
|