@camstack/addon-agent-ui 1.2.63 → 1.2.65

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.
Files changed (2) hide show
  1. package/dist/addon.js +21 -2
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -12550,7 +12550,26 @@ var DiscoveryCandidateSchema = object({
12550
12550
  * identity ahead of adoption. Rendering metadata (unit, precision)
12551
12551
  * flows live through the cap STATUS SLICE after adoption.
12552
12552
  */
12553
- sourceInfo: SourceInfoSchema.optional()
12553
+ sourceInfo: SourceInfoSchema.optional(),
12554
+ /**
12555
+ * Set when this candidate is a device the provider ALREADY owns.
12556
+ *
12557
+ * A scan cannot generally produce the identity a device was onboarded under
12558
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12559
+ * comparison never matches and an owned device looks addable. Re-adopting one
12560
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12561
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12562
+ * three child cameras offline for four hours.
12563
+ *
12564
+ * A provider that can recognise its own devices says so here. Absent means
12565
+ * "not recognised", which is not the same as "known to be new" — a provider
12566
+ * that cannot tell simply never sets it.
12567
+ */
12568
+ alreadyOnboarded: boolean().optional(),
12569
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12570
+ onboardedDeviceId: number().optional(),
12571
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12572
+ onboardedName: string().optional()
12554
12573
  });
12555
12574
  /**
12556
12575
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -37340,7 +37359,7 @@ var AgentUIAddon = class extends BaseAddon {
37340
37359
  capability: adminUiCapability,
37341
37360
  provider: {
37342
37361
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
37343
- getVersion: async () => ({ version: "1.2.63" })
37362
+ getVersion: async () => ({ version: "1.2.65" })
37344
37363
  }
37345
37364
  }];
37346
37365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.63",
3
+ "version": "1.2.65",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",