@indigoai-us/hq-cli 5.345.165 → 5.345.166

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.
@@ -1 +1 @@
1
- {"name":"hq-cli-daemon-sync-runner","type":"module","version":"6.18.100","bundleSha256":"75a1828c5307937f67a1435a11ad08a0db16a30a3e3701d2a4d0fced3540cb33","formatVersion":1}
1
+ {"name":"hq-cli-daemon-sync-runner","type":"module","version":"6.18.101","bundleSha256":"353f47dca127c7f6c1e00de5c9cdce809c5c32d08b2deb9755020b8e8b822871","formatVersion":1}
@@ -32,9 +32,14 @@ export interface SyncRuntimeOptions {
32
32
  * - `cloudwatch-metric`: the latency metric publisher was refused.
33
33
  * - `targeted-pull`: the object pull after a change event failed; the
34
34
  * refused keys are named by `sync.runtime.pull-access-denied`.
35
- * - `runner-error`: a runner `error` record outside the receiver.
35
+ *
36
+ * Only the receiver's own records are counted (`type:"receiver"` or an event
37
+ * named `receiver.*`). A runner `error` record from elsewhere, such as
38
+ * `runner.telemetry.outcome_flag_failed` carrying "hq-flags: resolve returned
39
+ * 403" for a company the caller is not a member of, is not a receiver
40
+ * permission refusal and is not counted here.
36
41
  */
37
- export type ReceiverRefusalCall = "subscribe" | "sqs-receive" | "sqs-visibility" | "sqs-delete" | "cloudwatch-metric" | "targeted-pull" | "runner-error" | "other";
42
+ export type ReceiverRefusalCall = "subscribe" | "sqs-receive" | "sqs-visibility" | "sqs-delete" | "cloudwatch-metric" | "targeted-pull" | "other";
38
43
  /** Classify the last hour of sync log lines into privacy-safe results. */
39
44
  export declare function analyzeSyncRuntimeLog(lines: readonly string[], options: SyncRuntimeOptions): CheckResult[];
40
45
  /**
@@ -73,8 +73,6 @@ function classifyRefusal(record, errText) {
73
73
  const byEvent = RECEIVER_EVENT_CALLS[event];
74
74
  if (byEvent)
75
75
  return byEvent;
76
- if (record.type === "error")
77
- return "runner-error";
78
76
  return "other";
79
77
  }
80
78
  const QUEUE_LEG = new Set([
@@ -230,7 +228,7 @@ export function analyzeSyncRuntimeLog(lines, options) {
230
228
  slowReceiptTimes.push(time);
231
229
  }
232
230
  if (time >= since &&
233
- (record.type === "receiver" || record.type === "error" ||
231
+ (record.type === "receiver" ||
234
232
  (typeof event === "string" && event.startsWith("receiver.")))) {
235
233
  const errText = JSON.stringify(record.err ?? record.message ?? "");
236
234
  if (PERMISSION.test(errText)) {