@camstack/addon-remote-storage 1.2.92 → 1.2.93

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/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-cpT4iCZr.js");
5
+ const require_shared = require("./shared-Dx28ZZTs.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-Cle4oyGQ.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-ZIwBrqd-.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-cpT4iCZr.js");
5
+ const require_shared = require("./shared-Dx28ZZTs.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Cle4oyGQ.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-ZIwBrqd-.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -16150,6 +16150,7 @@ var NcSystemEventKindSchema = _enum([
16150
16150
  "addon-crash-loop",
16151
16151
  "addon-update-available",
16152
16152
  "server-update-available",
16153
+ "wrapper-update-available",
16153
16154
  "alarm-triggered",
16154
16155
  "alarm-armed",
16155
16156
  "alarm-disarmed",
@@ -21666,6 +21667,53 @@ var ImageContractSchema = object({
21666
21667
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21667
21668
  message: string()
21668
21669
  });
21670
+ /**
21671
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21672
+ * produced it.
21673
+ *
21674
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21675
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21676
+ * for a `docker` shell and says the app restarts into the new build for
21677
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21678
+ * nothing reads is the defect this repo keeps paying for.
21679
+ */
21680
+ var WrapperIdentitySchema = object({
21681
+ kind: _enum([
21682
+ "docker",
21683
+ "electron",
21684
+ "native",
21685
+ "contradictory",
21686
+ "unknown"
21687
+ ]),
21688
+ /** Every probe that ran, in a stable order. Never empty. */
21689
+ evidence: array(object({
21690
+ /** Which probe this row reports. */
21691
+ fact: _enum([
21692
+ "dockerenv-file",
21693
+ "proc-1-cgroup",
21694
+ "platform",
21695
+ "electron-app-version-env"
21696
+ ]),
21697
+ /**
21698
+ * `observed` — this process read it itself. `declared` — the shell told the
21699
+ * process and nothing here can check it. Only the Electron app version is
21700
+ * ever `declared`, and only because a child cannot see its parent.
21701
+ */
21702
+ mode: _enum(["observed", "declared"]),
21703
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21704
+ holds: boolean(),
21705
+ /** What was actually read, verbatim enough for an operator to argue with. */
21706
+ detail: string()
21707
+ })),
21708
+ /**
21709
+ * The version of the SHELL, when the shell has one it can state: the
21710
+ * Electron app version it declared, or the baked seed closure that
21711
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21712
+ * `unknown` — which version belongs to the shell is precisely what is not
21713
+ * known there.
21714
+ */
21715
+ currentVersion: string().nullable()
21716
+ });
21669
21717
  var ServerRollbackInfoSchema = object({
21670
21718
  /** The version that failed (or was manually rolled back). */
21671
21719
  fromVersion: string(),
@@ -21707,7 +21755,13 @@ var ServerPackageStatusSchema = object({
21707
21755
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21708
21756
  * version skew: an older provider's payload simply omits it.
21709
21757
  */
21710
- imageContract: ImageContractSchema.optional()
21758
+ imageContract: ImageContractSchema.optional(),
21759
+ /**
21760
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21761
+ * for version skew: an older provider's payload simply omits it, and an
21762
+ * absent wrapper is unknown — never `native`.
21763
+ */
21764
+ wrapper: WrapperIdentitySchema.optional()
21711
21765
  });
21712
21766
  var ServerUpdateCheckResultSchema = object({
21713
21767
  packageName: string(),
@@ -16127,6 +16127,7 @@ var NcSystemEventKindSchema = _enum([
16127
16127
  "addon-crash-loop",
16128
16128
  "addon-update-available",
16129
16129
  "server-update-available",
16130
+ "wrapper-update-available",
16130
16131
  "alarm-triggered",
16131
16132
  "alarm-armed",
16132
16133
  "alarm-disarmed",
@@ -21643,6 +21644,53 @@ var ImageContractSchema = object({
21643
21644
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
21644
21645
  message: string()
21645
21646
  });
21647
+ /**
21648
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
21649
+ * produced it.
21650
+ *
21651
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
21652
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
21653
+ * for a `docker` shell and says the app restarts into the new build for
21654
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
21655
+ * nothing reads is the defect this repo keeps paying for.
21656
+ */
21657
+ var WrapperIdentitySchema = object({
21658
+ kind: _enum([
21659
+ "docker",
21660
+ "electron",
21661
+ "native",
21662
+ "contradictory",
21663
+ "unknown"
21664
+ ]),
21665
+ /** Every probe that ran, in a stable order. Never empty. */
21666
+ evidence: array(object({
21667
+ /** Which probe this row reports. */
21668
+ fact: _enum([
21669
+ "dockerenv-file",
21670
+ "proc-1-cgroup",
21671
+ "platform",
21672
+ "electron-app-version-env"
21673
+ ]),
21674
+ /**
21675
+ * `observed` — this process read it itself. `declared` — the shell told the
21676
+ * process and nothing here can check it. Only the Electron app version is
21677
+ * ever `declared`, and only because a child cannot see its parent.
21678
+ */
21679
+ mode: _enum(["observed", "declared"]),
21680
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
21681
+ holds: boolean(),
21682
+ /** What was actually read, verbatim enough for an operator to argue with. */
21683
+ detail: string()
21684
+ })),
21685
+ /**
21686
+ * The version of the SHELL, when the shell has one it can state: the
21687
+ * Electron app version it declared, or the baked seed closure that
21688
+ * fingerprints a container / app bundle. `null` for `contradictory` and
21689
+ * `unknown` — which version belongs to the shell is precisely what is not
21690
+ * known there.
21691
+ */
21692
+ currentVersion: string().nullable()
21693
+ });
21646
21694
  var ServerRollbackInfoSchema = object({
21647
21695
  /** The version that failed (or was manually rolled back). */
21648
21696
  fromVersion: string(),
@@ -21684,7 +21732,13 @@ var ServerPackageStatusSchema = object({
21684
21732
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
21685
21733
  * version skew: an older provider's payload simply omits it.
21686
21734
  */
21687
- imageContract: ImageContractSchema.optional()
21735
+ imageContract: ImageContractSchema.optional(),
21736
+ /**
21737
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
21738
+ * for version skew: an older provider's payload simply omits it, and an
21739
+ * absent wrapper is unknown — never `native`.
21740
+ */
21741
+ wrapper: WrapperIdentitySchema.optional()
21688
21742
  });
21689
21743
  var ServerUpdateCheckResultSchema = object({
21690
21744
  packageName: string(),
package/dist/smb.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-cpT4iCZr.js");
5
+ const require_shared = require("./shared-Dx28ZZTs.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-Cle4oyGQ.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-ZIwBrqd-.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import * as path from "node:path";
4
4
  import * as fsp from "node:fs/promises";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-cpT4iCZr.js");
5
+ const require_shared = require("./shared-Dx28ZZTs.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-Cle4oyGQ.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-ZIwBrqd-.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.92",
3
+ "version": "1.2.93",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",