@camstack/addon-provider-dreo 0.2.93 → 0.2.95

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 CHANGED
@@ -16523,6 +16523,7 @@ var NcSystemEventKindSchema = _enum([
16523
16523
  "addon-crash-loop",
16524
16524
  "addon-update-available",
16525
16525
  "server-update-available",
16526
+ "wrapper-update-available",
16526
16527
  "alarm-triggered",
16527
16528
  "alarm-armed",
16528
16529
  "alarm-disarmed",
@@ -22079,6 +22080,53 @@ var ImageContractSchema = object({
22079
22080
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22080
22081
  message: string()
22081
22082
  });
22083
+ /**
22084
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22085
+ * produced it.
22086
+ *
22087
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22088
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22089
+ * for a `docker` shell and says the app restarts into the new build for
22090
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22091
+ * nothing reads is the defect this repo keeps paying for.
22092
+ */
22093
+ var WrapperIdentitySchema = object({
22094
+ kind: _enum([
22095
+ "docker",
22096
+ "electron",
22097
+ "native",
22098
+ "contradictory",
22099
+ "unknown"
22100
+ ]),
22101
+ /** Every probe that ran, in a stable order. Never empty. */
22102
+ evidence: array(object({
22103
+ /** Which probe this row reports. */
22104
+ fact: _enum([
22105
+ "dockerenv-file",
22106
+ "proc-1-cgroup",
22107
+ "platform",
22108
+ "electron-app-version-env"
22109
+ ]),
22110
+ /**
22111
+ * `observed` — this process read it itself. `declared` — the shell told the
22112
+ * process and nothing here can check it. Only the Electron app version is
22113
+ * ever `declared`, and only because a child cannot see its parent.
22114
+ */
22115
+ mode: _enum(["observed", "declared"]),
22116
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22117
+ holds: boolean(),
22118
+ /** What was actually read, verbatim enough for an operator to argue with. */
22119
+ detail: string()
22120
+ })),
22121
+ /**
22122
+ * The version of the SHELL, when the shell has one it can state: the
22123
+ * Electron app version it declared, or the baked seed closure that
22124
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22125
+ * `unknown` — which version belongs to the shell is precisely what is not
22126
+ * known there.
22127
+ */
22128
+ currentVersion: string().nullable()
22129
+ });
22082
22130
  var ServerRollbackInfoSchema = object({
22083
22131
  /** The version that failed (or was manually rolled back). */
22084
22132
  fromVersion: string(),
@@ -22120,7 +22168,13 @@ var ServerPackageStatusSchema = object({
22120
22168
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22121
22169
  * version skew: an older provider's payload simply omits it.
22122
22170
  */
22123
- imageContract: ImageContractSchema.optional()
22171
+ imageContract: ImageContractSchema.optional(),
22172
+ /**
22173
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22174
+ * for version skew: an older provider's payload simply omits it, and an
22175
+ * absent wrapper is unknown — never `native`.
22176
+ */
22177
+ wrapper: WrapperIdentitySchema.optional()
22124
22178
  });
22125
22179
  var ServerUpdateCheckResultSchema = object({
22126
22180
  packageName: string(),
@@ -25880,8 +25934,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25880
25934
  *
25881
25935
  * An **empty array reads NOTHING** — `[]` is an empty page, never
25882
25936
  * "every camera". A request for no devices is a request, not an
25883
- * omission; same contract as `deviceManager.listFleet` and
25884
- * `pipelineAnalytics.listRecentTracks`.
25937
+ * omission; same contract as `deviceManager.listAll`'s `deviceIds`
25938
+ * and `pipelineAnalytics.listRecentTracks`.
25885
25939
  *
25886
25940
  * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
25887
25941
  */
package/dist/addon.mjs CHANGED
@@ -16524,6 +16524,7 @@ var NcSystemEventKindSchema = _enum([
16524
16524
  "addon-crash-loop",
16525
16525
  "addon-update-available",
16526
16526
  "server-update-available",
16527
+ "wrapper-update-available",
16527
16528
  "alarm-triggered",
16528
16529
  "alarm-armed",
16529
16530
  "alarm-disarmed",
@@ -22080,6 +22081,53 @@ var ImageContractSchema = object({
22080
22081
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22081
22082
  message: string()
22082
22083
  });
22084
+ /**
22085
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22086
+ * produced it.
22087
+ *
22088
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22089
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22090
+ * for a `docker` shell and says the app restarts into the new build for
22091
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22092
+ * nothing reads is the defect this repo keeps paying for.
22093
+ */
22094
+ var WrapperIdentitySchema = object({
22095
+ kind: _enum([
22096
+ "docker",
22097
+ "electron",
22098
+ "native",
22099
+ "contradictory",
22100
+ "unknown"
22101
+ ]),
22102
+ /** Every probe that ran, in a stable order. Never empty. */
22103
+ evidence: array(object({
22104
+ /** Which probe this row reports. */
22105
+ fact: _enum([
22106
+ "dockerenv-file",
22107
+ "proc-1-cgroup",
22108
+ "platform",
22109
+ "electron-app-version-env"
22110
+ ]),
22111
+ /**
22112
+ * `observed` — this process read it itself. `declared` — the shell told the
22113
+ * process and nothing here can check it. Only the Electron app version is
22114
+ * ever `declared`, and only because a child cannot see its parent.
22115
+ */
22116
+ mode: _enum(["observed", "declared"]),
22117
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22118
+ holds: boolean(),
22119
+ /** What was actually read, verbatim enough for an operator to argue with. */
22120
+ detail: string()
22121
+ })),
22122
+ /**
22123
+ * The version of the SHELL, when the shell has one it can state: the
22124
+ * Electron app version it declared, or the baked seed closure that
22125
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22126
+ * `unknown` — which version belongs to the shell is precisely what is not
22127
+ * known there.
22128
+ */
22129
+ currentVersion: string().nullable()
22130
+ });
22083
22131
  var ServerRollbackInfoSchema = object({
22084
22132
  /** The version that failed (or was manually rolled back). */
22085
22133
  fromVersion: string(),
@@ -22121,7 +22169,13 @@ var ServerPackageStatusSchema = object({
22121
22169
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22122
22170
  * version skew: an older provider's payload simply omits it.
22123
22171
  */
22124
- imageContract: ImageContractSchema.optional()
22172
+ imageContract: ImageContractSchema.optional(),
22173
+ /**
22174
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22175
+ * for version skew: an older provider's payload simply omits it, and an
22176
+ * absent wrapper is unknown — never `native`.
22177
+ */
22178
+ wrapper: WrapperIdentitySchema.optional()
22125
22179
  });
22126
22180
  var ServerUpdateCheckResultSchema = object({
22127
22181
  packageName: string(),
@@ -25881,8 +25935,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25881
25935
  *
25882
25936
  * An **empty array reads NOTHING** — `[]` is an empty page, never
25883
25937
  * "every camera". A request for no devices is a request, not an
25884
- * omission; same contract as `deviceManager.listFleet` and
25885
- * `pipelineAnalytics.listRecentTracks`.
25938
+ * omission; same contract as `deviceManager.listAll`'s `deviceIds`
25939
+ * and `pipelineAnalytics.listRecentTracks`.
25886
25940
  *
25887
25941
  * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
25888
25942
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.93",
3
+ "version": "0.2.95",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",