@indigoai-us/hq-cli 5.345.175 → 5.345.176
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/CHANGELOG.md +22 -0
- package/dist/command-catalog.generated.d.ts +65 -0
- package/dist/command-catalog.generated.js +80 -0
- package/dist/commands/bot.d.ts +28 -2
- package/dist/commands/bot.js +29 -6
- package/dist/commands/daemon.js +16 -0
- package/dist/commands/lanes-loop.d.ts +4 -1
- package/dist/commands/lanes-loop.js +23 -4
- package/dist/commands/lanes-shared.d.ts +5 -0
- package/dist/commands/lanes.d.ts +5 -7
- package/dist/commands/lanes.js +65 -5
- package/dist/commands/sync-core.d.ts +17 -0
- package/dist/commands/sync-core.js +46 -5
- package/dist/commands/sync-manifest.d.ts +6 -0
- package/dist/commands/sync-manifest.js +13 -0
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +448 -226
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/lib/bot/cli-update.d.ts +36 -0
- package/dist/lib/bot/cli-update.js +160 -42
- package/dist/lib/bot/run.d.ts +21 -0
- package/dist/lib/bot/run.js +127 -10
- package/dist/lib/bot/runtime/claude.d.ts +7 -1
- package/dist/lib/bot/runtime/claude.js +29 -0
- package/dist/lib/bot/runtime/codex.d.ts +5 -0
- package/dist/lib/bot/runtime/codex.js +13 -0
- package/dist/lib/bot/runtime/types.d.ts +10 -0
- package/dist/lib/bot/runtime-sign-in-check.d.ts +32 -0
- package/dist/lib/bot/runtime-sign-in-check.js +53 -0
- package/dist/lib/bot/runtime-sign-in.d.ts +32 -3
- package/dist/lib/bot/runtime-sign-in.js +17 -2
- package/dist/lib/bot/status.d.ts +25 -1
- package/dist/lib/bot/status.js +28 -0
- package/dist/lib/daemon/catalog.d.ts +4 -0
- package/dist/lib/daemon/catalog.js +47 -19
- package/dist/lib/daemon/run.js +1 -0
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/lanes/loop-disposition.d.ts +44 -0
- package/dist/lib/lanes/loop-disposition.js +302 -0
- package/dist/lib/lanes/loop.d.ts +16 -3
- package/dist/lib/lanes/loop.js +167 -60
- package/dist/lib/lanes/reconcile.d.ts +5 -0
- package/dist/lib/lanes/reconcile.js +79 -4
- package/dist/lib/mesh/live/daemon/work-subscribe.d.ts +3 -0
- package/dist/lib/mesh/live/daemon/work-subscribe.js +41 -12
- package/dist/lib/sync-core/engine-home.d.ts +11 -4
- package/dist/lib/sync-core/engine-home.js +22 -21
- package/dist/lib/sync-core/manifest-scopes.d.ts +15 -0
- package/dist/lib/sync-core/manifest-scopes.js +26 -0
- package/dist/lib/sync-core/reconcile.d.ts +2 -2
- package/dist/lib/sync-core/reconcile.js +70 -46
- package/dist/lib/sync-core/release.d.ts +2 -2
- package/dist/lib/sync-core/release.js +31 -6
- package/dist/lib/sync-core/rollout-state.d.ts +6 -3
- package/dist/lib/sync-core/rollout-state.js +26 -22
- package/package.json +8 -8
|
@@ -4507,11 +4507,11 @@ var init_externalDataInterceptor = __esm({
|
|
|
4507
4507
|
// node_modules/.pnpm/@smithy+core@3.33.3/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
|
|
4508
4508
|
function getSelectorName(functionString) {
|
|
4509
4509
|
try {
|
|
4510
|
-
const
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
return [...
|
|
4510
|
+
const constants7 = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
4511
|
+
constants7.delete("CONFIG");
|
|
4512
|
+
constants7.delete("CONFIG_PREFIX_SEPARATOR");
|
|
4513
|
+
constants7.delete("ENV");
|
|
4514
|
+
return [...constants7].join(", ");
|
|
4515
4515
|
} catch (ignored) {
|
|
4516
4516
|
return functionString;
|
|
4517
4517
|
}
|
|
@@ -16317,11 +16317,11 @@ var init_externalDataInterceptor2 = __esm({
|
|
|
16317
16317
|
// node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
|
|
16318
16318
|
function getSelectorName2(functionString) {
|
|
16319
16319
|
try {
|
|
16320
|
-
const
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
return [...
|
|
16320
|
+
const constants7 = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
16321
|
+
constants7.delete("CONFIG");
|
|
16322
|
+
constants7.delete("CONFIG_PREFIX_SEPARATOR");
|
|
16323
|
+
constants7.delete("ENV");
|
|
16324
|
+
return [...constants7].join(", ");
|
|
16325
16325
|
} catch (ignored) {
|
|
16326
16326
|
return functionString;
|
|
16327
16327
|
}
|
|
@@ -35427,11 +35427,11 @@ var init_externalDataInterceptor3 = __esm({
|
|
|
35427
35427
|
// node_modules/.pnpm/@smithy+core@3.24.3/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
|
|
35428
35428
|
function getSelectorName3(functionString) {
|
|
35429
35429
|
try {
|
|
35430
|
-
const
|
|
35431
|
-
|
|
35432
|
-
|
|
35433
|
-
|
|
35434
|
-
return [...
|
|
35430
|
+
const constants7 = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
35431
|
+
constants7.delete("CONFIG");
|
|
35432
|
+
constants7.delete("CONFIG_PREFIX_SEPARATOR");
|
|
35433
|
+
constants7.delete("ENV");
|
|
35434
|
+
return [...constants7].join(", ");
|
|
35435
35435
|
} catch (e5) {
|
|
35436
35436
|
return functionString;
|
|
35437
35437
|
}
|
|
@@ -54023,7 +54023,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
54023
54023
|
return this.connectOptions === void 0 ? http22.connect(url2) : http22.connect(url2, this.connectOptions);
|
|
54024
54024
|
}
|
|
54025
54025
|
};
|
|
54026
|
-
var { constants:
|
|
54026
|
+
var { constants: constants7 } = http22;
|
|
54027
54027
|
var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
54028
54028
|
config;
|
|
54029
54029
|
configProvider;
|
|
@@ -54113,8 +54113,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
54113
54113
|
}
|
|
54114
54114
|
const clientHttp2Stream = session.request({
|
|
54115
54115
|
...request5.headers,
|
|
54116
|
-
[
|
|
54117
|
-
[
|
|
54116
|
+
[constants7.HTTP2_HEADER_PATH]: path76,
|
|
54117
|
+
[constants7.HTTP2_HEADER_METHOD]: method
|
|
54118
54118
|
});
|
|
54119
54119
|
if (effectiveRequestTimeout) {
|
|
54120
54120
|
clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => {
|
|
@@ -79366,12 +79366,12 @@ var require_dist_cjs42 = __commonJS({
|
|
|
79366
79366
|
}
|
|
79367
79367
|
});
|
|
79368
79368
|
|
|
79369
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79369
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/push-identity-fence.js
|
|
79370
79370
|
import * as crypto2 from "crypto";
|
|
79371
79371
|
import * as fs2 from "fs";
|
|
79372
79372
|
import * as path from "path";
|
|
79373
79373
|
|
|
79374
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79374
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/fsync-compat.js
|
|
79375
79375
|
import * as fs from "node:fs";
|
|
79376
79376
|
var UNSUPPORTED_DIRECTORY_FSYNC_CODES = /* @__PURE__ */ new Set(["EINVAL", "ENOTSUP", "EOPNOTSUPP", "EPERM"]);
|
|
79377
79377
|
var loggedSkips = /* @__PURE__ */ new Set();
|
|
@@ -79395,7 +79395,7 @@ function fsyncWithCompatibility(fd, options) {
|
|
|
79395
79395
|
}
|
|
79396
79396
|
}
|
|
79397
79397
|
|
|
79398
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79398
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/push-identity-fence.js
|
|
79399
79399
|
var RECORD_FORMAT = "hq-push-identity@2";
|
|
79400
79400
|
var MACHINE_FORMAT = "hq-push-identity-machine@1";
|
|
79401
79401
|
var PERSON_FORMAT = "hq-push-identity-person@1";
|
|
@@ -79483,6 +79483,70 @@ function notePushIdentityHeld(stateDir5, journalSlug, count, paths) {
|
|
|
79483
79483
|
held: { count, samplePaths: paths.slice(0, HELD_SAMPLE_CAP), at: (/* @__PURE__ */ new Date()).toISOString() }
|
|
79484
79484
|
});
|
|
79485
79485
|
}
|
|
79486
|
+
function scopeIdentitySwitchPending(stateDir5, journalSlug) {
|
|
79487
|
+
const marker = readMachine(stateDir5);
|
|
79488
|
+
if (marker.kind === "none")
|
|
79489
|
+
return false;
|
|
79490
|
+
if (marker.kind === "unreadable")
|
|
79491
|
+
return true;
|
|
79492
|
+
const settled = readText(pullSettledPath(stateDir5, journalSlug));
|
|
79493
|
+
if (settled.kind !== "ok")
|
|
79494
|
+
return true;
|
|
79495
|
+
try {
|
|
79496
|
+
const parsed = JSON.parse(settled.value);
|
|
79497
|
+
return parsed.format !== PULL_SETTLED_FORMAT || parsed.machineSwitchId !== marker.value.id;
|
|
79498
|
+
} catch {
|
|
79499
|
+
return true;
|
|
79500
|
+
}
|
|
79501
|
+
}
|
|
79502
|
+
function noteCompanyRebind(stateDir5, journalSlug, pulls, companyUid) {
|
|
79503
|
+
const filePath = rebindPath(stateDir5, journalSlug);
|
|
79504
|
+
const latest = latestPullRecord(pulls ?? []);
|
|
79505
|
+
if (latest && companyUid && latest.companyUid !== companyUid) {
|
|
79506
|
+
if (readText(filePath).kind !== "ok") {
|
|
79507
|
+
writeJsonAtomic(filePath, { format: REBIND_FORMAT, slug: journalSlug, companyUid });
|
|
79508
|
+
}
|
|
79509
|
+
return true;
|
|
79510
|
+
}
|
|
79511
|
+
return readText(filePath).kind !== "none";
|
|
79512
|
+
}
|
|
79513
|
+
var REBIND_FORMAT = "hq-company-rebind@1";
|
|
79514
|
+
function latestPullRecord(pulls) {
|
|
79515
|
+
let best;
|
|
79516
|
+
let bestMs = Number.NEGATIVE_INFINITY;
|
|
79517
|
+
for (const record2 of pulls) {
|
|
79518
|
+
const parsed = Date.parse(record2.completedAt ?? "");
|
|
79519
|
+
const ms = Number.isFinite(parsed) ? parsed : bestMs;
|
|
79520
|
+
if (ms >= bestMs) {
|
|
79521
|
+
best = record2;
|
|
79522
|
+
bestMs = ms;
|
|
79523
|
+
}
|
|
79524
|
+
}
|
|
79525
|
+
return best;
|
|
79526
|
+
}
|
|
79527
|
+
function rebindPath(stateDir5, journalSlug) {
|
|
79528
|
+
const id = crypto2.createHash("sha256").update(journalSlug).digest("hex").slice(0, 32);
|
|
79529
|
+
return path.join(stateDir5, "push-identity", `company-rebind-${id}.json`);
|
|
79530
|
+
}
|
|
79531
|
+
function markScopePullSettled(stateDir5, journalSlug) {
|
|
79532
|
+
try {
|
|
79533
|
+
fs2.rmSync(rebindPath(stateDir5, journalSlug), { force: true });
|
|
79534
|
+
} catch {
|
|
79535
|
+
}
|
|
79536
|
+
const marker = readMachine(stateDir5);
|
|
79537
|
+
if (marker.kind !== "ok")
|
|
79538
|
+
return;
|
|
79539
|
+
writeJsonAtomic(pullSettledPath(stateDir5, journalSlug), {
|
|
79540
|
+
format: PULL_SETTLED_FORMAT,
|
|
79541
|
+
slug: journalSlug,
|
|
79542
|
+
machineSwitchId: marker.value.id
|
|
79543
|
+
});
|
|
79544
|
+
}
|
|
79545
|
+
var PULL_SETTLED_FORMAT = "hq-pull-switch-settled@1";
|
|
79546
|
+
function pullSettledPath(stateDir5, journalSlug) {
|
|
79547
|
+
const id = crypto2.createHash("sha256").update(journalSlug).digest("hex").slice(0, 32);
|
|
79548
|
+
return path.join(stateDir5, "push-identity", `pull-settled-${id}.json`);
|
|
79549
|
+
}
|
|
79486
79550
|
function anotherPersonPushedHere(stateDir5, sub) {
|
|
79487
79551
|
for (const filePath of recordFiles(stateDir5)) {
|
|
79488
79552
|
const read = parseRecord(filePath);
|
|
@@ -79601,14 +79665,14 @@ function writeJsonAtomic(filePath, value) {
|
|
|
79601
79665
|
}
|
|
79602
79666
|
}
|
|
79603
79667
|
|
|
79604
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79668
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
79605
79669
|
import * as fs28 from "node:fs";
|
|
79606
79670
|
import * as os6 from "node:os";
|
|
79607
79671
|
import * as path24 from "node:path";
|
|
79608
79672
|
import { Session } from "node:inspector";
|
|
79609
79673
|
import { fileURLToPath as fileURLToPath3, pathToFileURL } from "node:url";
|
|
79610
79674
|
|
|
79611
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
79675
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
79612
79676
|
import * as fs27 from "fs";
|
|
79613
79677
|
import { createHash as createHash19 } from "node:crypto";
|
|
79614
79678
|
import { readFile as readFile8, stat as stat4 } from "node:fs/promises";
|
|
@@ -81304,7 +81368,7 @@ function watch(paths, options = {}) {
|
|
|
81304
81368
|
return watcher;
|
|
81305
81369
|
}
|
|
81306
81370
|
|
|
81307
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81371
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cloud-placeholder.js
|
|
81308
81372
|
import * as fs3 from "fs";
|
|
81309
81373
|
import * as path2 from "path";
|
|
81310
81374
|
var CLOUD_PLACEHOLDER_SUFFIX = ".hqcloud";
|
|
@@ -81742,18 +81806,18 @@ function writeCloudPlaceholder(placeholderPath, placeholder) {
|
|
|
81742
81806
|
}
|
|
81743
81807
|
}
|
|
81744
81808
|
|
|
81745
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81809
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
|
|
81746
81810
|
var import_ignore = __toESM(require_ignore(), 1);
|
|
81747
81811
|
import * as fs4 from "fs";
|
|
81748
81812
|
import * as path3 from "path";
|
|
81749
81813
|
|
|
81750
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81814
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/restore-staging.js
|
|
81751
81815
|
var RESTORE_STAGING_SUFFIX = /\.hq-restore-(?:\d+(?:-\d+)?|probe-\d+-[0-9a-z]+)$/i;
|
|
81752
81816
|
function isRestoreStagingPath(relativePath) {
|
|
81753
81817
|
return relativePath.split(/[\\/]/).some((segment) => RESTORE_STAGING_SUFFIX.test(segment));
|
|
81754
81818
|
}
|
|
81755
81819
|
|
|
81756
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81820
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/best-effort-error.js
|
|
81757
81821
|
var EXPECTED_ABSENCE_CODES = /* @__PURE__ */ new Set([
|
|
81758
81822
|
"ENOENT",
|
|
81759
81823
|
"NoSuchKey",
|
|
@@ -81795,7 +81859,7 @@ function noteSwallowedError(log, event, error64, options = {}) {
|
|
|
81795
81859
|
`);
|
|
81796
81860
|
}
|
|
81797
81861
|
|
|
81798
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
81862
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/ignore.js
|
|
81799
81863
|
function logSwallowed(line) {
|
|
81800
81864
|
process.stderr.write(line);
|
|
81801
81865
|
}
|
|
@@ -82508,7 +82572,7 @@ function isWithinSizeLimit(filePath, maxBytes = SYNC_MAX_FILE_BYTES) {
|
|
|
82508
82572
|
}
|
|
82509
82573
|
}
|
|
82510
82574
|
|
|
82511
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82575
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/watch-roots.js
|
|
82512
82576
|
import * as fs5 from "fs";
|
|
82513
82577
|
import * as path4 from "path";
|
|
82514
82578
|
function defaultListChildDirs(dir, onSymlinkEntry) {
|
|
@@ -82582,7 +82646,7 @@ function isCoveredByRecursiveRoot(absolutePath, recursiveRoots) {
|
|
|
82582
82646
|
}
|
|
82583
82647
|
}
|
|
82584
82648
|
|
|
82585
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82649
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/watch-coverage.js
|
|
82586
82650
|
import * as fs6 from "fs";
|
|
82587
82651
|
function directoryIdentityAt(absolutePath) {
|
|
82588
82652
|
try {
|
|
@@ -82619,7 +82683,7 @@ function probeScopedWatchCoverage(input2) {
|
|
|
82619
82683
|
return { ok: true };
|
|
82620
82684
|
}
|
|
82621
82685
|
|
|
82622
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82686
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/local-path-codec.js
|
|
82623
82687
|
import * as path5 from "path";
|
|
82624
82688
|
var WIN32_RESERVED_CHARS = /[<>:"/\\|?*]/;
|
|
82625
82689
|
var WIN32_DEVICE_NAME = /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i;
|
|
@@ -82677,7 +82741,7 @@ function canonicalVaultKeySpelling(key) {
|
|
|
82677
82741
|
return segments.join("/");
|
|
82678
82742
|
}
|
|
82679
82743
|
|
|
82680
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
82744
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/personal-vault-exclusions.js
|
|
82681
82745
|
import * as path6 from "path";
|
|
82682
82746
|
import * as fs7 from "fs";
|
|
82683
82747
|
function hasSegment(relPath, segment) {
|
|
@@ -82974,7 +83038,7 @@ function wrapFilterWithPersonalVaultDefaults(underlying, syncRoot, onExcluded, o
|
|
|
82974
83038
|
};
|
|
82975
83039
|
}
|
|
82976
83040
|
|
|
82977
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
83041
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/state-store.js
|
|
82978
83042
|
import * as crypto3 from "node:crypto";
|
|
82979
83043
|
import * as fs8 from "node:fs";
|
|
82980
83044
|
import * as path7 from "node:path";
|
|
@@ -86030,11 +86094,11 @@ function crc32c(bytes) {
|
|
|
86030
86094
|
return (crc ^ 4294967295) >>> 0;
|
|
86031
86095
|
}
|
|
86032
86096
|
|
|
86033
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86097
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
86034
86098
|
import * as fs14 from "fs";
|
|
86035
86099
|
import * as path12 from "path";
|
|
86036
86100
|
|
|
86037
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86101
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
86038
86102
|
import * as fs13 from "fs";
|
|
86039
86103
|
import * as os2 from "os";
|
|
86040
86104
|
import * as path11 from "path";
|
|
@@ -86042,7 +86106,7 @@ import * as crypto8 from "crypto";
|
|
|
86042
86106
|
import { spawn } from "node:child_process";
|
|
86043
86107
|
import { fileURLToPath } from "node:url";
|
|
86044
86108
|
|
|
86045
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86109
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal-decode-window.js
|
|
86046
86110
|
var JOURNAL_DECODE_WINDOW = 1e4;
|
|
86047
86111
|
var rowsInFlight = 0;
|
|
86048
86112
|
var peakRowsInFlight = 0;
|
|
@@ -86101,7 +86165,7 @@ function journalFingerprintMatchesStat(fingerprint, lstat3) {
|
|
|
86101
86165
|
return lstat3.size === fingerprint.size && lstat3.mtimeMs === fingerprint.mtimeMs && lstat3.ctimeMs === fingerprint.ctimeMs;
|
|
86102
86166
|
}
|
|
86103
86167
|
|
|
86104
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
86168
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal-row-store.js
|
|
86105
86169
|
var HASH_BYTES = 32;
|
|
86106
86170
|
var ETAG_BYTES = 16;
|
|
86107
86171
|
var INITIAL_ROW_CAPACITY = 16;
|
|
@@ -87611,7 +87675,7 @@ function readOptionalBoolean(entry, key, flags, presentBit, valueBit) {
|
|
|
87611
87675
|
entry[key] = Boolean(flags & valueBit);
|
|
87612
87676
|
}
|
|
87613
87677
|
|
|
87614
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87678
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal-record-proxy.js
|
|
87615
87679
|
var rowsByRecordProxy = /* @__PURE__ */ new WeakMap();
|
|
87616
87680
|
function journalRecordRows(files) {
|
|
87617
87681
|
return rowsByRecordProxy.get(files);
|
|
@@ -87677,13 +87741,13 @@ function createJournalRecordProxy(store) {
|
|
|
87677
87741
|
return proxy;
|
|
87678
87742
|
}
|
|
87679
87743
|
|
|
87680
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87744
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
87681
87745
|
import { StringDecoder } from "node:string_decoder";
|
|
87682
87746
|
|
|
87683
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87747
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
87684
87748
|
import * as crypto4 from "node:crypto";
|
|
87685
87749
|
|
|
87686
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87750
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-rows.js
|
|
87687
87751
|
var packedJournalRows = /* @__PURE__ */ new WeakMap();
|
|
87688
87752
|
var sharedAreaJournalRowStores = /* @__PURE__ */ new Map();
|
|
87689
87753
|
function areaJournalRowsCacheKey(rootDir, slug) {
|
|
@@ -87706,7 +87770,7 @@ function forgetSharedAreaJournalRows(cacheKey) {
|
|
|
87706
87770
|
sharedAreaJournalRowStores.delete(cacheKey);
|
|
87707
87771
|
}
|
|
87708
87772
|
|
|
87709
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
87773
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-v4.js
|
|
87710
87774
|
var JOURNAL_SNAPSHOT_V4_MAGIC = SNAPSHOT_V4_MAGIC;
|
|
87711
87775
|
var SNAPSHOT_FIXED_HEADER_BYTES2 = 52;
|
|
87712
87776
|
var SECTION_ALIGNMENT_BYTES = 8;
|
|
@@ -88238,7 +88302,7 @@ function assertLittleEndian() {
|
|
|
88238
88302
|
throw new Error("HQSNAP4 requires a little-endian host");
|
|
88239
88303
|
}
|
|
88240
88304
|
|
|
88241
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88305
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal-snapshot-decoder.js
|
|
88242
88306
|
function decodeJournalSnapshot(chunks, magic) {
|
|
88243
88307
|
if (magic.equals(SNAPSHOT_V3_MAGIC))
|
|
88244
88308
|
return decodeV3JournalSnapshot(chunks);
|
|
@@ -88590,12 +88654,12 @@ function isPunctuation(value) {
|
|
|
88590
88654
|
return value === "{" || value === "}" || value === "[" || value === "]" || value === ":" || value === ",";
|
|
88591
88655
|
}
|
|
88592
88656
|
|
|
88593
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88657
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/posix-key.js
|
|
88594
88658
|
function toPosixKey(key) {
|
|
88595
88659
|
return key.split("\\").join("/");
|
|
88596
88660
|
}
|
|
88597
88661
|
|
|
88598
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88662
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/path-ancestors.js
|
|
88599
88663
|
function isUnderAnyRoot(key, roots) {
|
|
88600
88664
|
if (roots.has(key))
|
|
88601
88665
|
return true;
|
|
@@ -88608,7 +88672,7 @@ function isUnderAnyRoot(key, roots) {
|
|
|
88608
88672
|
return false;
|
|
88609
88673
|
}
|
|
88610
88674
|
|
|
88611
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88675
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/journal-ledger-stream.js
|
|
88612
88676
|
import * as fs9 from "node:fs";
|
|
88613
88677
|
import { StringDecoder as StringDecoder2 } from "node:string_decoder";
|
|
88614
88678
|
var CHUNK_BYTES = 1 << 18;
|
|
@@ -88722,7 +88786,7 @@ function streamJournalLedgerRows(filePath, onRow) {
|
|
|
88722
88786
|
}
|
|
88723
88787
|
}
|
|
88724
88788
|
|
|
88725
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
88789
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/area-resolver.js
|
|
88726
88790
|
import * as fs10 from "fs";
|
|
88727
88791
|
import * as path8 from "path";
|
|
88728
88792
|
var AREA_LAYOUT_FORMAT = 1;
|
|
@@ -89033,12 +89097,12 @@ function compareText(left, right) {
|
|
|
89033
89097
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
89034
89098
|
}
|
|
89035
89099
|
|
|
89036
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89100
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
89037
89101
|
import * as crypto7 from "node:crypto";
|
|
89038
89102
|
import * as fs12 from "node:fs";
|
|
89039
89103
|
import * as path10 from "node:path";
|
|
89040
89104
|
|
|
89041
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89105
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/operation-lock.js
|
|
89042
89106
|
import * as crypto5 from "crypto";
|
|
89043
89107
|
import * as fs11 from "fs";
|
|
89044
89108
|
import * as os from "os";
|
|
@@ -89668,7 +89732,7 @@ function withOperationLockSync(hqRoot, command5, fn, opts = {}) {
|
|
|
89668
89732
|
}
|
|
89669
89733
|
}
|
|
89670
89734
|
|
|
89671
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
89735
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger.js
|
|
89672
89736
|
import * as crypto6 from "node:crypto";
|
|
89673
89737
|
var DIRECT_DELTA = 1;
|
|
89674
89738
|
var PREPARED_TRANSACTION = 2;
|
|
@@ -91097,7 +91161,7 @@ function cloneMetadata(metadata) {
|
|
|
91097
91161
|
return result;
|
|
91098
91162
|
}
|
|
91099
91163
|
|
|
91100
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91164
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-migration.js
|
|
91101
91165
|
function logSwallowed2(line) {
|
|
91102
91166
|
process.stderr.write(line);
|
|
91103
91167
|
}
|
|
@@ -91857,7 +91921,7 @@ function canonicalJsonOrUndefined(value) {
|
|
|
91857
91921
|
return value === void 0 ? void 0 : canonicalJson2(value);
|
|
91858
91922
|
}
|
|
91859
91923
|
|
|
91860
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
91924
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/per-area-maintenance.js
|
|
91861
91925
|
var AREA_MAINTENANCE_CURSOR_FORMAT = 1;
|
|
91862
91926
|
var CURSOR_SET = 1;
|
|
91863
91927
|
var AreaMaintenanceCursorStore = class _AreaMaintenanceCursorStore {
|
|
@@ -91959,7 +92023,7 @@ function sameAreas(left, right) {
|
|
|
91959
92023
|
return left.length === right.length && left.every((areaId, index) => areaId === right[index]);
|
|
91960
92024
|
}
|
|
91961
92025
|
|
|
91962
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
92026
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/journal.js
|
|
91963
92027
|
var TOMBSTONE_TTL_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
91964
92028
|
var JOURNAL_VERSION_CURRENT = "2";
|
|
91965
92029
|
var MAX_PULLS_PER_COMPANY = 50;
|
|
@@ -94174,7 +94238,7 @@ function gcTombstones(journal, now = Date.now()) {
|
|
|
94174
94238
|
return removed;
|
|
94175
94239
|
}
|
|
94176
94240
|
|
|
94177
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94241
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/personal-vault.js
|
|
94178
94242
|
function logSwallowed3(line) {
|
|
94179
94243
|
process.stderr.write(line);
|
|
94180
94244
|
}
|
|
@@ -94552,7 +94616,7 @@ function purgeExcludedPersonalVaultJournalEntries(journal, hqRoot, syncRoot, sho
|
|
|
94552
94616
|
return { removed, byReason };
|
|
94553
94617
|
}
|
|
94554
94618
|
|
|
94555
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94619
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/local-link-warning.js
|
|
94556
94620
|
import fs15 from "node:fs";
|
|
94557
94621
|
import path13 from "node:path";
|
|
94558
94622
|
var LOCAL_LINK_REMEDY = "Repair or remove the link, then sync again. For release-shipped links, run hq rescue. On Windows, enable Developer Mode before repairing symlinks.";
|
|
@@ -94669,7 +94733,7 @@ function linkWarningMessage(warning6) {
|
|
|
94669
94733
|
return `Skipped symbolic link (${warning6.reason}). ${warning6.remedy}`;
|
|
94670
94734
|
}
|
|
94671
94735
|
|
|
94672
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94736
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/parent-link-alias.js
|
|
94673
94737
|
import fs16 from "node:fs";
|
|
94674
94738
|
import path14 from "node:path";
|
|
94675
94739
|
function linkedParentBelowRoot(root5, dir, realRoot, realDir) {
|
|
@@ -94720,12 +94784,12 @@ function inRootAliasPath(root5, absolutePath) {
|
|
|
94720
94784
|
return path14.join(rel, path14.basename(absolutePath)).split(path14.sep).join("/");
|
|
94721
94785
|
}
|
|
94722
94786
|
|
|
94723
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94787
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
94724
94788
|
import * as fs25 from "fs";
|
|
94725
94789
|
import * as path20 from "path";
|
|
94726
94790
|
import * as crypto11 from "crypto";
|
|
94727
94791
|
|
|
94728
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94792
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/local-replacement.js
|
|
94729
94793
|
import * as crypto9 from "crypto";
|
|
94730
94794
|
import * as fs17 from "fs";
|
|
94731
94795
|
import * as os3 from "os";
|
|
@@ -94781,11 +94845,11 @@ function shouldRecordLocalDeleteIntent(localPath, absent) {
|
|
|
94781
94845
|
return absent && !isLocalPathBeingReplaced(localPath);
|
|
94782
94846
|
}
|
|
94783
94847
|
|
|
94784
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94848
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
94785
94849
|
import { Readable as Readable20, Transform as Transform3 } from "stream";
|
|
94786
94850
|
import { pipeline } from "stream/promises";
|
|
94787
94851
|
|
|
94788
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94852
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/net-errors.js
|
|
94789
94853
|
var TRANSIENT_NETWORK_EXIT = 75;
|
|
94790
94854
|
var TRANSIENT_CODES = /* @__PURE__ */ new Set([
|
|
94791
94855
|
"ECONNREFUSED",
|
|
@@ -94895,7 +94959,7 @@ function hasDeniedConnect(err, depth) {
|
|
|
94895
94959
|
return false;
|
|
94896
94960
|
}
|
|
94897
94961
|
|
|
94898
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94962
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-meta.js
|
|
94899
94963
|
var ONTOLOGY_ENTITY_KEY = /^ontology\/entities\/[a-z][a-z0-9-]*\/[^/]+\.md$/;
|
|
94900
94964
|
var ENTITY_LAST_UPDATED_META_KEY = "hq-entity-last-updated";
|
|
94901
94965
|
function ontologyVaultKey(relPath) {
|
|
@@ -94927,13 +94991,13 @@ function buildEntityMetadata(key, body) {
|
|
|
94927
94991
|
return stamp === null ? {} : { [ENTITY_LAST_UPDATED_META_KEY]: stamp };
|
|
94928
94992
|
}
|
|
94929
94993
|
|
|
94930
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
94994
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
94931
94995
|
var import_client_s3 = __toESM(require_dist_cjs36(), 1);
|
|
94932
94996
|
import * as http3 from "node:http";
|
|
94933
94997
|
import * as https2 from "node:https";
|
|
94934
94998
|
import { Transform as Transform2 } from "node:stream";
|
|
94935
94999
|
|
|
94936
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95000
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/s3-content-checksum.js
|
|
94937
95001
|
import { createHash as createHash16 } from "node:crypto";
|
|
94938
95002
|
var CHECKSUM_HEADER_NAMES = [
|
|
94939
95003
|
"content-md5",
|
|
@@ -95004,7 +95068,7 @@ function headersForObjectLockPut(url2, headers, body) {
|
|
|
95004
95068
|
return out;
|
|
95005
95069
|
}
|
|
95006
95070
|
|
|
95007
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95071
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bandwidth.js
|
|
95008
95072
|
import { Transform } from "node:stream";
|
|
95009
95073
|
var MAX_BYTES_PER_SEC_ENV = "HQ_SYNC_MAX_BYTES_PER_SEC";
|
|
95010
95074
|
var MAX_CONCURRENCY_ENV = "HQ_SYNC_MAX_CONCURRENCY";
|
|
@@ -95405,7 +95469,7 @@ function getBandwidthGovernor() {
|
|
|
95405
95469
|
return singleton;
|
|
95406
95470
|
}
|
|
95407
95471
|
|
|
95408
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95472
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/client-info.js
|
|
95409
95473
|
var HEADER_CLIENT_NAME = "x-hq-client-name";
|
|
95410
95474
|
var HEADER_CLIENT_VERSION = "x-hq-client-version";
|
|
95411
95475
|
var HEADER_HQ_CORE_VERSION = "x-hq-core-version";
|
|
@@ -95428,7 +95492,7 @@ function buildClientHeaders(info) {
|
|
|
95428
95492
|
return headers;
|
|
95429
95493
|
}
|
|
95430
95494
|
|
|
95431
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95495
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/telemetry-events.js
|
|
95432
95496
|
var MAX_EVENTS_PER_BATCH = 50;
|
|
95433
95497
|
var DEFAULT_TIMEOUT_MS = 1500;
|
|
95434
95498
|
var MAX_PROPERTIES = 40;
|
|
@@ -95572,12 +95636,12 @@ function describeError(err) {
|
|
|
95572
95636
|
return err instanceof Error ? err.name : typeof err;
|
|
95573
95637
|
}
|
|
95574
95638
|
|
|
95575
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95639
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
95576
95640
|
import * as http from "node:http";
|
|
95577
95641
|
import * as https from "node:https";
|
|
95578
95642
|
import { Readable as Readable19 } from "node:stream";
|
|
95579
95643
|
|
|
95580
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95644
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-telemetry.js
|
|
95581
95645
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
95582
95646
|
import { monitorEventLoopDelay } from "node:perf_hooks";
|
|
95583
95647
|
var REALTIME_TELEMETRY_EVENT = "sync.realtime.timing";
|
|
@@ -95767,7 +95831,7 @@ function writeRealtimeTelemetryToStderr(record2) {
|
|
|
95767
95831
|
`);
|
|
95768
95832
|
}
|
|
95769
95833
|
|
|
95770
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95834
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/http-keepalive.js
|
|
95771
95835
|
var HTTP_AGENT = new http.Agent({ keepAlive: true, maxSockets: 8 });
|
|
95772
95836
|
var HTTPS_AGENT = new https.Agent({ keepAlive: true, maxSockets: 8 });
|
|
95773
95837
|
function getKeepAliveAgent(secure) {
|
|
@@ -95827,7 +95891,7 @@ function requestWithKeepAlive(url2, init) {
|
|
|
95827
95891
|
});
|
|
95828
95892
|
}
|
|
95829
95893
|
|
|
95830
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
95894
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync-request-counter.js
|
|
95831
95895
|
var counts = { vault: 0, list: 0, object: 0 };
|
|
95832
95896
|
var UNCOUNTED_VAULT_PATH_PREFIX = "/v1/telemetry/";
|
|
95833
95897
|
function syncRequestKindForVaultPath(path76) {
|
|
@@ -114718,7 +114782,7 @@ function date7(params) {
|
|
|
114718
114782
|
return _coercedDate(ZodDate, params);
|
|
114719
114783
|
}
|
|
114720
114784
|
|
|
114721
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
114785
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
114722
114786
|
import { spawnSync } from "child_process";
|
|
114723
114787
|
import * as crypto10 from "crypto";
|
|
114724
114788
|
import * as fs23 from "fs";
|
|
@@ -115240,7 +115304,7 @@ defineLazyProperty(apps, "browser", () => "browser");
|
|
|
115240
115304
|
defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
|
|
115241
115305
|
var open_default = open4;
|
|
115242
115306
|
|
|
115243
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
115307
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cognito-auth.js
|
|
115244
115308
|
var CognitoAuthError = class extends Error {
|
|
115245
115309
|
constructor(message) {
|
|
115246
115310
|
super(message);
|
|
@@ -116552,7 +116616,7 @@ function pickNewerSession(fromKeychain, other) {
|
|
|
116552
116616
|
return expiresAtMs(other) > expiresAtMs(fromKeychain) ? other : fromKeychain;
|
|
116553
116617
|
}
|
|
116554
116618
|
|
|
116555
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116619
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/credential-scope-error.js
|
|
116556
116620
|
var POLICY_WRITE_SCOPE_TRUNCATED = "POLICY_WRITE_SCOPE_TRUNCATED";
|
|
116557
116621
|
var VaultCredentialScopeError = class extends Error {
|
|
116558
116622
|
droppedWriteGrantPrefixes;
|
|
@@ -116594,7 +116658,7 @@ function assertCredentialScopeUsable(diagnostic) {
|
|
|
116594
116658
|
}
|
|
116595
116659
|
}
|
|
116596
116660
|
|
|
116597
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116661
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/plan-limit.js
|
|
116598
116662
|
var PLAN_LIMIT_REACHED_ERROR = "plan_limit_reached";
|
|
116599
116663
|
var PLAN_LIMIT_CODES = /* @__PURE__ */ new Set([
|
|
116600
116664
|
"PLAN_LIMIT_EXCEEDED",
|
|
@@ -116737,7 +116801,7 @@ function formatPlanLimitNotice(event) {
|
|
|
116737
116801
|
return ` ! ${files} paused by your plan limit.${reason} Upgrade: ${event.upgradeUrl}`;
|
|
116738
116802
|
}
|
|
116739
116803
|
|
|
116740
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
116804
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/vault-client.js
|
|
116741
116805
|
var DEFAULT_GLOBAL_FETCH = globalThis.fetch;
|
|
116742
116806
|
var VaultClientError = class extends Error {
|
|
116743
116807
|
statusCode;
|
|
@@ -117699,7 +117763,7 @@ function parseVaultErrorBody(body) {
|
|
|
117699
117763
|
}
|
|
117700
117764
|
}
|
|
117701
117765
|
|
|
117702
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
117766
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/object-io.js
|
|
117703
117767
|
var OBJECT_IO_REQUEST_TIMEOUT_MS = 6e4;
|
|
117704
117768
|
var OBJECT_IO_REQUEST_TIMEOUT_PER_MIB_MS = 8e3;
|
|
117705
117769
|
var OBJECT_IO_BODY_IDLE_TIMEOUT_MS = 15e3;
|
|
@@ -119112,7 +119176,7 @@ function presignObjectIOFactory(vault, refresherFor, forceRefresherFor, options
|
|
|
119112
119176
|
};
|
|
119113
119177
|
}
|
|
119114
119178
|
|
|
119115
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
119179
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/file-mode-portability.js
|
|
119116
119180
|
var WIN32_SYNTHETIC_MODES = /* @__PURE__ */ new Set([438, 292]);
|
|
119117
119181
|
function portableModeStamp(mode, platform5 = process.platform) {
|
|
119118
119182
|
if (platform5 === "win32")
|
|
@@ -119123,7 +119187,7 @@ function isPortableModeSignal(mode) {
|
|
|
119123
119187
|
return !WIN32_SYNTHETIC_MODES.has(mode & 511);
|
|
119124
119188
|
}
|
|
119125
119189
|
|
|
119126
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
119190
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/script-eol.js
|
|
119127
119191
|
import * as path18 from "path";
|
|
119128
119192
|
var SCRIPT_EXTENSIONS = /* @__PURE__ */ new Set([".sh", ".bash", ".zsh"]);
|
|
119129
119193
|
var SHEBANG = Buffer.from("#!");
|
|
@@ -119179,7 +119243,7 @@ function normalizeScriptLineEndings(body) {
|
|
|
119179
119243
|
return changed ? out.subarray(0, n3) : null;
|
|
119180
119244
|
}
|
|
119181
119245
|
|
|
119182
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
119246
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/symlink-target-policy.js
|
|
119183
119247
|
import path19 from "node:path";
|
|
119184
119248
|
import fs24 from "node:fs";
|
|
119185
119249
|
function personalSymlinkTargetLinkPath(relativePath) {
|
|
@@ -119402,7 +119466,7 @@ function redactShape(target, classification) {
|
|
|
119402
119466
|
return parents > 0 ? `relative-parent-${Math.min(parents, 8)}` : "relative-path";
|
|
119403
119467
|
}
|
|
119404
119468
|
|
|
119405
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
119469
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/s3.js
|
|
119406
119470
|
var DOWNLOAD_STREAM_MAX_RETRIES = 3;
|
|
119407
119471
|
var DOWNLOAD_STREAM_BASE_DELAY_MS = 400;
|
|
119408
119472
|
function sleepMs(ms) {
|
|
@@ -120681,7 +120745,7 @@ function getMimeType(filePath) {
|
|
|
120681
120745
|
return mimeTypes[ext] || "application/octet-stream";
|
|
120682
120746
|
}
|
|
120683
120747
|
|
|
120684
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
120748
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/push-event.js
|
|
120685
120749
|
var CONTENT_HASH_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
120686
120750
|
var ISO8601_DATETIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
|
|
120687
120751
|
function nativeSeparatorsToPosix(relativePath, sep26) {
|
|
@@ -120776,7 +120840,7 @@ function decodePushEvent(input2) {
|
|
|
120776
120840
|
return parsed.data;
|
|
120777
120841
|
}
|
|
120778
120842
|
|
|
120779
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
120843
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-routes.js
|
|
120780
120844
|
import * as path21 from "path";
|
|
120781
120845
|
function routeChangeToTarget(relPath, kind) {
|
|
120782
120846
|
const norm = relPath.split(path21.sep).join("/").replace(/^\.\//, "");
|
|
@@ -120945,7 +121009,7 @@ function carriedFlags(baseArgv) {
|
|
|
120945
121009
|
return carried;
|
|
120946
121010
|
}
|
|
120947
121011
|
|
|
120948
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121012
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/push-transport.js
|
|
120949
121013
|
var moduleLoadFetch = globalThis.fetch;
|
|
120950
121014
|
var moduleLoadAbortController = globalThis.AbortController;
|
|
120951
121015
|
var successOutcomes = /* @__PURE__ */ new WeakMap();
|
|
@@ -121167,7 +121231,7 @@ var HttpPushTransport = class {
|
|
|
121167
121231
|
}
|
|
121168
121232
|
};
|
|
121169
121233
|
|
|
121170
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121234
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/case-alias.js
|
|
121171
121235
|
import * as fs26 from "fs";
|
|
121172
121236
|
import * as path22 from "path";
|
|
121173
121237
|
function foldVaultKey(key) {
|
|
@@ -121315,7 +121379,7 @@ function directoryFoldsCase(dir) {
|
|
|
121315
121379
|
return false;
|
|
121316
121380
|
}
|
|
121317
121381
|
|
|
121318
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
121382
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/watcher.js
|
|
121319
121383
|
var DEBOUNCE_MS = 2e3;
|
|
121320
121384
|
var DEFAULT_EVENT_DEBOUNCE_MS = 6e4;
|
|
121321
121385
|
var DEFAULT_EVENT_MAX_WAIT_MS = 12e4;
|
|
@@ -124478,7 +124542,7 @@ var PushEventEmitter = class _PushEventEmitter {
|
|
|
124478
124542
|
}
|
|
124479
124543
|
};
|
|
124480
124544
|
|
|
124481
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
124545
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-self-profile.js
|
|
124482
124546
|
var SELF_PROFILE_ENV = "HQ_SYNC_SELF_PROFILE";
|
|
124483
124547
|
var SELF_PROFILE_CPU_CORES_ENV = "HQ_SYNC_SELF_PROFILE_CPU_CORES";
|
|
124484
124548
|
var SELF_PROFILE_RSS_MB_ENV = "HQ_SYNC_SELF_PROFILE_RSS_MB";
|
|
@@ -125093,7 +125157,7 @@ function readRunnerVersion() {
|
|
|
125093
125157
|
}
|
|
125094
125158
|
}
|
|
125095
125159
|
|
|
125096
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125160
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
125097
125161
|
import * as os25 from "os";
|
|
125098
125162
|
import * as path75 from "path";
|
|
125099
125163
|
import * as fs79 from "fs";
|
|
@@ -125101,7 +125165,7 @@ import { randomUUID as randomUUID14 } from "node:crypto";
|
|
|
125101
125165
|
import { monitorEventLoopDelay as monitorEventLoopDelay2, performance as performance4 } from "node:perf_hooks";
|
|
125102
125166
|
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
125103
125167
|
|
|
125104
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125168
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/context.js
|
|
125105
125169
|
import { createHash as createHash20 } from "node:crypto";
|
|
125106
125170
|
var REFRESH_THRESHOLD_MS = 2 * 60 * 1e3;
|
|
125107
125171
|
var DEFAULT_SESSION_DURATION_SECONDS = 900;
|
|
@@ -125332,13 +125396,13 @@ async function vendSelfCredentials(personUid, config2) {
|
|
|
125332
125396
|
return postVend(route, { personUid }, config2);
|
|
125333
125397
|
}
|
|
125334
125398
|
|
|
125335
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125399
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/realtime-rollout.js
|
|
125336
125400
|
var DEFAULT_REALTIME_AUTHORIZATION_TIMEOUT_MS = 15e3;
|
|
125337
125401
|
|
|
125338
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125402
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/candidate-uploader.js
|
|
125339
125403
|
var MAX_SMALL_CANDIDATE_BYTES = 8 * 1024 * 1024;
|
|
125340
125404
|
|
|
125341
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125405
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/multipart-uploader.js
|
|
125342
125406
|
var DEFAULT_GLOBAL_FETCH3 = globalThis.fetch;
|
|
125343
125407
|
var MULTIPART_PART_SIZE_BYTES = 8 * 1024 * 1024;
|
|
125344
125408
|
var MAX_MULTIPART_BYTES_IN_FLIGHT = 64 * 1024 * 1024;
|
|
@@ -125388,7 +125452,7 @@ var MultipartByteBudget = class {
|
|
|
125388
125452
|
};
|
|
125389
125453
|
var processByteBudget = new MultipartByteBudget();
|
|
125390
125454
|
|
|
125391
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125455
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/cloud-authoritative.js
|
|
125392
125456
|
var CLOUD_AUTHORITATIVE_PATTERNS = [
|
|
125393
125457
|
/^company-brief\.md$/,
|
|
125394
125458
|
/^board\.json$/,
|
|
@@ -125436,7 +125500,7 @@ function isPullReconciledServerOwned(relPath) {
|
|
|
125436
125500
|
return isCloudAuthoritative(vaultRel);
|
|
125437
125501
|
}
|
|
125438
125502
|
|
|
125439
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125503
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/server-owned-skips.js
|
|
125440
125504
|
var SERVER_OWNED_FOLDERS = [
|
|
125441
125505
|
{
|
|
125442
125506
|
folder: "sources/slack-dm/",
|
|
@@ -125499,13 +125563,13 @@ function groupServerOwnedSkips(paths, options = {}) {
|
|
|
125499
125563
|
return groups;
|
|
125500
125564
|
}
|
|
125501
125565
|
|
|
125502
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125566
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
125503
125567
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
125504
125568
|
import * as fs30 from "fs";
|
|
125505
125569
|
import * as os8 from "os";
|
|
125506
125570
|
import * as path26 from "path";
|
|
125507
125571
|
|
|
125508
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125572
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/conflict-notices.js
|
|
125509
125573
|
import { createHash as createHash21 } from "node:crypto";
|
|
125510
125574
|
import * as fs29 from "node:fs";
|
|
125511
125575
|
import * as os7 from "node:os";
|
|
@@ -125654,7 +125718,7 @@ function readPendingConflictNotices() {
|
|
|
125654
125718
|
return readNotices().filter((notice) => !acknowledged.has(notice.id)).slice(-MAX_PENDING_CONFLICT_NOTICES);
|
|
125655
125719
|
}
|
|
125656
125720
|
|
|
125657
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
125721
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync-progress.js
|
|
125658
125722
|
function logSwallowed5(line) {
|
|
125659
125723
|
process.stderr.write(line);
|
|
125660
125724
|
}
|
|
@@ -125941,7 +126005,7 @@ function createPassSummaryRecorder() {
|
|
|
125941
126005
|
};
|
|
125942
126006
|
}
|
|
125943
126007
|
|
|
125944
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126008
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/prefix-coalesce.js
|
|
125945
126009
|
var SCOPE_PREFIX_MARKER = "\0hq-scope:";
|
|
125946
126010
|
var SCOPE_PREFIX_MARKER_PREFIX = `${SCOPE_PREFIX_MARKER}prefix`;
|
|
125947
126011
|
var SCOPE_PREFIX_MARKER_EXACT = `${SCOPE_PREFIX_MARKER}exact`;
|
|
@@ -126141,7 +126205,7 @@ function grantPathToScopePrefix(grantPath, slug) {
|
|
|
126141
126205
|
return pathToScopePrefix(p3);
|
|
126142
126206
|
}
|
|
126143
126207
|
|
|
126144
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126208
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/scope-shrink.js
|
|
126145
126209
|
import * as fs31 from "fs";
|
|
126146
126210
|
import * as path27 from "path";
|
|
126147
126211
|
function buildScopeShrinkPlan(input2) {
|
|
@@ -126437,18 +126501,18 @@ function applyScopeShrink(input2) {
|
|
|
126437
126501
|
};
|
|
126438
126502
|
}
|
|
126439
126503
|
|
|
126440
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126504
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
126441
126505
|
init_dist();
|
|
126442
126506
|
import * as fs32 from "fs";
|
|
126443
126507
|
import * as path28 from "path";
|
|
126444
126508
|
|
|
126445
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126509
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/flag-company-uid.js
|
|
126446
126510
|
var FLAG_COMPANY_UID_PATTERN = /^cmp_[A-Za-z0-9]{3,128}$/;
|
|
126447
126511
|
function flagCompanyUid(uid) {
|
|
126448
126512
|
return FLAG_COMPANY_UID_PATTERN.test(uid) ? uid : void 0;
|
|
126449
126513
|
}
|
|
126450
126514
|
|
|
126451
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126515
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/secret-path-policy.js
|
|
126452
126516
|
var SKIP_SECRET_PATHS_FLAG = "sync.skip-secret-paths";
|
|
126453
126517
|
var WAL_REJECTED_DELTA_RECOVERY_FLAG = "sync.wal-rejected-delta-recovery";
|
|
126454
126518
|
var FLAG_REFRESH_INTERVAL_MS = 5 * 6e4;
|
|
@@ -126598,7 +126662,7 @@ function isSkipSecretPathsEnabled(config2, companyUid, failClosed = false) {
|
|
|
126598
126662
|
return defaultSkipSecretPathsGate(config2, companyUid, failClosed);
|
|
126599
126663
|
}
|
|
126600
126664
|
|
|
126601
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126665
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/remote-pull.js
|
|
126602
126666
|
var VEND_PATH_CAP = 10;
|
|
126603
126667
|
var POST_FILTER_THRESHOLD = 50;
|
|
126604
126668
|
var VEND_FANOUT_CONCURRENCY = 5;
|
|
@@ -126685,11 +126749,11 @@ function dedupByKey(files) {
|
|
|
126685
126749
|
return out;
|
|
126686
126750
|
}
|
|
126687
126751
|
|
|
126688
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126752
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/multipart-upload.js
|
|
126689
126753
|
var MULTIPART_DEFAULT_PART_SIZE = 16 * 1024 * 1024;
|
|
126690
126754
|
var MIB = 1024 * 1024;
|
|
126691
126755
|
|
|
126692
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126756
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/pull-scope.js
|
|
126693
126757
|
import * as fs33 from "fs";
|
|
126694
126758
|
import * as path29 from "path";
|
|
126695
126759
|
var SESSIONS_SCOPE_PREFIX = "sessions/";
|
|
@@ -126760,7 +126824,7 @@ function readPinnedPrefixes(hqRoot, slug) {
|
|
|
126760
126824
|
return [];
|
|
126761
126825
|
}
|
|
126762
126826
|
|
|
126763
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
126827
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/plan-limit-pause.js
|
|
126764
126828
|
import * as fs34 from "fs";
|
|
126765
126829
|
import * as path30 from "path";
|
|
126766
126830
|
var PLAN_LIMIT_PAUSE_RETRY_MS = 60 * 60 * 1e3;
|
|
@@ -126977,13 +127041,13 @@ var PlanLimitPauseStore = class _PlanLimitPauseStore {
|
|
|
126977
127041
|
}
|
|
126978
127042
|
};
|
|
126979
127043
|
|
|
126980
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127044
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
126981
127045
|
import { createHash as createHash22 } from "node:crypto";
|
|
126982
127046
|
import { promises as fs39 } from "node:fs";
|
|
126983
127047
|
import * as os9 from "node:os";
|
|
126984
127048
|
import * as path34 from "node:path";
|
|
126985
127049
|
|
|
126986
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127050
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/telemetry-scan-cap.js
|
|
126987
127051
|
import { promises as fs35 } from "node:fs";
|
|
126988
127052
|
async function hasUnreadBytes(filePath, stored) {
|
|
126989
127053
|
let stat5;
|
|
@@ -127001,7 +127065,7 @@ async function hasUnreadBytes(filePath, stored) {
|
|
|
127001
127065
|
return stat5.size > offset;
|
|
127002
127066
|
}
|
|
127003
127067
|
|
|
127004
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
127068
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
127005
127069
|
import { promises as fs36 } from "node:fs";
|
|
127006
127070
|
import * as path31 from "node:path";
|
|
127007
127071
|
|
|
@@ -129629,7 +129693,7 @@ var jsYaml = {
|
|
|
129629
129693
|
safeDump
|
|
129630
129694
|
};
|
|
129631
129695
|
|
|
129632
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129696
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/company-resolver.js
|
|
129633
129697
|
function logSwallowed6(line) {
|
|
129634
129698
|
process.stderr.write(line);
|
|
129635
129699
|
}
|
|
@@ -129840,7 +129904,7 @@ function resolveCompanyForCwd(cwd, map9) {
|
|
|
129840
129904
|
return collapsed !== c5 ? match(collapsed) : void 0;
|
|
129841
129905
|
}
|
|
129842
129906
|
|
|
129843
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
129907
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/usage-company-fallback.js
|
|
129844
129908
|
import { promises as fs37 } from "node:fs";
|
|
129845
129909
|
import * as path32 from "node:path";
|
|
129846
129910
|
var TRUSTED_META_SOURCES = /* @__PURE__ */ new Set(["session"]);
|
|
@@ -130287,7 +130351,7 @@ function createUsageCompanyFallback(options) {
|
|
|
130287
130351
|
};
|
|
130288
130352
|
}
|
|
130289
130353
|
|
|
130290
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130354
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/telemetry/consent-source.js
|
|
130291
130355
|
var KNOWN_SOURCES = /* @__PURE__ */ new Set([
|
|
130292
130356
|
"plan-required",
|
|
130293
130357
|
"notice-pending",
|
|
@@ -130367,7 +130431,7 @@ function decideCollection(resp, local) {
|
|
|
130367
130431
|
}
|
|
130368
130432
|
}
|
|
130369
130433
|
|
|
130370
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130434
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/telemetry/pre-consent-buffer.js
|
|
130371
130435
|
import { randomBytes as randomBytes8 } from "node:crypto";
|
|
130372
130436
|
import { promises as fs38 } from "node:fs";
|
|
130373
130437
|
import * as path33 from "node:path";
|
|
@@ -130599,7 +130663,7 @@ async function discardPreConsentBuffer(file2, opts = {}) {
|
|
|
130599
130663
|
});
|
|
130600
130664
|
}
|
|
130601
130665
|
|
|
130602
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
130666
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/telemetry.js
|
|
130603
130667
|
function emptyCursor() {
|
|
130604
130668
|
return { version: "1", files: {} };
|
|
130605
130669
|
}
|
|
@@ -131558,7 +131622,7 @@ async function collectAndSendTelemetry(opts) {
|
|
|
131558
131622
|
};
|
|
131559
131623
|
}
|
|
131560
131624
|
|
|
131561
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
131625
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/skill-telemetry.js
|
|
131562
131626
|
import { createHash as createHash23 } from "node:crypto";
|
|
131563
131627
|
import { promises as fs40 } from "node:fs";
|
|
131564
131628
|
import * as os10 from "node:os";
|
|
@@ -132429,12 +132493,12 @@ async function collectAndSendSkillTelemetry(opts) {
|
|
|
132429
132493
|
};
|
|
132430
132494
|
}
|
|
132431
132495
|
|
|
132432
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132496
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
132433
132497
|
import * as fs51 from "fs";
|
|
132434
132498
|
import * as os15 from "os";
|
|
132435
132499
|
import * as path46 from "path";
|
|
132436
132500
|
|
|
132437
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132501
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync-pass-event.js
|
|
132438
132502
|
import { createHash as createHash24 } from "node:crypto";
|
|
132439
132503
|
import * as os11 from "node:os";
|
|
132440
132504
|
var SYNC_PASS_EVENT_NAME = "sync_pass";
|
|
@@ -132527,7 +132591,7 @@ function startSyncPassObservation(context, deps = {}) {
|
|
|
132527
132591
|
};
|
|
132528
132592
|
}
|
|
132529
132593
|
|
|
132530
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132594
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync-object-events.js
|
|
132531
132595
|
import { createHash as createHash25 } from "node:crypto";
|
|
132532
132596
|
var SYNC_CONFLICT_EVENT_NAME = "sync_conflict";
|
|
132533
132597
|
var SYNC_OVERWRITE_EVENT_NAME = "sync_overwrite";
|
|
@@ -132664,7 +132728,7 @@ function createSyncObjectEventSink(deps) {
|
|
|
132664
132728
|
};
|
|
132665
132729
|
}
|
|
132666
132730
|
|
|
132667
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132731
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/symlink-target-refusal-flag.js
|
|
132668
132732
|
init_dist();
|
|
132669
132733
|
var SYMLINK_TARGET_REFUSAL_FLAG = "sync.symlink-target-refusal";
|
|
132670
132734
|
var FLAG_READ_TIMEOUT_MS = 2e3;
|
|
@@ -132713,7 +132777,7 @@ async function resolveSymlinkTargetRefusalFlag(input2) {
|
|
|
132713
132777
|
}
|
|
132714
132778
|
}
|
|
132715
132779
|
|
|
132716
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132780
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/company-vault-transport.js
|
|
132717
132781
|
function selectObjectIOFactory(client, refresherFor, forceRefresherFor) {
|
|
132718
132782
|
if (typeof client.presign === "function" && typeof client.listFiles === "function") {
|
|
132719
132783
|
return presignObjectIOFactory(client, refresherFor, forceRefresherFor);
|
|
@@ -132731,7 +132795,7 @@ function ensureCompanyVaultTransport(vaultConfig, deps = {}) {
|
|
|
132731
132795
|
vaultConfig.companyVaultUsesPresign = objectIOFactory !== null;
|
|
132732
132796
|
}
|
|
132733
132797
|
|
|
132734
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132798
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync-decision-log.js
|
|
132735
132799
|
import * as fs41 from "node:fs";
|
|
132736
132800
|
import * as path36 from "node:path";
|
|
132737
132801
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
@@ -132776,10 +132840,10 @@ function appendSyncDecision(input2, options = {}) {
|
|
|
132776
132840
|
}
|
|
132777
132841
|
}
|
|
132778
132842
|
|
|
132779
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132843
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
132780
132844
|
import * as crypto15 from "crypto";
|
|
132781
132845
|
|
|
132782
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132846
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/private-folder-transport.js
|
|
132783
132847
|
import * as fs42 from "fs";
|
|
132784
132848
|
import * as path37 from "path";
|
|
132785
132849
|
var CONTENT_SHA256_RE2 = /^[a-f0-9]{64}$/;
|
|
@@ -132871,7 +132935,7 @@ async function primePrivateFolderUpload(input2) {
|
|
|
132871
132935
|
}]);
|
|
132872
132936
|
}
|
|
132873
132937
|
|
|
132874
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
132938
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/full-pass-caps.js
|
|
132875
132939
|
var FULL_PASS_CPU_CAP_FLAG = "sync.full-pass.cpu-cap-pct";
|
|
132876
132940
|
var FULL_PASS_HEAP_CAP_FLAG = "sync.full-pass.heap-cap-mb";
|
|
132877
132941
|
var FULL_PASS_DURABLE_PROGRESS_FLAG = "sync.full-pass-durable-progress";
|
|
@@ -133448,7 +133512,7 @@ var FullPassCapController = class {
|
|
|
133448
133512
|
}
|
|
133449
133513
|
};
|
|
133450
133514
|
|
|
133451
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133515
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/conflict.js
|
|
133452
133516
|
import * as readline from "readline";
|
|
133453
133517
|
function parseFrontmatterVersion(body) {
|
|
133454
133518
|
if (!body || body.length === 0)
|
|
@@ -133600,7 +133664,7 @@ async function promptConflict(conflict) {
|
|
|
133600
133664
|
}
|
|
133601
133665
|
}
|
|
133602
133666
|
|
|
133603
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133667
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/reconcile-skip-reason.js
|
|
133604
133668
|
var HUMAN_UP_TO_DATE_LINE_CAP = 20;
|
|
133605
133669
|
function isUpToDateSkipReason(reason) {
|
|
133606
133670
|
return reason === "already_up_to_date" || reason === "already_landed";
|
|
@@ -133660,7 +133724,7 @@ function createHumanSkipLineLog() {
|
|
|
133660
133724
|
};
|
|
133661
133725
|
}
|
|
133662
133726
|
|
|
133663
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
133727
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/tombstones.js
|
|
133664
133728
|
import * as crypto12 from "node:crypto";
|
|
133665
133729
|
import * as fs43 from "node:fs";
|
|
133666
133730
|
import * as os12 from "node:os";
|
|
@@ -134054,7 +134118,7 @@ async function fetchTombstonePage(url2, token) {
|
|
|
134054
134118
|
throw new TombstoneFetchError(`FILE_TOMBSTONE fetch failed after ${attemptsMade} attempts; refusing to sync without delete suppression`, attemptsMade, lastError);
|
|
134055
134119
|
}
|
|
134056
134120
|
|
|
134057
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134121
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync-core.js
|
|
134058
134122
|
import { execSync } from "child_process";
|
|
134059
134123
|
import * as fs44 from "fs";
|
|
134060
134124
|
import * as os13 from "os";
|
|
@@ -134201,11 +134265,11 @@ function hasRemoteChanged(remote, entry) {
|
|
|
134201
134265
|
return remote.lastModified.getTime() > syncedAt;
|
|
134202
134266
|
}
|
|
134203
134267
|
|
|
134204
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134268
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
134205
134269
|
import * as crypto13 from "crypto";
|
|
134206
134270
|
import * as path41 from "path";
|
|
134207
134271
|
|
|
134208
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134272
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/machine-id.js
|
|
134209
134273
|
import { createHash as createHash27, randomUUID as randomUUID6 } from "node:crypto";
|
|
134210
134274
|
import * as fs45 from "node:fs";
|
|
134211
134275
|
import * as os14 from "node:os";
|
|
@@ -134325,7 +134389,7 @@ function readShortMachineId(hqRoot) {
|
|
|
134325
134389
|
return createHash27("sha1").update(full).digest("hex").slice(0, 6);
|
|
134326
134390
|
}
|
|
134327
134391
|
|
|
134328
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134392
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-file.js
|
|
134329
134393
|
var CONFLICT_BACKUPS_DIR = ".hq/conflict-backups";
|
|
134330
134394
|
var CONFLICT_PROBE_DIR = ".hq/tmp";
|
|
134331
134395
|
function safeTimestamp(detectedAt) {
|
|
@@ -134343,7 +134407,7 @@ function buildConflictId(originalRelative, detectedAt) {
|
|
|
134343
134407
|
return `${safePath}-${safeTimestamp(detectedAt)}`;
|
|
134344
134408
|
}
|
|
134345
134409
|
|
|
134346
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134410
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/conflict-index.js
|
|
134347
134411
|
import * as crypto14 from "crypto";
|
|
134348
134412
|
import * as fs46 from "fs";
|
|
134349
134413
|
import * as path42 from "path";
|
|
@@ -134497,7 +134561,7 @@ function pruneConflictIndex(hqRoot) {
|
|
|
134497
134561
|
return result;
|
|
134498
134562
|
}
|
|
134499
134563
|
|
|
134500
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134564
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/append-only-merge.js
|
|
134501
134565
|
import * as fs47 from "node:fs";
|
|
134502
134566
|
function isAppendOnlyPath(relativePath) {
|
|
134503
134567
|
const base = relativePath.split(/[\\/]/).pop() ?? "";
|
|
@@ -134569,7 +134633,7 @@ function appendIfUnchanged(file2, expected, merged) {
|
|
|
134569
134633
|
return "appended";
|
|
134570
134634
|
}
|
|
134571
134635
|
|
|
134572
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134636
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/board-merge.js
|
|
134573
134637
|
import * as fs48 from "node:fs";
|
|
134574
134638
|
import * as path43 from "node:path";
|
|
134575
134639
|
function isBoardJsonPath(relativePath) {
|
|
@@ -134715,7 +134779,7 @@ function replaceIfUnchanged(file2, expected, merged) {
|
|
|
134715
134779
|
return "appended";
|
|
134716
134780
|
}
|
|
134717
134781
|
|
|
134718
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134782
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/same-path-upload-lock.js
|
|
134719
134783
|
var SAME_PATH_UPLOAD_WAIT_MS = 6e4;
|
|
134720
134784
|
var SAME_PATH_LANDED_KEY_CAP = 4096;
|
|
134721
134785
|
var SAME_PATH_LANDED_PER_KEY_CAP = 8;
|
|
@@ -134905,7 +134969,7 @@ var SamePathUploadSupersededError = class extends Error {
|
|
|
134905
134969
|
}
|
|
134906
134970
|
};
|
|
134907
134971
|
|
|
134908
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
134972
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-entity-push.js
|
|
134909
134973
|
init_dist();
|
|
134910
134974
|
import { createHash as createHash28 } from "node:crypto";
|
|
134911
134975
|
var ONTOLOGY_ENTITY_PUSH_FLAG = "checkpoint.ontology";
|
|
@@ -134999,7 +135063,7 @@ ${caller}`;
|
|
|
134999
135063
|
return failed ? false : value;
|
|
135000
135064
|
}
|
|
135001
135065
|
|
|
135002
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135066
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/ontology-outbox.js
|
|
135003
135067
|
import fs49 from "node:fs";
|
|
135004
135068
|
import path44 from "node:path";
|
|
135005
135069
|
var ONTOLOGY_OUTBOX_SCHEMA = "hq-ontology-outbox.v1";
|
|
@@ -135065,7 +135129,7 @@ function entityIsFreshForCreate(body, nowMs) {
|
|
|
135065
135129
|
return age >= -ENTITY_CREATE_FUTURE_SKEW_MS && age <= ENTITY_CREATE_WINDOW_MS;
|
|
135066
135130
|
}
|
|
135067
135131
|
|
|
135068
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135132
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/skill-register-landed-bytes.js
|
|
135069
135133
|
init_dist();
|
|
135070
135134
|
import { createHash as createHash29 } from "node:crypto";
|
|
135071
135135
|
var SKILL_REGISTER_LANDED_BYTES_FLAG = "sync.skill-register-landed-bytes";
|
|
@@ -135139,7 +135203,7 @@ ${caller}`;
|
|
|
135139
135203
|
return failed ? false : value;
|
|
135140
135204
|
}
|
|
135141
135205
|
|
|
135142
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135206
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/personal-connector-settings-sync.js
|
|
135143
135207
|
init_dist();
|
|
135144
135208
|
import { createHash as createHash30 } from "node:crypto";
|
|
135145
135209
|
var PERSONAL_CONNECTOR_SETTINGS_SYNC_FLAG = "personal.connector-settings-sync";
|
|
@@ -135202,7 +135266,7 @@ ${caller}`;
|
|
|
135202
135266
|
return failed ? false : value;
|
|
135203
135267
|
}
|
|
135204
135268
|
|
|
135205
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135269
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/describe-error.js
|
|
135206
135270
|
import * as path45 from "node:path";
|
|
135207
135271
|
var MAX_DIAGNOSTIC_LENGTH = 1024;
|
|
135208
135272
|
function sanitizeDiagnostic(value) {
|
|
@@ -135335,7 +135399,7 @@ function pushFailureTelemetryLabel(value) {
|
|
|
135335
135399
|
return safe.slice(0, 128) || "unknown";
|
|
135336
135400
|
}
|
|
135337
135401
|
|
|
135338
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135402
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/readlink-safe.js
|
|
135339
135403
|
import * as fs50 from "fs";
|
|
135340
135404
|
function toPortableSymlinkTarget(target, platform5 = process.platform) {
|
|
135341
135405
|
return platform5 === "win32" ? target.replaceAll("\\", "/") : target;
|
|
@@ -135354,14 +135418,14 @@ function readlinkOrNull(linkPath, readlink = (path76) => fs50.readlinkSync(path7
|
|
|
135354
135418
|
}
|
|
135355
135419
|
}
|
|
135356
135420
|
|
|
135357
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135421
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/reconcile-cursor.js
|
|
135358
135422
|
function checkpointReconcileApply(checkpoint, paths) {
|
|
135359
135423
|
if (!checkpoint)
|
|
135360
135424
|
return;
|
|
135361
135425
|
checkpoint.store.checkpointApply(checkpoint.cursor, [...new Set(paths)].map((path76) => ({ path: path76, durable: true })));
|
|
135362
135426
|
}
|
|
135363
135427
|
|
|
135364
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135428
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/mass-delete-guards.js
|
|
135365
135429
|
init_dist();
|
|
135366
135430
|
import { createHash as createHash31 } from "node:crypto";
|
|
135367
135431
|
var MASS_DELETE_GUARDS_FLAG = "sync.delete-absolute-volume-and-release-root-guards";
|
|
@@ -135506,7 +135570,7 @@ function warnFlagReadFailure(write) {
|
|
|
135506
135570
|
`)))(line);
|
|
135507
135571
|
}
|
|
135508
135572
|
|
|
135509
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
135573
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/share.js
|
|
135510
135574
|
async function remoteContentDiffers(ctx, relativePath, localHash, hqRoot, symlinkOptions) {
|
|
135511
135575
|
const probeKey = crypto15.createHash("sha256").update(relativePath).digest("hex").slice(0, 16);
|
|
135512
135576
|
const probePath = path46.join(os15.tmpdir(), `hq-conflict-probe-${readShortMachineId(hqRoot)}-${probeKey}.tmp`);
|
|
@@ -136393,7 +136457,9 @@ async function createPushRunContext(options) {
|
|
|
136393
136457
|
}) : false;
|
|
136394
136458
|
const scopedJournal = options.scopedJournal === true;
|
|
136395
136459
|
const journal = scopedJournal ? emptyJournalForScopedPass() : readJournalForPass(journalSlug, ctx.uid);
|
|
136396
|
-
const
|
|
136460
|
+
const companyRebindHold = !personalScope && noteCompanyRebind(getStateDir(), journalSlug, journal.pulls, ctx.uid);
|
|
136461
|
+
const effectivePushFence = pushIdentityFence ?? (companyRebindHold ? { uid: "", sinceMs: Date.now() } : void 0);
|
|
136462
|
+
const holdRemoteDeletes = getJournalRecoveryMarker(journalSlug) !== void 0 || effectivePushFence !== void 0;
|
|
136397
136463
|
return {
|
|
136398
136464
|
options,
|
|
136399
136465
|
ontologyEntityPush: false,
|
|
@@ -136440,7 +136506,8 @@ async function createPushRunContext(options) {
|
|
|
136440
136506
|
},
|
|
136441
136507
|
skipSecretPaths,
|
|
136442
136508
|
holdRemoteDeletes,
|
|
136443
|
-
...
|
|
136509
|
+
...effectivePushFence ? { pushIdentityFence: effectivePushFence } : {},
|
|
136510
|
+
...pushIdentityFence === void 0 && companyRebindHold ? { companyRebindHold: true } : {},
|
|
136444
136511
|
journalSlug,
|
|
136445
136512
|
quarantinedPaths,
|
|
136446
136513
|
journal,
|
|
@@ -137084,7 +137151,11 @@ function holdFilesFromBeforeIdentitySwitch(run, entries3) {
|
|
|
137084
137151
|
held.push(entry.relativePath);
|
|
137085
137152
|
}
|
|
137086
137153
|
notePushIdentityHeld(getStateDir(), run.journalSlug, held.length, held);
|
|
137087
|
-
run.emit({
|
|
137154
|
+
run.emit({
|
|
137155
|
+
type: "identity-switch-push-held",
|
|
137156
|
+
count: held.length,
|
|
137157
|
+
...run.companyRebindHold ? { reason: "company-rebind" } : {}
|
|
137158
|
+
});
|
|
137088
137159
|
return [];
|
|
137089
137160
|
}
|
|
137090
137161
|
function emptyJournalForScopedPass() {
|
|
@@ -140268,11 +140339,11 @@ function computeDecommissionPlan(journal, prefixes, policy, alreadyPlanned, skip
|
|
|
140268
140339
|
return out;
|
|
140269
140340
|
}
|
|
140270
140341
|
|
|
140271
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140342
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
140272
140343
|
import * as fs59 from "fs";
|
|
140273
140344
|
import * as path54 from "path";
|
|
140274
140345
|
|
|
140275
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140346
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/remote-file-spool.js
|
|
140276
140347
|
import * as fs52 from "node:fs";
|
|
140277
140348
|
import * as os16 from "node:os";
|
|
140278
140349
|
import * as path47 from "node:path";
|
|
@@ -140351,7 +140422,7 @@ function* readRows(filename) {
|
|
|
140351
140422
|
}
|
|
140352
140423
|
}
|
|
140353
140424
|
|
|
140354
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140425
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
140355
140426
|
import { execFile as execFile6 } from "child_process";
|
|
140356
140427
|
import { randomBytes as randomBytes12 } from "crypto";
|
|
140357
140428
|
import * as fs54 from "fs";
|
|
@@ -140359,7 +140430,7 @@ import * as os17 from "os";
|
|
|
140359
140430
|
import * as path49 from "path";
|
|
140360
140431
|
import { promisify as promisify6 } from "util";
|
|
140361
140432
|
|
|
140362
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140433
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/backup-prune.js
|
|
140363
140434
|
import * as crypto16 from "crypto";
|
|
140364
140435
|
import * as fs53 from "fs";
|
|
140365
140436
|
import * as path48 from "path";
|
|
@@ -140545,7 +140616,7 @@ function inventoryManagedSnapshots(backupRoot, canonicalRoot3, isCopyingOwnerLiv
|
|
|
140545
140616
|
return { entries: entries3, ...plan, unmanaged: [...unmanaged, ...plan.unmanaged] };
|
|
140546
140617
|
}
|
|
140547
140618
|
|
|
140548
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140619
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/hq-root-recovery.js
|
|
140549
140620
|
var execFileAsync5 = promisify6(execFile6);
|
|
140550
140621
|
var HQ_LAYOUT_DIRS = ["repos", "repos/public", "repos/private"];
|
|
140551
140622
|
function gitSidecarDir(hqRoot, homeDir = os17.homedir()) {
|
|
@@ -140918,10 +140989,10 @@ function recoverHqRootLocalState(hqRoot, opts = {}) {
|
|
|
140918
140989
|
};
|
|
140919
140990
|
}
|
|
140920
140991
|
|
|
140921
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140992
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/doctor.js
|
|
140922
140993
|
var SKILLS_KEY_PREFIX = ".claude/skills/";
|
|
140923
140994
|
|
|
140924
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
140995
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/content-hash.js
|
|
140925
140996
|
var SHA256_CONTENT_HASH = /^sha256:([a-f0-9]{64})$/;
|
|
140926
140997
|
function rawSha256FromContentHash(contentHash) {
|
|
140927
140998
|
if (contentHash === void 0)
|
|
@@ -140932,7 +141003,7 @@ function contentHashMatchesRawSha256(contentHash, rawHash) {
|
|
|
140932
141003
|
return rawSha256FromContentHash(contentHash) === rawHash;
|
|
140933
141004
|
}
|
|
140934
141005
|
|
|
140935
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141006
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/kms10-etag-safe-pull.js
|
|
140936
141007
|
import { createHash as createHash34 } from "node:crypto";
|
|
140937
141008
|
var KMS10_COPY_MARKER_META_KEY = "hq-kms10-reencrypt-current";
|
|
140938
141009
|
var KMS10_COPY_ORIGINAL_KEY_HASH_META_KEY = "hq-kms10-original-key-sha256";
|
|
@@ -140957,7 +141028,7 @@ function isKms10CopyOfJournalBase(listed, head, journalHash, journalEtag, expect
|
|
|
140957
141028
|
return normalizeEtag(head.metadata?.["hq-kms10-original-etag"] ?? "") === normalizeEtag(journalEtag);
|
|
140958
141029
|
}
|
|
140959
141030
|
|
|
140960
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141031
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-upsert-exact-list.js
|
|
140961
141032
|
init_dist();
|
|
140962
141033
|
import { createHash as createHash35 } from "node:crypto";
|
|
140963
141034
|
function logSwallowed8(line) {
|
|
@@ -141074,7 +141145,7 @@ function isTargetedUpsertExactListEnabled(config2, companyUid) {
|
|
|
141074
141145
|
return defaultTargetedUpsertExactListGate(config2, companyUid);
|
|
141075
141146
|
}
|
|
141076
141147
|
|
|
141077
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141148
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/targeted-pull-prefixes.js
|
|
141078
141149
|
var TARGETED_PULL_PREFIX_GROUP_MIN_PATHS = 16;
|
|
141079
141150
|
function coalesceDenseTargetedPullPaths(paths) {
|
|
141080
141151
|
const normalized = paths.map((path76) => path76.replace(/\\/g, "/"));
|
|
@@ -141112,15 +141183,15 @@ function coalesceDenseTargetedPullPaths(paths) {
|
|
|
141112
141183
|
return result;
|
|
141113
141184
|
}
|
|
141114
141185
|
|
|
141115
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141186
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
141116
141187
|
import { createHash as createHash38 } from "node:crypto";
|
|
141117
141188
|
|
|
141118
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141189
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
141119
141190
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
141120
141191
|
import * as fs58 from "fs";
|
|
141121
141192
|
import * as path53 from "path";
|
|
141122
141193
|
|
|
141123
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141194
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-knowledge.js
|
|
141124
141195
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
141125
141196
|
import * as fs55 from "fs";
|
|
141126
141197
|
import * as path50 from "path";
|
|
@@ -141383,7 +141454,7 @@ function materializeLegacyKnowledgeRepos(root5) {
|
|
|
141383
141454
|
}
|
|
141384
141455
|
}
|
|
141385
141456
|
|
|
141386
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
141457
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/session-log-capture.js
|
|
141387
141458
|
import * as crypto17 from "node:crypto";
|
|
141388
141459
|
import * as fs56 from "node:fs";
|
|
141389
141460
|
import * as os18 from "node:os";
|
|
@@ -142327,7 +142398,7 @@ function captureSessionLogs(root5, options = {}) {
|
|
|
142327
142398
|
}
|
|
142328
142399
|
}
|
|
142329
142400
|
|
|
142330
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
142401
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/session-log-retention.js
|
|
142331
142402
|
import * as crypto18 from "node:crypto";
|
|
142332
142403
|
import * as fs57 from "node:fs";
|
|
142333
142404
|
import * as os19 from "node:os";
|
|
@@ -142588,7 +142659,7 @@ function pruneSyncedSessionLogs(root5) {
|
|
|
142588
142659
|
}
|
|
142589
142660
|
}
|
|
142590
142661
|
|
|
142591
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
142662
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex.js
|
|
142592
142663
|
function isDir2(p3) {
|
|
142593
142664
|
try {
|
|
142594
142665
|
return fs58.statSync(p3).isDirectory();
|
|
@@ -143142,7 +143213,7 @@ function emitReindexTelemetry(opts, result, lockResult) {
|
|
|
143142
143213
|
}, { claims: opts.telemetryClaims });
|
|
143143
143214
|
}
|
|
143144
143215
|
|
|
143145
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
143216
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/sync.js
|
|
143146
143217
|
async function yieldToCooperativeCheckpoint2(work, cooperativeCheckpoint, force, resumedAt) {
|
|
143147
143218
|
work.rowsSinceYield += 1;
|
|
143148
143219
|
if (!force && work.rowsSinceYield < cooperativeUnitSize()) {
|
|
@@ -143235,7 +143306,9 @@ function evaluateScopeShrinkGuard(run, scopePlan) {
|
|
|
143235
143306
|
const firstSeenAt = samePending ? prior.firstSeenAt : new Date(nowMs).toISOString();
|
|
143236
143307
|
const priorRefusedPasses = samePending ? prior.refusedPasses ?? 1 : 0;
|
|
143237
143308
|
const confirmMs = resolveScopeShrinkConfirmMs();
|
|
143238
|
-
if (reason === "bulk-ratio" &&
|
|
143309
|
+
if (reason === "bulk-ratio" && // feedback_d1296824: no unattended auto-confirm right after an account
|
|
143310
|
+
// switch; the narrowed scope may be the other account's.
|
|
143311
|
+
!accountSwitchPending(run) && samePending && priorRefusedPasses >= SCOPE_SHRINK_CONFIRM_PASSES && nowMs - Date.parse(firstSeenAt) >= confirmMs) {
|
|
143239
143312
|
return null;
|
|
143240
143313
|
}
|
|
143241
143314
|
const confirmAfter = reason === "bulk-ratio" ? new Date(Date.parse(firstSeenAt) + confirmMs).toISOString() : void 0;
|
|
@@ -143822,6 +143895,7 @@ function holdPushFailedKeys(plan, held) {
|
|
|
143822
143895
|
}
|
|
143823
143896
|
async function planPull(run) {
|
|
143824
143897
|
cooperativePhaseForTest = "plan";
|
|
143898
|
+
accountSwitchPending(run);
|
|
143825
143899
|
try {
|
|
143826
143900
|
const plan = await computePullPlan(run.remoteFiles, run.journal, run.companyRoot, run.shouldSync, run.options.personalMode === true, run.options.excludeAllCompanySlugs === true ? EVERY_COMPANY_SLUG : run.options.personalCompanyAllowlist !== void 0 ? new NotPersonallyAllowedSlugSet(run.options.teamSyncedSlugs ?? /* @__PURE__ */ new Set(), run.options.personalCompanyAllowlist) : run.options.teamSyncedSlugs ?? null, run.listedPrefixSet, run.fileTombstones, run.currentExcludeSet, run.options.propagateDeletePolicy ?? "owned-only", run.options.onHeartbeat, run.journalRowCount, run.options.cooperativeCheckpoint, () => overlayPullJournalDelta(run), run.deleteDenominatorKeys, run.options.pullContentHashes, run.ctx, run.options.caseFoldingVolume ?? directoryFoldsCase(run.companyRoot), run.personalConnectorSettingsSync, run.quarantinedPaths, run.options.onAuditRemoteFile ? (file2) => run.options.onAuditRemoteFile?.({
|
|
143827
143901
|
...file2,
|
|
@@ -143860,12 +143934,154 @@ async function planPull(run) {
|
|
|
143860
143934
|
samplePaths: localDeleteKeys.slice(0, MASS_DELETE_SAMPLE_CAP)
|
|
143861
143935
|
});
|
|
143862
143936
|
}
|
|
143937
|
+
applyAccountSwitchDeleteGuard(run, plan);
|
|
143863
143938
|
return plan;
|
|
143864
143939
|
} finally {
|
|
143865
143940
|
if (isStreamingRemoteFileSource(run.remoteFiles))
|
|
143866
143941
|
run.remoteFiles.dispose();
|
|
143867
143942
|
}
|
|
143868
143943
|
}
|
|
143944
|
+
function accountSwitchPending(run) {
|
|
143945
|
+
if (run.accountSwitchPendingMemo !== void 0)
|
|
143946
|
+
return run.accountSwitchPendingMemo;
|
|
143947
|
+
const companyRebound = run.options.personalMode !== true && noteCompanyRebind(getStateDir(), run.journalSlug, run.journal.pulls, run.ctx.uid);
|
|
143948
|
+
run.accountSwitchPendingMemo = companyRebound || scopeIdentitySwitchPending(getStateDir(), run.journalSlug);
|
|
143949
|
+
return run.accountSwitchPendingMemo;
|
|
143950
|
+
}
|
|
143951
|
+
function quarantineScopeSegment(journalSlug) {
|
|
143952
|
+
if (/^[A-Za-z0-9_][A-Za-z0-9._-]{0,127}$/.test(journalSlug) && !journalSlug.includes("..")) {
|
|
143953
|
+
return journalSlug;
|
|
143954
|
+
}
|
|
143955
|
+
return `scope-${createHash38("sha256").update(journalSlug).digest("hex").slice(0, 32)}`;
|
|
143956
|
+
}
|
|
143957
|
+
function applyAccountSwitchDeleteGuard(run, plan) {
|
|
143958
|
+
const keys = Array.from(/* @__PURE__ */ new Set([
|
|
143959
|
+
...plan.tombstones.map((tombstone) => tombstone.key),
|
|
143960
|
+
...plan.items.flatMap((item) => item.action === "tombstone-delete" ? [item.remoteFile.key] : [])
|
|
143961
|
+
]));
|
|
143962
|
+
if (!accountSwitchPending(run))
|
|
143963
|
+
return;
|
|
143964
|
+
if (keys.length === 0)
|
|
143965
|
+
return;
|
|
143966
|
+
let liveRows = 0;
|
|
143967
|
+
for (const entry of journalRows(run.journal).values())
|
|
143968
|
+
if (!entry.removedReason)
|
|
143969
|
+
liveRows++;
|
|
143970
|
+
const inScope = Math.max(liveRows, keys.length);
|
|
143971
|
+
const ratio = keys.length / inScope;
|
|
143972
|
+
if (keys.length >= SCOPE_SHRINK_BULK_MIN_ABS && ratio >= SCOPE_SHRINK_BULK_RATIO && !isMassDeleteGuardOverrideEnabled(run.options.propagateDeletePolicy)) {
|
|
143973
|
+
plan.items = plan.items.filter((item) => item.action !== "tombstone-delete");
|
|
143974
|
+
plan.tombstones = [];
|
|
143975
|
+
plan.filesToTombstoneDelete = 0;
|
|
143976
|
+
plan.filesToSkip += keys.length;
|
|
143977
|
+
plan.preplannedFilesSkipped += keys.length;
|
|
143978
|
+
run.accountSwitchRefused = true;
|
|
143979
|
+
for (const key of keys) {
|
|
143980
|
+
run.emit({
|
|
143981
|
+
type: "delete-refused-stale-etag",
|
|
143982
|
+
path: key,
|
|
143983
|
+
journalEtag: "",
|
|
143984
|
+
remoteEtag: "",
|
|
143985
|
+
reason: "account-switch"
|
|
143986
|
+
});
|
|
143987
|
+
}
|
|
143988
|
+
run.emit({
|
|
143989
|
+
type: "delete-refused-mass-guard",
|
|
143990
|
+
target: "local",
|
|
143991
|
+
reason: "account-switch",
|
|
143992
|
+
candidates: keys.length,
|
|
143993
|
+
threshold: SCOPE_SHRINK_BULK_MIN_ABS,
|
|
143994
|
+
samplePaths: keys.slice(0, MASS_DELETE_SAMPLE_CAP)
|
|
143995
|
+
});
|
|
143996
|
+
return;
|
|
143997
|
+
}
|
|
143998
|
+
const stamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
|
|
143999
|
+
run.switchQuarantineRoot = path54.join(run.hqRoot, ".hq", "switch-quarantine", quarantineScopeSegment(run.journalSlug), `${stamp}-${process.pid}`);
|
|
144000
|
+
}
|
|
144001
|
+
function errnoCode(err) {
|
|
144002
|
+
return err && typeof err === "object" && "code" in err ? err.code : void 0;
|
|
144003
|
+
}
|
|
144004
|
+
function removeTombstonedLocalFile(run, key, localPath) {
|
|
144005
|
+
const root5 = run.switchQuarantineRoot;
|
|
144006
|
+
if (!root5) {
|
|
144007
|
+
fs59.unlinkSync(localPath);
|
|
144008
|
+
return;
|
|
144009
|
+
}
|
|
144010
|
+
try {
|
|
144011
|
+
moveIntoSwitchQuarantine(root5, key, localPath);
|
|
144012
|
+
} catch (err) {
|
|
144013
|
+
if (errnoCode(err) === "EQUARANTINE")
|
|
144014
|
+
run.accountSwitchQuarantineFailed = true;
|
|
144015
|
+
throw err;
|
|
144016
|
+
}
|
|
144017
|
+
}
|
|
144018
|
+
function moveIntoSwitchQuarantine(root5, key, localPath, rename2 = fs59.renameSync, unlink = fs59.unlinkSync) {
|
|
144019
|
+
const segments = toPosixKey(key).split("/").filter((s2) => s2 && s2 !== "." && s2 !== "..");
|
|
144020
|
+
let dest = path54.join(root5, "files", ...segments);
|
|
144021
|
+
try {
|
|
144022
|
+
fs59.mkdirSync(path54.dirname(dest), { recursive: true });
|
|
144023
|
+
if (fs59.existsSync(dest))
|
|
144024
|
+
throw Object.assign(new Error("exists"), { code: "EEXIST" });
|
|
144025
|
+
} catch (err) {
|
|
144026
|
+
const code = errnoCode(err);
|
|
144027
|
+
if (code !== "ENOTDIR" && code !== "EEXIST")
|
|
144028
|
+
throw quarantineError(err);
|
|
144029
|
+
const hash3 = createHash38("sha256").update(key).digest("hex").slice(0, 32);
|
|
144030
|
+
dest = path54.join(root5, "collisions", hash3, segments.at(-1) ?? "file");
|
|
144031
|
+
try {
|
|
144032
|
+
fs59.mkdirSync(path54.dirname(dest), { recursive: true });
|
|
144033
|
+
} catch (inner) {
|
|
144034
|
+
throw quarantineError(inner);
|
|
144035
|
+
}
|
|
144036
|
+
}
|
|
144037
|
+
const at = (/* @__PURE__ */ new Date()).toISOString();
|
|
144038
|
+
try {
|
|
144039
|
+
fs59.mkdirSync(root5, { recursive: true });
|
|
144040
|
+
fs59.appendFileSync(path54.join(root5, "manifest.jsonl"), `${JSON.stringify({ key, from: localPath, to: dest, at, reason: "account-switch" })}
|
|
144041
|
+
`);
|
|
144042
|
+
} catch (err) {
|
|
144043
|
+
throw quarantineError(err);
|
|
144044
|
+
}
|
|
144045
|
+
try {
|
|
144046
|
+
rename2(localPath, dest);
|
|
144047
|
+
return;
|
|
144048
|
+
} catch (err) {
|
|
144049
|
+
const code = errnoCode(err);
|
|
144050
|
+
if (code === "ENOENT" && !lstatExists(localPath))
|
|
144051
|
+
throw err;
|
|
144052
|
+
if (code !== "EXDEV")
|
|
144053
|
+
throw quarantineError(err);
|
|
144054
|
+
}
|
|
144055
|
+
try {
|
|
144056
|
+
if (fs59.lstatSync(localPath).isSymbolicLink()) {
|
|
144057
|
+
fs59.symlinkSync(fs59.readlinkSync(localPath), dest);
|
|
144058
|
+
} else {
|
|
144059
|
+
fs59.copyFileSync(localPath, dest, fs59.constants.COPYFILE_EXCL);
|
|
144060
|
+
}
|
|
144061
|
+
} catch (err) {
|
|
144062
|
+
if (errnoCode(err) === "ENOENT" && !lstatExists(localPath))
|
|
144063
|
+
throw err;
|
|
144064
|
+
throw quarantineError(err);
|
|
144065
|
+
}
|
|
144066
|
+
try {
|
|
144067
|
+
unlink(localPath);
|
|
144068
|
+
} catch (err) {
|
|
144069
|
+
if (errnoCode(err) === "ENOENT" && !lstatExists(localPath))
|
|
144070
|
+
return;
|
|
144071
|
+
throw quarantineError(err);
|
|
144072
|
+
}
|
|
144073
|
+
}
|
|
144074
|
+
function lstatExists(p3) {
|
|
144075
|
+
try {
|
|
144076
|
+
fs59.lstatSync(p3);
|
|
144077
|
+
return true;
|
|
144078
|
+
} catch {
|
|
144079
|
+
return false;
|
|
144080
|
+
}
|
|
144081
|
+
}
|
|
144082
|
+
function quarantineError(err) {
|
|
144083
|
+
return Object.assign(new Error(`account-switch quarantine failed: ${describeError2(err)}`), { code: "EQUARANTINE" });
|
|
144084
|
+
}
|
|
143869
144085
|
function journalForTargetedPull(store, prefixes) {
|
|
143870
144086
|
const metadata = store.metadata();
|
|
143871
144087
|
const files = {};
|
|
@@ -144198,7 +144414,7 @@ function executeFileTombstoneDelete(run, item, counters, caseAliasedKeys) {
|
|
|
144198
144414
|
return;
|
|
144199
144415
|
}
|
|
144200
144416
|
if (lstat3.isSymbolicLink() || lstat3.isFile()) {
|
|
144201
|
-
|
|
144417
|
+
removeTombstonedLocalFile(run, tombstoneKey, tombstonePath);
|
|
144202
144418
|
}
|
|
144203
144419
|
} catch (err) {
|
|
144204
144420
|
const code = err && typeof err === "object" && "code" in err ? err.code : void 0;
|
|
@@ -144206,7 +144422,7 @@ function executeFileTombstoneDelete(run, item, counters, caseAliasedKeys) {
|
|
|
144206
144422
|
run.emit({
|
|
144207
144423
|
type: "error",
|
|
144208
144424
|
path: tombstoneKey,
|
|
144209
|
-
message: `tombstone-suppress unlink failed: ${describeError2(err)}`
|
|
144425
|
+
message: code === "EQUARANTINE" ? `kept the file: it could not be moved into .hq/switch-quarantine (${describeError2(err)}). Make sure .hq/switch-quarantine in your HQ folder is a folder you can write to; until then deletes for this scope stay held.` : `tombstone-suppress unlink failed: ${describeError2(err)}`
|
|
144210
144426
|
});
|
|
144211
144427
|
return;
|
|
144212
144428
|
}
|
|
@@ -145649,7 +145865,7 @@ async function executeJournalTombstoneDeletes(run, plan, counters) {
|
|
|
145649
145865
|
continue;
|
|
145650
145866
|
}
|
|
145651
145867
|
if (lstat3.isSymbolicLink() || lstat3.isFile()) {
|
|
145652
|
-
|
|
145868
|
+
removeTombstonedLocalFile(run, key, localPath);
|
|
145653
145869
|
removedSomething = true;
|
|
145654
145870
|
} else if (lstat3.isDirectory()) {
|
|
145655
145871
|
}
|
|
@@ -145659,7 +145875,7 @@ async function executeJournalTombstoneDeletes(run, plan, counters) {
|
|
|
145659
145875
|
run.emit({
|
|
145660
145876
|
type: "error",
|
|
145661
145877
|
path: key,
|
|
145662
|
-
message: `tombstone unlink failed: ${describeError2(err)}`
|
|
145878
|
+
message: code === "EQUARANTINE" ? `kept the file: it could not be moved into .hq/switch-quarantine (${describeError2(err)}). Make sure .hq/switch-quarantine in your HQ folder is a folder you can write to; until then deletes for this scope stay held.` : `tombstone unlink failed: ${describeError2(err)}`
|
|
145663
145879
|
});
|
|
145664
145880
|
continue;
|
|
145665
145881
|
}
|
|
@@ -145737,6 +145953,9 @@ function finalizePullRun(run, plan, scopeRun, counters) {
|
|
|
145737
145953
|
});
|
|
145738
145954
|
run.journal.lastSync = (/* @__PURE__ */ new Date()).toISOString();
|
|
145739
145955
|
persistPullJournal(run);
|
|
145956
|
+
if ((run.options.pullPrefixes ?? []).length === 0 && !scopeRun.refused && run.accountSwitchRefused !== true && run.accountSwitchQuarantineFailed !== true && !counters.hasRetryableOutcome && run.options.cooperativeCheckpoint?.shouldAbort?.() !== true && run.options.preflightOnly !== true) {
|
|
145957
|
+
markScopePullSettled(getStateDir(), run.journalSlug);
|
|
145958
|
+
}
|
|
145740
145959
|
clearRecoveryMarkerAfterPass({
|
|
145741
145960
|
journalSlug: run.journalSlug,
|
|
145742
145961
|
syncMode: run.syncMode,
|
|
@@ -146753,6 +146972,8 @@ async function computePullPlan(remoteFiles, journal, companyRoot, shouldSync, pe
|
|
|
146753
146972
|
function defaultConsoleLogger2(event, humanSkipLines) {
|
|
146754
146973
|
if (event.type === "personal-journal-identity-fenced") {
|
|
146755
146974
|
console.warn(` ! personal sync record of unproven ownership set aside (${event.reason}); no local files were deleted`);
|
|
146975
|
+
} else if (event.type === "identity-switch-push-held" && event.reason === "company-rebind") {
|
|
146976
|
+
console.warn(` ! this folder was linked to a different company, so ${event.count} local file${event.count === 1 ? " was" : "s were"} not uploaded and nothing was deleted in the cloud. The hold clears after a full \`hq sync\` pull that finishes cleanly: no refused deletes, and every file it sets aside moved into .hq/switch-quarantine (which must be a folder you can write to; fix that first if a pull reported it). HQ_SYNC_DELETE_BULK_OVERRIDE=1 skips only the bulk-delete refusal; files are still moved into quarantine, not deleted.`);
|
|
146756
146977
|
} else if (event.type === "identity-switch-push-held" && event.count === 0) {
|
|
146757
146978
|
console.warn(" ! someone else was signed in on this computer, so uploads from here are held until you review and release them.");
|
|
146758
146979
|
} else if (event.type === "identity-switch-push-held") {
|
|
@@ -146863,7 +147084,7 @@ function defaultConsoleLogger2(event, humanSkipLines) {
|
|
|
146863
147084
|
for (const samplePath of event.samplePaths.slice(0, 5))
|
|
146864
147085
|
console.warn(` \xB7 ${samplePath}`);
|
|
146865
147086
|
} else if (event.type === "delete-refused-mass-guard") {
|
|
146866
|
-
const explanation = event.reason === "absolute-volume" ? `${event.candidates} planned deletes reached the absolute ceiling of ${event.threshold ?? MASS_DELETE_ABSOLUTE_CEILING}` : "a planned delete includes a release-owned path";
|
|
147087
|
+
const explanation = event.reason === "absolute-volume" ? `${event.candidates} planned deletes reached the absolute ceiling of ${event.threshold ?? MASS_DELETE_ABSOLUTE_CEILING}` : event.reason === "account-switch" ? `another account signed in on this machine and ${event.candidates} files would have been deleted at once (set HQ_SYNC_DELETE_BULK_OVERRIDE=1 only if this is intended)` : "a planned delete includes a release-owned path";
|
|
146867
147088
|
console.error(` \u26A0 mass-delete guard refused ${event.candidates} ${event.target} delete(s): ${explanation}; local files and journal entries were kept.`);
|
|
146868
147089
|
for (const samplePath of event.samplePaths.slice(0, 5))
|
|
146869
147090
|
console.error(` \xB7 ${samplePath}`);
|
|
@@ -146901,7 +147122,7 @@ function defaultConsoleLogger2(event, humanSkipLines) {
|
|
|
146901
147122
|
}
|
|
146902
147123
|
}
|
|
146903
147124
|
|
|
146904
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
147125
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/rescue-core.js
|
|
146905
147126
|
import { createRequire } from "node:module";
|
|
146906
147127
|
var MAX_CLONE_BATCH_PATH_BYTES = 64 * 1024;
|
|
146907
147128
|
var require2 = createRequire(import.meta.url);
|
|
@@ -146911,7 +147132,7 @@ var PRECLONE_FREE_SPACE_FLOOR_BYTES = 1024 ** 3;
|
|
|
146911
147132
|
var CYGWIN_SYMLINK_COOKIE = Buffer.from("!<symlink>", "latin1");
|
|
146912
147133
|
var PRESERVED_FILE_COMPARE_CHUNK_BYTES = 64 * 1024;
|
|
146913
147134
|
|
|
146914
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
147135
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/schemas/source-channels.js
|
|
146915
147136
|
var SOURCE_CHANNELS = Object.freeze([
|
|
146916
147137
|
"meeting",
|
|
146917
147138
|
"email",
|
|
@@ -146920,7 +147141,7 @@ var SOURCE_CHANNELS = Object.freeze([
|
|
|
146920
147141
|
"notion"
|
|
146921
147142
|
]);
|
|
146922
147143
|
|
|
146923
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
147144
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/schemas/signal-types.js
|
|
146924
147145
|
var SIGNAL_TYPES = Object.freeze([
|
|
146925
147146
|
"action_item",
|
|
146926
147147
|
"commitment",
|
|
@@ -146930,7 +147151,7 @@ var SIGNAL_TYPES = Object.freeze([
|
|
|
146930
147151
|
"summary"
|
|
146931
147152
|
]);
|
|
146932
147153
|
|
|
146933
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
147154
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/feature-flags.js
|
|
146934
147155
|
var PARALLEL_COORDINATOR_ENV_VAR = "HQ_SYNC_PARALLEL_COORDINATOR";
|
|
146935
147156
|
var AREA_STORAGE_ENV_VAR = "HQ_SYNC_AREA_STORAGE";
|
|
146936
147157
|
function parseFeatureSwitch(value) {
|
|
@@ -146999,7 +147220,7 @@ function isEventSyncLocallyDisabled(value) {
|
|
|
146999
147220
|
}
|
|
147000
147221
|
}
|
|
147001
147222
|
|
|
147002
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
147223
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/metrics.js
|
|
147003
147224
|
var import_client_cloudwatch = __toESM(require_dist_cjs40(), 1);
|
|
147004
147225
|
var SYNC_METRIC_NAMESPACE = "HQPro/Sync";
|
|
147005
147226
|
var SYNC_LATENCY_METRIC_NAME = "hq-cloud.sync.p95_latency_seconds";
|
|
@@ -147067,7 +147288,7 @@ async function publishSyncLatencyMetric(metric, opts = {}) {
|
|
|
147067
147288
|
}
|
|
147068
147289
|
}
|
|
147069
147290
|
|
|
147070
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
147291
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/push-receiver.js
|
|
147071
147292
|
var DEFAULT_RECEIVER_DISPOSE_DRAIN_MS = 5e3;
|
|
147072
147293
|
var RECEIVER_SHUTDOWN_RELEASE_BUDGET_MS = 1500;
|
|
147073
147294
|
var DEFAULT_WAIT_TIME_SECONDS = 20;
|
|
@@ -148600,10 +148821,10 @@ function defaultSleep(ms, signal) {
|
|
|
148600
148821
|
});
|
|
148601
148822
|
}
|
|
148602
148823
|
|
|
148603
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
148824
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/logger.js
|
|
148604
148825
|
var import_pino = __toESM(require_pino(), 1);
|
|
148605
148826
|
|
|
148606
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
148827
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/path-leases.js
|
|
148607
148828
|
function assertCanonicalPath(path76) {
|
|
148608
148829
|
if (path76.length === 0 || path76.startsWith("/") || path76.endsWith("/") || path76.includes("\\") || path76.split("/").some((part) => part.length === 0 || part === "." || part === "..")) {
|
|
148609
148830
|
throw new Error(`path lease requires a canonical relative path: ${path76}`);
|
|
@@ -148666,7 +148887,7 @@ var PathLease = class {
|
|
|
148666
148887
|
}
|
|
148667
148888
|
};
|
|
148668
148889
|
|
|
148669
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
148890
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/parallel-sync-coordinator.js
|
|
148670
148891
|
var MAX_REALTIME_PULL_YIELDS = 3;
|
|
148671
148892
|
var MAX_REALTIME_PULL_YIELD_MS = 6e4;
|
|
148672
148893
|
var REALTIME_PULL_YIELD_STATE_TTL_MS = 10 * 6e4;
|
|
@@ -149173,7 +149394,7 @@ var DefaultParallelSyncCoordinator = class {
|
|
|
149173
149394
|
}
|
|
149174
149395
|
};
|
|
149175
149396
|
|
|
149176
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149397
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/sync-work.js
|
|
149177
149398
|
var InlineSyncWorkerAdapter = class {
|
|
149178
149399
|
handler;
|
|
149179
149400
|
constructor(handler) {
|
|
@@ -149184,11 +149405,11 @@ var InlineSyncWorkerAdapter = class {
|
|
|
149184
149405
|
}
|
|
149185
149406
|
};
|
|
149186
149407
|
|
|
149187
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149408
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
149188
149409
|
import * as fs61 from "node:fs";
|
|
149189
149410
|
import * as path57 from "node:path";
|
|
149190
149411
|
|
|
149191
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149412
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/company-slug.js
|
|
149192
149413
|
import * as path55 from "node:path";
|
|
149193
149414
|
var UNSAFE_SLUG_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
149194
149415
|
function isSafeCompanySlug(companiesDir, slug) {
|
|
@@ -149205,7 +149426,7 @@ function isSafeCompanySlug(companiesDir, slug) {
|
|
|
149205
149426
|
return path55.dirname(companyDir) === resolvedCompaniesDir;
|
|
149206
149427
|
}
|
|
149207
149428
|
|
|
149208
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149429
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/manifest/contract.js
|
|
149209
149430
|
var SYNC_MANIFEST_CONTRACT_VERSION = 1;
|
|
149210
149431
|
var SYNC_MANIFEST_SCOPE_KINDS = ["personal", "company"];
|
|
149211
149432
|
var SYNC_MANIFEST_SOURCES = ["desktop", "cli"];
|
|
@@ -149374,7 +149595,7 @@ var SYNC_MANIFEST_CONTRACT_DESCRIPTOR = {
|
|
|
149374
149595
|
}
|
|
149375
149596
|
};
|
|
149376
149597
|
|
|
149377
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149598
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/manifest/snapshot-store.js
|
|
149378
149599
|
import * as crypto19 from "node:crypto";
|
|
149379
149600
|
import * as fs60 from "node:fs";
|
|
149380
149601
|
import * as path56 from "node:path";
|
|
@@ -149549,7 +149770,7 @@ function writeSnapshotIncrementally(tmp, snapshot) {
|
|
|
149549
149770
|
}
|
|
149550
149771
|
var SNAPSHOT_WRITE_BATCH_CHARS = 256 * 1024;
|
|
149551
149772
|
|
|
149552
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
149773
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/manifest/build-manifest.js
|
|
149553
149774
|
function logSwallowed11(line) {
|
|
149554
149775
|
process.stderr.write(line);
|
|
149555
149776
|
}
|
|
@@ -150158,7 +150379,7 @@ function buildChunk(input2, firstChunkRemovedPaths, chunkIndex, chunkCount, entr
|
|
|
150158
150379
|
return upload;
|
|
150159
150380
|
}
|
|
150160
150381
|
|
|
150161
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
150382
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/manifest/upload-manifest.js
|
|
150162
150383
|
import * as fs62 from "node:fs";
|
|
150163
150384
|
var MANIFEST_UPLOAD_DISABLED_ENV = "HQ_SYNC_MANIFEST_DISABLED";
|
|
150164
150385
|
var DEFAULT_MANIFEST_UPLOAD_MIN_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -150384,6 +150605,7 @@ async function runManifestUploadPass(options) {
|
|
|
150384
150605
|
lock?.release();
|
|
150385
150606
|
}
|
|
150386
150607
|
}
|
|
150608
|
+
var MANIFEST_ENGINE_OWNED_LEDGER_CLASS = "SyncCoreOwnsScope";
|
|
150387
150609
|
async function runUploadPassBody(options, scopeKey, persisted) {
|
|
150388
150610
|
const nowMs = options.now ?? Date.now();
|
|
150389
150611
|
const nowIso = new Date(nowMs).toISOString();
|
|
@@ -150470,7 +150692,7 @@ async function runUploadPassBody(options, scopeKey, persisted) {
|
|
|
150470
150692
|
}
|
|
150471
150693
|
const priorTrackedEntries = previous ? Object.keys(previous.entries).length : 0;
|
|
150472
150694
|
const diskOnlyShare = chunkPlan.entryCount === 0 ? 0 : chunkPlan.diskEntryCount / chunkPlan.entryCount;
|
|
150473
|
-
if (mode === "full" && chunkPlan.entryCount > 0 && diskOnlyShare >= MANIFEST_IMPLAUSIBLE_DISK_RATIO && priorTrackedEntries > 0 && !options.dryRun) {
|
|
150695
|
+
if (mode === "full" && chunkPlan.entryCount > 0 && diskOnlyShare >= MANIFEST_IMPLAUSIBLE_DISK_RATIO && priorTrackedEntries > 0 && built.chunks[0]?.ledgerUnavailable?.errorClass !== MANIFEST_ENGINE_OWNED_LEDGER_CLASS && !options.dryRun) {
|
|
150474
150696
|
options.logger?.error?.("manifest ledger looks unreadable; refusing to upload a disk-only scope", {
|
|
150475
150697
|
scopeKey,
|
|
150476
150698
|
entries: chunkPlan.entryCount,
|
|
@@ -150727,7 +150949,7 @@ async function runUploadPassBody(options, scopeKey, persisted) {
|
|
|
150727
150949
|
};
|
|
150728
150950
|
}
|
|
150729
150951
|
|
|
150730
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
150952
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/watcher-catchup-skip-store.js
|
|
150731
150953
|
import * as fs63 from "node:fs";
|
|
150732
150954
|
import * as path58 from "node:path";
|
|
150733
150955
|
import { createHash as createHash40, randomUUID as randomUUID7 } from "node:crypto";
|
|
@@ -150975,7 +151197,7 @@ function validUnresolvedCompanyRecord(value) {
|
|
|
150975
151197
|
return typeof record2.company === "string" && record2.company.length > 0 && record2.reason === "unresolved-company" && typeof record2.recordedAt === "number" && Number.isFinite(record2.recordedAt);
|
|
150976
151198
|
}
|
|
150977
151199
|
|
|
150978
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
151200
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/version.js
|
|
150979
151201
|
import { readFileSync as readFileSync36 } from "node:fs";
|
|
150980
151202
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
150981
151203
|
import path59 from "node:path";
|
|
@@ -150983,7 +151205,7 @@ var here = path59.dirname(fileURLToPath4(import.meta.url));
|
|
|
150983
151205
|
var pkg = JSON.parse(readFileSync36(path59.resolve(here, "..", "package.json"), "utf-8"));
|
|
150984
151206
|
var HQ_CLOUD_VERSION = pkg.version;
|
|
150985
151207
|
|
|
150986
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
151208
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/outcome-telemetry.js
|
|
150987
151209
|
import { promises as fs64 } from "node:fs";
|
|
150988
151210
|
import * as os20 from "node:os";
|
|
150989
151211
|
import * as path60 from "node:path";
|
|
@@ -151357,7 +151579,7 @@ async function collectAndSendOutcomeTelemetry(opts) {
|
|
|
151357
151579
|
return { enabled: true, optInSource, filesScanned, eventsSent, batchesSent };
|
|
151358
151580
|
}
|
|
151359
151581
|
|
|
151360
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
151582
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/qmd-reindex.js
|
|
151361
151583
|
import * as fs65 from "fs";
|
|
151362
151584
|
import * as path61 from "path";
|
|
151363
151585
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -152007,7 +152229,7 @@ function defaultHasIndexableProjectContent(projectsDir) {
|
|
|
152007
152229
|
return false;
|
|
152008
152230
|
}
|
|
152009
152231
|
|
|
152010
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152232
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/qmd-runner-admission.js
|
|
152011
152233
|
import fs66 from "node:fs";
|
|
152012
152234
|
import path62 from "node:path";
|
|
152013
152235
|
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
@@ -152111,7 +152333,7 @@ nonce=${nonce}
|
|
|
152111
152333
|
};
|
|
152112
152334
|
}
|
|
152113
152335
|
|
|
152114
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152336
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/telemetry-admission.js
|
|
152115
152337
|
var DEFAULT_INTERVAL_MS = 10 * 60 * 1e3;
|
|
152116
152338
|
var MAX_INTERVAL_SEC = 24 * 60 * 60;
|
|
152117
152339
|
var STALE_IN_FLIGHT_TIMEOUT_MULTIPLE = 5;
|
|
@@ -152188,7 +152410,7 @@ function recordTelemetryRunStarted(store, nowMs, run) {
|
|
|
152188
152410
|
store.inFlight = tracked;
|
|
152189
152411
|
}
|
|
152190
152412
|
|
|
152191
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152413
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/cli/reindex-async.js
|
|
152192
152414
|
import { Worker } from "node:worker_threads";
|
|
152193
152415
|
function reindexAsync(options) {
|
|
152194
152416
|
if (import.meta.url.endsWith(".ts"))
|
|
@@ -152247,7 +152469,7 @@ function reindexAsync(options) {
|
|
|
152247
152469
|
});
|
|
152248
152470
|
}
|
|
152249
152471
|
|
|
152250
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152472
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/agent-codex-instructions.js
|
|
152251
152473
|
import * as crypto20 from "crypto";
|
|
152252
152474
|
import * as fs67 from "fs";
|
|
152253
152475
|
import * as os21 from "os";
|
|
@@ -152407,7 +152629,7 @@ function materializeCodexAgents(opts) {
|
|
|
152407
152629
|
}
|
|
152408
152630
|
}
|
|
152409
152631
|
|
|
152410
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152632
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-post-sync-flags.js
|
|
152411
152633
|
var POST_SYNC_FLAG_KEYS = {
|
|
152412
152634
|
qmdReindex: "sync.qmd-reindex",
|
|
152413
152635
|
conflictPrune: "sync.conflict-prune",
|
|
@@ -152427,12 +152649,12 @@ function createPostSyncFlagEvaluator(options = {}) {
|
|
|
152427
152649
|
};
|
|
152428
152650
|
}
|
|
152429
152651
|
|
|
152430
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152652
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
152431
152653
|
import { createHash as createHash41, randomUUID as randomUUID9 } from "node:crypto";
|
|
152432
152654
|
import * as fs69 from "node:fs/promises";
|
|
152433
152655
|
import * as path65 from "node:path";
|
|
152434
152656
|
|
|
152435
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152657
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-installation-id.js
|
|
152436
152658
|
import * as fs68 from "node:fs";
|
|
152437
152659
|
import * as os22 from "node:os";
|
|
152438
152660
|
import * as path64 from "node:path";
|
|
@@ -152482,7 +152704,7 @@ function readDesktopInstallationId(options) {
|
|
|
152482
152704
|
return void 0;
|
|
152483
152705
|
}
|
|
152484
152706
|
|
|
152485
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
152707
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-manifest.js
|
|
152486
152708
|
var RUNNER_MANIFEST_WALK_WALL_MS = 9e4;
|
|
152487
152709
|
var RUNNER_MANIFEST_PHASE_WALL_MS = 24e4;
|
|
152488
152710
|
var RUNNER_MANIFEST_REPAIR_POLL_SPACING_MS = 60 * 60 * 1e3;
|
|
@@ -153104,14 +153326,14 @@ async function runPostSyncManifestUploads(options) {
|
|
|
153104
153326
|
return emitted;
|
|
153105
153327
|
}
|
|
153106
153328
|
|
|
153107
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153329
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/exit-codes.js
|
|
153108
153330
|
var PARTIAL_SYNC_EXIT = 2;
|
|
153109
153331
|
var UNRESOLVED_COMPANY_EXIT = 19;
|
|
153110
153332
|
var WATCH_RUNNER_ALREADY_OWNED_EXIT = 20;
|
|
153111
153333
|
var WATCH_OWNER_LEASE_LOST_EXIT = 21;
|
|
153112
153334
|
var PREFLIGHT_HALT_EXIT = 22;
|
|
153113
153335
|
|
|
153114
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153336
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-audit.js
|
|
153115
153337
|
import * as crypto21 from "node:crypto";
|
|
153116
153338
|
import * as fs70 from "node:fs";
|
|
153117
153339
|
import * as path66 from "node:path";
|
|
@@ -153160,7 +153382,7 @@ function hashNormalizedKey(key) {
|
|
|
153160
153382
|
return crypto21.createHash("sha256").update(normalized, "utf8").digest("hex");
|
|
153161
153383
|
}
|
|
153162
153384
|
|
|
153163
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153385
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/watch-owner-lease.js
|
|
153164
153386
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
153165
153387
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
153166
153388
|
import * as fs71 from "node:fs";
|
|
@@ -153531,7 +153753,7 @@ function acquireWatchOwnerLease(hqRoot, owner = "unknown", options = {}) {
|
|
|
153531
153753
|
};
|
|
153532
153754
|
}
|
|
153533
153755
|
|
|
153534
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153756
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/watch-parent.js
|
|
153535
153757
|
var WATCH_PARENT_CHECK_INTERVAL_MS = 1e3;
|
|
153536
153758
|
function processExists(pid) {
|
|
153537
153759
|
try {
|
|
@@ -153582,7 +153804,7 @@ function startWatchParentExitMonitor(options) {
|
|
|
153582
153804
|
};
|
|
153583
153805
|
}
|
|
153584
153806
|
|
|
153585
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153807
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-events.js
|
|
153586
153808
|
var ERROR_TYPES = /* @__PURE__ */ new Set([
|
|
153587
153809
|
"error",
|
|
153588
153810
|
"auth-error"
|
|
@@ -153628,7 +153850,7 @@ function emitUncaughtRunnerError(err, streams) {
|
|
|
153628
153850
|
}
|
|
153629
153851
|
}
|
|
153630
153852
|
|
|
153631
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153853
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-stdout.js
|
|
153632
153854
|
import { format as format4 } from "node:util";
|
|
153633
153855
|
function redirectRunnerConsoleToStderr(runnerConsole, stderr) {
|
|
153634
153856
|
const writeDiagnostic = (...args) => {
|
|
@@ -153644,7 +153866,7 @@ function runWithRunnerConsoleStderr(startRunner, runnerConsole = console, stderr
|
|
|
153644
153866
|
return startRunner();
|
|
153645
153867
|
}
|
|
153646
153868
|
|
|
153647
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
153869
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-planning.js
|
|
153648
153870
|
function verifiedMemberCompanyUids(options) {
|
|
153649
153871
|
if (!options.companies)
|
|
153650
153872
|
return void 0;
|
|
@@ -153809,7 +154031,7 @@ function emitFanoutPlan(emit, plan) {
|
|
|
153809
154031
|
emit({ type: "fanout-plan", companies: plan });
|
|
153810
154032
|
}
|
|
153811
154033
|
|
|
153812
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154034
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-pass-request.js
|
|
153813
154035
|
import * as fs72 from "node:fs";
|
|
153814
154036
|
import * as path68 from "node:path";
|
|
153815
154037
|
function buildPassRequestArgv(passArgv, company) {
|
|
@@ -154060,7 +154282,7 @@ var SyncPassRequestDirectory = class _SyncPassRequestDirectory {
|
|
|
154060
154282
|
}
|
|
154061
154283
|
};
|
|
154062
154284
|
|
|
154063
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154285
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/active-company.js
|
|
154064
154286
|
import { randomUUID as randomUUID11 } from "node:crypto";
|
|
154065
154287
|
import * as fs73 from "node:fs";
|
|
154066
154288
|
import * as path69 from "node:path";
|
|
@@ -154152,7 +154374,7 @@ function seedActiveCompany(options) {
|
|
|
154152
154374
|
return { written: true, activeCompany };
|
|
154153
154375
|
}
|
|
154154
154376
|
|
|
154155
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154377
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/manifest-reconcile.js
|
|
154156
154378
|
import { randomUUID as randomUUID12 } from "node:crypto";
|
|
154157
154379
|
import * as fs74 from "node:fs";
|
|
154158
154380
|
import * as path70 from "node:path";
|
|
@@ -154374,17 +154596,17 @@ async function reconcileCompanyManifest(options) {
|
|
|
154374
154596
|
return reconcileManifest(options.hqRoot, resolvedTargets);
|
|
154375
154597
|
}
|
|
154376
154598
|
|
|
154377
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154599
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
154378
154600
|
import * as fs75 from "fs";
|
|
154379
154601
|
import * as path71 from "path";
|
|
154380
154602
|
import { createHash as createHash43, randomUUID as randomUUID13 } from "node:crypto";
|
|
154381
154603
|
|
|
154382
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154604
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/scope-inventory-client.js
|
|
154383
154605
|
function allowsLegacyNetwork(decision) {
|
|
154384
154606
|
return decision.network === "allow-legacy";
|
|
154385
154607
|
}
|
|
154386
154608
|
|
|
154387
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154609
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/lib/sync-leg-error-summary.js
|
|
154388
154610
|
import os23 from "node:os";
|
|
154389
154611
|
var ERRNO_NAMES = new Set(Object.keys(os23.constants.errno));
|
|
154390
154612
|
var EXTRA_CODES = /* @__PURE__ */ new Set([
|
|
@@ -154589,7 +154811,7 @@ function buildSyncLegErrorSummary(input2) {
|
|
|
154589
154811
|
return segments.join(":").slice(0, 128);
|
|
154590
154812
|
}
|
|
154591
154813
|
|
|
154592
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154814
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-rollup.js
|
|
154593
154815
|
function createCompanyState(company) {
|
|
154594
154816
|
return {
|
|
154595
154817
|
company,
|
|
@@ -154651,7 +154873,7 @@ function rollupAllComplete(plan, stateByCompany) {
|
|
|
154651
154873
|
};
|
|
154652
154874
|
}
|
|
154653
154875
|
|
|
154654
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
154876
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-company.js
|
|
154655
154877
|
var PRUNED_SAMPLE_PATHS = 5;
|
|
154656
154878
|
function journalErrorClass(error64) {
|
|
154657
154879
|
if (error64 instanceof JournalIncompleteUpsertError)
|
|
@@ -155759,7 +155981,7 @@ function normalizePullChangedPaths(target, changedPaths) {
|
|
|
155759
155981
|
});
|
|
155760
155982
|
}
|
|
155761
155983
|
|
|
155762
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155984
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-telemetry.js
|
|
155763
155985
|
async function emitTelemetry(options) {
|
|
155764
155986
|
const telemetryFn = options.collectTelemetry ?? options.defaultCollectTelemetry;
|
|
155765
155987
|
return telemetryFn().catch((err) => {
|
|
@@ -155771,7 +155993,7 @@ async function emitTelemetry(options) {
|
|
|
155771
155993
|
});
|
|
155772
155994
|
}
|
|
155773
155995
|
|
|
155774
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
155996
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
155775
155997
|
import * as os24 from "os";
|
|
155776
155998
|
import * as path74 from "path";
|
|
155777
155999
|
import * as fs78 from "fs";
|
|
@@ -155779,7 +156001,7 @@ import { createHash as createHash44 } from "node:crypto";
|
|
|
155779
156001
|
import * as v8 from "node:v8";
|
|
155780
156002
|
import { performance as performance3 } from "node:perf_hooks";
|
|
155781
156003
|
|
|
155782
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
156004
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/push-failure-backoff.js
|
|
155783
156005
|
var PUSH_FAILURE_BACKOFF_BASE_MS = 5e3;
|
|
155784
156006
|
var PUSH_FAILURE_BACKOFF_CAP_MS = 5 * 6e4;
|
|
155785
156007
|
var RoutePushFailureBackoff = class {
|
|
@@ -155806,12 +156028,12 @@ var systemPushRetryScheduler = {
|
|
|
155806
156028
|
clearTimeout: (handle) => clearTimeout(handle)
|
|
155807
156029
|
};
|
|
155808
156030
|
|
|
155809
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
156031
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
155810
156032
|
var import_client_sqs = __toESM(require_dist_cjs42(), 1);
|
|
155811
156033
|
import { readFileSync as readFileSync43 } from "node:fs";
|
|
155812
156034
|
import { join as join71 } from "node:path";
|
|
155813
156035
|
|
|
155814
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
156036
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/inbound-event-admission.js
|
|
155815
156037
|
import * as fs76 from "node:fs";
|
|
155816
156038
|
import * as path72 from "node:path";
|
|
155817
156039
|
function logSwallowed13(line) {
|
|
@@ -155877,7 +156099,7 @@ function isInboundEventPlaceable(hqRoot, event) {
|
|
|
155877
156099
|
}
|
|
155878
156100
|
}
|
|
155879
156101
|
|
|
155880
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
156102
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/unchanged-push-events.js
|
|
155881
156103
|
import fs77 from "node:fs";
|
|
155882
156104
|
import path73 from "node:path";
|
|
155883
156105
|
function journalCoordinatesForPushEvent(relativePath) {
|
|
@@ -155919,7 +156141,7 @@ function unchangedPushEventPaths(events, hqRoot, lookup) {
|
|
|
155919
156141
|
return unchanged;
|
|
155920
156142
|
}
|
|
155921
156143
|
|
|
155922
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
156144
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/event-sync.js
|
|
155923
156145
|
function resolveEventSync(override) {
|
|
155924
156146
|
return !isEventSyncLocallyDisabled(override);
|
|
155925
156147
|
}
|
|
@@ -156631,7 +156853,7 @@ async function startEventSync(opts) {
|
|
|
156631
156853
|
};
|
|
156632
156854
|
}
|
|
156633
156855
|
|
|
156634
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
156856
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/area-ledger-auto-migration.js
|
|
156635
156857
|
var AREA_AUTO_MIGRATION_STARTED_EVENT = "area_migration_started";
|
|
156636
156858
|
var AREA_AUTO_MIGRATION_COMPLETED_EVENT = "area_migration_completed";
|
|
156637
156859
|
var AREA_AUTO_MIGRATION_SOURCE = "sync-runner";
|
|
@@ -156784,7 +157006,7 @@ function describe3(error64) {
|
|
|
156784
157006
|
return error64 instanceof Error ? error64.message : String(error64);
|
|
156785
157007
|
}
|
|
156786
157008
|
|
|
156787
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
157009
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-heap-telemetry.js
|
|
156788
157010
|
import * as perfHooks from "node:perf_hooks";
|
|
156789
157011
|
var CENSUS_TOKEN = /^[A-Za-z][A-Za-z0-9_]{0,48}$/;
|
|
156790
157012
|
var HeapCensus = class {
|
|
@@ -157771,7 +157993,7 @@ function nodeHeapReaders(v82) {
|
|
|
157771
157993
|
};
|
|
157772
157994
|
}
|
|
157773
157995
|
|
|
157774
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
157996
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/sync/idle-full-reconcile.js
|
|
157775
157997
|
var MAX_UNOBSERVED_TICK_GAP_MS = 6e4;
|
|
157776
157998
|
var MAX_CLOCK_DRIFT_MS = 5e3;
|
|
157777
157999
|
var FullPassContinuity = class {
|
|
@@ -157826,7 +158048,7 @@ function canSkipScheduledFullReconcile(proof) {
|
|
|
157826
158048
|
return true;
|
|
157827
158049
|
}
|
|
157828
158050
|
|
|
157829
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
158051
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-watch-loop.js
|
|
157830
158052
|
var FULL_RECONCILE_EVERY_TICKS = 10;
|
|
157831
158053
|
var warnedUnresolvedReceiverCompanies = /* @__PURE__ */ new Set();
|
|
157832
158054
|
var EVENT_SYNC_STARTUP_SHUTDOWN_WAIT_MS = 5e3;
|
|
@@ -163208,7 +163430,7 @@ async function runWatchLoop(argv, parsed, deps, runtime) {
|
|
|
163208
163430
|
}
|
|
163209
163431
|
}
|
|
163210
163432
|
|
|
163211
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
163433
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner-auth-wait.js
|
|
163212
163434
|
var AUTH_WAIT_INITIAL_RECHECK_MS = 6e4;
|
|
163213
163435
|
var AUTH_WAIT_STEADY_RECHECK_MS = 5 * 6e4;
|
|
163214
163436
|
var AUTH_WAIT_LIVENESS_INTERVAL_MS = 30 * 6e4;
|
|
@@ -163281,7 +163503,7 @@ async function waitForValidAuth(opts) {
|
|
|
163281
163503
|
return "stopped";
|
|
163282
163504
|
}
|
|
163283
163505
|
|
|
163284
|
-
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.
|
|
163506
|
+
// node_modules/.pnpm/@indigoai-us+hq-cloud@6.18.104/node_modules/@indigoai-us/hq-cloud/dist/bin/sync-runner.js
|
|
163285
163507
|
var SESSION_LOG_CAPTURE_QUIET_FOR_MS = 10 * 6e4;
|
|
163286
163508
|
var SESSION_LOG_CAPTURE_MAX_STALENESS_MS = 60 * 6e4;
|
|
163287
163509
|
var DEFAULT_COGNITO = {
|