@indigoai-us/hq-cli 5.345.131 → 5.345.133

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 CHANGED
@@ -2,10 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
- ## [5.345.131] — 2026-10-14
5
+ ## [5.345.133] — 2026-10-15
6
6
  - `hq lanes --account auto` and `hq capacity route` no longer refuse every signed-in account when the capacity collector is off or its readings are stale; those accounts are picked with unknown usage, below accounts with fresh headroom.
7
7
  - `hq lanes create` now resumes an earlier worker session only when the project, model, and effort match, and otherwise starts a fresh thread.
8
+ - A loop lane starting its next phase now stays running in `hq lanes status` and `hq lanes list` while the phase resumes, instead of showing done for several seconds.
8
9
  - A loop lane waiting for its next phase now shows as running in `hq lanes status` and `hq lanes list`, and becomes done only after it is stopped.
10
+ - Recognize Git Bash on Git for Windows 2.56+, which reports `MSYSTEM=UCRT64` instead of `MINGW64`, so delegate jq calls keep their byte-exact output and journal titles with newlines get a valid file name on Windows.
11
+ - Pipeline loop lanes no longer hang after their first phase. 5.345.132 kept the lane running while its next phase resumed, which left the previous phase's watcher holding the lane, so the next phase's result was never recorded. That change is reverted; a loop lane may again show as done for a few seconds while its next phase starts.
9
12
 
10
13
  ## [5.345.130] — 2026-10-14
11
14
  - Add native TypeScript `hq core workflow run` orchestration with the bundled runner as its flag-off fallback.
@@ -36,8 +36,9 @@ die() { echo "hq-delegate-grant: $*" >&2; exit 1; }
36
36
  command -v jq >/dev/null 2>&1 || die "jq is required but not installed"
37
37
 
38
38
  # jq.exe on MSYS may use CRT text mode unless --binary is supported.
39
+ # Git for Windows 2.56+ reports MSYSTEM=UCRT64; match every MSYS2 environment.
39
40
  case "${OSTYPE:-}:${MSYSTEM:-}" in
40
- msys*:*|*:MINGW*)
41
+ msys*:*|*:MINGW*|*:UCRT*|*:CLANG*|*:MSYS)
41
42
  # Probe --binary once per script run, in the top-level shell. Most jq
42
43
  # calls run inside $(...) subshells, so a cache filled lazily inside jq()
43
44
  # would be lost and the probe would repeat on every call.
@@ -43,8 +43,9 @@ die() { echo "hq-delegate-send: $*" >&2; exit 1; }
43
43
  command -v jq >/dev/null 2>&1 || die "jq is required but not installed"
44
44
 
45
45
  # jq.exe on MSYS may use CRT text mode unless --binary is supported.
46
+ # Git for Windows 2.56+ reports MSYSTEM=UCRT64; match every MSYS2 environment.
46
47
  case "${OSTYPE:-}:${MSYSTEM:-}" in
47
- msys*:*|*:MINGW*)
48
+ msys*:*|*:MINGW*|*:UCRT*|*:CLANG*|*:MSYS)
48
49
  _hq_jq_binary_supported=""
49
50
  jq() {
50
51
  local stdout_file stderr_file status binary_supported
@@ -37,7 +37,7 @@ warn() { echo "session-journal: $*" >&2; }
37
37
 
38
38
  slugify() {
39
39
  # Win32 rejects newline file-name bytes; otherwise keep the POSIX slug pipeline.
40
- local slug_input="$1"; if [[ "${OSTYPE:-}" == msys* ]] || [[ "${MSYSTEM:-}" == MINGW* ]]; then slug_input="${slug_input//$'\n'/-}"; fi; printf '%s' "$slug_input" \
40
+ local slug_input="$1"; if [[ "${OSTYPE:-}" == msys* ]] || [[ "${MSYSTEM:-}" =~ ^(MINGW|UCRT|CLANG|MSYS) ]]; then slug_input="${slug_input//$'\n'/-}"; fi; printf '%s' "$slug_input" \
41
41
  | tr '[:upper:]' '[:lower:]' \
42
42
  | sed -E 's/[^a-z0-9]+/-/g; s/^-+//; s/-+$//' \
43
43
  | cut -c1-40
@@ -9,5 +9,6 @@ export type JqInvoke = (args: string[], input: Buffer | string | undefined, cwd:
9
9
  stdout?: "capture" | "ignore";
10
10
  stderr?: "pipe" | "ignore";
11
11
  }) => JqResult;
12
+ export declare function isMsys2Environment(msystem: string | undefined): boolean;
12
13
  export declare function createShellCompatibleJqInvoker(invoke: JqInvoke, platform: NodeJS.Platform, env: NodeJS.ProcessEnv, resolveShellType: (cwd: string) => string | undefined): JqInvoke;
13
14
  //# sourceMappingURL=jq-windows-compat.d.ts.map
@@ -21,6 +21,10 @@ function normalizeResult(result) {
21
21
  stderr: stderrBytes.toString("utf8"),
22
22
  };
23
23
  }
24
+ // MSYS2 environment names. Git for Windows 2.56+ reports UCRT64 instead of MINGW64.
25
+ export function isMsys2Environment(msystem) {
26
+ return /^(?:MINGW|UCRT|CLANG|MSYS)/i.test(msystem ?? "");
27
+ }
24
28
  export function createShellCompatibleJqInvoker(invoke, platform, env, resolveShellType) {
25
29
  let binaryOptionSupported;
26
30
  let shellTypeResolved = false;
@@ -32,7 +36,7 @@ export function createShellCompatibleJqInvoker(invoke, platform, env, resolveShe
32
36
  shellType = resolveShellType(cwd);
33
37
  shellTypeResolved = true;
34
38
  }
35
- const msysMode = /^msys/i.test(shellType ?? "") || /^MINGW/i.test(env.MSYSTEM ?? "");
39
+ const msysMode = /^msys/i.test(shellType ?? "") || isMsys2Environment(env.MSYSTEM);
36
40
  if (!msysMode)
37
41
  return invoke(args, input, cwd, options);
38
42
  if (binaryOptionSupported === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigoai-us/hq-cli",
3
- "version": "5.345.131",
3
+ "version": "5.345.133",
4
4
  "description": "HQ by Indigo management CLI — modules and cloud sync",
5
5
  "main": "dist/index.js",
6
6
  "bin": {