@camstack/addon-agent-ui 1.2.98 → 1.2.100

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 +58 -4
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -16145,6 +16145,7 @@ var NcSystemEventKindSchema = _enum([
16145
16145
  "addon-crash-loop",
16146
16146
  "addon-update-available",
16147
16147
  "server-update-available",
16148
+ "wrapper-update-available",
16148
16149
  "alarm-triggered",
16149
16150
  "alarm-armed",
16150
16151
  "alarm-disarmed",
@@ -21661,6 +21662,53 @@ var ImageContractSchema = object({
21661
21662
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21662
21663
  message: string()
21663
21664
  });
21665
+ /**
21666
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21667
+ * produced it.
21668
+ *
21669
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21670
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21671
+ * for a `docker` shell and says the app restarts into the new build for
21672
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21673
+ * nothing reads is the defect this repo keeps paying for.
21674
+ */
21675
+ var WrapperIdentitySchema = object({
21676
+ kind: _enum([
21677
+ "docker",
21678
+ "electron",
21679
+ "native",
21680
+ "contradictory",
21681
+ "unknown"
21682
+ ]),
21683
+ /** Every probe that ran, in a stable order. Never empty. */
21684
+ evidence: array(object({
21685
+ /** Which probe this row reports. */
21686
+ fact: _enum([
21687
+ "dockerenv-file",
21688
+ "proc-1-cgroup",
21689
+ "platform",
21690
+ "electron-app-version-env"
21691
+ ]),
21692
+ /**
21693
+ * `observed` — this process read it itself. `declared` — the shell told the
21694
+ * process and nothing here can check it. Only the Electron app version is
21695
+ * ever `declared`, and only because a child cannot see its parent.
21696
+ */
21697
+ mode: _enum(["observed", "declared"]),
21698
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21699
+ holds: boolean(),
21700
+ /** What was actually read, verbatim enough for an operator to argue with. */
21701
+ detail: string()
21702
+ })),
21703
+ /**
21704
+ * The version of the SHELL, when the shell has one it can state: the
21705
+ * Electron app version it declared, or the baked seed closure that
21706
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21707
+ * `unknown` — which version belongs to the shell is precisely what is not
21708
+ * known there.
21709
+ */
21710
+ currentVersion: string().nullable()
21711
+ });
21664
21712
  var ServerRollbackInfoSchema = object({
21665
21713
  /** The version that failed (or was manually rolled back). */
21666
21714
  fromVersion: string(),
@@ -21702,7 +21750,13 @@ var ServerPackageStatusSchema = object({
21702
21750
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21703
21751
  * version skew: an older provider's payload simply omits it.
21704
21752
  */
21705
- imageContract: ImageContractSchema.optional()
21753
+ imageContract: ImageContractSchema.optional(),
21754
+ /**
21755
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21756
+ * for version skew: an older provider's payload simply omits it, and an
21757
+ * absent wrapper is unknown — never `native`.
21758
+ */
21759
+ wrapper: WrapperIdentitySchema.optional()
21706
21760
  });
21707
21761
  var ServerUpdateCheckResultSchema = object({
21708
21762
  packageName: string(),
@@ -24724,8 +24778,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24724
24778
  *
24725
24779
  * An **empty array reads NOTHING** — `[]` is an empty page, never
24726
24780
  * "every camera". A request for no devices is a request, not an
24727
- * omission; same contract as `deviceManager.listFleet` and
24728
- * `pipelineAnalytics.listRecentTracks`.
24781
+ * omission; same contract as `deviceManager.listAll`'s `deviceIds`
24782
+ * and `pipelineAnalytics.listRecentTracks`.
24729
24783
  *
24730
24784
  * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
24731
24785
  */
@@ -38701,7 +38755,7 @@ var AgentUIAddon = class extends BaseAddon {
38701
38755
  capability: adminUiCapability,
38702
38756
  provider: {
38703
38757
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
38704
- getVersion: async () => ({ version: "1.2.98" })
38758
+ getVersion: async () => ({ version: "1.2.100" })
38705
38759
  }
38706
38760
  }];
38707
38761
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.98",
3
+ "version": "1.2.100",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",