@voltro/data-transfer 0.32.0 → 0.34.0

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.
@@ -5,7 +5,7 @@ property of its respective copyright holders and is used under the terms of
5
5
  its license. This file is provided for attribution; it grants no rights in
6
6
  @voltro/data-transfer itself, which is proprietary (see LICENSE).
7
7
 
8
- Generated from the resolved runtime dependency closure (118 packages).
8
+ Generated from the resolved runtime dependency closure (117 packages).
9
9
 
10
10
  ---
11
11
 
@@ -3928,34 +3928,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3928
3928
  SOFTWARE.
3929
3929
  ```
3930
3930
 
3931
- ## @effect/opentelemetry@0.64.0
3932
-
3933
- License: MIT
3934
-
3935
- ```
3936
- MIT License
3937
-
3938
- Copyright (c) 2020-present The Contributors
3939
-
3940
- Permission is hereby granted, free of charge, to any person obtaining a copy
3941
- of this software and associated documentation files (the "Software"), to deal
3942
- in the Software without restriction, including without limitation the rights
3943
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3944
- copies of the Software, and to permit persons to whom the Software is
3945
- furnished to do so, subject to the following conditions:
3946
-
3947
- The above copyright notice and this permission notice shall be included in all
3948
- copies or substantial portions of the Software.
3949
-
3950
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3951
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3952
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3953
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3954
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3955
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3956
- SOFTWARE.
3957
- ```
3958
-
3959
3931
  ## @effect/platform-node@0.108.0
3960
3932
 
3961
3933
  License: MIT
package/dist/index.d.ts CHANGED
@@ -20,15 +20,25 @@ import { YieldableError } from 'effect/Cause';
20
20
  export declare const applyAction: (action: MaskAction, input: MaskInput) => unknown;
21
21
 
22
22
  /**
23
- * Refuse a direct/native import when a live instance is detected, unless the
24
- * operator passed `--allow-live`. `liveInstance` is a human label (url/name) of
25
- * the detected instance, or `null` when none was found (or detection was
26
- * inconclusive the CLI treats "can't tell" as "not detected" so the common
27
- * import-into-a-stopped-target case isn't blocked).
23
+ * Refuse a direct/native import when a live instance is writing to the SAME
24
+ * database, unless the operator passed `--allow-live`.
25
+ *
26
+ * @param liveInstance human label (url/name) of a detected instance, or `null`
27
+ * when none answered — detection is best-effort, and "can't tell" is treated
28
+ * as "not detected" so importing into a stopped target is not blocked.
29
+ * @param sameTarget whether that instance is connected to the database being
30
+ * written. `'unknown'` when either side could not be identified (an older
31
+ * instance, an unparseable connection) — and it must behave like `'same'`,
32
+ * because the alternative is a guard that steps aside whenever it is unsure.
33
+ * @param targetLabel what the CLI resolved as the target, for the message. A
34
+ * refusal that names only one of the two things it is comparing is why
35
+ * `--allow-live` became a reflex.
28
36
  */
29
37
  export declare const assessLiveImport: (opts: {
30
38
  readonly liveInstance: string | null;
31
39
  readonly allowLive: boolean;
40
+ readonly sameTarget?: "same" | "different" | "unknown";
41
+ readonly targetLabel?: string;
32
42
  }) => LiveGuardResult;
33
43
 
34
44
  export declare const ASSET_INDEX_FILE = "assets/index.ndjson";