@indigoai-us/hq-cli 5.160.0 → 5.161.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 +4 -0
- package/dist/lib/flag-registry.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.161.0] — 2026-09-24
|
|
6
|
+
|
|
5
7
|
## [5.160.0] — 2026-09-24
|
|
6
8
|
|
|
7
9
|
### Added
|
|
@@ -23,6 +25,8 @@
|
|
|
23
25
|
gives its session one resume turn to write the expected file. The watcher and
|
|
24
26
|
dead-host recovery ignore earlier envelopes. If the repair still writes no
|
|
25
27
|
valid envelope, the lane remains interrupted.
|
|
28
|
+
- No-reader flag gates now honor only `true` and `false` in `HQ_FLAG_<KEY>`
|
|
29
|
+
overrides when the registry endpoint is unset or its reader is unavailable.
|
|
26
30
|
|
|
27
31
|
## [5.159.0] — 2026-09-24
|
|
28
32
|
|
|
@@ -6,11 +6,17 @@
|
|
|
6
6
|
* keep a short-lived, offline CLI alive until the client's network deadline.
|
|
7
7
|
*/
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
|
9
|
-
import { isFlagSnapshot, resolveFlag, } from "@indigoai-us/hq-flags-client";
|
|
9
|
+
import { isFlagSnapshot, readLocalOverride, resolveFlag, } from "@indigoai-us/hq-flags-client";
|
|
10
10
|
/** Dedicated endpoint configuration; this is intentionally not HQ_PRO_API_URL. */
|
|
11
11
|
export const FLAG_REGISTRY_ENDPOINT_ENV = "HQ_FLAGS_API_URL";
|
|
12
12
|
let heldSnapshot = null;
|
|
13
13
|
let processReader = null;
|
|
14
|
+
function processLocalOverride(flagKey) {
|
|
15
|
+
return readLocalOverride(flagKey, process.env);
|
|
16
|
+
}
|
|
17
|
+
function localOverrideOrFallback(flagKey, legacyFallback) {
|
|
18
|
+
return processLocalOverride(flagKey) ?? legacyFallback();
|
|
19
|
+
}
|
|
14
20
|
function processSnapshotReader() {
|
|
15
21
|
return {
|
|
16
22
|
isEnabled(flagKey, lookup = {}) {
|
|
@@ -65,12 +71,12 @@ export function kickFlagRegistryReadiness(dependencies = {}) {
|
|
|
65
71
|
*/
|
|
66
72
|
export function resolveFlagGate(reader, flagKey, lookup, legacyFallback) {
|
|
67
73
|
if (!reader)
|
|
68
|
-
return legacyFallback
|
|
74
|
+
return localOverrideOrFallback(flagKey, legacyFallback);
|
|
69
75
|
try {
|
|
70
76
|
return reader.isEnabled(flagKey, lookup);
|
|
71
77
|
}
|
|
72
78
|
catch {
|
|
73
|
-
return legacyFallback
|
|
79
|
+
return localOverrideOrFallback(flagKey, legacyFallback);
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
82
|
/** Resolve a process gate against the shared snapshot reader, when configured. */
|