@indigoai-us/hq-cli 5.111.1 → 5.112.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 CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [5.112.0] — 2026-09-15
6
+
7
+ ### Added
8
+
9
+ - `hq core sentry report`: lets HQ hooks send one bounded diagnostic event to
10
+ Sentry through stdin. It is for hooks rather than everyday interactive use,
11
+ accepts only approved simple fields, and has a `--dry-run` mode that shows
12
+ the event it would send instead of sending it.
13
+
14
+ ### Fixed
15
+
16
+ - `hq` starts faster by loading only the command you run instead of every
17
+ command, and by avoiding an observability hook that delayed startup. Help
18
+ output and command behaviour are unchanged.
19
+ - Commands no longer wait as long for a network endpoint that accepts a
20
+ connection but does not answer. After a long-running command, hq still makes
21
+ time for error reporting and its version-cache refresh.
22
+ - CLI diagnostics now finish one release-health session with the correct final
23
+ state when a CLI run finishes or fails normally, including `hq-auth-refresh`,
24
+ instead of leaving a session open or competing sessions reporting the same
25
+ run.
26
+
27
+ ## [5.111.2] — 2026-09-15
28
+
5
29
  ## [5.111.1] — 2026-09-14
6
30
 
7
31
  ### Fixed
@@ -12,4 +12,6 @@
12
12
  */
13
13
  import "../node-preflight.js";
14
14
  import "../node-network-compat.js";
15
+ import { refreshCachedSession } from "../utils/cognito-session.js";
16
+ export declare function runAuthRefresh(refreshSession?: typeof refreshCachedSession): Promise<number>;
15
17
  //# sourceMappingURL=hq-auth-refresh.d.ts.map
@@ -14,13 +14,14 @@
14
14
  // Node 20+ API (e.g. util.styleText) or a newer native ABI is evaluated.
15
15
  import "../node-preflight.js";
16
16
  import "../node-network-compat.js";
17
- import { initSentry, Sentry } from "../sentry.js";
17
+ import { fileURLToPath } from "node:url";
18
+ import path from "node:path";
19
+ import { finishSentrySession, initSentry, Sentry } from "../sentry.js";
18
20
  import { refreshCachedSession } from "../utils/cognito-session.js";
19
- initSentry();
20
- (async () => {
21
+ export async function runAuthRefresh(refreshSession = refreshCachedSession) {
21
22
  let exitCode = 1;
22
23
  try {
23
- const result = await refreshCachedSession();
24
+ const result = await refreshSession();
24
25
  if (result.refreshed) {
25
26
  exitCode = 0;
26
27
  }
@@ -35,8 +36,13 @@ initSentry();
35
36
  process.stderr.write(`hq-auth-refresh: ${err instanceof Error ? err.message : String(err)}\n`);
36
37
  }
37
38
  finally {
39
+ finishSentrySession();
38
40
  await Sentry.flush(2000);
39
- process.exit(exitCode);
40
41
  }
41
- })();
42
+ return exitCode;
43
+ }
44
+ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
45
+ initSentry();
46
+ void runAuthRefresh().then((exitCode) => process.exit(exitCode));
47
+ }
42
48
  //# sourceMappingURL=hq-auth-refresh.js.map