@camstack/addon-agent-ui 1.2.18 → 1.2.20
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/addon.js +45 -3
- 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. */
|
|
@@ -19093,7 +19117,14 @@ targets: array(object({
|
|
|
19093
19117
|
"sleeping",
|
|
19094
19118
|
"unreachable",
|
|
19095
19119
|
"waking"
|
|
19096
|
-
]).nullable()
|
|
19120
|
+
]).nullable(),
|
|
19121
|
+
/** A battery camera (whatever its current state). An AWAKE battery
|
|
19122
|
+
* camera is deliberately NOT recaptured on the poll cadence — every
|
|
19123
|
+
* capture is a camera hit that would keep it out of sleep — so its
|
|
19124
|
+
* cached frame legitimately ages past the currency ceiling while
|
|
19125
|
+
* nothing is streaming. A surface must keep painting it (a fresh
|
|
19126
|
+
* frame is captured at each wake), not blank to "unavailable". */
|
|
19127
|
+
battery: boolean()
|
|
19097
19128
|
})));
|
|
19098
19129
|
/**
|
|
19099
19130
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
@@ -30269,6 +30300,12 @@ Object.freeze({
|
|
|
30269
30300
|
addonId: null,
|
|
30270
30301
|
access: "view"
|
|
30271
30302
|
},
|
|
30303
|
+
"snapshot.getDebugState": {
|
|
30304
|
+
capName: "snapshot",
|
|
30305
|
+
capScope: "device",
|
|
30306
|
+
addonId: null,
|
|
30307
|
+
access: "view"
|
|
30308
|
+
},
|
|
30272
30309
|
"snapshot.getSnapshot": {
|
|
30273
30310
|
capName: "snapshot",
|
|
30274
30311
|
capScope: "device",
|
|
@@ -32866,6 +32903,11 @@ Object.freeze({
|
|
|
32866
32903
|
form: "single",
|
|
32867
32904
|
optional: false
|
|
32868
32905
|
}],
|
|
32906
|
+
"snapshot.getDebugState": [{
|
|
32907
|
+
name: "deviceId",
|
|
32908
|
+
form: "single",
|
|
32909
|
+
optional: false
|
|
32910
|
+
}],
|
|
32869
32911
|
"snapshot.getSnapshot": [{
|
|
32870
32912
|
name: "deviceId",
|
|
32871
32913
|
form: "single",
|
|
@@ -33537,7 +33579,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
33537
33579
|
capability: adminUiCapability,
|
|
33538
33580
|
provider: {
|
|
33539
33581
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
33540
|
-
getVersion: async () => ({ version: "1.2.
|
|
33582
|
+
getVersion: async () => ({ version: "1.2.20" })
|
|
33541
33583
|
}
|
|
33542
33584
|
}];
|
|
33543
33585
|
}
|