@camstack/addon-matter-broker 0.1.1

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/index.js ADDED
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_addon = require("./addon.js");
3
+ exports.InvalidPairingCodeError = require_addon.InvalidPairingCodeError;
4
+ exports.MatterBrokerAddon = require_addon.MatterBrokerAddon;
5
+ exports.MatterClusterId = require_addon.MatterClusterId;
6
+ exports.MatterControllerNotWiredError = require_addon.MatterControllerNotWiredError;
7
+ exports.StubMatterController = require_addon.StubMatterController;
8
+ exports.buildConnectionFormSchema = require_addon.buildConnectionFormSchema;
9
+ exports.buildMatterNodeCandidate = require_addon.buildMatterNodeCandidate;
10
+ exports.createMatterController = require_addon.createMatterController;
11
+ exports.endpointLabel = require_addon.endpointLabel;
12
+ exports.endpointNativeId = require_addon.endpointNativeId;
13
+ exports.isValidPairingCode = require_addon.isValidPairingCode;
14
+ exports.mapMatterEndpointToCamStack = require_addon.mapMatterEndpointToCamStack;
15
+ exports.matterAddonConfigSchema = require_addon.matterAddonConfigSchema;
16
+ exports.matterConnectionSchema = require_addon.matterConnectionSchema;
17
+ exports.parsePairingCode = require_addon.parsePairingCode;
18
+ exports.settingsToMatterConnection = require_addon.settingsToMatterConnection;
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { MatterBrokerAddon, a as parsePairingCode, c as matterConnectionSchema, d as endpointLabel, f as mapMatterEndpointToCamStack, h as createMatterController, i as isValidPairingCode, l as settingsToMatterConnection, m as StubMatterController, n as endpointNativeId, o as buildConnectionFormSchema, p as MatterControllerNotWiredError, r as InvalidPairingCodeError, s as matterAddonConfigSchema, t as buildMatterNodeCandidate, u as MatterClusterId } from "./addon.mjs";
2
+ export { InvalidPairingCodeError, MatterBrokerAddon, MatterClusterId, MatterControllerNotWiredError, StubMatterController, buildConnectionFormSchema, buildMatterNodeCandidate, createMatterController, endpointLabel, endpointNativeId, isValidPairingCode, mapMatterEndpointToCamStack, matterAddonConfigSchema, matterConnectionSchema, parsePairingCode, settingsToMatterConnection };
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@camstack/addon-matter-broker",
3
+ "version": "0.1.1",
4
+ "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
+ "keywords": [
6
+ "camstack",
7
+ "addon",
8
+ "camstack-addon",
9
+ "matter",
10
+ "matter.js",
11
+ "broker",
12
+ "commissioning"
13
+ ],
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/camstack/server"
18
+ },
19
+ "main": "./dist/index.js",
20
+ "module": "./dist/index.mjs",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.mjs",
26
+ "require": "./dist/index.js"
27
+ },
28
+ "./package.json": "./package.json"
29
+ },
30
+ "camstack": {
31
+ "displayName": "Matter Broker",
32
+ "addons": [
33
+ {
34
+ "id": "matter-broker",
35
+ "category": "providers",
36
+ "name": "Matter",
37
+ "version": "0.1.0",
38
+ "description": "Own a Matter fabric and broker commissioned Matter nodes into CamStack (commission via QR / pairing code; map endpoints to typed device caps)",
39
+ "entry": "./dist/addon.js",
40
+ "icon": "assets/icon.svg",
41
+ "color": "#3b6ea5",
42
+ "instanceMode": "unique",
43
+ "brokerKind": "matter",
44
+ "execution": {
45
+ "placement": "hub-only"
46
+ },
47
+ "capabilities": [
48
+ {
49
+ "name": "device-provider"
50
+ },
51
+ {
52
+ "name": "broker"
53
+ },
54
+ {
55
+ "name": "device-adoption"
56
+ }
57
+ ]
58
+ }
59
+ ]
60
+ },
61
+ "files": [
62
+ "dist",
63
+ "assets"
64
+ ],
65
+ "scripts": {
66
+ "build": "vite build",
67
+ "dev": "vite build --watch",
68
+ "typecheck": "tsc --noEmit",
69
+ "test": "vitest run",
70
+ "publish": "npm publish --access public"
71
+ },
72
+ "dependencies": {
73
+ "@matter/main": "^0.17.3",
74
+ "@matter/nodejs": "^0.17.3"
75
+ },
76
+ "peerDependencies": {
77
+ "@camstack/types": "*",
78
+ "zod": "^4.3.6"
79
+ },
80
+ "devDependencies": {
81
+ "@camstack/types": "*",
82
+ "typescript": "~6.0.3",
83
+ "vite": "^8.0.11",
84
+ "vitest": "^2.0.0",
85
+ "zod": "^4.3.6"
86
+ }
87
+ }