@matter/nodejs-shell 0.17.0-alpha.0-20260301-e04453ac0 → 0.17.0-alpha.0-20260303-d87c1cf94

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.
@@ -8,10 +8,10 @@ import {
8
8
  Logger,
9
9
  ObserverGroup,
10
10
  StorageService
11
- } from "#general";
12
- import { SoftwareUpdateManager } from "#node";
13
- import { DclCertificateService, DclOtaUpdateService, DclVendorInfoService } from "#protocol";
14
- import { NodeId } from "#types";
11
+ } from "@matter/general";
12
+ import { SoftwareUpdateManager } from "@matter/node";
13
+ import { DclCertificateService, DclOtaUpdateService, DclVendorInfoService } from "@matter/protocol";
14
+ import { NodeId } from "@matter/types";
15
15
  import { CommissioningController } from "@project-chip/matter.js";
16
16
  import { join } from "node:path";
17
17
  const logger = Logger.get("Node");
package/dist/esm/app.js CHANGED
@@ -4,8 +4,8 @@
4
4
  * Copyright 2022-2026 Matter.js Authors
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- import { Environment, LogDestination, LogFormat, Logger, LogLevel } from "#general";
8
- import { createFileLogger } from "#nodejs";
7
+ import { Environment, LogDestination, LogFormat, Logger, LogLevel } from "@matter/general";
8
+ import { createFileLogger } from "@matter/nodejs";
9
9
  import "@matter/nodejs-ble";
10
10
  import yargs from "yargs";
11
11
  import { hideBin } from "yargs/helpers";
@@ -1,12 +1,3 @@
1
1
  {
2
- "type": "module",
3
- "imports": {
4
- "#general": "@matter/general",
5
- "#model": "@matter/model",
6
- "#node": "@matter/node",
7
- "#nodejs": "@matter/nodejs",
8
- "#nodejs-ble": "@matter/nodejs-ble",
9
- "#protocol": "@matter/protocol",
10
- "#types": "@matter/types"
11
- }
2
+ "type": "module"
12
3
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Logger, MatterError } from "#general";
6
+ import { Logger, MatterError } from "@matter/general";
7
7
  import { createWriteStream, readFileSync } from "node:fs";
8
8
  import readline from "node:readline";
