@indigoai-us/hq-cli 5.345.219 → 5.345.221

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 (199) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/dist/command-catalog.generated.d.ts +169 -3
  3. package/dist/command-catalog.generated.js +206 -3
  4. package/dist/commands/auth.js +4 -1
  5. package/dist/commands/bot-runtime.d.ts +18 -5
  6. package/dist/commands/bot-runtime.js +29 -12
  7. package/dist/commands/bot.d.ts +85 -0
  8. package/dist/commands/bot.js +245 -16
  9. package/dist/commands/cloud.d.ts +16 -0
  10. package/dist/commands/cloud.js +112 -102
  11. package/dist/commands/core-checkpoint-native.d.ts +13 -0
  12. package/dist/commands/core-checkpoint-native.js +167 -52
  13. package/dist/commands/core-hook-registration-plan.js +5 -4
  14. package/dist/commands/core-stop-autosave.d.ts +21 -0
  15. package/dist/commands/core-stop-autosave.js +300 -0
  16. package/dist/commands/core.js +2 -0
  17. package/dist/commands/daemon.d.ts +5 -0
  18. package/dist/commands/daemon.js +52 -9
  19. package/dist/commands/doctor-usage.d.ts +5 -0
  20. package/dist/commands/doctor-usage.js +25 -0
  21. package/dist/commands/env.d.ts +49 -4
  22. package/dist/commands/env.js +355 -5
  23. package/dist/commands/integrations.js +84 -3
  24. package/dist/commands/lanes-shared.d.ts +3 -0
  25. package/dist/commands/lanes.d.ts +3 -0
  26. package/dist/commands/lanes.js +87 -3
  27. package/dist/commands/packs.js +23 -0
  28. package/dist/commands/pkg-update.d.ts +6 -0
  29. package/dist/commands/pkg-update.js +15 -7
  30. package/dist/commands/run.js +55 -45
  31. package/dist/commands/sources.js +4 -3
  32. package/dist/commands/sync-core.d.ts +1 -0
  33. package/dist/commands/sync-core.js +77 -3
  34. package/dist/commands/whoami.js +96 -80
  35. package/dist/lib/bot/config.d.ts +17 -0
  36. package/dist/lib/bot/config.js +13 -0
  37. package/dist/lib/bot/fleet-cron.js +29 -4
  38. package/dist/lib/bot/fleet-local.d.ts +30 -2
  39. package/dist/lib/bot/fleet-local.js +60 -1
  40. package/dist/lib/bot/grok-login-scope.d.ts +36 -0
  41. package/dist/lib/bot/grok-login-scope.js +93 -0
  42. package/dist/lib/bot/inflight.d.ts +9 -0
  43. package/dist/lib/bot/jobs/hot-signal-sync.d.ts +51 -0
  44. package/dist/lib/bot/jobs/hot-signal-sync.js +90 -9
  45. package/dist/lib/bot/legacy-provider-login.d.ts +32 -9
  46. package/dist/lib/bot/legacy-provider-login.js +28 -22
  47. package/dist/lib/bot/run.d.ts +29 -5
  48. package/dist/lib/bot/run.js +203 -1
  49. package/dist/lib/bot/runtime-sign-in-check.js +6 -1
  50. package/dist/lib/bot/runtime-sign-in.d.ts +2 -0
  51. package/dist/lib/bot/signals-try-now.d.ts +76 -0
  52. package/dist/lib/bot/signals-try-now.js +111 -0
  53. package/dist/lib/capacity/collectors/claude-oauth.d.ts +22 -3
  54. package/dist/lib/capacity/collectors/claude-oauth.js +78 -22
  55. package/dist/lib/capacity/scheduler.d.ts +8 -0
  56. package/dist/lib/capacity/scheduler.js +5 -2
  57. package/dist/lib/core-utils/sentry-report.js +2 -0
  58. package/dist/lib/daemon/machine-checks.d.ts +22 -1
  59. package/dist/lib/daemon/machine-checks.js +54 -12
  60. package/dist/lib/daemon/run.js +71 -8
  61. package/dist/lib/daemon/runtime-notifications.d.ts +7 -0
  62. package/dist/lib/daemon/runtime-notifications.js +50 -0
  63. package/dist/lib/daemon/stop-autosave-lock.d.ts +19 -0
  64. package/dist/lib/daemon/stop-autosave-lock.js +166 -0
  65. package/dist/lib/daemon/stop-autosave.d.ts +28 -0
  66. package/dist/lib/daemon/stop-autosave.js +111 -0
  67. package/dist/lib/daemon/stop-diagnostics.d.ts +11 -0
  68. package/dist/lib/daemon/stop-diagnostics.js +136 -0
  69. package/dist/lib/daemon/stop-job-executor.d.ts +19 -0
  70. package/dist/lib/daemon/stop-job-executor.js +126 -0
  71. package/dist/lib/daemon/stop-jobs.d.ts +93 -0
  72. package/dist/lib/daemon/stop-jobs.js +599 -0
  73. package/dist/lib/doctor/checks/fleet-hook-core.d.ts +9 -1
  74. package/dist/lib/doctor/checks/fleet-hook-core.js +39 -15
  75. package/dist/lib/doctor/checks/host-core.js +1 -1
  76. package/dist/lib/environment/access-probes.d.ts +234 -0
  77. package/dist/lib/environment/access-probes.js +918 -0
  78. package/dist/lib/environment/profile.d.ts +15 -2
  79. package/dist/lib/environment/profile.js +55 -20
  80. package/dist/lib/environment/rfc3339.d.ts +8 -0
  81. package/dist/lib/environment/rfc3339.js +26 -0
  82. package/dist/lib/environment/work-requirements.d.ts +169 -0
  83. package/dist/lib/environment/work-requirements.js +389 -0
  84. package/dist/lib/hook-engine/coverage.d.ts +137 -7
  85. package/dist/lib/hook-engine/coverage.js +1424 -4
  86. package/dist/lib/hook-engine/fleet-registration.d.ts +17 -5
  87. package/dist/lib/hook-engine/fleet-registration.js +53 -17
  88. package/dist/lib/hook-engine/git-stop-config.json +513 -0
  89. package/dist/lib/hook-engine/native-stop-compatibility.json +311 -0
  90. package/dist/lib/hook-engine/reconcile.js +2 -2
  91. package/dist/lib/hot-channels/alert.d.ts +10 -1
  92. package/dist/lib/hot-channels/alert.js +38 -8
  93. package/dist/lib/hot-channels/signals-claude-login.d.ts +53 -0
  94. package/dist/lib/hot-channels/signals-claude-login.js +96 -0
  95. package/dist/lib/hot-channels/signals-pass.d.ts +143 -17
  96. package/dist/lib/hot-channels/signals-pass.js +324 -17
  97. package/dist/lib/hot-channels/signals-runtime.d.ts +30 -0
  98. package/dist/lib/hot-channels/signals-runtime.js +82 -0
  99. package/dist/lib/install/hook-target.js +1 -1
  100. package/dist/lib/lanes/host-capacity.d.ts +26 -2
  101. package/dist/lib/lanes/host-capacity.js +17 -2
  102. package/dist/lib/lanes/host-compute.d.ts +90 -0
  103. package/dist/lib/lanes/host-compute.js +185 -0
  104. package/dist/lib/lanes/index.d.ts +2 -0
  105. package/dist/lib/lanes/index.js +1 -0
  106. package/dist/lib/lanes/reconcile.js +22 -1
  107. package/dist/lib/lanes/resource-usage.d.ts +155 -0
  108. package/dist/lib/lanes/resource-usage.js +589 -0
  109. package/dist/lib/lanes/run-size.d.ts +46 -0
  110. package/dist/lib/lanes/run-size.js +197 -0
  111. package/dist/lib/lanes/store.js +27 -0
  112. package/dist/lib/lanes/throttle.d.ts +36 -1
  113. package/dist/lib/lanes/throttle.js +47 -10
  114. package/dist/lib/lanes/types.d.ts +40 -0
  115. package/dist/lib/lanes/types.js +2 -2
  116. package/dist/lib/lanes/watcher.js +13 -4
  117. package/dist/lib/lanes/worker-process.d.ts +25 -2
  118. package/dist/lib/lanes/worker-process.js +71 -19
  119. package/dist/lib/placement/match.d.ts +192 -0
  120. package/dist/lib/placement/match.js +667 -0
  121. package/dist/lib/safe-store.d.ts +14 -0
  122. package/dist/lib/safe-store.js +77 -4
  123. package/dist/lib/search-index/index.d.ts +88 -4
  124. package/dist/lib/search-index/index.js +299 -25
  125. package/dist/lib/search-index/max-doc-bytes.d.ts +17 -6
  126. package/dist/lib/search-index/max-doc-bytes.js +48 -23
  127. package/dist/lib/signals/codex-lockdown.d.ts +79 -0
  128. package/dist/lib/signals/codex-lockdown.js +271 -0
  129. package/dist/lib/signals/codex-login.d.ts +37 -0
  130. package/dist/lib/signals/codex-login.js +83 -0
  131. package/dist/lib/signals/engine.d.ts +28 -0
  132. package/dist/lib/signals/engine.js +77 -0
  133. package/dist/lib/signals/reply.d.ts +48 -0
  134. package/dist/lib/signals/reply.js +94 -12
  135. package/dist/lib/signals/run-record.js +6 -1
  136. package/dist/lib/signals/settings.d.ts +5 -0
  137. package/dist/lib/signals/settings.js +2 -0
  138. package/dist/lib/signals/steps/adapters.js +6 -0
  139. package/dist/lib/signals/steps/extract.d.ts +135 -12
  140. package/dist/lib/signals/steps/extract.js +416 -84
  141. package/dist/lib/signals/steps/types.d.ts +21 -0
  142. package/dist/lib/sync-core/engine-home.d.ts +41 -2
  143. package/dist/lib/sync-core/engine-home.js +132 -19
  144. package/dist/lib/sync-core/reconcile.js +1 -1
  145. package/dist/lib/sync-core/release-compare.d.ts +7 -0
  146. package/dist/lib/sync-core/release-compare.js +16 -0
  147. package/dist/lib/sync-core/release.d.ts +2 -1
  148. package/dist/lib/sync-core/release.js +2 -10
  149. package/dist/lib/sync-core/rollout-state.d.ts +2 -1
  150. package/dist/lib/sync-core/rollout-state.js +5 -2
  151. package/dist/lib/sync-core/vault-uid.d.ts +2 -0
  152. package/dist/lib/sync-core/vault-uid.js +4 -0
  153. package/dist/run/schema-env-overrides.d.ts +24 -0
  154. package/dist/run/schema-env-overrides.js +72 -0
  155. package/dist/schemas/hq-work-requirements.v1.schema.json +145 -0
  156. package/dist/utils/auth-session-check.d.ts +16 -0
  157. package/dist/utils/auth-session-check.js +16 -0
  158. package/dist/utils/client-health-contract.d.ts +6 -0
  159. package/dist/utils/client-health-contract.js +13 -0
  160. package/dist/utils/client-health.d.ts +7 -0
  161. package/dist/utils/client-health.js +22 -1
  162. package/dist/utils/command-usage.d.ts +40 -0
  163. package/dist/utils/command-usage.js +61 -0
  164. package/dist/utils/duplicate-command-usage.d.ts +72 -0
  165. package/dist/utils/duplicate-command-usage.js +125 -0
  166. package/dist/utils/host-registration.d.ts +1 -1
  167. package/dist/utils/host-registration.js +6 -1
  168. package/dist/utils/resident-package-preload.js +4 -0
  169. package/dist/utils/sentry-fingerprint.js +9 -0
  170. package/dist/utils/windows-bash.d.ts +2 -0
  171. package/dist/utils/windows-bash.js +2 -1
  172. package/package.json +15 -10
  173. package/scripts/bench-core-compare.mjs +313 -0
  174. package/scripts/bench-core.mjs +399 -12
  175. package/scripts/check-function-manifest.mjs +121 -7
  176. package/dist/commands/__fixtures__/access-vault.d.ts +0 -95
  177. package/dist/commands/__fixtures__/access-vault.js +0 -166
  178. package/dist/commands/__fixtures__/make-tar.d.ts +0 -38
  179. package/dist/commands/__fixtures__/make-tar.js +0 -102
  180. package/dist/commands/secrets-public-types.test-d.d.ts +0 -2
  181. package/dist/commands/secrets-public-types.test-d.js +0 -18
  182. package/dist/lib/decisions/fixtures/us001.d.ts +0 -137
  183. package/dist/lib/decisions/fixtures/us001.js +0 -21
  184. package/dist/lib/doctor/__testing__/fake-hq-tree.d.ts +0 -226
  185. package/dist/lib/doctor/__testing__/fake-hq-tree.js +0 -408
  186. package/dist/lib/doctor/__testing__/run-doctor.d.ts +0 -8
  187. package/dist/lib/doctor/__testing__/run-doctor.js +0 -69
  188. package/dist/lib/fingerprint/fixtures.d.ts +0 -19
  189. package/dist/lib/fingerprint/fixtures.js +0 -61
  190. package/dist/lib/hot-channels/adapters/__fixtures__/dummy.d.ts +0 -33
  191. package/dist/lib/hot-channels/adapters/__fixtures__/dummy.js +0 -53
  192. package/dist/lib/hot-channels/adapters/__fixtures__/meeting-providers.d.ts +0 -38
  193. package/dist/lib/hot-channels/adapters/__fixtures__/meeting-providers.js +0 -64
  194. package/dist/lib/mesh/live/daemon/mqtt-events.test-d.d.ts +0 -2
  195. package/dist/lib/mesh/live/daemon/mqtt-events.test-d.js +0 -10
  196. package/dist/lib/test-utils/isolated-flag-company-context.d.ts +0 -3
  197. package/dist/lib/test-utils/isolated-flag-company-context.js +0 -18
  198. package/scripts/hook-engine-manifest.mjs +0 -22
  199. package/scripts/mesh-daemon-if-stale.mjs +0 -20
