@camstack/addon-agent-ui 1.2.18 → 1.2.19

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 +37 -2
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -19054,7 +19054,31 @@ DeviceType.Camera, method(object({
19054
19054
  lastCapturedAt: number().nullable(),
19055
19055
  cacheAgeMs: number().nullable(),
19056
19056
  etag: string().nullable()
19057
- }))), systemMethod(object({
19057
+ }))), systemMethod(object({ deviceId: number() }), object({
19058
+ /** The battery slice as read, or null when the device has none. */
19059
+ battery: object({
19060
+ sleeping: boolean(),
19061
+ lastUpdated: number(),
19062
+ lastContactAt: number().optional()
19063
+ }).nullable(),
19064
+ /** The resolved snapshot state (what the overlay decision used). */
19065
+ state: object({
19066
+ isBattery: boolean(),
19067
+ reason: _enum([
19068
+ "disabled",
19069
+ "sleeping",
19070
+ "unreachable",
19071
+ "waking"
19072
+ ]).nullable()
19073
+ }),
19074
+ /** The cached frame behind the next paint. */
19075
+ frame: object({
19076
+ capturedAt: number().nullable(),
19077
+ ageMs: number().nullable()
19078
+ }),
19079
+ /** A wake window is currently open (the Waking overlay's source). */
19080
+ waking: boolean()
19081
+ })), systemMethod(object({
19058
19082
  /** The tiles a surface is actually rendering. One entry per (device,
19059
19083
  * width) the caller will paint — the width is snapped to the server's
19060
19084
  * ladder and becomes part of the link's SIGNED identity. */
@@ -30269,6 +30293,12 @@ Object.freeze({
30269
30293
  addonId: null,
30270
30294
  access: "view"
30271
30295
  },
30296
+ "snapshot.getDebugState": {
30297
+ capName: "snapshot",
30298
+ capScope: "device",
30299
+ addonId: null,
30300
+ access: "view"
30301
+ },
30272
30302
  "snapshot.getSnapshot": {
30273
30303
  capName: "snapshot",
30274
30304
  capScope: "device",
@@ -32866,6 +32896,11 @@ Object.freeze({
32866
32896
  form: "single",
32867
32897
  optional: false
32868
32898
  }],
32899
+ "snapshot.getDebugState": [{
32900
+ name: "deviceId",
32901
+ form: "single",
32902
+ optional: false
32903
+ }],
32869
32904
  "snapshot.getSnapshot": [{
32870
32905
  name: "deviceId",
32871
32906
  form: "single",
@@ -33537,7 +33572,7 @@ var AgentUIAddon = class extends BaseAddon {
33537
33572
  capability: adminUiCapability,
33538
33573
  provider: {
33539
33574
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
33540
- getVersion: async () => ({ version: "1.2.18" })
33575
+ getVersion: async () => ({ version: "1.2.19" })
33541
33576
  }
33542
33577
  }];
33543
33578
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",