@indigoai-us/hq-cloud 6.18.49-alpha.6 → 6.18.49-alpha.7
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-watch-loop.d.ts +1 -0
- package/dist/bin/sync-runner-watch-loop.d.ts.map +1 -1
- package/dist/bin/sync-runner-watch-loop.js +80 -10
- package/dist/bin/sync-runner-watch-loop.js.map +1 -1
- package/dist/bin/sync-runner.d.ts.map +1 -1
- package/dist/bin/sync-runner.js +7 -0
- package/dist/bin/sync-runner.js.map +1 -1
- package/dist/bin/watcher-catchup-skip-store.d.ts +8 -0
- package/dist/bin/watcher-catchup-skip-store.d.ts.map +1 -1
- package/dist/bin/watcher-catchup-skip-store.js +72 -2
- package/dist/bin/watcher-catchup-skip-store.js.map +1 -1
- package/package.json +1 -1
|
@@ -352,6 +352,7 @@ export declare function isSessionLogsPushOnlyPath(relativePath: string): boolean
|
|
|
352
352
|
export declare function isChoreLocalPush(paths: Iterable<string>, largeUpload: boolean): boolean;
|
|
353
353
|
/** Keep warm-up route telemetry useful on large checkouts without unbounded logs. */
|
|
354
354
|
export declare function watcherWarmupPathsByRoute(relativePaths: Iterable<string>): Record<string, number>;
|
|
355
|
+
export declare function watcherWarmupPrefixesByRoute(relativePaths: Iterable<string>): Record<string, Record<string, number>>;
|
|
355
356
|
/** A receiver event needs a known small upsert size before it can go realtime. */
|
|
356
357
|
export declare function isFastReceiverBatch(eventCount: number): boolean;
|
|
357
358
|
export declare function resolveEventBatchLimit(env?: Record<string, string | undefined>): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-runner-watch-loop.d.ts","sourceRoot":"","sources":["../../src/bin/sync-runner-watch-loop.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync-runner-watch-loop.d.ts","sourceRoot":"","sources":["../../src/bin/sync-runner-watch-loop.ts"],"names":[],"mappings":"AA2CA,OAAO,EAML,KAAK,UA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Ac,EACtB,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,CAgBjB;AAED,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,CAgwJjB"}
|
|
@@ -16,10 +16,12 @@ import { TRANSIENT_NETWORK_EXIT } from "../lib/net-errors.js";
|
|
|
16
16
|
import { PARTIAL_SYNC_EXIT, UNRESOLVED_COMPANY_EXIT, } from "../lib/exit-codes.js";
|
|
17
17
|
import { getOrCreateMachineIdMetadata } from "../lib/machine-id.js";
|
|
18
18
|
import { localPathForVaultKey } from "../local-path-codec.js";
|
|
19
|
+
import { isEphemeralPath } from "../cli/share.js";
|
|
19
20
|
import { cloudAuthoritativePathClass, isLocallyIneligibleForPush, } from "../lib/cloud-authoritative.js";
|
|
20
21
|
import { inspectLocalSymlinkScope } from "../symlink-target-policy.js";
|
|
21
22
|
import { shouldRecordLocalDeleteIntent } from "../local-replacement.js";
|
|
22
23
|
import { createIgnoreFilter } from "../ignore.js";
|
|
24
|
+
import { wrapFilterWithPersonalVaultDefaults } from "../personal-vault-exclusions.js";
|
|
23
25
|
import { TreeWatcher, resolveEventDebounceConfig, systemClock, } from "../watcher.js";
|
|
24
26
|
import { recoverHqRootLocalState } from "../hq-root-recovery.js";
|
|
25
27
|
import { clearLocalDeleteIntent, getStateDir, markLocalDeleteIntent, PERSONAL_VAULT_JOURNAL_SLUG, openJournalStoreSession, openJournalStoreSessionAsync, listJournalSlugs, isCorruptJournalJson, maintainAreaJournalSlice, disposeScopedJournalStores, releaseScopedJournalStore, releaseCachedAreaJournalMigrations, recoverCachedAreaJournalMirrorIfNeeded, setAreaLedgerRecoveryHqRootForProcess, journalCacheCensusSizes, emitJournalCacheMetric, journalRows, readJournalScoped, readJournalScopedAsync, applyJournalDeltaAsync, } from "../journal.js";
|
|
@@ -1335,6 +1337,36 @@ export function watcherWarmupPathsByRoute(relativePaths) {
|
|
|
1335
1337
|
result.other = other;
|
|
1336
1338
|
return result;
|
|
1337
1339
|
}
|
|
1340
|
+
export function watcherWarmupPrefixesByRoute(relativePaths) {
|
|
1341
|
+
const counts = new Map();
|
|
1342
|
+
for (const relativePath of relativePaths) {
|
|
1343
|
+
const route = routeChangeToTarget(relativePath);
|
|
1344
|
+
const key = route ? routeKey(route) : "unrouted";
|
|
1345
|
+
const routePath = route?.kind === "company"
|
|
1346
|
+
? relativePath.slice(`companies/${route.slug}/`.length)
|
|
1347
|
+
: relativePath;
|
|
1348
|
+
const prefix = routePath.split("/").slice(0, 2).join("/") || "(root)";
|
|
1349
|
+
const routeCounts = counts.get(key) ?? new Map();
|
|
1350
|
+
routeCounts.set(prefix, (routeCounts.get(prefix) ?? 0) + 1);
|
|
1351
|
+
counts.set(key, routeCounts);
|
|
1352
|
+
}
|
|
1353
|
+
const result = {};
|
|
1354
|
+
for (const [route, routeCounts] of [...counts.entries()].sort(([a], [b]) => a.localeCompare(b)).slice(0, 20)) {
|
|
1355
|
+
const ranked = [...routeCounts.entries()].sort(([leftKey, leftCount], [rightKey, rightCount]) => rightCount - leftCount || leftKey.localeCompare(rightKey));
|
|
1356
|
+
const top = {};
|
|
1357
|
+
for (const [prefix, count] of ranked.slice(0, 5))
|
|
1358
|
+
top[prefix] = count;
|
|
1359
|
+
const other = ranked.slice(5).reduce((sum, [, count]) => sum + count, 0);
|
|
1360
|
+
if (other > 0)
|
|
1361
|
+
top.other = other;
|
|
1362
|
+
result[route] = top;
|
|
1363
|
+
}
|
|
1364
|
+
const otherRoutes = [...counts.entries()].sort(([a], [b]) => a.localeCompare(b)).slice(20);
|
|
1365
|
+
if (otherRoutes.length > 0) {
|
|
1366
|
+
result.other = { other: otherRoutes.reduce((sum, [, routeCounts]) => sum + [...routeCounts.values()].reduce((routeSum, count) => routeSum + count, 0), 0) };
|
|
1367
|
+
}
|
|
1368
|
+
return result;
|
|
1369
|
+
}
|
|
1338
1370
|
/** A receiver event needs a known small upsert size before it can go realtime. */
|
|
1339
1371
|
export function isFastReceiverBatch(eventCount) {
|
|
1340
1372
|
return eventCount > 0 && eventCount <= resolveFastLaneLimits().maxFiles;
|
|
@@ -4072,6 +4104,7 @@ export async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
4072
4104
|
routePushFailureBackoff.succeeded(routeId);
|
|
4073
4105
|
clearRoutePushRetry(routeId);
|
|
4074
4106
|
if (group.route.kind === "company") {
|
|
4107
|
+
deps.watcherCatchupSkipStore?.recordUnresolvedCompany(group.route.slug);
|
|
4075
4108
|
logDroppedUnresolvedWatcherRoute(group.route.slug);
|
|
4076
4109
|
}
|
|
4077
4110
|
}
|
|
@@ -4498,13 +4531,14 @@ export async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
4498
4531
|
return;
|
|
4499
4532
|
const skipStore = deps.watcherCatchupSkipStore;
|
|
4500
4533
|
const cloudCompanySlugs = readCloudBackedSlugsFromManifest(hqRoot);
|
|
4501
|
-
for (const slug of listJournalSlugs()) {
|
|
4502
|
-
if (slug !== PERSONAL_VAULT_JOURNAL_SLUG)
|
|
4503
|
-
cloudCompanySlugs.add(slug);
|
|
4504
|
-
}
|
|
4505
4534
|
const eligiblePaths = new Map();
|
|
4506
4535
|
const eligibleChanges = new Map();
|
|
4507
4536
|
const excludedByReason = {};
|
|
4537
|
+
const excludedByReasonByRoute = {};
|
|
4538
|
+
const ignoreFilter = createIgnoreFilter(hqRoot);
|
|
4539
|
+
const personalFilterExclusions = new Map();
|
|
4540
|
+
const personalPushFilter = wrapFilterWithPersonalVaultDefaults(ignoreFilter, hqRoot, (relativePath, match) => personalFilterExclusions.set(relativePath, match.id));
|
|
4541
|
+
const clearedResolvedCompanies = new Set();
|
|
4508
4542
|
const ontologyBackupPaths = { attioCleanup: 0, readModelRollout: 0 };
|
|
4509
4543
|
const backupClass = (relativePath) => {
|
|
4510
4544
|
if (/\/ontology\/_attio-cleanup-backup\//.test(`/${relativePath}`))
|
|
@@ -4513,35 +4547,68 @@ export async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
4513
4547
|
return "readModelRollout";
|
|
4514
4548
|
return undefined;
|
|
4515
4549
|
};
|
|
4516
|
-
const exclude = (reason) => {
|
|
4550
|
+
const exclude = (reason, routeName) => {
|
|
4517
4551
|
excludedByReason[reason] = (excludedByReason[reason] ?? 0) + 1;
|
|
4552
|
+
const routeReasons = excludedByReasonByRoute[routeName] ??= {};
|
|
4553
|
+
routeReasons[reason] = (routeReasons[reason] ?? 0) + 1;
|
|
4518
4554
|
};
|
|
4519
4555
|
for (const [absolutePath, relativePath] of catchup.batch.paths) {
|
|
4520
4556
|
const route = routeChangeToTarget(relativePath);
|
|
4557
|
+
const routeName = route ? routeKey(route) : "unrouted";
|
|
4521
4558
|
const ontologyBackupClass = backupClass(relativePath);
|
|
4522
4559
|
if (ontologyBackupClass) {
|
|
4523
|
-
exclude("local-rule:ontology-backup");
|
|
4560
|
+
exclude("local-rule:ontology-backup", routeName);
|
|
4524
4561
|
ontologyBackupPaths[ontologyBackupClass] += 1;
|
|
4525
4562
|
continue;
|
|
4526
4563
|
}
|
|
4564
|
+
if (route?.kind === "company") {
|
|
4565
|
+
const resolvedNow = cloudCompanySlugs.has(route.slug) ||
|
|
4566
|
+
skipStore?.hasCurrentGrantCompany(route.slug) ||
|
|
4567
|
+
skipStore?.hasCurrentGrantVersion(route.slug) ||
|
|
4568
|
+
(companyMode && companySlug?.trim().toLowerCase() === route.slug.trim().toLowerCase());
|
|
4569
|
+
if (resolvedNow && !clearedResolvedCompanies.has(route.slug)) {
|
|
4570
|
+
skipStore?.clearUnresolvedCompany(route.slug);
|
|
4571
|
+
clearedResolvedCompanies.add(route.slug);
|
|
4572
|
+
}
|
|
4573
|
+
if (!resolvedNow && skipStore?.hasFreshUnresolvedCompany(route.slug)) {
|
|
4574
|
+
exclude("unresolved-company", routeName);
|
|
4575
|
+
continue;
|
|
4576
|
+
}
|
|
4577
|
+
}
|
|
4527
4578
|
if (route?.kind === "company" &&
|
|
4528
4579
|
!cloudCompanySlugs.has(route.slug) &&
|
|
4529
4580
|
!skipStore?.hasCurrentGrantCompany(route.slug) &&
|
|
4530
4581
|
!skipStore?.hasCurrentGrantVersion(route.slug) &&
|
|
4531
4582
|
!(companyMode && companySlug?.trim().toLowerCase() === route.slug.trim().toLowerCase())) {
|
|
4532
|
-
exclude("local-only-company");
|
|
4583
|
+
exclude("local-only-company", routeName);
|
|
4533
4584
|
continue;
|
|
4534
4585
|
}
|
|
4535
4586
|
const company = route?.kind === "company" ? route.slug : "personal";
|
|
4536
4587
|
const routePath = route?.kind === "company"
|
|
4537
4588
|
? relativePath.slice(`companies/${route.slug}/`.length)
|
|
4538
4589
|
: relativePath;
|
|
4590
|
+
if (isEphemeralPath(routePath)) {
|
|
4591
|
+
exclude("push-filter:conflict-mirror", routeName);
|
|
4592
|
+
continue;
|
|
4593
|
+
}
|
|
4594
|
+
const acceptedByPushFilter = route?.kind === "personal"
|
|
4595
|
+
? personalPushFilter(absolutePath, false)
|
|
4596
|
+
: ignoreFilter(absolutePath, false);
|
|
4597
|
+
if (!acceptedByPushFilter) {
|
|
4598
|
+
const exclusionId = route?.kind === "personal"
|
|
4599
|
+
? personalFilterExclusions.get(relativePath)
|
|
4600
|
+
: undefined;
|
|
4601
|
+
exclude(exclusionId
|
|
4602
|
+
? `push-filter:personal:${exclusionId}`
|
|
4603
|
+
: "push-filter:ignore", routeName);
|
|
4604
|
+
continue;
|
|
4605
|
+
}
|
|
4539
4606
|
if (route && isLocallyIneligibleForPush(routePath, {
|
|
4540
4607
|
boardClientOwned: true,
|
|
4541
4608
|
ontologyEntityPush: route.kind === "company" && skipStore?.allowsOntologyEntityPush(company),
|
|
4542
4609
|
})) {
|
|
4543
4610
|
const pathClass = cloudAuthoritativePathClass(routePath) ?? "other";
|
|
4544
|
-
exclude(`local-rule:${pathClass}
|
|
4611
|
+
exclude(`local-rule:${pathClass}`, routeName);
|
|
4545
4612
|
continue;
|
|
4546
4613
|
}
|
|
4547
4614
|
try {
|
|
@@ -4561,12 +4628,12 @@ export async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
4561
4628
|
: { kind: "personal" },
|
|
4562
4629
|
});
|
|
4563
4630
|
if (inspection.refused) {
|
|
4564
|
-
exclude("symlink");
|
|
4631
|
+
exclude("symlink", routeName);
|
|
4565
4632
|
continue;
|
|
4566
4633
|
}
|
|
4567
4634
|
}
|
|
4568
4635
|
if (skipStore?.matches(company, routePath, stat)) {
|
|
4569
|
-
exclude("record-match");
|
|
4636
|
+
exclude("record-match", routeName);
|
|
4570
4637
|
continue;
|
|
4571
4638
|
}
|
|
4572
4639
|
}
|
|
@@ -4594,11 +4661,14 @@ export async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
4594
4661
|
type: "watcher-warmup-catchup",
|
|
4595
4662
|
reason: "watch-set-ready",
|
|
4596
4663
|
pathsFound: eligiblePaths.size,
|
|
4664
|
+
candidatePathsByRoute: watcherWarmupPathsByRoute(catchup.batch.paths.values()),
|
|
4597
4665
|
pathsByRoute: watcherWarmupPathsByRoute(eligiblePaths.values()),
|
|
4666
|
+
pathPrefixesByRoute: watcherWarmupPrefixesByRoute(catchup.batch.paths.values()),
|
|
4598
4667
|
excludedByReason: {
|
|
4599
4668
|
...excludedByReason,
|
|
4600
4669
|
...(capEvicted > 0 ? { "cap-evicted": capEvicted } : {}),
|
|
4601
4670
|
},
|
|
4671
|
+
excludedByReasonByRoute,
|
|
4602
4672
|
ontologyBackupPaths,
|
|
4603
4673
|
scannedPaths: catchup.scannedPaths,
|
|
4604
4674
|
elapsedMs: Date.now() - startedAt,
|