@@ -3,15 +3,27 @@ import { verifyHookEngine } from './resolve.js';
3
3
  export declare const FLEET_EVENTS: Record<string, string>;
4
4
  /** Literal POSIX argv only. Never expands variables or executes shell syntax. */
5
5
  export declare function literalArgv(command: string): string[] | null;
6
- export declare function fallbackProblem(argv: unknown): string | null;
6
+ export type FleetHost = 'fleet-local' | 'agents-v2';
7
+ /** The shell adapter each Fleet host's profile registers. */
8
+ export declare const FLEET_ADAPTERS: Readonly<Record<FleetHost, string>>;
9
+ export declare function isFleetHost(value: unknown): value is FleetHost;
10
+ /**
11
+ * Why `argv` is not `host`'s exact adapter command, or null. The agents-v2
12
+ * adapter takes the event as its one positional argument and the rest from
13
+ * its environment contract, so its fallback is exactly
14
+ * `[<bash|sh>, <abs>/hq-agents-v2-hook-adapter.sh, <event>]`.
15
+ */
16
+ export declare function fallbackProblem(argv: unknown, host?: FleetHost, event?: string): string | null;
7
17
  export type FleetEngineLookup = CoreNextEngineLookup;
8
- /** Self-check, then probe, then the fleet-local host claim. */
9
- export declare function fleetEngineCapabilities(engine: string, probe?: typeof probeEngine, verify?: typeof verifyHookEngine): EngineCapabilities;
10
- export declare function inspectFleetEngine(engine: string, home: string, probe?: typeof probeEngine, verify?: typeof verifyHookEngine, lookup?: FleetEngineLookup): EngineCapabilities;
18
+ /** Self-check, then probe, then the host claim. */
19
+ export declare function fleetEngineCapabilities(engine: string, probe?: typeof probeEngine, verify?: typeof verifyHookEngine, host?: FleetHost): EngineCapabilities;
20
+ export declare function inspectFleetEngine(engine: string, home: string, probe?: typeof probeEngine, verify?: typeof verifyHookEngine, lookup?: FleetEngineLookup, host?: FleetHost): EngineCapabilities;
11
21
  export interface FleetPlanOptions {
12
22
  home: string;
13
23
  env?: NodeJS.ProcessEnv;
14
24
  platform?: NodeJS.Platform;
25
+ /** Registration host; fleet-local when absent. */
26
+ host?: FleetHost;
15
27
  inspect?: (engine: string) => EngineCapabilities;
16
28
  /** Test injection. Production passes nothing and uses the desktop lookup. */
17
29
  lookup?: FleetEngineLookup;
@@ -24,7 +36,7 @@ export interface FleetPlanEntry {
24
36
  }
25
37
  export declare function fleetRegistrationPlan(root: string, fallbacks: Record<string, string[]>, options: FleetPlanOptions): {
26
38
  schema: string;
27
- host: string;
39
+ host: FleetHost;
28
40
  events: Record<string, FleetPlanEntry>;
29
41
  };
30
42
  //# sourceMappingURL=fleet-registration.d.ts.map
@@ -1,4 +1,13 @@
1
- /** Fleet uses the same flag, evaluator and complete-hook gate as reindex. */
1
+ /**
2
+ * Fleet uses the same flag, evaluator and complete-hook gate as reindex.
3
+ *
4
+ * Two hq-fleet runtimes register here (US-040): `fleet-local` (local bots)
5
+ * and `agents-v2` (hosted agents). Each event gets exactly one entry: the
6
+ * native `hq-hook run --host <host>` call when the engine advertises the host
7
+ * and covers every old hook for the event (including `<host>-adapter:<Event>`),
8
+ * else the host's shell adapter command, which is also the native entry's
9
+ * `--fleet-fallback` argv, verbatim.
10
+ */
2
11
  import * as fs from 'node:fs';
3
12
  import * as path from 'node:path';
4
13
  import { checkStableEngine, coreNextOffReason, capableEvents, probeEngine, missingEvaluators, resolveCoreNextEngine } from '../../utils/host-registration.js';
@@ -62,7 +71,21 @@ export function literalArgv(command) {
62
71
  out.push(word);
63
72
  return out;
64
73
  }
65
- export function fallbackProblem(argv) {
74
+ /** The shell adapter each Fleet host's profile registers. */
75
+ export const FLEET_ADAPTERS = {
76
+ 'fleet-local': 'hq-fleet-local-hook-adapter.sh',
77
+ 'agents-v2': 'hq-agents-v2-hook-adapter.sh',
78
+ };
79
+ export function isFleetHost(value) {
80
+ return value === 'fleet-local' || value === 'agents-v2';
81
+ }
82
+ /**
83
+ * Why `argv` is not `host`'s exact adapter command, or null. The agents-v2
84
+ * adapter takes the event as its one positional argument and the rest from
85
+ * its environment contract, so its fallback is exactly
86
+ * `[<bash|sh>, <abs>/hq-agents-v2-hook-adapter.sh, <event>]`.
87
+ */
88
+ export function fallbackProblem(argv, host = 'fleet-local', event) {
66
89
  if (!Array.isArray(argv) || argv.length < 2 || !argv.every(v => typeof v === 'string' && !v.includes('\0')))
67
90
  return 'fallback must be a nonempty argv vector';
68
91
  if (!path.isAbsolute(argv[0]))
@@ -73,43 +96,49 @@ export function fallbackProblem(argv) {
73
96
  catch {
74
97
  return 'fallback executable is unavailable';
75
98
  }
99
+ const fleet = host === 'fleet-local';
76
100
  if (['bash', 'sh'].includes(path.basename(argv[0]))) {
77
- if (!path.isAbsolute(argv[1]) || path.basename(argv[1]) !== 'hq-fleet-local-hook-adapter.sh')
78
- return 'fallback must name the fleet adapter script';
101
+ if (!path.isAbsolute(argv[1]) || path.basename(argv[1]) !== FLEET_ADAPTERS[host])
102
+ return fleet ? 'fallback must name the fleet adapter script' : 'fallback must name the agents-v2 adapter script';
79
103
  try {
80
104
  fs.accessSync(argv[1], fs.constants.R_OK);
81
105
  }
82
106
  catch {
83
107
  return 'fallback adapter is unavailable';
84
108
  }
109
+ if (!fleet && (event === undefined || argv.length !== 3 || argv[2] !== event))
110
+ return 'fallback must pass exactly the event to the agents-v2 adapter';
85
111
  }
86
112
  else
87
- return 'fallback must use the fleet shell adapter';
113
+ return fleet ? 'fallback must use the fleet shell adapter' : 'fallback must use the agents-v2 shell adapter';
88
114
  return null;
89
115
  }
90
- /** Self-check, then probe, then the fleet-local host claim. */
91
- export function fleetEngineCapabilities(engine, probe = probeEngine, verify = verifyHookEngine) {
116
+ /** Self-check, then probe, then the host claim. */
117
+ export function fleetEngineCapabilities(engine, probe = probeEngine, verify = verifyHookEngine, host = 'fleet-local') {
92
118
  const problem = verify(engine);
93
119
  if (problem)
94
120
  throw new Error(problem);
95
121
  const caps = probe(engine);
96
- if (!caps.registrationHosts?.includes('fleet-local'))
97
- throw new Error('engine does not support fleet-local registration');
122
+ if (!caps.registrationHosts?.includes(host))
123
+ throw new Error(`engine does not support ${host} registration`);
98
124
  return caps;
99
125
  }
100
- export function inspectFleetEngine(engine, home, probe = probeEngine, verify = verifyHookEngine, lookup = {}) {
101
- const resolved = resolveCoreNextEngine(home, { mode: 'read-only', lookup, probe: e => fleetEngineCapabilities(e, probe, verify) });
126
+ export function inspectFleetEngine(engine, home, probe = probeEngine, verify = verifyHookEngine, lookup = {}, host = 'fleet-local') {
127
+ const resolved = resolveCoreNextEngine(home, { mode: 'read-only', lookup, probe: e => fleetEngineCapabilities(e, probe, verify, host) });
102
128
  checkStableEngine(engine, resolved.pinned);
103
129
  return resolved.caps;
104
130
  }
105
131
  export function fleetRegistrationPlan(root, fallbacks, options) {
132
+ const host = options.host ?? 'fleet-local';
133
+ if (!isFleetHost(host))
134
+ throw new Error(`unsupported fleet registration host: ${String(host)}`);
106
135
  const env = options.env ?? process.env;
107
136
  let reason = coreNextOffReason(options.home, env, options.platform ?? process.platform);
108
137
  let caps;
109
138
  let engine = '';
110
139
  if (!reason) {
111
140
  try {
112
- const resolved = resolveCoreNextEngine(options.home, { mode: 'read-only', platform: options.platform, lookup: options.lookup, probe: options.inspect ?? (e => fleetEngineCapabilities(e)) });
141
+ const resolved = resolveCoreNextEngine(options.home, { mode: 'read-only', platform: options.platform, lookup: options.lookup, probe: options.inspect ?? (e => fleetEngineCapabilities(e, undefined, undefined, host)) });
113
142
  engine = resolved.stable;
114
143
  caps = resolved.caps;
115
144
  }
@@ -117,16 +146,23 @@ export function fleetRegistrationPlan(root, fallbacks, options) {
117
146
  reason = error.message;
118
147
  }
119
148
  }
120
- const target = caps ? forHost({ coreNext: engine, events: capableEvents(caps), covers: caps.covers }, root, 'fleet-local') : null;
149
+ // An injected inspect skips fleetEngineCapabilities, so check the host claim here too.
150
+ if (caps && !caps.registrationHosts?.includes(host)) {
151
+ reason = `engine does not support ${host} registration`;
152
+ caps = undefined;
153
+ }
154
+ const target = caps ? forHost({ coreNext: engine, events: capableEvents(caps), covers: caps.covers }, root, host, env) : null;
121
155
  const events = {};
122
156
  for (const [event, canonical] of Object.entries(FLEET_EVENTS)) {
123
157
  const fallback = fallbacks[event] ?? [];
124
- const problem = fallbackProblem(fallback);
158
+ if (!Array.isArray(fallback) || !fallback.every(arg => typeof arg === 'string'))
159
+ throw new Error(`${event}: fallback must be an argv vector`);
160
+ const problem = fallbackProblem(fallback, host, event);
125
161
  const native = !reason && !problem && target?.events.includes(canonical);
126
- const argv = native ? [engine, 'run', '--host', 'fleet-local', event, '--hq-root', root, '--fleet-fallback', JSON.stringify(fallback)] : fallback;
127
- const why = native ? 'complete evaluator and hook coverage' : reason ?? problem ?? (caps && missingEvaluators(caps, canonical)?.length ? 'required evaluators are missing' : `uncovered hooks: ${uncoveredHooks(root, 'fleet-local', canonical, caps?.covers).join(', ')}`);
162
+ const argv = native ? [engine, 'run', '--host', host, event, '--hq-root', root, '--fleet-fallback', JSON.stringify(fallback)] : fallback;
163
+ const why = native ? 'complete evaluator and hook coverage' : reason ?? problem ?? (caps && missingEvaluators(caps, canonical)?.length ? 'required evaluators are missing' : `uncovered hooks: ${uncoveredHooks(root, host, canonical, caps?.covers, env).join(', ')}`);
128
164
  events[event] = { mode: native ? 'native' : 'shell', argv, command: argv.map(quotePosix).join(' '), reason: why };
129
165
  }
130
- return { schema: 'hq.hook-registration-plan.v1', host: 'fleet-local', events };
166
+ return { schema: 'hq.hook-registration-plan.v1', host, events };
131
167
  }
132
168
  //# sourceMappingURL=fleet-registration.js.map
@@ -0,0 +1,513 @@
1
+ {
2
+ "git": "git version 2.50.1 (Apple Git-155)",
3
+ "commands": [
4
+ "git rev-parse --abbrev-ref HEAD",
5
+ "git rev-parse --short HEAD",
6
+ "git log --oneline -50"
7
+ ],
8
+ "derivedBy": "crates/hq-hook/tests/git-config-lab/derive.mjs",
9
+ "generousSections": [
10
+ "core",
11
+ "extensions",
12
+ "color",
13
+ "diff",
14
+ "log",
15
+ "pack",
16
+ "index",
17
+ "gc",
18
+ "i18n",
19
+ "trace2",
20
+ "init",
21
+ "safe"
22
+ ],
23
+ "readSections": [
24
+ "advice",
25
+ "attr",
26
+ "author",
27
+ "branch",
28
+ "color",
29
+ "commitgraph",
30
+ "committer",
31
+ "core",
32
+ "diff",
33
+ "extensions",
34
+ "feature",
35
+ "fetch",
36
+ "format",
37
+ "gc",
38
+ "grep",
39
+ "i18n",
40
+ "include",
41
+ "index",
42
+ "init",
43
+ "log",
44
+ "mailmap",
45
+ "pack",
46
+ "pager",
47
+ "pretty",
48
+ "push",
49
+ "safe",
50
+ "sparse",
51
+ "trace2",
52
+ "user"
53
+ ],
54
+ "readSubsections": [
55
+ "color",
56
+ "core",
57
+ "diff",
58
+ "extensions",
59
+ "gc",
60
+ "i18n",
61
+ "index",
62
+ "init",
63
+ "log",
64
+ "pack",
65
+ "safe",
66
+ "trace2"
67
+ ],
68
+ "allow": {
69
+ "advice.*": {
70
+ "type": "bool",
71
+ "bare": true,
72
+ "empty": true
73
+ },
74
+ "branch.autosetupmerge": {
75
+ "type": "bool",
76
+ "bare": true,
77
+ "empty": true,
78
+ "words": [
79
+ "always",
80
+ "inherit",
81
+ "simple"
82
+ ]
83
+ },
84
+ "branch.autosetuprebase": {
85
+ "type": "words",
86
+ "words": [
87
+ "never",
88
+ "local",
89
+ "remote",
90
+ "always"
91
+ ]
92
+ },
93
+ "branch.sort": {
94
+ "type": "text"
95
+ },
96
+ "color.branch": {
97
+ "type": "bool",
98
+ "bare": true,
99
+ "empty": true,
100
+ "words": [
101
+ "auto",
102
+ "never"
103
+ ],
104
+ "fold": true
105
+ },
106
+ "color.diff": {
107
+ "type": "bool",
108
+ "bare": true,
109
+ "empty": true,
110
+ "words": [
111
+ "auto",
112
+ "never"
113
+ ],
114
+ "fold": true
115
+ },
116
+ "color.diff.commit": {
117
+ "type": "color",
118
+ "empty": true
119
+ },
120
+ "color.diff.context": {
121
+ "type": "color",
122
+ "empty": true
123
+ },
124
+ "color.diff.frag": {
125
+ "type": "color",
126
+ "empty": true
127
+ },
128
+ "color.diff.func": {
129
+ "type": "color",
130
+ "empty": true
131
+ },
132
+ "color.diff.meta": {
133
+ "type": "color",
134
+ "empty": true
135
+ },
136
+ "color.diff.new": {
137
+ "type": "color",
138
+ "empty": true
139
+ },
140
+ "color.diff.old": {
141
+ "type": "color",
142
+ "empty": true
143
+ },
144
+ "color.diff.whitespace": {
145
+ "type": "color",
146
+ "empty": true
147
+ },
148
+ "color.status": {
149
+ "type": "bool",
150
+ "bare": true,
151
+ "empty": true,
152
+ "words": [
153
+ "auto",
154
+ "never"
155
+ ],
156
+ "fold": true
157
+ },
158
+ "color.ui": {
159
+ "type": "bool",
160
+ "bare": true,
161
+ "empty": true,
162
+ "words": [
163
+ "auto",
164
+ "never"
165
+ ],
166
+ "fold": true
167
+ },
168
+ "core.attributesfile": {
169
+ "type": "path",
170
+ "empty": true
171
+ },
172
+ "core.autocrlf": {
173
+ "type": "bool",
174
+ "bare": true,
175
+ "empty": true,
176
+ "words": [
177
+ "input"
178
+ ]
179
+ },
180
+ "core.bare": {
181
+ "type": "bool",
182
+ "bare": true,
183
+ "empty": true
184
+ },
185
+ "core.commentchar": {
186
+ "type": "words",
187
+ "words": [
188
+ "#",
189
+ ";",
190
+ "%",
191
+ "!",
192
+ "@",
193
+ ">",
194
+ "auto"
195
+ ]
196
+ },
197
+ "core.compression": {
198
+ "type": "uint",
199
+ "min": "0",
200
+ "max": "9",
201
+ "units": false,
202
+ "words": [
203
+ "-1"
204
+ ]
205
+ },
206
+ "core.editor": {
207
+ "type": "text",
208
+ "empty": true
209
+ },
210
+ "core.eol": {
211
+ "type": "words",
212
+ "words": [
213
+ "lf",
214
+ "crlf",
215
+ "native"
216
+ ]
217
+ },
218
+ "core.excludesfile": {
219
+ "type": "path",
220
+ "empty": true
221
+ },
222
+ "core.filemode": {
223
+ "type": "bool",
224
+ "bare": true,
225
+ "empty": true
226
+ },
227
+ "core.fsmonitor": {
228
+ "type": "bool",
229
+ "bare": true,
230
+ "empty": true
231
+ },
232
+ "core.hookspath": {
233
+ "type": "path",
234
+ "empty": true
235
+ },
236
+ "core.ignorecase": {
237
+ "type": "bool",
238
+ "bare": true,
239
+ "empty": true
240
+ },
241
+ "core.logallrefupdates": {
242
+ "type": "bool",
243
+ "empty": true,
244
+ "words": [
245
+ "always"
246
+ ]
247
+ },
248
+ "core.longpaths": {
249
+ "type": "bool",
250
+ "bare": true,
251
+ "empty": true
252
+ },
253
+ "core.pager": {
254
+ "type": "text",
255
+ "empty": true
256
+ },
257
+ "core.precomposeunicode": {
258
+ "type": "bool",
259
+ "bare": true,
260
+ "empty": true
261
+ },
262
+ "core.preloadindex": {
263
+ "type": "bool",
264
+ "bare": true,
265
+ "empty": true
266
+ },
267
+ "core.quotepath": {
268
+ "type": "bool",
269
+ "bare": true,
270
+ "empty": true
271
+ },
272
+ "core.safecrlf": {
273
+ "type": "bool",
274
+ "bare": true,
275
+ "empty": true,
276
+ "words": [
277
+ "warn"
278
+ ]
279
+ },
280
+ "core.sparsecheckout": {
281
+ "type": "bool",
282
+ "bare": true,
283
+ "empty": true
284
+ },
285
+ "core.sparsecheckoutcone": {
286
+ "type": "bool",
287
+ "bare": true,
288
+ "empty": true
289
+ },
290
+ "core.sshcommand": {
291
+ "type": "text",
292
+ "empty": true
293
+ },
294
+ "core.symlinks": {
295
+ "type": "bool",
296
+ "bare": true,
297
+ "empty": true
298
+ },
299
+ "core.untrackedcache": {
300
+ "type": "bool",
301
+ "empty": true,
302
+ "words": [
303
+ "keep"
304
+ ]
305
+ },
306
+ "core.whitespace": {
307
+ "type": "text",
308
+ "empty": true
309
+ },
310
+ "diff.algorithm": {
311
+ "type": "words",
312
+ "words": [
313
+ "default",
314
+ "myers",
315
+ "minimal",
316
+ "patience",
317
+ "histogram"
318
+ ],
319
+ "fold": true
320
+ },
321
+ "diff.colormoved": {
322
+ "type": "bool",
323
+ "bare": true,
324
+ "empty": true,
325
+ "words": [
326
+ "no",
327
+ "default",
328
+ "plain",
329
+ "blocks",
330
+ "zebra",
331
+ "dimmed-zebra"
332
+ ]
333
+ },
334
+ "diff.mnemonicprefix": {
335
+ "type": "bool",
336
+ "bare": true,
337
+ "empty": true
338
+ },
339
+ "diff.renames": {
340
+ "type": "bool",
341
+ "bare": true,
342
+ "empty": true,
343
+ "words": [
344
+ "copies",
345
+ "copy"
346
+ ]
347
+ },
348
+ "diff.tool": {
349
+ "type": "text"
350
+ },
351
+ "feature.manyfiles": {
352
+ "type": "bool",
353
+ "bare": true,
354
+ "empty": true
355
+ },
356
+ "fetch.all": {
357
+ "type": "bool",
358
+ "bare": true,
359
+ "empty": true
360
+ },
361
+ "fetch.prune": {
362
+ "type": "bool",
363
+ "bare": true,
364
+ "empty": true
365
+ },
366
+ "fetch.prunetags": {
367
+ "type": "bool",
368
+ "bare": true,
369
+ "empty": true
370
+ },
371
+ "fetch.writecommitgraph": {
372
+ "type": "bool",
373
+ "bare": true,
374
+ "empty": true
375
+ },
376
+ "gc.auto": {
377
+ "type": "uint",
378
+ "min": "0",
379
+ "max": "2147483647",
380
+ "units": false
381
+ },
382
+ "index.sparse": {
383
+ "type": "bool",
384
+ "bare": true,
385
+ "empty": true
386
+ },
387
+ "index.version": {
388
+ "type": "uint",
389
+ "min": "2",
390
+ "max": "4",
391
+ "units": false
392
+ },
393
+ "init.defaultbranch": {
394
+ "type": "text"
395
+ },
396
+ "init.templatedir": {
397
+ "type": "path"
398
+ },
399
+ "log.date": {
400
+ "type": "words",
401
+ "words": [
402
+ "default",
403
+ "relative",
404
+ "local",
405
+ "iso",
406
+ "iso8601",
407
+ "iso-strict",
408
+ "iso8601-strict",
409
+ "rfc",
410
+ "rfc2822",
411
+ "short",
412
+ "raw",
413
+ "human",
414
+ "unix",
415
+ "default-local",
416
+ "relative-local",
417
+ "iso-local",
418
+ "iso8601-local",
419
+ "iso-strict-local",
420
+ "rfc-local",
421
+ "short-local",
422
+ "raw-local",
423
+ "human-local",
424
+ "unix-local"
425
+ ]
426
+ },
427
+ "log.decorate": {
428
+ "type": "words",
429
+ "words": [
430
+ "false",
431
+ "no",
432
+ "off",
433
+ "0",
434
+ "auto"
435
+ ]
436
+ },
437
+ "log.showsignature": {
438
+ "type": "words",
439
+ "words": [
440
+ "false",
441
+ "no",
442
+ "off",
443
+ "0"
444
+ ]
445
+ },
446
+ "pager.*": {
447
+ "type": "text",
448
+ "empty": true
449
+ },
450
+ "pager.color": {
451
+ "type": "bool",
452
+ "bare": true,
453
+ "empty": true
454
+ },
455
+ "protocol.version": {
456
+ "type": "uint",
457
+ "min": "0",
458
+ "max": "2",
459
+ "units": false
460
+ },
461
+ "push.autosetupremote": {
462
+ "type": "bool",
463
+ "bare": true,
464
+ "empty": true
465
+ },
466
+ "push.default": {
467
+ "type": "words",
468
+ "words": [
469
+ "nothing",
470
+ "current",
471
+ "upstream",
472
+ "tracking",
473
+ "simple",
474
+ "matching"
475
+ ]
476
+ },
477
+ "push.followtags": {
478
+ "type": "bool",
479
+ "bare": true,
480
+ "empty": true
481
+ },
482
+ "safe.directory": {
483
+ "type": "text"
484
+ },
485
+ "submodule.recurse": {
486
+ "type": "bool",
487
+ "bare": true,
488
+ "empty": true
489
+ },
490
+ "transfer.fsckobjects": {
491
+ "type": "bool",
492
+ "bare": true,
493
+ "empty": true
494
+ },
495
+ "user.email": {
496
+ "type": "text",
497
+ "empty": true
498
+ },
499
+ "user.name": {
500
+ "type": "text",
501
+ "empty": true
502
+ },
503
+ "user.signingkey": {
504
+ "type": "text",
505
+ "empty": true
506
+ },
507
+ "user.useconfigonly": {
508
+ "type": "bool",
509
+ "bare": true,
510
+ "empty": true
511
+ }
512
+ }
513
+ }