@trillboards/edge-sdk 0.2.36 → 0.2.37
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/deploy/windows/apply-update.ps1 +10 -0
- package/dist/EdgeAgent.js +1 -1
- package/dist/diagnose.d.ts +1 -1
- package/dist/diagnose.js +1 -1
- package/package.json +1 -1
|
@@ -462,6 +462,16 @@ function Invoke-Commit {
|
|
|
462
462
|
$before = Get-TaskShape $TaskName
|
|
463
463
|
Log "task shape before: $(Format-TaskShape $before)"
|
|
464
464
|
|
|
465
|
+
# The commit phase is only reached by an already-installed connector, so its
|
|
466
|
+
# scheduled task must exist and be visible to the caller. Windows can return
|
|
467
|
+
# no task here when an unelevated account cannot inspect a headless task owned
|
|
468
|
+
# by another user. Treating that ambiguous result as a fresh install skips the
|
|
469
|
+
# shape probe and can silently replace the headless task with a logon-only
|
|
470
|
+
# registration. Refuse before touching the live tree instead.
|
|
471
|
+
if ($null -eq $before) {
|
|
472
|
+
Fail 'rejected' 'the scheduled task is absent or inaccessible; refusing an update that could re-register it logon-only'
|
|
473
|
+
}
|
|
474
|
+
|
|
465
475
|
# The predictive half. Only a machine that HAS a headless shape has one to
|
|
466
476
|
# lose, so a logon-only install skips the probe entirely and updates freely.
|
|
467
477
|
if ($null -ne $before -and $before.Headless) {
|
package/dist/EdgeAgent.js
CHANGED
|
@@ -44,7 +44,7 @@ const edge_ads_1 = require("@trillboards/edge-ads");
|
|
|
44
44
|
const CommandRouter_1 = require("./CommandRouter");
|
|
45
45
|
const config_1 = require("./config");
|
|
46
46
|
const dataDir_1 = require("./dataDir");
|
|
47
|
-
const SDK_VERSION = '0.2.
|
|
47
|
+
const SDK_VERSION = '0.2.37';
|
|
48
48
|
class EdgeAgent extends events_1.EventEmitter {
|
|
49
49
|
constructor(config, deps) {
|
|
50
50
|
super();
|
package/dist/diagnose.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface DiagnosticReport {
|
|
|
31
31
|
skipped: number;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
declare const SDK_VERSION = "0.2.
|
|
34
|
+
declare const SDK_VERSION = "0.2.37";
|
|
35
35
|
declare function checkNodeVersion(): CheckResult;
|
|
36
36
|
declare function checkPlatform(): CheckResult;
|
|
37
37
|
declare function checkMemory(): CheckResult;
|
package/dist/diagnose.js
CHANGED
|
@@ -63,7 +63,7 @@ const localNetworkAccess_1 = require("./localNetworkAccess");
|
|
|
63
63
|
// ---------------------------------------------------------------------------
|
|
64
64
|
// SDK version — mirrors package.json; kept in sync by CI
|
|
65
65
|
// ---------------------------------------------------------------------------
|
|
66
|
-
const SDK_VERSION = '0.2.
|
|
66
|
+
const SDK_VERSION = '0.2.37';
|
|
67
67
|
exports._SDK_VERSION = SDK_VERSION;
|
|
68
68
|
// ---------------------------------------------------------------------------
|
|
69
69
|
// ANSI helpers (no external deps)
|