agl 41.2.0 → 42.1.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.
- package/changelog.md +41 -0
- package/dist_serve/bundle.js +2625 -2278
- package/dist_serve/bundle.js.map +2 -2
- package/dist_serve/bundle.js.third-party-notices.json +3 -68
- package/dist_serve/bundle.js.third-party-notices.txt +4 -137
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/aglapi/aglapisurface.document.js +4 -4
- package/dist_ts/classes.authmodels.d.ts +2 -8
- package/dist_ts/classes.authmodels.js +60 -23
- package/dist_ts/classes.authstore.d.ts +24 -0
- package/dist_ts/classes.authstore.js +185 -23
- package/dist_ts/classes.cli.d.ts +3 -6
- package/dist_ts/classes.cli.js +38 -51
- package/dist_ts/classes.config.d.ts +17 -3
- package/dist_ts/classes.config.js +55 -18
- package/dist_ts/classes.controller.d.ts +83 -14
- package/dist_ts/classes.controller.js +545 -229
- package/dist_ts/classes.controllerdevices.d.ts +128 -0
- package/dist_ts/classes.controllerdevices.js +472 -0
- package/dist_ts/classes.controllermanagement.d.ts +42 -9
- package/dist_ts/classes.controllermanagement.js +72 -23
- package/dist_ts/classes.controllerservice.d.ts +3 -31
- package/dist_ts/classes.controllerservice.js +3 -47
- package/dist_ts/classes.mcpcontrollerhost.js +9 -3
- package/dist_ts/classes.processinspection.d.ts +8 -1
- package/dist_ts/classes.processinspection.js +92 -2
- package/dist_ts/classes.proxycontrol.js +6 -1
- package/dist_ts/classes.proxydaemon.d.ts +2 -2
- package/dist_ts/classes.proxydaemon.js +1 -1
- package/dist_ts/classes.proxystore.d.ts +2 -11
- package/dist_ts/classes.proxystore.js +3 -25
- package/dist_ts/classes.sessionfeed.d.ts +10 -1
- package/dist_ts/classes.sessionfeed.js +12 -2
- package/dist_ts/classes.tpmsecretcodec.d.ts +13 -0
- package/dist_ts/classes.tpmsecretcodec.js +28 -0
- package/dist_ts/classes.trustedproxysecrets.d.ts +91 -0
- package/dist_ts/classes.trustedproxysecrets.js +338 -0
- package/dist_ts/classes.upgradecoordinator.d.ts +14 -1
- package/dist_ts/classes.upgradecoordinator.js +21 -3
- package/dist_ts/classes.upgradetransaction.d.ts +32 -0
- package/dist_ts/classes.upgradetransaction.js +101 -4
- package/dist_ts/classes.validation.d.ts +2 -0
- package/dist_ts/classes.validation.js +2 -2
- package/dist_ts/functions.controlleradmission.d.ts +67 -0
- package/dist_ts/functions.controlleradmission.js +127 -0
- package/dist_ts/functions.deviceapi.d.ts +28 -0
- package/dist_ts/functions.deviceapi.js +246 -0
- package/dist_ts/functions.deviceproof.d.ts +33 -0
- package/dist_ts/functions.deviceproof.js +93 -0
- package/dist_ts/functions.remotecli.d.ts +27 -0
- package/dist_ts/functions.remotecli.js +241 -0
- package/dist_ts/functions.retiredenvironment.d.ts +11 -2
- package/dist_ts/functions.retiredenvironment.js +22 -5
- package/dist_ts/index.d.ts +1 -0
- package/dist_ts/index.js +2 -1
- package/dist_ts/interfaces.auth.d.ts +29 -4
- package/dist_ts/interfaces.auth.js +10 -1
- package/dist_ts/interfaces.config.d.ts +14 -0
- package/dist_ts/interfaces.config.js +9 -2
- package/dist_ts/interfaces.lifecycle.d.ts +3 -0
- package/dist_ts_authswitch/classes.authoritydaemon.js +6 -1
- package/dist_ts_interfaces/devices.d.ts +331 -0
- package/dist_ts_interfaces/devices.js +34 -0
- package/dist_ts_interfaces/index.d.ts +2 -0
- package/dist_ts_interfaces/index.js +3 -1
- package/dist_ts_interfaces/interfaces.d.ts +5 -3
- package/dist_ts_interfaces/interfaces.js +3 -2
- package/dist_ts_interfaces/management.d.ts +2 -2
- package/dist_ts_interfaces/management.js +2 -2
- package/dist_ts_interfaces/mcprequests.d.ts +1 -1
- package/dist_ts_interfaces/requests.d.ts +2 -2
- package/dist_ts_interfaces/requests.devices.d.ts +89 -0
- package/dist_ts_interfaces/requests.devices.js +2 -0
- package/dist_ts_interfaces/requests.upgrade.d.ts +0 -12
- package/package.json +12 -11
- package/readme.md +116 -24
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +3 -3
- package/ts/classes.authmodels.ts +68 -25
- package/ts/classes.authstore.ts +183 -24
- package/ts/classes.cli.ts +38 -61
- package/ts/classes.config.ts +70 -21
- package/ts/classes.controller.ts +746 -329
- package/ts/classes.controllerdevices.ts +469 -0
- package/ts/classes.controllermanagement.ts +123 -49
- package/ts/classes.controllerservice.ts +3 -56
- package/ts/classes.mcpcontrollerhost.ts +10 -5
- package/ts/classes.processinspection.ts +84 -3
- package/ts/classes.proxycontrol.ts +2 -0
- package/ts/classes.proxydaemon.ts +3 -2
- package/ts/classes.proxystore.ts +4 -25
- package/ts/classes.sessionfeed.ts +13 -1
- package/ts/classes.tpmsecretcodec.ts +26 -0
- package/ts/classes.trustedproxysecrets.ts +317 -0
- package/ts/classes.upgradecoordinator.ts +33 -3
- package/ts/classes.upgradetransaction.ts +130 -1
- package/ts/classes.validation.ts +1 -1
- package/ts/functions.controlleradmission.ts +168 -0
- package/ts/functions.deviceapi.ts +295 -0
- package/ts/functions.deviceproof.ts +118 -0
- package/ts/functions.remotecli.ts +270 -0
- package/ts/functions.retiredenvironment.ts +25 -3
- package/ts/index.ts +1 -0
- package/ts/interfaces.auth.ts +41 -3
- package/ts/interfaces.config.ts +15 -0
- package/ts/interfaces.lifecycle.ts +3 -0
- package/ts_authswitch/classes.authoritydaemon.ts +2 -0
- package/ts_interfaces/devices.schema.json +890 -0
- package/ts_interfaces/devices.ts +392 -0
- package/ts_interfaces/index.ts +2 -0
- package/ts_interfaces/interfaces.ts +5 -2
- package/ts_interfaces/management.ts +2 -2
- package/ts_interfaces/mcprequests.ts +1 -1
- package/ts_interfaces/requests.devices.ts +95 -0
- package/ts_interfaces/requests.ts +10 -10
- package/ts_interfaces/requests.upgrade.ts +0 -16
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/classes.controllersocketclient.ts +27 -0
- package/ts_web/elements.devices.ts +752 -0
- package/ts_web/elements.harnesscontrollerapp.ts +18 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type IControllerStatus } from '../dist_ts_interfaces/index.js';
|
|
2
|
+
import { type IControllerRuntimeConfig } from './interfaces.config.js';
|
|
2
3
|
import { requestControllerUpgradePrepareBegin, stopRunningController, type IControllerServiceUnitControl } from './classes.controllermanagement.js';
|
|
3
4
|
import { inspectControllerProcess, listControllerDataWriterProcessesForCliPaths } from './classes.processinspection.js';
|
|
4
5
|
import { compareUpgradeSemver, type TUpgradeTransaction, type IUpgradeTransactionInventoryEntry, type IUpgradeExpectedController, type IUpgradeWorkerPayload, UpgradeCoordinator, type UpgradeInstallationLock } from './classes.upgradecoordinator.js';
|
|
@@ -15,6 +16,11 @@ export interface IPnpmGlobalInstallation {
|
|
|
15
16
|
* none, as every release older than the loopback management endpoint.
|
|
16
17
|
*/
|
|
17
18
|
managementProtocolVersion?: number;
|
|
19
|
+
/**
|
|
20
|
+
* What the installed `package.json` declares about gateway sources (`controllerGatewaySourcesVersion`); absent when
|
|
21
|
+
* it declares none, as every release before 42. An upgrade transaction records it for its source.
|
|
22
|
+
*/
|
|
23
|
+
gatewaySourcesVersion?: number;
|
|
18
24
|
}
|
|
19
25
|
export interface IDetachedUpgradeWorker {
|
|
20
26
|
pid: number;
|
|
@@ -134,6 +140,32 @@ export declare const assertInheritedUpgradeTransaction: (transactionArg: TUpgrad
|
|
|
134
140
|
cliRelativePath: string;
|
|
135
141
|
}) => void;
|
|
136
142
|
export declare function runUpgradeWorker(payloadArg: IUpgradeWorkerPayload): Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Refuses a rollback through this release's upgrade path, before anything is restored, while the port's stored
|
|
145
|
+
* runtime configuration names gateway sources and the release it would put back does not declare them: the upgrade
|
|
146
|
+
* transaction records the source package's `controllerGatewaySourcesVersion` (`sourceGatewaySourcesVersion`), and a
|
|
147
|
+
* source without one (every release before 42, a package transition's bridge package) or below this release's
|
|
148
|
+
* declaration would refuse to start on them. Only this release, still installed, can remove them with
|
|
149
|
+
* `agl remote unset`.
|
|
150
|
+
*/
|
|
151
|
+
export declare const assertRollbackKeepsGatewaySources: (optionsArg: {
|
|
152
|
+
sourcePackageName: string;
|
|
153
|
+
sourceVersion: string;
|
|
154
|
+
/** The transaction's `sourceGatewaySourcesVersion`; `undefined` when it records none. */
|
|
155
|
+
sourceGatewaySourcesVersion: number | undefined;
|
|
156
|
+
port: number;
|
|
157
|
+
}, readRuntimeConfigArg?: (portArg: number) => Promise<IControllerRuntimeConfig | undefined>) => Promise<void>;
|
|
158
|
+
/**
|
|
159
|
+
* The body of a stalled upgrade's recovery, which a recovery worker runs while it holds the upgrade lock: it finishes
|
|
160
|
+
* an upgrade past its target's startup and otherwise restores the source and finalizes it. Returns false when a
|
|
161
|
+
* retained target still owns the transaction.
|
|
162
|
+
*/
|
|
163
|
+
export declare const recoverStalledUpgradeUnderLock: (optionsArg: {
|
|
164
|
+
coordinator: UpgradeCoordinator;
|
|
165
|
+
token: string;
|
|
166
|
+
transaction: TUpgradeTransaction;
|
|
167
|
+
installation: IPnpmGlobalInstallation;
|
|
168
|
+
}) => Promise<boolean>;
|
|
137
169
|
interface IRecoverStalledUpgradeOptions {
|
|
138
170
|
coordinator: UpgradeCoordinator;
|
|
139
171
|
token: string;
|