@indigoai-us/hq-cli 5.345.71 → 5.345.72
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,7 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
-
## [5.345.
|
|
5
|
+
## [5.345.72] — 2026-10-10
|
|
6
|
+
- `hq core worker lint --help` now prints usage and exits successfully. Explicit
|
|
7
|
+
roots that are missing or are not directories produce a clear error on both
|
|
8
|
+
the bundled-shell and native routes.
|
|
6
9
|
|
|
7
10
|
## [5.345.70] — 2026-10-10
|
|
8
11
|
- Native `hq core` fast-route imports now use the bounded torn-install recovery path. If an update temporarily removes a route module, the CLI waits for the package tree to settle and re-executes once; a module that remains missing prints the reinstall remedy.
|
|
@@ -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 {
|