@indigoai-us/hq-cli 5.345.106 → 5.345.107

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/assets/scaffold/core/scripts/hq-task.mjs +259 -0
  3. package/assets/scaffold/core/scripts/hq-task.sh +31 -0
  4. package/assets/scaffold/core/scripts/pipeline-worker-table.sh +285 -0
  5. package/dist/command-catalog.generated.d.ts +135 -5
  6. package/dist/command-catalog.generated.js +161 -5
  7. package/dist/commands/auth.js +42 -0
  8. package/dist/commands/core-hq-task-fast.d.ts +4 -0
  9. package/dist/commands/core-hq-task-fast.js +11 -0
  10. package/dist/commands/core-hq-task-native.d.ts +20 -0
  11. package/dist/commands/core-hq-task-native.js +275 -0
  12. package/dist/commands/core-native-bucket-c-flag.d.ts +3 -0
  13. package/dist/commands/core-native-bucket-c-flag.js +6 -0
  14. package/dist/commands/core-native-family-flag.d.ts +0 -2
  15. package/dist/commands/core-native-family-flag.js +0 -4
  16. package/dist/commands/core-native-pipeline-flag.d.ts +3 -0
  17. package/dist/commands/core-native-pipeline-flag.js +6 -0
  18. package/dist/commands/core-ontology-native.js +24 -30
  19. package/dist/commands/core-pipeline-workers-command.d.ts +3 -0
  20. package/dist/commands/core-pipeline-workers-command.js +37 -0
  21. package/dist/commands/core-pipeline-workers-native.d.ts +13 -0
  22. package/dist/commands/core-pipeline-workers-native.js +361 -0
  23. package/dist/commands/core.js +12 -10
  24. package/dist/commands/lanes.js +32 -7
  25. package/dist/commands/outposts.d.ts +5 -0
  26. package/dist/commands/outposts.js +5 -0
  27. package/dist/fast-scaffold.d.ts +1 -1
  28. package/dist/fast-scaffold.js +13 -5
  29. package/dist/hq-cloud-sync-runner/bin/sync-runner.js +56937 -64550
  30. package/dist/hq-cloud-sync-runner/package.json +1 -1
  31. package/dist/lib/daemon/remote-control-pools.d.ts +2 -2
  32. package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
  33. package/dist/lib/flag-registry-worker-source.generated.js +1 -1
  34. package/dist/lib/lanes/reconcile.js +4 -0
  35. package/dist/lib/lanes/remote-control-lane.d.ts +33 -0
  36. package/dist/lib/lanes/remote-control-lane.js +276 -0
  37. package/dist/lib/lanes/spawn.d.ts +5 -0
  38. package/dist/lib/lanes/spawn.js +65 -14
  39. package/dist/lib/lanes/store.js +7 -0
  40. package/dist/lib/lanes/types.d.ts +2 -0
  41. package/dist/lib/lanes/types.js +1 -1
  42. package/dist/lib/lanes/watcher.js +8 -1
  43. package/dist/utils/cognito-session.d.ts +12 -4
  44. package/dist/utils/cognito-session.js +42 -9
  45. package/dist/utils/token-keychain.d.ts +96 -0
  46. package/dist/utils/token-keychain.js +218 -0
  47. package/package.json +2 -2
  48. package/assets/scaffold/core/scripts/ontology-audience-grant.sh +0 -81
  49. package/assets/scaffold/core/scripts/ontology-brief.mjs +0 -93
  50. package/assets/scaffold/core/scripts/ontology-candidate.sh +0 -100
  51. package/assets/scaffold/core/scripts/ontology-garden.mjs +0 -327
  52. package/assets/scaffold/core/scripts/ontology-source-worklist.sh +0 -226
  53. package/assets/scaffold/core/scripts/source-yaml-validate.sh +0 -36
@@ -1,36 +0,0 @@
1
- #!/usr/bin/env bash
2
- # source-yaml-validate.sh — validate a sources/{channel}/source.yaml.
3
- # Spec: core/knowledge/public/hq-core/source-yaml-spec.md
4
- # Usage: source-yaml-validate.sh <path/to/source.yaml>
5
- # Exit 0 valid; 1 invalid (each violation printed); 2 bad usage / missing file.
6
- set -uo pipefail
7
- f="${1:-}"
8
- [ -n "$f" ] || { echo "usage: source-yaml-validate.sh <source.yaml>" >&2; exit 2; }
9
- [ -f "$f" ] || { echo "source-yaml-validate: no such file $f" >&2; exit 2; }
10
-
11
- get() {
12
- awk -v k="$1" '$0 ~ "^"k":" { sub("^"k":[[:space:]]*", ""); sub("[[:space:]]+#.*$", ""); gsub(/^["\x27]|["\x27]$/, ""); print; exit }' "$f"
13
- }
14
- v=0
15
- bad() { echo "$f: $*"; v=$((v+1)); }
16
- oneof() { case " $3 " in *" $2 "*) ;; *) bad "$1 must be one of: $3 (got '${2:-<missing>}')" ;; esac; }
17
-
18
- channel="$(get channel)"; kind="$(get kind)"; arrives="$(get arrives)"; pull="$(get pull_command)"
19
- aud="$(get audience_rule)"; proc="$(get processor)"; run="$(get run)"; sched="$(get schedule)"
20
-
21
- [ -n "$channel" ] || bad "channel is required"
22
- folder="$(basename "$(dirname "$f")")"
23
- [ -z "$channel" ] || [ "$channel" = "$folder" ] || bad "channel '$channel' must equal its folder name '$folder'"
24
- oneof kind "$kind" "meeting email slack doc custom"
25
- oneof arrives "$arrives" "drop pull cloud"
26
- [ "$arrives" != pull ] || [ -n "$pull" ] || bad "pull_command is required when arrives: pull"
27
- [ -n "$aud" ] || bad "audience_rule is required (attendees|thread|channel|company|explicit); it is never defaulted"
28
- [ -z "$aud" ] || oneof audience_rule "$aud" "attendees thread channel company explicit"
29
- [ -n "$proc" ] || bad "processor is required (<worker>/<skill>)"
30
- [ -z "$proc" ] || printf '%s' "$proc" | grep -Eq '^[a-z0-9-]+/[a-z0-9-]+$' || bad "processor must look like <worker>/<skill> (got '$proc')"
31
- oneof run "$run" "local cloud"
32
- if [ -z "$sched" ]; then bad "schedule is required (cron or on-close)"
33
- elif [ "$sched" != on-close ] && [ "$(printf '%s' "$sched" | awk '{print NF}')" -ne 5 ]; then bad "schedule must be a 5-field cron or on-close (got '$sched')"; fi
34
-
35
- [ "$v" -eq 0 ] && { echo "$f: ok"; exit 0; }
36
- exit 1