@sdux-vault/engine 0.9.0 → 0.11.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.
|
@@ -11,7 +11,7 @@ import { EventBus, initDevtoolsWidget } from '@sdux-vault/devtools';
|
|
|
11
11
|
// cmd+alt+j (see .vscode/keybindings.json)
|
|
12
12
|
// --- END AI MODEL FILE PATH ---
|
|
13
13
|
const SDUX_PACKAGE = '@sdux-vault/engine';
|
|
14
|
-
const SDUX_VERSION = '0.
|
|
14
|
+
const SDUX_VERSION = '0.11.0';
|
|
15
15
|
registerVersion(SDUX_PACKAGE, SDUX_VERSION);
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1586,7 +1586,7 @@ class VaultCoreInstance {
|
|
|
1586
1586
|
#licenseMap = new Map();
|
|
1587
1587
|
#terminalStatus = new Map();
|
|
1588
1588
|
#aiAssistEnabled = false;
|
|
1589
|
-
#bypassLicensing =
|
|
1589
|
+
#bypassLicensing = false;
|
|
1590
1590
|
#licenseTimeoutMs;
|
|
1591
1591
|
// eslint-disable-next-line
|
|
1592
1592
|
#licenseTimers = new Map();
|
|
@@ -2039,6 +2039,11 @@ function isAuthorizedKey(key) {
|
|
|
2039
2039
|
return true;
|
|
2040
2040
|
return instance.isAuthorizedKey(key);
|
|
2041
2041
|
}
|
|
2042
|
+
function isBypassLicensing() {
|
|
2043
|
+
if (!instance)
|
|
2044
|
+
return false;
|
|
2045
|
+
return instance.isBypassLicensing();
|
|
2046
|
+
}
|
|
2042
2047
|
function hasVaultLicense() {
|
|
2043
2048
|
if (!instance)
|
|
2044
2049
|
return false;
|
|
@@ -2122,7 +2127,7 @@ class BehaviorInitializationClass {
|
|
|
2122
2127
|
behaviorConfig = behaviorConfigs.get(meta.configKey);
|
|
2123
2128
|
}
|
|
2124
2129
|
let licensePayload = undefined;
|
|
2125
|
-
if (meta.needsLicense) {
|
|
2130
|
+
if (meta.needsLicense && !isBypassLicensing()) {
|
|
2126
2131
|
if (!meta.licenseId) {
|
|
2127
2132
|
isCritical = true;
|
|
2128
2133
|
throw new Error(`[vault] Behavior "${behaviorKey}" declares needsLicense but has no licenseId.`);
|
|
@@ -2512,7 +2517,7 @@ withCoreLicenseBehavior = __decorate([
|
|
|
2512
2517
|
key: defineBehaviorKey('Core', 'License'),
|
|
2513
2518
|
critical: true,
|
|
2514
2519
|
needsLicense: true,
|
|
2515
|
-
licenseId:
|
|
2520
|
+
licenseId: VAULT_LICENSE_ID
|
|
2516
2521
|
})
|
|
2517
2522
|
], withCoreLicenseBehavior);
|
|
2518
2523
|
|
|
@@ -3380,7 +3385,7 @@ class ControllerInitializationClass {
|
|
|
3380
3385
|
controllerConfig = controllerConfigs.get(meta.configKey);
|
|
3381
3386
|
}
|
|
3382
3387
|
let licensePayload = undefined;
|
|
3383
|
-
if (meta.needsLicense) {
|
|
3388
|
+
if (meta.needsLicense && !isBypassLicensing()) {
|
|
3384
3389
|
if (!meta.licenseId) {
|
|
3385
3390
|
isCritical = true;
|
|
3386
3391
|
throw new Error(`[vault] Controller "${controllerKey}" declares needsLicense but has no licenseId.`);
|
|
@@ -4405,5 +4410,5 @@ function resetFeatureCellToken() {
|
|
|
4405
4410
|
* Generated bundle index. Do not edit.
|
|
4406
4411
|
*/
|
|
4407
4412
|
|
|
4408
|
-
export { Conductor, FeatureCellClass, LicensingAbstract, VAULT_LICENSE_ID, VaultCore, createFeatureCellToken, getFeatureCellToken, getLicensePayload, getVaultRegistryForTests, hasVaultLicense, isAuthorizedKey, isPipelineTerminal, registerFeatureCell, registerVaultSettled, resetFeatureCellRegistry, resetVaultForTests, vaultAllSettled, vaultSettled };
|
|
4413
|
+
export { Conductor, FeatureCellClass, LicensingAbstract, VAULT_LICENSE_ID, VaultCore, VerifyLicenseToken, createFeatureCellToken, getFeatureCellToken, getLicensePayload, getVaultRegistryForTests, hasVaultLicense, isAuthorizedKey, isBypassLicensing, isPipelineTerminal, registerFeatureCell, registerVaultSettled, resetFeatureCellRegistry, resetVaultForTests, vaultAllSettled, vaultSettled };
|
|
4409
4414
|
//# sourceMappingURL=sdux-vault-engine.mjs.map
|