@camstack/addon-tailscale 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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-DbpUYHfo.js");
27
+ const require_dist = require("../dist-CHxximRh.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-jVhbn7qz.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-Dyfj9Ljl.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -19094,7 +19094,31 @@ DeviceType.Camera, method(object({
19094
19094
  lastCapturedAt: number().nullable(),
19095
19095
  cacheAgeMs: number().nullable(),
19096
19096
  etag: string().nullable()
19097
- }))), systemMethod(object({
19097
+ }))), systemMethod(object({ deviceId: number() }), object({
19098
+ /** The battery slice as read, or null when the device has none. */
19099
+ battery: object({
19100
+ sleeping: boolean(),
19101
+ lastUpdated: number(),
19102
+ lastContactAt: number().optional()
19103
+ }).nullable(),
19104
+ /** The resolved snapshot state (what the overlay decision used). */
19105
+ state: object({
19106
+ isBattery: boolean(),
19107
+ reason: _enum([
19108
+ "disabled",
19109
+ "sleeping",
19110
+ "unreachable",
19111
+ "waking"
19112
+ ]).nullable()
19113
+ }),
19114
+ /** The cached frame behind the next paint. */
19115
+ frame: object({
19116
+ capturedAt: number().nullable(),
19117
+ ageMs: number().nullable()
19118
+ }),
19119
+ /** A wake window is currently open (the Waking overlay's source). */
19120
+ waking: boolean()
19121
+ })), systemMethod(object({
19098
19122
  /** The tiles a surface is actually rendering. One entry per (device,
19099
19123
  * width) the caller will paint — the width is snapped to the server's
19100
19124
  * ladder and becomes part of the link's SIGNED identity. */
@@ -30370,6 +30394,12 @@ Object.freeze({
30370
30394
  addonId: null,
30371
30395
  access: "view"
30372
30396
  },
30397
+ "snapshot.getDebugState": {
30398
+ capName: "snapshot",
30399
+ capScope: "device",
30400
+ addonId: null,
30401
+ access: "view"
30402
+ },
30373
30403
  "snapshot.getSnapshot": {
30374
30404
  capName: "snapshot",
30375
30405
  capScope: "device",
@@ -32967,6 +32997,11 @@ Object.freeze({
32967
32997
  form: "single",
32968
32998
  optional: false
32969
32999
  }],
33000
+ "snapshot.getDebugState": [{
33001
+ name: "deviceId",
33002
+ form: "single",
33003
+ optional: false
33004
+ }],
32970
33005
  "snapshot.getSnapshot": [{
32971
33006
  name: "deviceId",
32972
33007
  form: "single",
@@ -19094,7 +19094,31 @@ DeviceType.Camera, method(object({
19094
19094
  lastCapturedAt: number().nullable(),
19095
19095
  cacheAgeMs: number().nullable(),
19096
19096
  etag: string().nullable()
19097
- }))), systemMethod(object({
19097
+ }))), systemMethod(object({ deviceId: number() }), object({
19098
+ /** The battery slice as read, or null when the device has none. */
19099
+ battery: object({
19100
+ sleeping: boolean(),
19101
+ lastUpdated: number(),
19102
+ lastContactAt: number().optional()
19103
+ }).nullable(),
19104
+ /** The resolved snapshot state (what the overlay decision used). */
19105
+ state: object({
19106
+ isBattery: boolean(),
19107
+ reason: _enum([
19108
+ "disabled",
19109
+ "sleeping",
19110
+ "unreachable",
19111
+ "waking"
19112
+ ]).nullable()
19113
+ }),
19114
+ /** The cached frame behind the next paint. */
19115
+ frame: object({
19116
+ capturedAt: number().nullable(),
19117
+ ageMs: number().nullable()
19118
+ }),
19119
+ /** A wake window is currently open (the Waking overlay's source). */
19120
+ waking: boolean()
19121
+ })), systemMethod(object({
19098
19122
  /** The tiles a surface is actually rendering. One entry per (device,
19099
19123
  * width) the caller will paint — the width is snapped to the server's
19100
19124
  * ladder and becomes part of the link's SIGNED identity. */
@@ -30370,6 +30394,12 @@ Object.freeze({
30370
30394
  addonId: null,
30371
30395
  access: "view"
30372
30396
  },
30397
+ "snapshot.getDebugState": {
30398
+ capName: "snapshot",
30399
+ capScope: "device",
30400
+ addonId: null,
30401
+ access: "view"
30402
+ },
30373
30403
  "snapshot.getSnapshot": {
30374
30404
  capName: "snapshot",
30375
30405
  capScope: "device",
@@ -32967,6 +32997,11 @@ Object.freeze({
32967
32997
  form: "single",
32968
32998
  optional: false
32969
32999
  }],
33000
+ "snapshot.getDebugState": [{
33001
+ name: "deviceId",
33002
+ form: "single",
33003
+ optional: false
33004
+ }],
32970
33005
  "snapshot.getSnapshot": [{
32971
33006
  name: "deviceId",
32972
33007
  form: "single",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DbpUYHfo.js");
5
+ const require_dist = require("../dist-CHxximRh.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/ingress/tailscale-cli.ts
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-jVhbn7qz.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-Dyfj9Ljl.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { execFile } from "node:child_process";
4
4
  import { promisify } from "node:util";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",