@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.
- package/dist/bin/sync-runner.d.ts.map +1 -1
- package/dist/bin/sync-runner.js +39 -1
- package/dist/bin/sync-runner.js.map +1 -1
- package/dist/bin/sync-runner.test.js +100 -2
- package/dist/bin/sync-runner.test.js.map +1 -1
- package/dist/cli/share.d.ts.map +1 -1
- package/dist/cli/share.js +128 -1
- package/dist/cli/share.js.map +1 -1
- package/dist/cli/share.test.js +256 -1
- package/dist/cli/share.test.js.map +1 -1
- package/dist/cli/sync.d.ts +35 -1
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js.map +1 -1
- package/dist/personal-vault.d.ts.map +1 -1
- package/dist/personal-vault.js +17 -1
- package/dist/personal-vault.js.map +1 -1
- package/dist/personal-vault.test.js +61 -0
- package/dist/personal-vault.test.js.map +1 -1
- package/package.json +1 -1
- package/src/bin/sync-runner.test.ts +106 -2
- package/src/bin/sync-runner.ts +41 -1
- package/src/cli/share.test.ts +311 -1
- package/src/cli/share.ts +146 -2
- package/src/cli/sync.ts +36 -1
- package/src/personal-vault.test.ts +91 -0
- package/src/personal-vault.ts +16 -1
package/src/personal-vault.ts
CHANGED
|
@@ -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
|
/**
|