9
9
  import { inspect } from "node:util";
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Diagnostic } from "#general";
6
+ import { Diagnostic } from "@matter/general";
7
7
  function commands(theNode) {
8
8
  return {
9
9
  command: "cert",
@@ -3,9 +3,9 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { camelize, Diagnostic } from "#general";
7
- import { MatterModel } from "#model";
8
- import { AttributeId, ClusterId, EndpointNumber, ValidationError } from "#types";
6
+ import { camelize, Diagnostic } from "@matter/general";
7
+ import { MatterModel } from "@matter/model";
8
+ import { AttributeId, ClusterId, EndpointNumber, ValidationError } from "@matter/types";
9
9
  import { SupportedAttributeClient } from "@project-chip/matter.js/cluster";
10
10
  import { convertJsonDataWithModel } from "../util/Json.js";
11
11
  function generateAllAttributeHandlersForCluster(yargs, theNode) {
@@ -3,9 +3,9 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { camelize, Diagnostic } from "#general";
7
- import { MatterModel } from "#model";
8
- import { ClusterId, ValidationError } from "#types";
6
+ import { camelize, Diagnostic } from "@matter/general";
7
+ import { MatterModel } from "@matter/model";
8
+ import { ClusterId, ValidationError } from "@matter/types";
9
9
  import { convertJsonDataWithModel } from "../util/Json.js";
10
10
  function generateAllCommandHandlersForCluster(yargs, theNode) {
11
11
  MatterModel.standard.clusters.forEach((cluster) => {
@@ -3,9 +3,9 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { camelize, Diagnostic } from "#general";
7
- import { MatterModel } from "#model";
8
- import { ClusterId } from "#types";
6
+ import { camelize, Diagnostic } from "@matter/general";
7
+ import { MatterModel } from "@matter/model";
8
+ import { ClusterId } from "@matter/types";
9
9
  function generateAllEventHandlersForCluster(yargs, theNode) {
10
10
  MatterModel.standard.clusters.forEach((cluster) => {
11
11
  yargs = generateClusterEventHandlers(yargs, cluster, theNode);
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Diagnostic, MatterError } from "#general";
7
- import { DiscoveryCapabilitiesSchema, ManualPairingCodeCodec, NodeId, QrCode, QrPairingCodeCodec } from "#types";
6
+ import { Diagnostic, MatterError } from "@matter/general";
7
+ import { DiscoveryCapabilitiesSchema, ManualPairingCodeCodec, NodeId, QrCode, QrPairingCodeCodec } from "@matter/types";
8
8
  import { BasicInformationCluster, DescriptorCluster, GeneralCommissioning } from "@matter/types/clusters";
9
9
  import { createDiagnosticCallbacks } from "./cmd_nodes.js";
10
10
  function commands(theNode) {
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Logger } from "#general";
6
+ import { Logger } from "@matter/general";
7
7
  import { DclCertificateService } from "@matter/protocol";
8
8
  import { setLogLevel } from "../app.js";
9
9
  function commands(theNode) {
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Diagnostic } from "#general";
6
+ import { Diagnostic } from "@matter/general";
7
7
  import { DclClient, DclConfig } from "@matter/protocol";
8
8
  function parseVidPid(value, fieldName) {
9
9
  const num = value.startsWith("0x") ? parseInt(value, 16) : parseInt(value, 10);
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Diagnostic, Seconds } from "#general";
7
- import { ManualPairingCodeCodec, VendorId } from "#types";
6
+ import { Diagnostic, Seconds } from "@matter/general";
7
+ import { ManualPairingCodeCodec, VendorId } from "@matter/types";
8
8
  function commands(theNode) {
9
9
  return {
10
10
  command: "discover",
@@ -3,10 +3,10 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { capitalize, decamelize, Diagnostic } from "#general";
7
- import { SoftwareUpdateManager } from "#node";
8
- import { PeerAddress } from "#protocol";
9
- import { FabricIndex, NodeId } from "#types";
6
+ import { capitalize, decamelize, Diagnostic } from "@matter/general";
7
+ import { SoftwareUpdateManager } from "@matter/node";
8
+ import { PeerAddress } from "@matter/protocol";
9
+ import { FabricIndex, NodeId } from "@matter/types";
10
10
  import { NodeStateInformation } from "@project-chip/matter.js/device";
11
11
  function createDiagnosticCallbacks() {
12
12
  return {
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Bytes, Crypto, Diagnostic, Environment } from "#general";
7
- import { OtaImageReader } from "#protocol";
6
+ import { Bytes, Crypto, Diagnostic, Environment } from "@matter/general";
7
+ import { OtaImageReader } from "@matter/protocol";
8
8
  import { createReadStream, createWriteStream, statSync } from "node:fs";
9
9
  import { basename, dirname, extname, join } from "node:path";
10
10
  import { Readable } from "node:stream";
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Diagnostic } from "#general";
6
+ import { Diagnostic } from "@matter/general";
7
7
  function commands(theNode) {
8
8
  return {
9
9
  command: "subscribe [node-id]",
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Bytes, Diagnostic, Logger, serialize, UnexpectedDataError } from "#general";
7
- import { TlvAny, TlvArrayReader, TlvType } from "#types";
6
+ import { Bytes, Diagnostic, Logger, serialize, UnexpectedDataError } from "@matter/general";
7
+ import { TlvAny, TlvArrayReader, TlvType } from "@matter/types";
8
8
  const logger = Logger.get("tlv");
9
9
  const TlvTypeNames = {
10
10
  [TlvType.Null]: "Null(",
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Diagnostic } from "#general";
6
+ import { Diagnostic } from "@matter/general";
7
7
  function commands(theNode) {
8
8
  return {
9
9
  command: "vendor",
@@ -3,8 +3,8 @@
3
3
  * Copyright 2022-2026 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Bytes, camelize } from "#general";
7
- import { ValidationDatatypeMismatchError } from "#types";
6
+ import { Bytes, camelize } from "@matter/general";
7
+ import { ValidationDatatypeMismatchError } from "@matter/types";
8
8
  function convertJsonDataWithModel(model, data) {
9
9
  const definingModel = model.definingModel ?? model;
10
10
  switch (definingModel.effectiveMetatype) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matter/nodejs-shell",
3
- "version": "0.17.0-alpha.0-20260301-e04453ac0",
3
+ "version": "0.17.0-alpha.0-20260303-d87c1cf94",
4
4
  "description": "Shell app for Matter controller",
5
5
  "keywords": [
6
6
  "iot",
@@ -33,25 +33,16 @@
33
33
  "bin": {
34
34
  "matter-shell": "dist/cjs/app.js"
35
35
  },
36
- "imports": {
37
- "#general": "@matter/general",
38
- "#model": "@matter/model",
39
- "#node": "@matter/node",
40
- "#nodejs": "@matter/nodejs",
41
- "#nodejs-ble": "@matter/nodejs-ble",
42
- "#protocol": "@matter/protocol",
43
- "#types": "@matter/types"
44
- },
45
36
  "dependencies": {
46
- "@matter/general": "0.17.0-alpha.0-20260301-e04453ac0",
47
- "@matter/model": "0.17.0-alpha.0-20260301-e04453ac0",
48
- "@matter/node": "0.17.0-alpha.0-20260301-e04453ac0",
49
- "@matter/nodejs": "0.17.0-alpha.0-20260301-e04453ac0",
50
- "@matter/nodejs-ble": "0.17.0-alpha.0-20260301-e04453ac0",
51
- "@matter/protocol": "0.17.0-alpha.0-20260301-e04453ac0",
52
- "@matter/tools": "0.17.0-alpha.0-20260301-e04453ac0",
53
- "@matter/types": "0.17.0-alpha.0-20260301-e04453ac0",
54
- "@project-chip/matter.js": "0.17.0-alpha.0-20260301-e04453ac0",
37
+ "@matter/general": "0.17.0-alpha.0-20260303-d87c1cf94",
38
+ "@matter/model": "0.17.0-alpha.0-20260303-d87c1cf94",
39
+ "@matter/node": "0.17.0-alpha.0-20260303-d87c1cf94",
40
+ "@matter/nodejs": "0.17.0-alpha.0-20260303-d87c1cf94",
41
+ "@matter/nodejs-ble": "0.17.0-alpha.0-20260303-d87c1cf94",
42
+ "@matter/protocol": "0.17.0-alpha.0-20260303-d87c1cf94",
43
+ "@matter/tools": "0.17.0-alpha.0-20260303-d87c1cf94",
44
+ "@matter/types": "0.17.0-alpha.0-20260303-d87c1cf94",
45
+ "@project-chip/matter.js": "0.17.0-alpha.0-20260303-d87c1cf94",
55
46
  "ws": "^8.19.0",
56
47
  "yargs": "^18.0.0"
57
48
  },
package/src/MatterNode.ts CHANGED
@@ -13,10 +13,10 @@ import {
13
13
  StorageContext,
14
14
  StorageManager,
15
15
  StorageService,
16
- } from "#general";
17
- import { ServerNode, SoftwareUpdateManager } from "#node";
18
- import { DclCertificateService, DclOtaUpdateService, DclVendorInfoService } from "#protocol";
19
- import { NodeId } from "#types";
16
+ } from "@matter/general";
17
+ import { ServerNode, SoftwareUpdateManager } from "@matter/node";
18
+ import { DclCertificateService, DclOtaUpdateService, DclVendorInfoService } from "@matter/protocol";
19
+ import { NodeId } from "@matter/types";
20
20
  import { CommissioningController } from "@project-chip/matter.js";
21
21
  import { CommissioningControllerNodeOptions, Endpoint, PairedNode } from "@project-chip/matter.js/device";
22
22
  import { join } from "node:path";
package/src/app.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- import { Environment, LogDestination, LogFormat, Logger, LogLevel } from "#general";
9
- import { createFileLogger } from "#nodejs";
8
+ import { Environment, LogDestination, LogFormat, Logger, LogLevel } from "@matter/general";
9
+ import { createFileLogger } from "@matter/nodejs";
10
10
  import "@matter/nodejs-ble";
11
11
  import yargs from "yargs";
12
12
  import { hideBin } from "yargs/helpers";
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Logger, MatterError } from "#general";
7
+ import { Logger, MatterError } from "@matter/general";
8
8
  import { createWriteStream, readFileSync } from "node:fs";
9
9
  import readline from "node:readline";
10
10
  import { Readable, Writable } from "node:stream";
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Diagnostic } from "#general";
7
+ import { Diagnostic } from "@matter/general";
8
8
  import type { Argv } from "yargs";
9
9
  import { MatterNode } from "../MatterNode.js";
10
10
 
@@ -4,9 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { camelize, Diagnostic } from "#general";
8
- import { AttributeModel, ClusterModel, MatterModel } from "#model";
9
- import { AttributeId, ClusterId, EndpointNumber, ValidationError } from "#types";
7
+ import { camelize, Diagnostic } from "@matter/general";
8
+ import { AttributeModel, ClusterModel, MatterModel } from "@matter/model";
9
+ import { AttributeId, ClusterId, EndpointNumber, ValidationError } from "@matter/types";
10
10
  import { SupportedAttributeClient } from "@project-chip/matter.js/cluster";
11
11
  import type { Argv } from "yargs";
12
12
  import { MatterNode } from "../MatterNode.js";
@@ -4,9 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { camelize, Diagnostic } from "#general";
8
- import { ClusterModel, CommandModel, MatterModel } from "#model";
9
- import { ClusterId, ValidationError } from "#types";
7
+ import { camelize, Diagnostic } from "@matter/general";
8
+ import { ClusterModel, CommandModel, MatterModel } from "@matter/model";
9
+ import { ClusterId, ValidationError } from "@matter/types";
10
10
  import type { Argv } from "yargs";
11
11
  import { MatterNode } from "../MatterNode.js";
12
12
  import { convertJsonDataWithModel } from "../util/Json.js";
@@ -4,9 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { camelize, Diagnostic } from "#general";
8
- import { ClusterModel, EventModel, MatterModel } from "#model";
9
- import { ClusterId } from "#types";
7
+ import { camelize, Diagnostic } from "@matter/general";
8
+ import { ClusterModel, EventModel, MatterModel } from "@matter/model";
9
+ import { ClusterId } from "@matter/types";
10
10
  import type { Argv } from "yargs";
11
11
  import { MatterNode } from "../MatterNode.js";
12
12
 
@@ -4,8 +4,8 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Diagnostic, MatterError } from "#general";
8
- import { DiscoveryCapabilitiesSchema, ManualPairingCodeCodec, NodeId, QrCode, QrPairingCodeCodec } from "#types";
7
+ import { Diagnostic, MatterError } from "@matter/general";
8
+ import { DiscoveryCapabilitiesSchema, ManualPairingCodeCodec, NodeId, QrCode, QrPairingCodeCodec } from "@matter/types";
9
9
  import { BasicInformationCluster, DescriptorCluster, GeneralCommissioning } from "@matter/types/clusters";
10
10
  import { NodeCommissioningOptions } from "@project-chip/matter.js";
11
11
  import type { Argv } from "yargs";
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Logger } from "#general";
7
+ import { Logger } from "@matter/general";
8
8
  import { DclCertificateService } from "@matter/protocol";
9
9
  import { Argv } from "yargs";
10
10
  import { MatterNode } from "../MatterNode.js";
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Diagnostic } from "#general";
7
+ import { Diagnostic } from "@matter/general";
8
8
  import { DclClient, DclConfig } from "@matter/protocol";
9
9
  import type { Argv } from "yargs";
10
10
 
@@ -4,9 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Diagnostic, Seconds } from "#general";
8
- import { CommissionableDeviceIdentifiers } from "#protocol";
9
- import { ManualPairingCodeCodec, VendorId } from "#types";
7
+ import { Diagnostic, Seconds } from "@matter/general";
8
+ import { CommissionableDeviceIdentifiers } from "@matter/protocol";
9
+ import { ManualPairingCodeCodec, VendorId } from "@matter/types";
10
10
  import type { Argv } from "yargs";
11
11
  import { MatterNode } from "../MatterNode.js";
12
12
 
@@ -4,10 +4,10 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { capitalize, decamelize, Diagnostic } from "#general";
8
- import { ClientNode, SoftwareUpdateManager } from "#node";
9
- import { PeerAddress } from "#protocol";
10
- import { FabricIndex, NodeId, VendorId } from "#types";
7
+ import { capitalize, decamelize, Diagnostic } from "@matter/general";
8
+ import { ClientNode, SoftwareUpdateManager } from "@matter/node";
9
+ import { PeerAddress } from "@matter/protocol";
10
+ import { FabricIndex, NodeId, VendorId } from "@matter/types";
11
11
  import { CommissioningControllerNodeOptions, NodeStateInformation } from "@project-chip/matter.js/device";
12
12
  import type { Argv } from "yargs";
13
13
  import { MatterNode } from "../MatterNode.js";
@@ -4,9 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Bytes, Crypto, Diagnostic, Environment } from "#general";
8
- import { OtaImageReader, PersistedFileDesignator } from "#protocol";
9
- import { VendorId } from "#types";
7
+ import { Bytes, Crypto, Diagnostic, Environment } from "@matter/general";
8
+ import { OtaImageReader, PersistedFileDesignator } from "@matter/protocol";
9
+ import { VendorId } from "@matter/types";
10
10
  import { createReadStream, createWriteStream, statSync, WriteStream } from "node:fs";
11
11
  import { basename, dirname, extname, join } from "node:path";
12
12
  import { Readable } from "node:stream";
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Diagnostic } from "#general";
7
+ import { Diagnostic } from "@matter/general";
8
8
  import type { Argv } from "yargs";
9
9
  import { MatterNode } from "../MatterNode.js";
10
10
 
@@ -4,8 +4,8 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Bytes, Diagnostic, Logger, serialize, UnexpectedDataError } from "#general";
8
- import { TlvAny, TlvArrayReader, TlvElement, TlvStream, TlvType } from "#types";
7
+ import { Bytes, Diagnostic, Logger, serialize, UnexpectedDataError } from "@matter/general";
8
+ import { TlvAny, TlvArrayReader, TlvElement, TlvStream, TlvType } from "@matter/types";
9
9
  import type { Argv } from "yargs";
10
10
 
11
11
  const logger = Logger.get("tlv");
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Diagnostic } from "#general";
7
+ import { Diagnostic } from "@matter/general";
8
8
  import type { Argv } from "yargs";
9
9
  import { MatterNode } from "../MatterNode.js";
10
10
 
package/src/util/Json.ts CHANGED
@@ -4,9 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { Bytes, camelize } from "#general";
8
- import { ValueModel } from "#model";
9
- import { ValidationDatatypeMismatchError } from "#types";
7
+ import { Bytes, camelize } from "@matter/general";
8
+ import { ValueModel } from "@matter/model";
9
+ import { ValidationDatatypeMismatchError } from "@matter/types";
10
10
 
11
11
  export function convertJsonDataWithModel(model: ValueModel, data: any): any {
12
12
  const definingModel = model.definingModel ?? model;