@indigoai-us/hq-cli 5.345.39 → 5.345.40
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,9 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.345.40] — 2026-10-07
|
|
6
|
+
- Fix published shell parity for rebuild-index company help and Git Bash trigger-facts stdin.
|
|
7
|
+
|
|
5
8
|
## [5.345.39] — 2026-10-07
|
|
6
9
|
- Cap each `hq doctor --fix` invocation at two company journal refreshes and persist a rotating cursor so pending journals continue on later runs.
|
|
7
10
|
- Add `hq db destroy --company <slug> --app <app>` to permanently delete an app's remote database. It requires typing the app id (or `--confirm <app>` when not interactive), offers `hq db dump` first (`--dump-first` / `--no-dump`), and only company owners and admins can run it.
|
|
@@ -55,9 +55,18 @@ EVENT="${1:-}"
|
|
|
55
55
|
WITH_ASSISTANT_INTENT=0
|
|
56
56
|
[ "${2:-}" = "--with-assistant-intent" ] && WITH_ASSISTANT_INTENT=1
|
|
57
57
|
|
|
58
|
-
# Bash
|
|
59
|
-
#
|
|
60
|
-
|
|
58
|
+
# Git Bash may not expose /dev/stdin. Use Bash's builtin there so the hook path
|
|
59
|
+
# does not fork; keep the original command-substitution behavior on POSIX.
|
|
60
|
+
case "${OSTYPE:-}" in
|
|
61
|
+
msys*|cygwin*)
|
|
62
|
+
STDIN_JSON=''
|
|
63
|
+
IFS= read -r -d '' STDIN_JSON 2>/dev/null || true
|
|
64
|
+
while [[ "$STDIN_JSON" == *$'\n' ]]; do
|
|
65
|
+
STDIN_JSON="${STDIN_JSON%$'\n'}"
|
|
66
|
+
done
|
|
67
|
+
;;
|
|
68
|
+
*) STDIN_JSON="$(</dev/stdin)" || STDIN_JSON='{}' ;;
|
|
69
|
+
esac
|
|
61
70
|
[ -n "$STDIN_JSON" ] || STDIN_JSON='{}'
|
|
62
71
|
JQ="$(command -v jq || true)"
|
|
63
72
|
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
|
|
14
14
|
set -euo pipefail
|
|
15
15
|
|
|
16
|
+
for arg in "$@"; do
|
|
17
|
+
if [[ "$arg" == "--help" || "$arg" == "-h" ]]; then
|
|
18
|
+
printf '%s\n' \
|
|
19
|
+
'Usage: hq core rebuild-index companies [--company <slug>]' \
|
|
20
|
+
'' \
|
|
21
|
+
'Regenerate company root INDEX.md files. Without --company, all companies are regenerated.' \
|
|
22
|
+
'--company <slug> regenerates only that company'\''s index.' \
|
|
23
|
+
'Company-scoped writes require the cli.rebuild-index-company-scope flag.'
|
|
24
|
+
exit 0
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
|
|
16
28
|
HQ_ROOT="${HQ_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)}"
|
|
17
29
|
cd "$HQ_ROOT"
|
|
18
30
|
|