@indigoai-us/hq-cloud 5.37.0 → 5.39.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.
@@ -105,10 +105,25 @@ export function computePersonalVaultPaths(
105
105
  const topLevel = entries
106
106
  .filter((name) => !PERSONAL_VAULT_EXCLUDED_TOP_LEVEL.includes(name))
107
107
  .map((name) => path.join(hqRoot, name));
108
+ // companies/manifest.yaml is the routing source-of-truth (which slugs
109
+ // exist, which are cloud-backed, what their UIDs are). It must travel
110
+ // with every machine's personal vault so a fresh install can enumerate
111
+ // expected non-cloud companies before its first pull. Special-cased
112
+ // because the parent `companies/` is in PERSONAL_VAULT_EXCLUDED_TOP_LEVEL
113
+ // (we never enumerate the whole companies tree wholesale).
114
+ const manifest: string[] = [];
115
+ const manifestPath = path.join(hqRoot, "companies", "manifest.yaml");
116
+ try {
117
+ if (fs.statSync(manifestPath).isFile()) {
118
+ manifest.push(manifestPath);
119
+ }
120
+ } catch {
121
+ // Missing or unreadable — silently omit. Callers tolerate empty arrays.
122
+ }
108
123
  const companySubdirs = opts.includeLocalCompanies === true
109
124
  ? computePersonalCompanySubdirs(hqRoot, opts.teamSyncedSlugs)
110
125
  : [];
111
- return [...topLevel, ...companySubdirs];
126
+ return [...topLevel, ...manifest, ...companySubdirs];
112
127
  }
113
128
 
114
129
  /**