@indigoai-us/hq-cli 5.345.71 → 5.345.73

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,14 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [5.345.73] — 2026-10-10
6
+ - Fixed company resolution so a minimal entity liveness response is not treated as a full company record.
7
+
8
+ ## [5.345.72] — 2026-10-10
9
+ - `hq core worker lint --help` now prints usage and exits successfully. Explicit
10
+ roots that are missing or are not directories produce a clear error on both
11
+ the bundled-shell and native routes.
12
+
5
13
  ## [5.345.71] — 2026-10-10
6
14
 
7
15
  ## [5.345.70] — 2026-10-10
@@ -49,10 +49,26 @@
49
49
 
50
50
  set -euo pipefail
51
51
 
52
+ if [[ ${1-} == "--help" || ${1-} == "-h" ]]; then
53
+ printf '%s\n' \
54
+ 'Usage: lint-shared-worker-skills.sh [root ...]' \
55
+ 'Default roots: core/workers core/packages'
56
+ exit 0
57
+ fi
58
+
52
59
  repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
53
60
  cd "$repo_root"
54
61
 
55
62
  roots=("$@")
63
+ if [[ ${#roots[@]} -gt 0 ]]; then
64
+ for root in "${roots[@]}"; do
65
+ if [[ ! -d "$root" ]]; then
66
+ printf 'lint-shared-worker-skills: root is not a directory: %s\n' "$root" >&2
67
+ exit 2
68
+ fi
69
+ done
70
+ fi
71
+
56
72
  if [[ ${#roots[@]} -eq 0 ]]; then
57
73
  roots=(core/workers core/packages)
58
74
  fi
@@ -1,9 +1,10 @@
1
1
  /** Native port of lint-shared-worker-skills.sh. */
2
2
  import * as crypto from "node:crypto";
3
3
  import * as path from "node:path";
4
- import { errorCode, missingOrUnreadable, resolveWorkerCallerRoot, } from "./core-worker-skills-runtime.js";
4
+ import { errorCode, isDirectory, missingOrUnreadable, resolveWorkerCallerRoot, } from "./core-worker-skills-runtime.js";
5
5
  export const WORKER_SKILL_LINT_ASSET = "core/scripts/lint-shared-worker-skills.sh";
6
6
  const DEFAULT_ROOTS = ["core/workers", "core/packages"];
7
+ const USAGE = "Usage: lint-shared-worker-skills.sh [root ...]\nDefault roots: core/workers core/packages\n";
7
8
  function joinFindPath(parent, child) {
8
9
  return `${parent}${parent.endsWith("/") ? "" : "/"}${child}`;
9
10
  }
@@ -96,8 +97,22 @@ function resultError(error) {
96
97
  throw error;
97
98
  }
98
99
  export function runWorkerSkillLint(args, dependencies) {
100
+ if (args[0] === "--help" || args[0] === "-h") {
101
+ return { code: 0, stdout: USAGE, stderr: "" };
102
+ }
99
103
  const { root, fs: fileSystem } = resolveWorkerCallerRoot(dependencies);
100
104
  const roots = args.length > 0 ? args : DEFAULT_ROOTS;
105
+ if (args.length > 0) {
106
+ for (const entry of roots) {
107
+ if (entry.length === 0 || !isDirectory(path.resolve(root, entry), fileSystem)) {
108
+ return {
109
+ code: 2,
110
+ stdout: "",
111
+ stderr: `lint-shared-worker-skills: root is not a directory: ${entry}\n`,
112
+ };
113
+ }
114
+ }
115
+ }
101
116
  const entries = sorted(roots.flatMap((entry) => collectEntries(entry, root, fileSystem)));
102
117
  if (entries.length === 0) {
103
118
  return {
@@ -433,6 +433,9 @@ async function resolveCompanyByUid(token, uid, baseUrl) {
433
433
  throw new Error(`Failed to resolve company '${uid}': ${formatSlugLookupReason(res, body)}`);
434
434
  }
435
435
  const data = (await res.json());
436
+ if (typeof data.entity?.uid !== 'string' || !data.entity.uid) {
437
+ throw new Error(`Failed to resolve company '${uid}': Entity not found`);
438
+ }
436
439
  return data.entity.uid;
437
440
  }
438
441
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigoai-us/hq-cli",
3
- "version": "5.345.71",
3
+ "version": "5.345.73",
4
4
  "description": "HQ by Indigo management CLI — modules and cloud sync",
5
5
  "main": "dist/index.js",
6
6
  "bin": {