@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.
- package/dist/esm/MatterNode.js +4 -4
- package/dist/esm/app.js +2 -2
- package/dist/esm/package.json +1 -10
- package/dist/esm/shell/Shell.js +1 -1
- package/dist/esm/shell/cmd_cert.js +1 -1
- package/dist/esm/shell/cmd_cluster-attributes.js +3 -3
- package/dist/esm/shell/cmd_cluster-commands.js +3 -3
- package/dist/esm/shell/cmd_cluster-events.js +3 -3
- package/dist/esm/shell/cmd_commission.js +2 -2
- package/dist/esm/shell/cmd_config.js +1 -1
- package/dist/esm/shell/cmd_dcl.js +1 -1
- package/dist/esm/shell/cmd_discover.js +2 -2
- package/dist/esm/shell/cmd_nodes.js +4 -4
- package/dist/esm/shell/cmd_ota.js +2 -2
- package/dist/esm/shell/cmd_subscribe.js +1 -1
- package/dist/esm/shell/cmd_tlv.js +2 -2
- package/dist/esm/shell/cmd_vendor.js +1 -1
- package/dist/esm/util/Json.js +2 -2
- package/package.json +10 -19
- package/src/MatterNode.ts +4 -4
- package/src/app.ts +2 -2
- package/src/shell/Shell.ts +1 -1
- package/src/shell/cmd_cert.ts +1 -1
- package/src/shell/cmd_cluster-attributes.ts +3 -3
- package/src/shell/cmd_cluster-commands.ts +3 -3
- package/src/shell/cmd_cluster-events.ts +3 -3
- package/src/shell/cmd_commission.ts +2 -2
- package/src/shell/cmd_config.ts +1 -1
- package/src/shell/cmd_dcl.ts +1 -1
- package/src/shell/cmd_discover.ts +3 -3
- package/src/shell/cmd_nodes.ts +4 -4
- package/src/shell/cmd_ota.ts +3 -3
- package/src/shell/cmd_subscribe.ts +1 -1
- package/src/shell/cmd_tlv.ts +2 -2
- package/src/shell/cmd_vendor.ts +1 -1
- package/src/util/Json.ts +3 -3
package/dist/esm/MatterNode.js
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
Logger,
|
|
9
9
|
ObserverGroup,
|
|
10
10
|
StorageService
|
|
11
|
-
} from "
|
|
12
|
-
import { SoftwareUpdateManager } from "
|
|
13
|
-
import { DclCertificateService, DclOtaUpdateService, DclVendorInfoService } from "
|
|
14
|
-
import { NodeId } from "
|
|
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 "
|
|
8
|
-
import { createFileLogger } from "
|
|
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";
|
package/dist/esm/package.json
CHANGED
|
@@ -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
|
}
|
package/dist/esm/shell/Shell.js
CHANGED
|
@@ -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 "
|
|
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,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 "
|
|
7
|
-
import { MatterModel } from "
|
|
8
|
-
import { AttributeId, ClusterId, EndpointNumber, ValidationError } from "
|
|
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 "
|
|
7
|
-
import { MatterModel } from "
|
|
8
|
-
import { ClusterId, ValidationError } from "
|
|
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 "
|
|
7
|
-
import { MatterModel } from "
|
|
8
|
-
import { ClusterId } from "
|
|
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 "
|
|
7
|
-
import { DiscoveryCapabilitiesSchema, ManualPairingCodeCodec, NodeId, QrCode, QrPairingCodeCodec } from "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
7
|
-
import { ManualPairingCodeCodec, VendorId } from "
|
|
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 "
|
|
7
|
-
import { SoftwareUpdateManager } from "
|
|
8
|
-
import { PeerAddress } from "
|
|
9
|
-
import { FabricIndex, NodeId } from "
|
|
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 "
|
|
7
|
-
import { OtaImageReader } from "
|
|
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,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 "
|
|
7
|
-
import { TlvAny, TlvArrayReader, TlvType } from "
|
|
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(",
|
package/dist/esm/util/Json.js
CHANGED
|
@@ -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 "
|
|
7
|
-
import { ValidationDatatypeMismatchError } from "
|
|
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-
|
|
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-
|
|
47
|
-
"@matter/model": "0.17.0-alpha.0-
|
|
48
|
-
"@matter/node": "0.17.0-alpha.0-
|
|
49
|
-
"@matter/nodejs": "0.17.0-alpha.0-
|
|
50
|
-
"@matter/nodejs-ble": "0.17.0-alpha.0-
|
|
51
|
-
"@matter/protocol": "0.17.0-alpha.0-
|
|
52
|
-
"@matter/tools": "0.17.0-alpha.0-
|
|
53
|
-
"@matter/types": "0.17.0-alpha.0-
|
|
54
|
-
"@project-chip/matter.js": "0.17.0-alpha.0-
|
|
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 "
|
|
17
|
-
import { ServerNode, SoftwareUpdateManager } from "
|
|
18
|
-
import { DclCertificateService, DclOtaUpdateService, DclVendorInfoService } from "
|
|
19
|
-
import { NodeId } from "
|
|
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 "
|
|
9
|
-
import { createFileLogger } from "
|
|
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";
|
package/src/shell/Shell.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { Logger, MatterError } from "
|
|
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";
|
package/src/shell/cmd_cert.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { camelize, Diagnostic } from "
|
|
8
|
-
import { AttributeModel, ClusterModel, MatterModel } from "
|
|
9
|
-
import { AttributeId, ClusterId, EndpointNumber, ValidationError } from "
|
|
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 "
|
|
8
|
-
import { ClusterModel, CommandModel, MatterModel } from "
|
|
9
|
-
import { ClusterId, ValidationError } from "
|
|
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 "
|
|
8
|
-
import { ClusterModel, EventModel, MatterModel } from "
|
|
9
|
-
import { ClusterId } from "
|
|
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 "
|
|
8
|
-
import { DiscoveryCapabilitiesSchema, ManualPairingCodeCodec, NodeId, QrCode, QrPairingCodeCodec } from "
|
|
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";
|
package/src/shell/cmd_config.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { Logger } from "
|
|
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";
|
package/src/shell/cmd_dcl.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { Diagnostic, Seconds } from "
|
|
8
|
-
import { CommissionableDeviceIdentifiers } from "
|
|
9
|
-
import { ManualPairingCodeCodec, VendorId } from "
|
|
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
|
|
package/src/shell/cmd_nodes.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { capitalize, decamelize, Diagnostic } from "
|
|
8
|
-
import { ClientNode, SoftwareUpdateManager } from "
|
|
9
|
-
import { PeerAddress } from "
|
|
10
|
-
import { FabricIndex, NodeId, VendorId } from "
|
|
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";
|
package/src/shell/cmd_ota.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { Bytes, Crypto, Diagnostic, Environment } from "
|
|
8
|
-
import { OtaImageReader, PersistedFileDesignator } from "
|
|
9
|
-
import { VendorId } from "
|
|
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";
|
package/src/shell/cmd_tlv.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { Bytes, Diagnostic, Logger, serialize, UnexpectedDataError } from "
|
|
8
|
-
import { TlvAny, TlvArrayReader, TlvElement, TlvStream, TlvType } from "
|
|
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");
|
package/src/shell/cmd_vendor.ts
CHANGED
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 "
|
|
8
|
-
import { ValueModel } from "
|
|
9
|
-
import { ValidationDatatypeMismatchError } from "
|
|
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;
|