@indigoai-us/hq-cli 5.307.0 → 5.309.0

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 (35) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/assets/scaffold/core/scripts/resolve-company.sh +199 -0
  3. package/dist/command-catalog.generated.d.ts +13 -0
  4. package/dist/command-catalog.generated.js +16 -0
  5. package/dist/commands/core-resolve-company-command.d.ts +4 -0
  6. package/dist/commands/core-resolve-company-command.js +42 -0
  7. package/dist/commands/core-resolve-company-native.d.ts +28 -0
  8. package/dist/commands/core-resolve-company-native.js +408 -0
  9. package/dist/commands/core.js +3 -0
  10. package/dist/commands/lanes-checks.d.ts +7 -1
  11. package/dist/commands/lanes-checks.js +68 -18
  12. package/dist/commands/lanes-report.js +5 -2
  13. package/dist/fast-scaffold.js +12 -0
  14. package/dist/lib/doctor/checks/codex-wiring.d.ts +0 -4
  15. package/dist/lib/doctor/checks/codex-wiring.js +2 -2
  16. package/dist/lib/doctor/checks/runtime-health.d.ts +0 -17
  17. package/dist/lib/doctor/checks/runtime-health.js +4 -4
  18. package/dist/lib/doctor/checks/scaffold-cli-floor.d.ts +0 -1
  19. package/dist/lib/doctor/checks/scaffold-cli-floor.js +1 -1
  20. package/dist/lib/doctor/compat.d.ts +0 -16
  21. package/dist/lib/doctor/compat.js +3 -3
  22. package/dist/lib/doctor/platform.d.ts +0 -26
  23. package/dist/lib/doctor/platform.js +5 -5
  24. package/dist/lib/lanes/autopilot.js +122 -102
  25. package/dist/lib/onboarding/errors.d.ts +2 -1
  26. package/dist/lib/onboarding/errors.js +1 -1
  27. package/dist/lib/onboarding/index.d.ts +2 -6
  28. package/dist/lib/onboarding/index.js +2 -5
  29. package/dist/lib/search-index/embed-lock.d.ts +0 -7
  30. package/dist/lib/search-index/embed-lock.js +1 -1
  31. package/dist/lib/search-index/load-gate.d.ts +0 -8
  32. package/dist/lib/search-index/load-gate.js +3 -3
  33. package/dist/lib/search-index/max-doc-bytes.d.ts +2 -3
  34. package/dist/lib/search-index/max-doc-bytes.js +1 -1
  35. package/package.json +1 -1
@@ -46,7 +46,7 @@ function errorCode(error) {
46
46
  function missing(error) {
47
47
  return errorCode(error) === 'ENOENT';
48
48
  }
49
- export function parseProcStatAggregate(contents) {
49
+ function parseProcStatAggregate(contents) {
50
50
  const line = contents.split('\n').find((candidate) => /^cpu\s+/.test(candidate));
51
51
  if (!line)
52
52
  return undefined;
@@ -58,7 +58,7 @@ export function parseProcStatAggregate(contents) {
58
58
  const idle = values[3] + values[4];
59
59
  return total > 0 && Number.isFinite(idle) ? { total, idle } : undefined;
60
60
  }
61
- export function cpuBusyPercent(before, after) {
61
+ function cpuBusyPercent(before, after) {
62
62
  const totalDelta = after.total - before.total;
63
63
  const idleDelta = after.idle - before.idle;
64
64
  if (totalDelta <= 0 || idleDelta < 0)
@@ -117,7 +117,7 @@ export function measureCpuPercent(dependencies) {
117
117
  throw new Error('Cannot determine CPU busy time from /proc/stat.');
118
118
  return busy;
119
119
  }
120
- export function memAvailableFraction(contents) {
120
+ function memAvailableFraction(contents) {
121
121
  const fields = new Map();
122
122
  for (const line of contents.split('\n')) {
123
123
  const match = /^(MemTotal|MemAvailable):\s+(\d+)\s+kB$/.exec(line.trim());
@@ -53,8 +53,6 @@ import * as fs from "node:fs";
53
53
  * median and is, in practice, always generated output rather than prose.
54
54
  */
55
55
  export declare const DEFAULT_INDEX_MAX_DOC_BYTES: number;
56
- /** Where this module records the ignore entries it generated. */
57
- export declare function sizeIgnoreRecordPath(hqRoot: string): string;
58
56
  /**
59
57
  * qmd's config file, resolved the way qmd's own CLI resolves it.
60
58
  *
@@ -166,7 +164,7 @@ export declare function findOversizedFiles(collectionPath: string, mask: string,
166
164
  */
167
165
  export declare function prunablePrefixes(patterns: readonly string[]): string[];
168
166
  /** What a single collection ended up ignoring on account of the size cap. */
169
- export type CappedCollection = {
167
+ type CappedCollection = {
170
168
  name: string;
171
169
  ignored: string[];
172
170
  };
@@ -217,4 +215,5 @@ export type ApplyIndexSizeLimitOptions = {
217
215
  * take the lock, so the residual race is documented rather than papered over.
218
216
  */
219
217
  export declare function applyIndexSizeLimit(hqRoot: string, options?: ApplyIndexSizeLimitOptions): IndexSizeLimitResult;
218
+ export {};
220
219
  //# sourceMappingURL=max-doc-bytes.d.ts.map
@@ -69,7 +69,7 @@ const EXCLUDED_DIRECTORIES = new Set([
69
69
  "build",
70
70
  ]);
71
71
  /** Where this module records the ignore entries it generated. */
72
- export function sizeIgnoreRecordPath(hqRoot) {
72
+ function sizeIgnoreRecordPath(hqRoot) {
73
73
  return path.join(hqRoot, ".hq", "index-size-ignores.json");
74
74
  }
75
75
  /** qmd's default index name; the config file and store are both named after it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigoai-us/hq-cli",
3
- "version": "5.307.0",
3
+ "version": "5.309.0",
4
4
  "description": "HQ by Indigo management CLI — modules and cloud sync",
5
5
  "main": "dist/index.js",
6
6
  "bin": {