@camstack/server 1.2.780 → 1.2.781

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/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.781] - 2026-11-06
11
+
12
+ ### Changed
13
+
14
+ - A runner that hosts its own provider of a collection capability no longer answers a call pinned to another addon, which left the Home Assistant export target Unconfigured
15
+ - A forked addon asking a collection capability's list method with an explicit addonId now gets only that addon's rows, not every provider's, so the Home Assistant export no longer mistakes another integration's account for its broker
16
+
10
17
  ## [1.2.780] - 2026-11-06
11
18
 
12
19
  ### Changed
@@ -135,6 +135,9 @@ async function aggregateCollectionCall(reg, capName, method, args) {
135
135
  return null;
136
136
  if (!exports.COLLECTION_ARRAY_METHODS.get(capName)?.includes(method))
137
137
  return null;
138
+ // A pinned call is `pinnedCollectionCall`'s, never the union's.
139
+ if (addonPinOf(reg, capName, method, args) !== null)
140
+ return null;
138
141
  if (reg.getCollectionEntries(capName).length === 0)
139
142
  return null;
140
143
  const aggregate = resolveCollectionProvider(reg, capName, undefined);
@@ -235,17 +238,22 @@ async function pinnedDeviceCollectionCall(reg, capName, method, args) {
235
238
  * DELIBERATELY BOGUS addonId — refused if the selector routes, answered `null`
236
239
  * if it is discarded. It came back `null`.
237
240
  *
238
- * Not an array method (that contract is the union) and not a non-collection cap
239
- * (there `addonId` is provider DATA: `addons.getLogs({addonId})` names the addon
241
+ * An ARRAY method pins too, exactly as the tRPC mount does
242
+ * ({@link resolveCollectionProvider}: "addonId set → that addon's provider
243
+ * directly"): without a selector its contract is the fan-out union, WITH one it
244
+ * is that provider's own rows. The child→parent path used to answer the union
245
+ * for a pinned array call, so a forked export asking
246
+ * `integrationInstances.listInstances({ addonId })` got every integration's
247
+ * instances back and took another integration's `account` row for its broker.
248
+ *
249
+ * Never a non-collection cap (there `addonId` is provider DATA: `addons.getLogs({addonId})` names the addon
240
250
  * whose logs you want, it does not name a provider).
241
251
  */
242
- function addonPinOf(reg, capName, method, args) {
252
+ function addonPinOf(reg, capName, _method, args) {
243
253
  if (!reg)
244
254
  return null;
245
255
  if (!isGlobalCollection(reg, capName))
246
256
  return null;
247
- if (exports.COLLECTION_ARRAY_METHODS.get(capName)?.includes(method) === true)
248
- return null;
249
257
  if (args === null || typeof args !== 'object' || Array.isArray(args))
250
258
  return null;
251
259
  const addonId = args['addonId'];
@@ -277,10 +285,11 @@ function addonPinOf(reg, capName, method, args) {
277
285
  * rows.
278
286
  *
279
287
  * Mirrors the tRPC branch exactly, including what it does NOT do:
280
- * - ARRAY methods are never rerouted — their contract is the fan-out union
281
- * ({@link aggregateCollectionCall}), and a pin that turns a provider's
282
- * absence into a throw is what took `broker.list` from "fewer rows" to
283
- * `BAD_REQUEST` and the operator from "one instance" to "no instance".
288
+ * - An ARRAY method with no selector is the fan-out union
289
+ * ({@link aggregateCollectionCall}); WITH a selector it is that provider's
290
+ * own rows, and a selector naming no registered provider is refused, as on
291
+ * the tRPC mount. A caller that may ask before the provider registers treats
292
+ * the refusal as "not known yet" (D49), never as "no instance".
284
293
  * - Only the EXPLICIT top-level selector routes. No nested recovery here:
285
294
  * that heuristic reads a domain payload, and this path has no schema.
286
295
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.780",
3
+ "version": "1.2.781",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -65,35 +65,7 @@
65
65
  "@camstack/addon-agent-ui"
66
66
  ],
67
67
  "requires": {
68
- "addons": {
69
- "@camstack/addon-admin-ui": ">=1.2.595",
70
- "@camstack/addon-agent-ui": ">=1.2.330",
71
- "@camstack/addon-google-services": ">=0.2.39",
72
- "@camstack/addon-import-alexa": ">=0.2.190",
73
- "@camstack/addon-matter-broker": ">=0.2.160",
74
- "@camstack/addon-mqtt-broker": ">=1.2.152",
75
- "@camstack/addon-post-analysis": ">=1.2.671",
76
- "@camstack/addon-provider-amcrest": ">=0.2.167",
77
- "@camstack/addon-provider-bosch": ">=0.1.39",
78
- "@camstack/addon-provider-dreame": ">=0.2.166",
79
- "@camstack/addon-provider-dreo": ">=0.2.158",
80
- "@camstack/addon-provider-enpal": ">=0.1.11",
81
- "@camstack/addon-provider-esphome": ">=0.1.14",
82
- "@camstack/addon-provider-gree": ">=0.2.153",
83
- "@camstack/addon-provider-hikvision": ">=1.2.183",
84
- "@camstack/addon-provider-homeassistant": ">=1.2.664",
85
- "@camstack/addon-provider-mqtt-ha": ">=0.1.39",
86
- "@camstack/addon-provider-petkit": ">=0.2.161",
87
- "@camstack/addon-provider-rademacher": ">=0.2.160",
88
- "@camstack/addon-provider-reolink": ">=1.2.230",
89
- "@camstack/addon-provider-rtsp": ">=1.2.152",
90
- "@camstack/addon-provider-tuya": ">=0.2.152",
91
- "@camstack/addon-provider-unifi": ">=0.2.158",
92
- "@camstack/addon-provider-unraid": ">=0.2.159",
93
- "@camstack/addon-provider-velux": ">=0.2.160",
94
- "@camstack/addon-provider-wyze": ">=0.2.165",
95
- "@camstack/addon-smtp-nodemailer": ">=1.2.149"
96
- },
68
+ "addons": {},
97
69
  "wrapper": {
98
70
  "desktop": ">=0.0.1",
99
71
  "image": ">=0.0.1"
@@ -7879,7 +7879,12 @@ function localProviderLink(resolver, observerOpts) {
7879
7879
  const pinnedNodeId = (0, _camstack_types_addon.readNodePin)(op.context);
7880
7880
  if (pinnedNodeId !== void 0 && pinnedNodeId !== localBase) return next(opWithDefaults);
7881
7881
  }
7882
- const provider = resolver.getByName(parsed.capName);
7882
+ let provider;
7883
+ const pinnedAddonId = liftRoutingHints(op.input).addonId;
7884
+ if (pinnedAddonId !== void 0 && resolver.getByAddonId !== void 0 && Object.hasOwn(_camstack_types_addon.COLLECTION_ARRAY_METHODS, parsed.capName)) {
7885
+ provider = resolver.getByAddonId(parsed.capName, pinnedAddonId);
7886
+ if (!provider) return next(opWithDefaults);
7887
+ } else provider = resolver.getByName(parsed.capName);
7883
7888
  if (!provider || typeof provider !== "object") return next(opWithDefaults);
7884
7889
  const fn = Reflect.get(provider, parsed.method);
7885
7890
  if (typeof fn !== "function") return next(opWithDefaults);
@@ -11008,6 +11013,9 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
11008
11013
  const regs = getRegistries(nodeId);
11009
11014
  const workerResolver = {
11010
11015
  localNodeId: nodeId,
11016
+ getByAddonId(capabilityName, pinnedAddonId) {
11017
+ return regs.byAddonId.get(capabilityName)?.get(pinnedAddonId) ?? null;
11018
+ },
11011
11019
  getByName(capabilityName) {
11012
11020
  const preferred = regs.preferred.get(capabilityName);
11013
11021
  if (preferred) {
@@ -1,5 +1,5 @@
1
1
  import { register } from "node:module";
2
- import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, ReadinessTimeoutError, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeCustomActions, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, findMigrationsBlocked, isCollectionArrayMethodName, isProviderOptionalMethodName, maskUrlCredentials, nodeIdOfScopedKey, normalizeAddonInitResult, readErrorI18n, readNodePin, resolveDeviceSettings, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, withCapInputDefaults } from "@camstack/types/addon";
2
+ import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, COLLECTION_ARRAY_METHODS, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, ReadinessTimeoutError, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeCustomActions, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, findMigrationsBlocked, isCollectionArrayMethodName, isProviderOptionalMethodName, maskUrlCredentials, nodeIdOfScopedKey, normalizeAddonInitResult, readErrorI18n, readNodePin, resolveDeviceSettings, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, withCapInputDefaults } from "@camstack/types/addon";
3
3
  import * as fs$1 from "node:fs";
4
4
  import fs, { createReadStream, createWriteStream, existsSync, readFileSync, readdirSync } from "node:fs";
5
5
  import * as path from "node:path";
@@ -7824,7 +7824,12 @@ function localProviderLink(resolver, observerOpts) {
7824
7824
  const pinnedNodeId = readNodePin(op.context);
7825
7825
  if (pinnedNodeId !== void 0 && pinnedNodeId !== localBase) return next(opWithDefaults);
7826
7826
  }
7827
- const provider = resolver.getByName(parsed.capName);
7827
+ let provider;
7828
+ const pinnedAddonId = liftRoutingHints(op.input).addonId;
7829
+ if (pinnedAddonId !== void 0 && resolver.getByAddonId !== void 0 && Object.hasOwn(COLLECTION_ARRAY_METHODS, parsed.capName)) {
7830
+ provider = resolver.getByAddonId(parsed.capName, pinnedAddonId);
7831
+ if (!provider) return next(opWithDefaults);
7832
+ } else provider = resolver.getByName(parsed.capName);
7828
7833
  if (!provider || typeof provider !== "object") return next(opWithDefaults);
7829
7834
  const fn = Reflect.get(provider, parsed.method);
7830
7835
  if (typeof fn !== "function") return next(opWithDefaults);
@@ -10953,6 +10958,9 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
10953
10958
  const regs = getRegistries(nodeId);
10954
10959
  const workerResolver = {
10955
10960
  localNodeId: nodeId,
10961
+ getByAddonId(capabilityName, pinnedAddonId) {
10962
+ return regs.byAddonId.get(capabilityName)?.get(pinnedAddonId) ?? null;
10963
+ },
10956
10964
  getByName(capabilityName) {
10957
10965
  const preferred = regs.preferred.get(capabilityName);
10958
10966
  if (preferred) {
@@ -17571,6 +17571,22 @@ function createBrokerDeviceManagerApi(opts) {
17571
17571
  return deviceApi;
17572
17572
  }
17573
17573
  //#endregion
17574
+ //#region src/kernel/transport/cap-routing-hints.ts
17575
+ /** Lift {@link CapRoutingHints} from a call's args. Never throws. */
17576
+ function liftRoutingHints(args) {
17577
+ if (args === null || typeof args !== "object" || Array.isArray(args)) return {};
17578
+ const nodeId = Reflect.get(args, "nodeId");
17579
+ const addonId = Reflect.get(args, "addonId");
17580
+ const provider = Reflect.get(args, "provider");
17581
+ const deviceId = Reflect.get(args, "deviceId");
17582
+ return {
17583
+ ...typeof nodeId === "string" && nodeId.length > 0 ? { nodeId } : {},
17584
+ ...typeof addonId === "string" && addonId.length > 0 ? { addonId } : {},
17585
+ ...typeof provider === "string" && provider.length > 0 ? { provider } : {},
17586
+ ...typeof deviceId === "number" && Number.isFinite(deviceId) ? { deviceId } : {}
17587
+ };
17588
+ }
17589
+ //#endregion
17574
17590
  //#region src/kernel/moleculer/resilient-cap-call.ts
17575
17591
  /** Moleculer error `type` values meaning "the service is not (yet) routable". */
17576
17592
  var DISCOVERY_ERROR_TYPES = new Set(["SERVICE_NOT_FOUND", "SERVICE_NOT_AVAILABLE"]);
@@ -20606,22 +20622,6 @@ function buildCapChildIndex(entries) {
20606
20622
  return new MapCapChildIndex(deviceOwners, singletons);
20607
20623
  }
20608
20624
  //#endregion
20609
- //#region src/kernel/transport/cap-routing-hints.ts
20610
- /** Lift {@link CapRoutingHints} from a call's args. Never throws. */
20611
- function liftRoutingHints(args) {
20612
- if (args === null || typeof args !== "object" || Array.isArray(args)) return {};
20613
- const nodeId = Reflect.get(args, "nodeId");
20614
- const addonId = Reflect.get(args, "addonId");
20615
- const provider = Reflect.get(args, "provider");
20616
- const deviceId = Reflect.get(args, "deviceId");
20617
- return {
20618
- ...typeof nodeId === "string" && nodeId.length > 0 ? { nodeId } : {},
20619
- ...typeof addonId === "string" && addonId.length > 0 ? { addonId } : {},
20620
- ...typeof provider === "string" && provider.length > 0 ? { provider } : {},
20621
- ...typeof deviceId === "number" && Number.isFinite(deviceId) ? { deviceId } : {}
20622
- };
20623
- }
20624
- //#endregion
20625
20625
  //#region src/kernel/transport/claimed-get-status.ts
20626
20626
  var GET_STATUS_METHOD = "getStatus";
20627
20627
  /** The device a `getStatus` is about, or `undefined` when the call is not one. */
@@ -22348,7 +22348,12 @@ function localProviderLink(resolver, observerOpts) {
22348
22348
  const pinnedNodeId = (0, _camstack_types_addon.readNodePin)(op.context);
22349
22349
  if (pinnedNodeId !== void 0 && pinnedNodeId !== localBase) return next(opWithDefaults);
22350
22350
  }
22351
- const provider = resolver.getByName(parsed.capName);
22351
+ let provider;
22352
+ const pinnedAddonId = liftRoutingHints(op.input).addonId;
22353
+ if (pinnedAddonId !== void 0 && resolver.getByAddonId !== void 0 && Object.hasOwn(_camstack_types_addon.COLLECTION_ARRAY_METHODS, parsed.capName)) {
22354
+ provider = resolver.getByAddonId(parsed.capName, pinnedAddonId);
22355
+ if (!provider) return next(opWithDefaults);
22356
+ } else provider = resolver.getByName(parsed.capName);
22352
22357
  if (!provider || typeof provider !== "object") return next(opWithDefaults);
22353
22358
  const fn = Reflect.get(provider, parsed.method);
22354
22359
  if (typeof fn !== "function") return next(opWithDefaults);
@@ -24328,6 +24333,9 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
24328
24333
  const regs = getRegistries(nodeId);
24329
24334
  const workerResolver = {
24330
24335
  localNodeId: nodeId,
24336
+ getByAddonId(capabilityName, pinnedAddonId) {
24337
+ return regs.byAddonId.get(capabilityName)?.get(pinnedAddonId) ?? null;
24338
+ },
24331
24339
  getByName(capabilityName) {
24332
24340
  const preferred = regs.preferred.get(capabilityName);
24333
24341
  if (preferred) {
@@ -52,7 +52,7 @@ import * as path$1 from "node:path";
52
52
  import { basename, dirname, isAbsolute, join, resolve } from "node:path";
53
53
  import * as util from "node:util";
54
54
  import { promisify } from "node:util";
55
- import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, maskUrlCredentials, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, scrubKnownSecrets, sleep, withCapInputDefaults } from "@camstack/types/addon";
55
+ import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, COLLECTION_ARRAY_METHODS, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, maskUrlCredentials, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, scrubKnownSecrets, sleep, withCapInputDefaults } from "@camstack/types/addon";
56
56
  import * as os$1 from "node:os";
57
57
  import { tmpdir } from "node:os";
58
58
  import { pathToFileURL } from "node:url";
@@ -17567,6 +17567,22 @@ function createBrokerDeviceManagerApi(opts) {
17567
17567
  return deviceApi;
17568
17568
  }
17569
17569
  //#endregion
17570
+ //#region src/kernel/transport/cap-routing-hints.ts
17571
+ /** Lift {@link CapRoutingHints} from a call's args. Never throws. */
17572
+ function liftRoutingHints(args) {
17573
+ if (args === null || typeof args !== "object" || Array.isArray(args)) return {};
17574
+ const nodeId = Reflect.get(args, "nodeId");
17575
+ const addonId = Reflect.get(args, "addonId");
17576
+ const provider = Reflect.get(args, "provider");
17577
+ const deviceId = Reflect.get(args, "deviceId");
17578
+ return {
17579
+ ...typeof nodeId === "string" && nodeId.length > 0 ? { nodeId } : {},
17580
+ ...typeof addonId === "string" && addonId.length > 0 ? { addonId } : {},
17581
+ ...typeof provider === "string" && provider.length > 0 ? { provider } : {},
17582
+ ...typeof deviceId === "number" && Number.isFinite(deviceId) ? { deviceId } : {}
17583
+ };
17584
+ }
17585
+ //#endregion
17570
17586
  //#region src/kernel/moleculer/resilient-cap-call.ts
17571
17587
  /** Moleculer error `type` values meaning "the service is not (yet) routable". */
17572
17588
  var DISCOVERY_ERROR_TYPES = new Set(["SERVICE_NOT_FOUND", "SERVICE_NOT_AVAILABLE"]);
@@ -20602,22 +20618,6 @@ function buildCapChildIndex(entries) {
20602
20618
  return new MapCapChildIndex(deviceOwners, singletons);
20603
20619
  }
20604
20620
  //#endregion
20605
- //#region src/kernel/transport/cap-routing-hints.ts
20606
- /** Lift {@link CapRoutingHints} from a call's args. Never throws. */
20607
- function liftRoutingHints(args) {
20608
- if (args === null || typeof args !== "object" || Array.isArray(args)) return {};
20609
- const nodeId = Reflect.get(args, "nodeId");
20610
- const addonId = Reflect.get(args, "addonId");
20611
- const provider = Reflect.get(args, "provider");
20612
- const deviceId = Reflect.get(args, "deviceId");
20613
- return {
20614
- ...typeof nodeId === "string" && nodeId.length > 0 ? { nodeId } : {},
20615
- ...typeof addonId === "string" && addonId.length > 0 ? { addonId } : {},
20616
- ...typeof provider === "string" && provider.length > 0 ? { provider } : {},
20617
- ...typeof deviceId === "number" && Number.isFinite(deviceId) ? { deviceId } : {}
20618
- };
20619
- }
20620
- //#endregion
20621
20621
  //#region src/kernel/transport/claimed-get-status.ts
20622
20622
  var GET_STATUS_METHOD = "getStatus";
20623
20623
  /** The device a `getStatus` is about, or `undefined` when the call is not one. */
@@ -22344,7 +22344,12 @@ function localProviderLink(resolver, observerOpts) {
22344
22344
  const pinnedNodeId = readNodePin(op.context);
22345
22345
  if (pinnedNodeId !== void 0 && pinnedNodeId !== localBase) return next(opWithDefaults);
22346
22346
  }
22347
- const provider = resolver.getByName(parsed.capName);
22347
+ let provider;
22348
+ const pinnedAddonId = liftRoutingHints(op.input).addonId;
22349
+ if (pinnedAddonId !== void 0 && resolver.getByAddonId !== void 0 && Object.hasOwn(COLLECTION_ARRAY_METHODS, parsed.capName)) {
22350
+ provider = resolver.getByAddonId(parsed.capName, pinnedAddonId);
22351
+ if (!provider) return next(opWithDefaults);
22352
+ } else provider = resolver.getByName(parsed.capName);
22348
22353
  if (!provider || typeof provider !== "object") return next(opWithDefaults);
22349
22354
  const fn = Reflect.get(provider, parsed.method);
22350
22355
  if (typeof fn !== "function") return next(opWithDefaults);
@@ -24324,6 +24329,9 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
24324
24329
  const regs = getRegistries(nodeId);
24325
24330
  const workerResolver = {
24326
24331
  localNodeId: nodeId,
24332
+ getByAddonId(capabilityName, pinnedAddonId) {
24333
+ return regs.byAddonId.get(capabilityName)?.get(pinnedAddonId) ?? null;
24334
+ },
24327
24335
  getByName(capabilityName) {
24328
24336
  const preferred = regs.preferred.get(capabilityName);
24329
24337
  if (preferred) {
@@ -30,6 +30,14 @@ export interface LocalProviderResolver {
30
30
  * never pin a cap they themselves host.
31
31
  */
32
32
  localNodeId?: string;
33
+ /**
34
+ * The provider of `capabilityName` that THIS process registered for `addonId`,
35
+ * or `null` when that addon has none here. Lets {@link localProviderLink}
36
+ * honour the `{ addonId }` pin of a global collection cap: a runner that
37
+ * co-hosts its own provider must not answer a call pinned to another addon.
38
+ * Omit for resolvers that never host a collection provider (pin ignored).
39
+ */
40
+ getByAddonId?(capabilityName: string, addonId: string): unknown | null;
33
41
  }
34
42
  /**
35
43
  * A single tRPC cap call observation. Recorded by `localProviderLink`
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.780",
3
+ "version": "1.2.781",
4
4
  "description": "CamStack builtins — shipped inside @camstack/server (generated, do not edit)",
5
5
  "license": "MIT",
6
6
  "camstack": {