@indigoai-us/hq-cli 5.345.211 → 5.345.212
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 +39 -0
- package/dist/command-catalog.generated.d.ts +28 -0
- package/dist/command-catalog.generated.js +34 -0
- package/dist/command-registration-plan.d.ts +15 -0
- package/dist/command-registration-plan.js +20 -1
- package/dist/commands/agents.js +6 -1
- package/dist/commands/billing.js +17 -4
- package/dist/commands/bot-runtime.d.ts +21 -2
- package/dist/commands/bot-runtime.js +54 -9
- package/dist/commands/bot.d.ts +13 -0
- package/dist/commands/bot.js +142 -12
- package/dist/commands/daemon.js +60 -5
- package/dist/commands/files.js +2 -2
- package/dist/commands/integrations-api.d.ts +11 -0
- package/dist/commands/integrations-connect.d.ts +2 -0
- package/dist/commands/integrations-connect.js +17 -5
- package/dist/commands/integrations-core.d.ts +1 -1
- package/dist/commands/integrations-core.js +18 -10
- package/dist/commands/integrations.js +1 -1
- package/dist/commands/lanes.js +34 -16
- package/dist/commands/whoami.js +7 -6
- package/dist/lazy-commands.js +4 -1
- package/dist/lib/billing/usage-only.d.ts +4 -1
- package/dist/lib/billing/usage-only.js +7 -2
- package/dist/lib/bot/api.d.ts +1 -1
- package/dist/lib/bot/config.js +2 -1
- package/dist/lib/bot/fleet-daemon.d.ts +4 -0
- package/dist/lib/bot/fleet-daemon.js +12 -1
- package/dist/lib/bot/fleet-download.d.ts +6 -0
- package/dist/lib/bot/fleet-download.js +128 -3
- package/dist/lib/bot/fleet-local.d.ts +38 -1
- package/dist/lib/bot/fleet-local.js +239 -26
- package/dist/lib/bot/install-progress.d.ts +28 -0
- package/dist/lib/bot/install-progress.js +185 -0
- package/dist/lib/bot/legacy-provider-login.d.ts +22 -1
- package/dist/lib/bot/legacy-provider-login.js +67 -9
- package/dist/lib/bot/prompt.d.ts +1 -0
- package/dist/lib/bot/prompt.js +3 -2
- package/dist/lib/bot/readiness.d.ts +68 -0
- package/dist/lib/bot/readiness.js +145 -0
- package/dist/lib/bot/run.d.ts +2 -0
- package/dist/lib/bot/run.js +6 -3
- package/dist/lib/bot/scaffold.d.ts +6 -3
- package/dist/lib/bot/scaffold.js +18 -12
- package/dist/lib/capacity/ledger.d.ts +7 -0
- package/dist/lib/capacity/ledger.js +31 -1
- package/dist/lib/capacity/project.d.ts +1 -1
- package/dist/lib/capacity/project.js +13 -4
- package/dist/lib/capacity/route.d.ts +10 -0
- package/dist/lib/capacity/route.js +16 -0
- package/dist/lib/daemon/install.d.ts +15 -0
- package/dist/lib/daemon/install.js +31 -0
- package/dist/lib/daemon/migrate.js +29 -4
- package/dist/lib/daemon/run.d.ts +1 -0
- package/dist/lib/daemon/run.js +6 -1
- package/dist/lib/daemon/supervisor.d.ts +1 -0
- package/dist/lib/daemon/supervisor.js +5 -3
- package/dist/lib/doctor/__testing__/run-doctor.js +4 -0
- package/dist/lib/doctor/checks/jq.d.ts +27 -0
- package/dist/lib/doctor/checks/jq.js +82 -0
- package/dist/lib/doctor/registry.js +4 -0
- package/dist/lib/flag-snapshot-file.js +36 -8
- package/dist/lib/install/codex-targets.d.ts +52 -1
- package/dist/lib/install/codex-targets.js +77 -2
- package/dist/lib/lanes/monitor.d.ts +4 -1
- package/dist/lib/lanes/monitor.js +47 -10
- package/dist/lib/lanes/spawn.js +8 -1
- package/dist/lib/lanes/watch.js +31 -0
- package/dist/lib/onboarding/checkpoint.d.ts +6 -0
- package/dist/lib/onboarding/checkpoint.js +6 -0
- package/dist/lib/onboarding/orchestrator.d.ts +3 -1
- package/dist/lib/onboarding/orchestrator.js +62 -9
- package/dist/lib/onboarding/types.d.ts +8 -0
- package/dist/lib/work-context/organize.d.ts +23 -1
- package/dist/lib/work-context/organize.js +25 -3
- package/dist/lib/work-context/reconcile.js +3 -2
- package/dist/secrets-env-action.js +7 -5
- package/dist/startup-registration.js +7 -2
- package/dist/utils/billing-gate.d.ts +12 -16
- package/dist/utils/billing-gate.js +17 -18
- package/dist/utils/install-tree-torn.d.ts +22 -4
- package/dist/utils/install-tree-torn.js +24 -0
- package/dist/utils/registration-plan-error.d.ts +22 -0
- package/dist/utils/registration-plan-error.js +27 -0
- package/dist/utils/sentry-fingerprint.js +3 -0
- package/dist/utils/unauthorized-error.d.ts +36 -0
- package/dist/utils/unauthorized-error.js +105 -0
- package/dist/utils/vault-api.js +7 -5
- package/package.json +7 -7
- package/scripts/install-hook-engine.mjs +17 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { execFileSync, spawnSync } from "node:child_process";
|
|
1
|
+
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
2
2
|
import * as crypto from "node:crypto";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as os from "node:os";
|
|
5
5
|
import * as path from "node:path";
|
|
6
6
|
import * as zlib from "node:zlib";
|
|
7
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
7
8
|
import { HQ_FLEET_RUNTIME_ENGINE_ID, } from "./config.js";
|
|
8
9
|
import { withBotLock } from "./lock.js";
|
|
9
10
|
import { downloadFleetFile, fileSha256 } from "./fleet-download.js";
|
|
@@ -81,15 +82,15 @@ export function sharedRuntimeLayout(root, id, platform) {
|
|
|
81
82
|
}
|
|
82
83
|
export const HQ_FLEET_LOCAL_RELEASE = {
|
|
83
84
|
repository: "indigoai-us/hq-fleet-local",
|
|
84
|
-
tag: "v0.4.
|
|
85
|
-
version: "0.4.
|
|
86
|
-
artifact: "hq-fleet-local-0.4.
|
|
87
|
-
artifactSha256: "
|
|
88
|
-
runtimeArtifact: "hq-fleet-runtime-
|
|
89
|
-
runtimeArtifactSha256: "
|
|
90
|
-
manifestSha256: "
|
|
91
|
-
signatureSha256: "
|
|
92
|
-
runtimeCommit: "
|
|
85
|
+
tag: "v0.4.31",
|
|
86
|
+
version: "0.4.31",
|
|
87
|
+
artifact: "hq-fleet-local-0.4.31.zip",
|
|
88
|
+
artifactSha256: "cb0f224bfe4d4c091a920a59b13502864d43129191c5aaa78a0b0c006e9868df",
|
|
89
|
+
runtimeArtifact: "hq-fleet-runtime-398523c9ead4.tar.gz",
|
|
90
|
+
runtimeArtifactSha256: "074e15d560b263fc2e10b1cc1f3ca89a177a1b0e54dcfd63aff55236e414a0ff",
|
|
91
|
+
manifestSha256: "38c4ca7f5cc7b6b874cf65de9d70effb78c2f762d0f3b7e04b6ef78fc368302d",
|
|
92
|
+
signatureSha256: "ef421dcbe6bde60d0a4dc6c9b470dc114d95c85dbe163ad68b498cd7b000f00d",
|
|
93
|
+
runtimeCommit: "398523c9ead40e36f45adcd4489e7d8c01e283ff",
|
|
93
94
|
};
|
|
94
95
|
/** hq-fleet-local trust/release-public.pem (rotated 2026-10-30; signed v0.4.17). */
|
|
95
96
|
export const HQ_FLEET_LOCAL_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
|
@@ -443,6 +444,61 @@ function noReleaseSourceError(release, reason) {
|
|
|
443
444
|
export const FLEET_LOCAL_LATEST_TIMEOUT_MS = 5_000;
|
|
444
445
|
export const FLEET_LOCAL_LATEST_CACHE_MS = 10 * 60_000;
|
|
445
446
|
const FLEET_LOCAL_LATEST_CACHE_FILE = "release-pointer.json";
|
|
447
|
+
export const FLEET_RELEASE_POINTER_FILE_ENV = "HQ_FLEET_RELEASE_POINTER_FILE";
|
|
448
|
+
const LOCAL_POINTER_LINK_LIFETIME_SECONDS = 365 * 24 * 60 * 60;
|
|
449
|
+
export function fleetReleasePointerFileOverride(env = process.env) {
|
|
450
|
+
const value = env[FLEET_RELEASE_POINTER_FILE_ENV]?.trim();
|
|
451
|
+
return value ? path.resolve(value) : null;
|
|
452
|
+
}
|
|
453
|
+
function localAssetUrl(url, base) {
|
|
454
|
+
if (/^[a-z][a-z0-9+.-]*:/i.test(url) && !/^[a-z]:[\\/]/i.test(url))
|
|
455
|
+
return url;
|
|
456
|
+
return pathToFileURL(path.resolve(base, url)).href;
|
|
457
|
+
}
|
|
458
|
+
export function readLocalFleetReleasePointer(file, now = Date.now()) {
|
|
459
|
+
let body;
|
|
460
|
+
try {
|
|
461
|
+
body = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
462
|
+
}
|
|
463
|
+
catch (error) {
|
|
464
|
+
throw expectedError(`${FLEET_RELEASE_POINTER_FILE_ENV} names ${file}, which could not be read as JSON (${error instanceof Error ? error.message : String(error)}).`);
|
|
465
|
+
}
|
|
466
|
+
if (body && typeof body === "object" && !Array.isArray(body)) {
|
|
467
|
+
const record = body;
|
|
468
|
+
const base = path.dirname(file);
|
|
469
|
+
body = {
|
|
470
|
+
...record,
|
|
471
|
+
expiresInSeconds: typeof record.expiresInSeconds === "number" && record.expiresInSeconds > 0 ? record.expiresInSeconds : LOCAL_POINTER_LINK_LIFETIME_SECONDS,
|
|
472
|
+
assets: Array.isArray(record.assets)
|
|
473
|
+
? record.assets.map((asset) => {
|
|
474
|
+
const entry = asset;
|
|
475
|
+
return entry && typeof entry.url === "string" ? { ...entry, url: localAssetUrl(entry.url, base) } : asset;
|
|
476
|
+
})
|
|
477
|
+
: record.assets,
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
const pointer = parseFleetLocalReleasePointer(body, now);
|
|
481
|
+
if (!pointer) {
|
|
482
|
+
throw expectedError(`${FLEET_RELEASE_POINTER_FILE_ENV} names ${file}, which is not a valid HQ Fleet Local release pointer.`);
|
|
483
|
+
}
|
|
484
|
+
return { ...pointer, localFile: file };
|
|
485
|
+
}
|
|
486
|
+
function localPointerTarget(pointer, cliVersion) {
|
|
487
|
+
if (pointer.minimumHqCli) {
|
|
488
|
+
const required = semver.valid(semver.coerce(pointer.minimumHqCli));
|
|
489
|
+
const current = semver.valid(semver.coerce(cliVersion));
|
|
490
|
+
if (!required || !current || semver.lt(current, required)) {
|
|
491
|
+
throw expectedError(`The release pointer in ${pointer.localFile} needs hq-cli ${pointer.minimumHqCli} or newer; this is ${cliVersion}.`);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
return {
|
|
495
|
+
release: pointer.release,
|
|
496
|
+
source: "pointer",
|
|
497
|
+
links: pointer.links,
|
|
498
|
+
linksExpireAt: pointer.linksExpireAt,
|
|
499
|
+
...(pointer.localFile ? { localFile: pointer.localFile } : {}),
|
|
500
|
+
};
|
|
501
|
+
}
|
|
446
502
|
const SHA256_RE = /^[0-9a-f]{64}$/;
|
|
447
503
|
const COMMIT_RE = /^[0-9a-f]{40}$/;
|
|
448
504
|
export function parseFleetLocalReleasePin(value) {
|
|
@@ -592,6 +648,9 @@ function pointerFromCache(body) {
|
|
|
592
648
|
async function loadFleetLocalReleasePointer(deps) {
|
|
593
649
|
const root = deps.fleetHome ?? fleetHome();
|
|
594
650
|
const now = (deps.now ?? Date.now)();
|
|
651
|
+
const localFile = fleetReleasePointerFileOverride(deps.env ?? process.env);
|
|
652
|
+
if (localFile)
|
|
653
|
+
return readLocalFleetReleasePointer(localFile, now);
|
|
595
654
|
const cached = readPointerCache(root, now);
|
|
596
655
|
if (cached)
|
|
597
656
|
return pointerFromCache(cached.body);
|
|
@@ -606,12 +665,24 @@ async function loadFleetLocalReleasePointer(deps) {
|
|
|
606
665
|
}
|
|
607
666
|
export async function resolveFleetLocalTargetRelease(deps = {}) {
|
|
608
667
|
const pointer = await loadFleetLocalReleasePointer(deps);
|
|
668
|
+
if (pointer?.localFile)
|
|
669
|
+
return localPointerTarget(pointer, deps.cliVersion ?? CLI_VERSION);
|
|
609
670
|
return chooseFleetLocalTargetRelease(pointer, deps.compiled ?? HQ_FLEET_LOCAL_RELEASE, deps.cliVersion ?? CLI_VERSION);
|
|
610
671
|
}
|
|
672
|
+
export function cachedFleetLocalTargetRelease(deps = {}) {
|
|
673
|
+
const now = (deps.now ?? Date.now)();
|
|
674
|
+
const localFile = fleetReleasePointerFileOverride(deps.env ?? process.env);
|
|
675
|
+
if (localFile)
|
|
676
|
+
return localPointerTarget(readLocalFleetReleasePointer(localFile, now), deps.cliVersion ?? CLI_VERSION);
|
|
677
|
+
const cached = readPointerCache(deps.fleetHome ?? fleetHome(), now);
|
|
678
|
+
return chooseFleetLocalTargetRelease(cached ? pointerFromCache(cached.body) : null, deps.compiled ?? HQ_FLEET_LOCAL_RELEASE, deps.cliVersion ?? CLI_VERSION);
|
|
679
|
+
}
|
|
611
680
|
export async function resolveFleetLocalPointerTarget(deps = {}) {
|
|
612
681
|
const pointer = await loadFleetLocalReleasePointer(deps);
|
|
613
682
|
if (!pointer)
|
|
614
683
|
return null;
|
|
684
|
+
if (pointer.localFile)
|
|
685
|
+
return localPointerTarget(pointer, deps.cliVersion ?? CLI_VERSION);
|
|
615
686
|
if (pointer.minimumHqCli) {
|
|
616
687
|
const required = semver.valid(semver.coerce(pointer.minimumHqCli));
|
|
617
688
|
const current = semver.valid(semver.coerce(deps.cliVersion ?? CLI_VERSION));
|
|
@@ -629,6 +700,7 @@ export async function installTargetFleetLocalDistribution(deps = {}) {
|
|
|
629
700
|
...installDeps,
|
|
630
701
|
release: target.release,
|
|
631
702
|
...(freshLinks && !installDeps.hqReleaseLinks ? { hqReleaseLinks: async () => freshLinks } : {}),
|
|
703
|
+
...(target.localFile ? { allowFileLinks: true } : {}),
|
|
632
704
|
});
|
|
633
705
|
}
|
|
634
706
|
function trustedReleaseLink(url) {
|
|
@@ -666,12 +738,24 @@ function discardDownloads(target) {
|
|
|
666
738
|
async function downloadReleaseFiles(release, fetcher, resolve, cachedRuntime, target, onProgress, stallMs) {
|
|
667
739
|
fs.mkdirSync(target, { recursive: true, mode: 0o700 });
|
|
668
740
|
const downloaded = new Map();
|
|
669
|
-
|
|
741
|
+
const wanted = RELEASE_FILE_NAMES(release).filter((name) => {
|
|
670
742
|
if (name === release.runtimeArtifact && cachedRuntime) {
|
|
671
743
|
downloaded.set(name, cachedRuntime);
|
|
672
|
-
|
|
744
|
+
return false;
|
|
745
|
+
}
|
|
746
|
+
return true;
|
|
747
|
+
});
|
|
748
|
+
const sources = wanted.map((name) => ({ name, ...resolve(name) }));
|
|
749
|
+
onProgress?.({ phase: "download-start", files: wanted.length });
|
|
750
|
+
await Promise.all(sources.map(async ({ name, url, headers }) => {
|
|
751
|
+
if (url.startsWith("file:")) {
|
|
752
|
+
const destination = path.join(target, name);
|
|
753
|
+
fs.copyFileSync(fileURLToPath(url), destination);
|
|
754
|
+
const size = fs.statSync(destination).size;
|
|
755
|
+
onProgress?.({ phase: "download", file: name, received: size, total: size });
|
|
756
|
+
downloaded.set(name, destination);
|
|
757
|
+
return;
|
|
673
758
|
}
|
|
674
|
-
const { url, headers } = resolve(name);
|
|
675
759
|
const file = await downloadFleetFile(url, path.join(target, name), {
|
|
676
760
|
fetch: fetcher,
|
|
677
761
|
...(headers ? { headers } : {}),
|
|
@@ -679,7 +763,7 @@ async function downloadReleaseFiles(release, fetcher, resolve, cachedRuntime, ta
|
|
|
679
763
|
onProgress: (progress) => onProgress?.({ phase: "download", file: name, received: progress.received, total: progress.total }),
|
|
680
764
|
});
|
|
681
765
|
downloaded.set(name, file);
|
|
682
|
-
}
|
|
766
|
+
}));
|
|
683
767
|
return {
|
|
684
768
|
archive: fs.readFileSync(downloaded.get(release.artifact)),
|
|
685
769
|
runtimeArchive: fs.readFileSync(downloaded.get(release.runtimeArtifact)),
|
|
@@ -687,14 +771,14 @@ async function downloadReleaseFiles(release, fetcher, resolve, cachedRuntime, ta
|
|
|
687
771
|
signature: fs.readFileSync(downloaded.get("release-manifest.sig")),
|
|
688
772
|
};
|
|
689
773
|
}
|
|
690
|
-
async function downloadFleetLocalReleaseFromHq(release, fetcher, links, cachedRuntime, target, onProgress, stallMs) {
|
|
774
|
+
async function downloadFleetLocalReleaseFromHq(release, fetcher, links, cachedRuntime, target, onProgress, stallMs, allowFileLinks = false) {
|
|
691
775
|
for (const name of RELEASE_FILE_NAMES(release)) {
|
|
692
776
|
if (name === release.runtimeArtifact && cachedRuntime)
|
|
693
777
|
continue;
|
|
694
778
|
const url = links.get(name);
|
|
695
779
|
if (!url)
|
|
696
780
|
throw expectedError(`HQ Fleet Local ${release.tag} is missing release asset ${name}.`);
|
|
697
|
-
if (!trustedReleaseLink(url)) {
|
|
781
|
+
if (!trustedReleaseLink(url) && !(allowFileLinks && url.startsWith("file:"))) {
|
|
698
782
|
throw expectedError(`HQ Fleet Local ${release.tag} returned an untrusted download link for ${name}.`);
|
|
699
783
|
}
|
|
700
784
|
}
|
|
@@ -801,9 +885,18 @@ function cachedRuntimeArchive(root, release) {
|
|
|
801
885
|
}
|
|
802
886
|
return null;
|
|
803
887
|
}
|
|
888
|
+
function filesMatchPin(files, release) {
|
|
889
|
+
if (!files)
|
|
890
|
+
return null;
|
|
891
|
+
const matches = digest(files.archive) === release.artifactSha256 &&
|
|
892
|
+
digest(files.runtimeArchive) === release.runtimeArtifactSha256 &&
|
|
893
|
+
digest(files.manifest) === release.manifestSha256 &&
|
|
894
|
+
digest(files.signature) === release.signatureSha256;
|
|
895
|
+
return matches ? files : null;
|
|
896
|
+
}
|
|
804
897
|
/** Whether the pinned release is installed on this machine (no download needed). */
|
|
805
898
|
export function fleetLocalDistributionInstalled(release = HQ_FLEET_LOCAL_RELEASE, root = fleetHome()) {
|
|
806
|
-
return installedFiles(path.join(root, "distributions", "hq-fleet-local", release.version), release) !== null;
|
|
899
|
+
return filesMatchPin(installedFiles(path.join(root, "distributions", "hq-fleet-local", release.version), release), release) !== null;
|
|
807
900
|
}
|
|
808
901
|
export async function installPinnedFleetLocalDistribution(deps = {}) {
|
|
809
902
|
const release = deps.release ?? HQ_FLEET_LOCAL_RELEASE;
|
|
@@ -825,7 +918,7 @@ export async function installPinnedFleetLocalDistribution(deps = {}) {
|
|
|
825
918
|
signature: path.join(dir, "release-manifest.sig"),
|
|
826
919
|
engine: engineMetadata(release),
|
|
827
920
|
});
|
|
828
|
-
const current = installedFiles(dir, release);
|
|
921
|
+
const current = filesMatchPin(installedFiles(dir, release), release);
|
|
829
922
|
if (current) {
|
|
830
923
|
verifyFleetLocalRelease(current, release, publicKey);
|
|
831
924
|
warnCompatibility(current.manifest);
|
|
@@ -833,7 +926,7 @@ export async function installPinnedFleetLocalDistribution(deps = {}) {
|
|
|
833
926
|
return installation();
|
|
834
927
|
}
|
|
835
928
|
return withBotLock(FLEET_LOCAL_DISTRIBUTION_LOCK_NAME, async () => {
|
|
836
|
-
const again = installedFiles(dir, release);
|
|
929
|
+
const again = filesMatchPin(installedFiles(dir, release), release);
|
|
837
930
|
if (again) {
|
|
838
931
|
verifyFleetLocalRelease(again, release, publicKey);
|
|
839
932
|
warnCompatibility(again.manifest);
|
|
@@ -849,7 +942,7 @@ export async function installPinnedFleetLocalDistribution(deps = {}) {
|
|
|
849
942
|
const target = downloadsDir(root, release);
|
|
850
943
|
let files;
|
|
851
944
|
if (links) {
|
|
852
|
-
files = await downloadFleetLocalReleaseFromHq(release, fetcher, links, cachedRuntime, target, onProgress, deps.downloadStallMs);
|
|
945
|
+
files = await downloadFleetLocalReleaseFromHq(release, fetcher, links, cachedRuntime, target, onProgress, deps.downloadStallMs, deps.allowFileLinks === true);
|
|
853
946
|
}
|
|
854
947
|
else {
|
|
855
948
|
let githubToken;
|
|
@@ -1296,7 +1389,86 @@ export function removeFleetLocalBot(agentUid, deps = {}) {
|
|
|
1296
1389
|
fs.rmSync(files.profileDir, { recursive: true, force: true });
|
|
1297
1390
|
return { removed: true, credentialsRemoved: providers.length + 1 };
|
|
1298
1391
|
}
|
|
1299
|
-
export
|
|
1392
|
+
export const spawnFleetAuth = (executable, args, onStderrLine) => new Promise((resolve, reject) => {
|
|
1393
|
+
const child = spawn(executable, args, { stdio: ["inherit", "pipe", "pipe"], windowsHide: true });
|
|
1394
|
+
let stdout = "";
|
|
1395
|
+
let pending = "";
|
|
1396
|
+
child.stdout.setEncoding("utf8");
|
|
1397
|
+
child.stdout.on("data", (chunk) => {
|
|
1398
|
+
stdout += chunk;
|
|
1399
|
+
});
|
|
1400
|
+
child.stderr.setEncoding("utf8");
|
|
1401
|
+
child.stderr.on("data", (chunk) => {
|
|
1402
|
+
pending += chunk;
|
|
1403
|
+
for (let at = pending.indexOf("\n"); at >= 0; at = pending.indexOf("\n")) {
|
|
1404
|
+
onStderrLine(pending.slice(0, at));
|
|
1405
|
+
pending = pending.slice(at + 1);
|
|
1406
|
+
}
|
|
1407
|
+
});
|
|
1408
|
+
child.on("error", reject);
|
|
1409
|
+
child.on("close", (code) => {
|
|
1410
|
+
if (pending)
|
|
1411
|
+
onStderrLine(pending);
|
|
1412
|
+
resolve({ code, stdout });
|
|
1413
|
+
});
|
|
1414
|
+
});
|
|
1415
|
+
export const FLEET_GROK_CLI_IMPORT_MIN_VERSION = "0.4.31-local.13";
|
|
1416
|
+
export function fleetReleaseImportsGrokCli(version) {
|
|
1417
|
+
const valid = typeof version === "string" ? semver.valid(version) : null;
|
|
1418
|
+
return valid !== null && semver.gte(valid, FLEET_GROK_CLI_IMPORT_MIN_VERSION);
|
|
1419
|
+
}
|
|
1420
|
+
export function fleetLocalProfileEngineVersion(agentUid, deps = {}) {
|
|
1421
|
+
if (!/^agt_[A-Za-z0-9_-]+$/.test(agentUid))
|
|
1422
|
+
return null;
|
|
1423
|
+
try {
|
|
1424
|
+
const marker = JSON.parse(fs.readFileSync(path.join(profileRoot(agentUid, deps.fleetHome ?? fleetHome()), "bootstrap.json"), "utf8"));
|
|
1425
|
+
return typeof marker.engine?.version === "string" ? marker.engine.version : null;
|
|
1426
|
+
}
|
|
1427
|
+
catch {
|
|
1428
|
+
return null;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
function authEventLine(line) {
|
|
1432
|
+
if (!line.startsWith("{"))
|
|
1433
|
+
return null;
|
|
1434
|
+
try {
|
|
1435
|
+
const value = JSON.parse(line);
|
|
1436
|
+
return value && typeof value === "object" && !Array.isArray(value) && value.event === "auth"
|
|
1437
|
+
? value
|
|
1438
|
+
: null;
|
|
1439
|
+
}
|
|
1440
|
+
catch {
|
|
1441
|
+
return null;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
async function runAuthWithEvents(spawnAuth, executable, args, onAuthEvent, writeStderr, label) {
|
|
1445
|
+
let result;
|
|
1446
|
+
try {
|
|
1447
|
+
result = await spawnAuth(executable, [...args, "--json-events"], (line) => {
|
|
1448
|
+
const event = authEventLine(line);
|
|
1449
|
+
if (event)
|
|
1450
|
+
onAuthEvent(event);
|
|
1451
|
+
else
|
|
1452
|
+
writeStderr(`${line}\n`);
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
catch {
|
|
1456
|
+
throw expectedError(`HQ Fleet Local ${label} failed.`);
|
|
1457
|
+
}
|
|
1458
|
+
if (result.code !== 0)
|
|
1459
|
+
throw expectedError(`HQ Fleet Local ${label} failed.`);
|
|
1460
|
+
try {
|
|
1461
|
+
const value = JSON.parse(result.stdout);
|
|
1462
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
1463
|
+
throw new Error("not an object");
|
|
1464
|
+
return value;
|
|
1465
|
+
}
|
|
1466
|
+
catch {
|
|
1467
|
+
throw expectedError(`HQ Fleet Local ${label} returned an invalid result.`);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
export async function authenticateFleetLocalBot(input, deps = {}) {
|
|
1471
|
+
const control = deps.control ?? ((agentUid, action) => controlFleetLocalBot(agentUid, action, deps));
|
|
1300
1472
|
const requested = input.provider.trim().toLowerCase();
|
|
1301
1473
|
if (!/^[a-z0-9][a-z0-9._:-]*$/.test(requested)) {
|
|
1302
1474
|
throw expectedError("HQ Fleet provider identifier is invalid.");
|
|
@@ -1308,7 +1480,7 @@ export function authenticateFleetLocalBot(input, deps = {}) {
|
|
|
1308
1480
|
replaceProfileProvider(files.profile, input.agentUid, native);
|
|
1309
1481
|
runJson(run, files.helper, ["render-profile", "--spec", files.profile, "--mode", "update"], { stdio: ["ignore", "pipe", "pipe"] }, "profile update");
|
|
1310
1482
|
runJson(run, files.helper, ["doctor-profile", "--profile", files.profileDir, "--runtime", files.runtime], { stdio: ["ignore", "pipe", "pipe"] }, "profile validation");
|
|
1311
|
-
const restarted =
|
|
1483
|
+
const restarted = control(input.agentUid, input.installService ? "install" : "restart").ok === true;
|
|
1312
1484
|
return { provider: requested, runtimeProvider: "anthropic", model: native.model, authenticated: true, restarted };
|
|
1313
1485
|
}
|
|
1314
1486
|
const known = providerProfiles[requested];
|
|
@@ -1356,9 +1528,14 @@ export function authenticateFleetLocalBot(input, deps = {}) {
|
|
|
1356
1528
|
"--base-url",
|
|
1357
1529
|
baseUrl,
|
|
1358
1530
|
];
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1361
|
-
|
|
1531
|
+
const label = `${provider.runtimeProvider} authentication`;
|
|
1532
|
+
const streamEvents = provider.oauth && !input.apiKey && provider.runtimeProvider === "xai-oauth" && input.onAuthEvent !== undefined
|
|
1533
|
+
&& fleetReleaseImportsGrokCli(fleetLocalProfileEngineVersion(input.agentUid, deps));
|
|
1534
|
+
const auth = streamEvents
|
|
1535
|
+
? await runAuthWithEvents(deps.spawnAuth ?? spawnFleetAuth, files.helper, authArgs, input.onAuthEvent, deps.writeStderr ?? ((text) => { process.stderr.write(text); }), label)
|
|
1536
|
+
: runJson(run, files.helper, authArgs, input.apiKey
|
|
1537
|
+
? { input: input.apiKey, stdio: ["pipe", "pipe", "pipe"] }
|
|
1538
|
+
: { stdio: ["inherit", "pipe", "inherit"] }, label);
|
|
1362
1539
|
if (auth.authenticated !== true) {
|
|
1363
1540
|
throw expectedError(`HQ Fleet Local could not authenticate ${provider.runtimeProvider}.`);
|
|
1364
1541
|
}
|
|
@@ -1371,7 +1548,7 @@ export function authenticateFleetLocalBot(input, deps = {}) {
|
|
|
1371
1548
|
});
|
|
1372
1549
|
runJson(run, files.helper, ["render-profile", "--spec", files.profile, "--mode", "update"], { stdio: ["ignore", "pipe", "pipe"] }, "profile update");
|
|
1373
1550
|
runJson(run, files.helper, ["doctor-profile", "--profile", files.profileDir, "--runtime", files.runtime], { stdio: ["ignore", "pipe", "pipe"] }, "profile validation");
|
|
1374
|
-
const restarted =
|
|
1551
|
+
const restarted = control(input.agentUid, input.installService ? "install" : "restart").ok === true;
|
|
1375
1552
|
return {
|
|
1376
1553
|
provider: requested,
|
|
1377
1554
|
runtimeProvider: provider.runtimeProvider,
|
|
@@ -1527,6 +1704,41 @@ export function fleetLocalProfileDir(agentUid, deps = {}) {
|
|
|
1527
1704
|
}
|
|
1528
1705
|
return profileRoot(agentUid, deps.fleetHome ?? fleetHome());
|
|
1529
1706
|
}
|
|
1707
|
+
export function parseGatewayReady(value) {
|
|
1708
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
1709
|
+
return { ready: false, readyAt: null };
|
|
1710
|
+
const at = value.at;
|
|
1711
|
+
return { ready: true, readyAt: typeof at === "string" && Number.isFinite(Date.parse(at)) ? at : null };
|
|
1712
|
+
}
|
|
1713
|
+
export function clearStaleFleetGatewayReady(profileDir, alive = (pid) => {
|
|
1714
|
+
try {
|
|
1715
|
+
process.kill(pid, 0);
|
|
1716
|
+
return true;
|
|
1717
|
+
}
|
|
1718
|
+
catch {
|
|
1719
|
+
return false;
|
|
1720
|
+
}
|
|
1721
|
+
}) {
|
|
1722
|
+
const file = path.join(profileDir, "gateway_state.json");
|
|
1723
|
+
let raw;
|
|
1724
|
+
let mode;
|
|
1725
|
+
try {
|
|
1726
|
+
raw = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
1727
|
+
mode = fs.statSync(file).mode & 0o777;
|
|
1728
|
+
}
|
|
1729
|
+
catch {
|
|
1730
|
+
return false;
|
|
1731
|
+
}
|
|
1732
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw) || !parseGatewayReady(raw.ready).ready)
|
|
1733
|
+
return false;
|
|
1734
|
+
const pid = raw.pid;
|
|
1735
|
+
if (typeof pid === "number" && Number.isInteger(pid) && pid > 0 && alive(pid))
|
|
1736
|
+
return false;
|
|
1737
|
+
const temporary = `${file}.${process.pid}.tmp`;
|
|
1738
|
+
fs.writeFileSync(temporary, `${JSON.stringify({ ...raw, ready: null })}\n`, { mode });
|
|
1739
|
+
fs.renameSync(temporary, file);
|
|
1740
|
+
return true;
|
|
1741
|
+
}
|
|
1530
1742
|
export function readFleetLocalGatewayState(agentUid, deps = {}) {
|
|
1531
1743
|
let raw;
|
|
1532
1744
|
try {
|
|
@@ -1551,6 +1763,7 @@ export function readFleetLocalGatewayState(agentUid, deps = {}) {
|
|
|
1551
1763
|
gatewayState: typeof raw.gateway_state === "string" ? raw.gateway_state : null,
|
|
1552
1764
|
activeAgents: Number.isFinite(active) && active > 0 ? Math.floor(active) : 0,
|
|
1553
1765
|
platforms,
|
|
1766
|
+
...parseGatewayReady(raw.ready),
|
|
1554
1767
|
};
|
|
1555
1768
|
}
|
|
1556
1769
|
export function fleetLocalChannels(state, gatewayAlive) {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FleetInstallProgress } from "./fleet-local.js";
|
|
2
|
+
export type InstallProgressPhase = "download" | "verify" | "prepare" | "unpack" | "environment" | "done";
|
|
3
|
+
export interface InstallProgressLine {
|
|
4
|
+
event: "install";
|
|
5
|
+
phase: InstallProgressPhase;
|
|
6
|
+
bytesDone: number | null;
|
|
7
|
+
bytesTotal: number | null;
|
|
8
|
+
fraction: number;
|
|
9
|
+
message: string;
|
|
10
|
+
cached?: true;
|
|
11
|
+
}
|
|
12
|
+
export declare const INSTALL_PROGRESS_INTERVAL_MS = 250;
|
|
13
|
+
export declare const INSTALL_PHASE_SPANS: Record<Exclude<InstallProgressPhase, "done">, readonly [number, number]>;
|
|
14
|
+
export declare const PREPARE_EXPECTED_MS = 15000;
|
|
15
|
+
export declare const PACKAGES_EXPECTED_MS = 30000;
|
|
16
|
+
type Timer = unknown;
|
|
17
|
+
export interface InstallProgressTrackerDeps {
|
|
18
|
+
now?: () => number;
|
|
19
|
+
setTimer?: (fn: () => void, ms: number) => Timer;
|
|
20
|
+
clearTimer?: (timer: Timer) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface InstallProgressTracker {
|
|
23
|
+
(event: FleetInstallProgress): void;
|
|
24
|
+
stop(): void;
|
|
25
|
+
}
|
|
26
|
+
export declare function createInstallProgressTracker(emit: (line: InstallProgressLine) => void, deps?: InstallProgressTrackerDeps): InstallProgressTracker;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=install-progress.d.ts.map
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
export const INSTALL_PROGRESS_INTERVAL_MS = 250;
|
|
2
|
+
const PHASE_ORDER = ["download", "verify", "prepare", "unpack", "environment", "done"];
|
|
3
|
+
export const INSTALL_PHASE_SPANS = {
|
|
4
|
+
download: [0, 0.3],
|
|
5
|
+
verify: [0.3, 0.31],
|
|
6
|
+
prepare: [0.31, 0.5],
|
|
7
|
+
unpack: [0.5, 0.52],
|
|
8
|
+
environment: [0.52, 0.99],
|
|
9
|
+
};
|
|
10
|
+
const ENVIRONMENT_SETUP_SHARE = 0.05;
|
|
11
|
+
export const PREPARE_EXPECTED_MS = 15_000;
|
|
12
|
+
export const PACKAGES_EXPECTED_MS = 30_000;
|
|
13
|
+
const MESSAGES = {
|
|
14
|
+
download: "Downloading the runtime",
|
|
15
|
+
verify: "Checking the download",
|
|
16
|
+
prepare: "Preparing the runtime's core components",
|
|
17
|
+
unpack: "Unpacking the runtime",
|
|
18
|
+
environment: "Setting up the runtime",
|
|
19
|
+
done: "The runtime is ready",
|
|
20
|
+
};
|
|
21
|
+
export function createInstallProgressTracker(emit, deps = {}) {
|
|
22
|
+
const now = deps.now ?? Date.now;
|
|
23
|
+
const setTimer = deps.setTimer ?? ((fn, ms) => setTimeout(fn, ms));
|
|
24
|
+
const clearTimer = deps.clearTimer ?? ((timer) => clearTimeout(timer));
|
|
25
|
+
const files = new Map();
|
|
26
|
+
let expectedFiles = null;
|
|
27
|
+
let phase = null;
|
|
28
|
+
let fraction = 0;
|
|
29
|
+
let lastEmitAt = Number.NEGATIVE_INFINITY;
|
|
30
|
+
let pending = null;
|
|
31
|
+
let flushTimer = null;
|
|
32
|
+
let creepTimer = null;
|
|
33
|
+
let creeping = null;
|
|
34
|
+
let installedSomething = false;
|
|
35
|
+
let finished = false;
|
|
36
|
+
const start = (fn, ms) => {
|
|
37
|
+
const timer = setTimer(fn, ms);
|
|
38
|
+
timer?.unref?.();
|
|
39
|
+
return timer;
|
|
40
|
+
};
|
|
41
|
+
const cancel = (timer) => {
|
|
42
|
+
if (timer !== null)
|
|
43
|
+
clearTimer(timer);
|
|
44
|
+
return null;
|
|
45
|
+
};
|
|
46
|
+
const send = (line) => {
|
|
47
|
+
pending = null;
|
|
48
|
+
flushTimer = cancel(flushTimer);
|
|
49
|
+
lastEmitAt = now();
|
|
50
|
+
emit(line);
|
|
51
|
+
};
|
|
52
|
+
const schedule = (line) => {
|
|
53
|
+
const wait = lastEmitAt + INSTALL_PROGRESS_INTERVAL_MS - now();
|
|
54
|
+
if (wait <= 0) {
|
|
55
|
+
send(line);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
pending = line;
|
|
59
|
+
if (flushTimer === null) {
|
|
60
|
+
flushTimer = start(() => {
|
|
61
|
+
flushTimer = null;
|
|
62
|
+
if (pending)
|
|
63
|
+
send(pending);
|
|
64
|
+
}, wait);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const downloadBytes = () => {
|
|
68
|
+
let done = 0;
|
|
69
|
+
let total = 0;
|
|
70
|
+
let known = 0;
|
|
71
|
+
for (const file of files.values()) {
|
|
72
|
+
done += file.received;
|
|
73
|
+
if (file.total !== null) {
|
|
74
|
+
total += file.total;
|
|
75
|
+
known += 1;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const allKnown = expectedFiles !== null && known >= expectedFiles;
|
|
79
|
+
return { done: allKnown ? Math.min(done, total) : done, total: allKnown ? total : null };
|
|
80
|
+
};
|
|
81
|
+
const line = (next, target, extra = {}) => {
|
|
82
|
+
fraction = Math.min(1, Math.max(fraction, target));
|
|
83
|
+
const bytes = next === "download" ? downloadBytes() : null;
|
|
84
|
+
return {
|
|
85
|
+
event: "install",
|
|
86
|
+
phase: next,
|
|
87
|
+
bytesDone: bytes ? bytes.done : null,
|
|
88
|
+
bytesTotal: bytes ? bytes.total : null,
|
|
89
|
+
fraction: Math.floor(fraction * 1000) / 1000,
|
|
90
|
+
message: MESSAGES[next],
|
|
91
|
+
...extra,
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
const enter = (next, within) => {
|
|
95
|
+
if (finished)
|
|
96
|
+
return;
|
|
97
|
+
const index = PHASE_ORDER.indexOf(next);
|
|
98
|
+
const current = phase === null ? -1 : PHASE_ORDER.indexOf(phase);
|
|
99
|
+
if (index < current)
|
|
100
|
+
return;
|
|
101
|
+
const [from, to] = INSTALL_PHASE_SPANS[next];
|
|
102
|
+
const target = from + (to - from) * Math.min(1, Math.max(0, within));
|
|
103
|
+
if (index > current) {
|
|
104
|
+
if (pending)
|
|
105
|
+
send(pending);
|
|
106
|
+
phase = next;
|
|
107
|
+
send(line(next, target));
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
schedule(line(next, target));
|
|
111
|
+
};
|
|
112
|
+
const creep = () => {
|
|
113
|
+
creepTimer = null;
|
|
114
|
+
if (finished || creeping === null || phase !== creeping.phase)
|
|
115
|
+
return;
|
|
116
|
+
const elapsed = now() - creeping.since;
|
|
117
|
+
const share = creeping.base + (1 - creeping.base) * (1 - Math.exp(-elapsed / creeping.expectedMs));
|
|
118
|
+
enter(creeping.phase, Math.min(share, 0.98));
|
|
119
|
+
creepTimer = start(creep, INSTALL_PROGRESS_INTERVAL_MS);
|
|
120
|
+
};
|
|
121
|
+
const startCreep = (next, base, expectedMs) => {
|
|
122
|
+
creeping = { phase: next, since: now(), base, expectedMs };
|
|
123
|
+
creepTimer = cancel(creepTimer);
|
|
124
|
+
creepTimer = start(creep, INSTALL_PROGRESS_INTERVAL_MS);
|
|
125
|
+
};
|
|
126
|
+
const tracker = ((event) => {
|
|
127
|
+
if (finished)
|
|
128
|
+
return;
|
|
129
|
+
switch (event.phase) {
|
|
130
|
+
case "download-start":
|
|
131
|
+
expectedFiles = event.files;
|
|
132
|
+
installedSomething = true;
|
|
133
|
+
enter("download", 0);
|
|
134
|
+
return;
|
|
135
|
+
case "download": {
|
|
136
|
+
installedSomething = true;
|
|
137
|
+
files.set(event.file, { received: event.received, total: event.total });
|
|
138
|
+
const bytes = downloadBytes();
|
|
139
|
+
enter("download", bytes.total ? bytes.done / Math.max(bytes.total, 1) : 0);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
case "verify":
|
|
143
|
+
enter("verify", 0);
|
|
144
|
+
return;
|
|
145
|
+
case "python":
|
|
146
|
+
enter("prepare", 0);
|
|
147
|
+
startCreep("prepare", 0, PREPARE_EXPECTED_MS);
|
|
148
|
+
return;
|
|
149
|
+
case "extract":
|
|
150
|
+
installedSomething = true;
|
|
151
|
+
enter("unpack", 0);
|
|
152
|
+
return;
|
|
153
|
+
case "environment":
|
|
154
|
+
installedSomething = true;
|
|
155
|
+
enter("environment", 0);
|
|
156
|
+
return;
|
|
157
|
+
case "packages":
|
|
158
|
+
installedSomething = true;
|
|
159
|
+
enter("environment", ENVIRONMENT_SETUP_SHARE);
|
|
160
|
+
startCreep("environment", ENVIRONMENT_SETUP_SHARE, PACKAGES_EXPECTED_MS);
|
|
161
|
+
return;
|
|
162
|
+
case "ready":
|
|
163
|
+
if (event.step === "download") {
|
|
164
|
+
if (!event.cached)
|
|
165
|
+
enter("verify", 1);
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
finished = true;
|
|
169
|
+
creepTimer = cancel(creepTimer);
|
|
170
|
+
if (pending)
|
|
171
|
+
send(pending);
|
|
172
|
+
phase = "done";
|
|
173
|
+
send(line("done", 1, installedSomething ? {} : { cached: true, message: "The runtime is already on this computer" }));
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
tracker.stop = () => {
|
|
178
|
+
finished = true;
|
|
179
|
+
creepTimer = cancel(creepTimer);
|
|
180
|
+
flushTimer = cancel(flushTimer);
|
|
181
|
+
pending = null;
|
|
182
|
+
};
|
|
183
|
+
return tracker;
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=install-progress.js.map
|
|
@@ -29,6 +29,27 @@ export declare const GROK_HOLDER_SCAN_TTL_MS = 30000;
|
|
|
29
29
|
export declare function resetGrokHolderScan(): void;
|
|
30
30
|
/** Mirrors the helper's `_existing_machine_oauth`: another Fleet bot here holds a Grok OAuth login. */
|
|
31
31
|
export declare function grokLoginReadableHere(exclude: string, deps?: GrokLoginProbeDeps, now?: number): LegacyProviderLogin;
|
|
32
|
-
|
|
32
|
+
export declare const GROK_CLI_AUTH_ISSUER = "https://auth.x.ai";
|
|
33
|
+
export declare const FLEET_XAI_OAUTH_CLIENT_ID = "b1a00492-073a-47ea-816f-4c329264a828";
|
|
34
|
+
export declare function grokCliAuthPath(homedir?: string, env?: NodeJS.ProcessEnv): string;
|
|
35
|
+
export declare function grokCliLoginReadable(homedir?: string, env?: NodeJS.ProcessEnv): LegacyProviderLogin;
|
|
36
|
+
export declare function fleetHelperSharesGrokCliLogin(): boolean;
|
|
37
|
+
export interface GrokSignInDeps {
|
|
38
|
+
sibling?: () => LegacyProviderLogin;
|
|
39
|
+
cli?: () => LegacyProviderLogin;
|
|
40
|
+
cliImport?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare function grokSignInReusableHere(exclude: string, deps?: GrokSignInDeps): LegacyProviderLogin;
|
|
43
|
+
/** The live probe for a bot: Codex from its login home, Grok from the Grok CLI or the other Fleet bots here. */
|
|
33
44
|
export declare function legacyProviderLoginProbe(dir: string, config: Pick<BotConfig, "name" | "agentUid" | "runtime" | "runtimeAuth" | "hqRoot">): LegacyProviderLoginProbe;
|
|
45
|
+
export type FleetSignInProvider = "chatgpt" | "grok";
|
|
46
|
+
export interface FleetSignInHereDeps {
|
|
47
|
+
env?: NodeJS.ProcessEnv;
|
|
48
|
+
homedir?: string;
|
|
49
|
+
grok?: () => LegacyProviderLogin;
|
|
50
|
+
grokCli?: () => LegacyProviderLogin;
|
|
51
|
+
grokCliImport?: boolean;
|
|
52
|
+
now?: number;
|
|
53
|
+
}
|
|
54
|
+
export declare function fleetSignInReusableHere(provider: FleetSignInProvider, deps?: FleetSignInHereDeps): LegacyProviderLogin;
|
|
34
55
|
//# sourceMappingURL=legacy-provider-login.d.ts.map
|