@agentvault/grok-bridge 0.4.18 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/enrollment-fingerprint.d.ts +28 -0
- package/dist/index.js +6977 -6081
- package/dist/service/subcommand.d.ts +4 -0
- package/dist/service/subcommand.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** The lines shown to the customer — same wording as the OpenClaw setup. */
|
|
2
|
+
export declare function fingerprintLines(fingerprint: string): string[];
|
|
3
|
+
export declare function pendingFingerprintPath(dataDir: string): string;
|
|
4
|
+
export declare function writePendingFingerprint(dataDir: string, fingerprint: string): void;
|
|
5
|
+
export declare function readPendingFingerprint(dataDir: string): string | undefined;
|
|
6
|
+
export declare function clearPendingFingerprint(dataDir: string): void;
|
|
7
|
+
/**
|
|
8
|
+
* Block (synchronously — the service subcommands are sync) until the daemon has
|
|
9
|
+
* written the fingerprint, or `timeoutMs` passes. Enrolment is one HTTP round
|
|
10
|
+
* trip after the service boots, so this normally returns within seconds.
|
|
11
|
+
*/
|
|
12
|
+
export declare function waitForPendingFingerprint(dataDir: string, opts?: {
|
|
13
|
+
timeoutMs?: number;
|
|
14
|
+
intervalMs?: number;
|
|
15
|
+
sleep?: (ms: number) => void;
|
|
16
|
+
now?: () => number;
|
|
17
|
+
}): string | undefined;
|
|
18
|
+
interface FingerprintChannel {
|
|
19
|
+
on(ev: "state", cb: (s: string) => void): unknown;
|
|
20
|
+
readonly fingerprint: string | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Daemon side: when the channel starts waiting for approval, log the
|
|
24
|
+
* fingerprint and publish it for `install` / `status`; drop it once approved.
|
|
25
|
+
*/
|
|
26
|
+
export declare function watchEnrollmentFingerprint(channel: FingerprintChannel, dataDir: string, log: (msg: string) => void): void;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=enrollment-fingerprint.d.ts.map
|