@agentvault/claude-bridge 0.8.17 → 0.8.19

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.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * A runnable command line for one of this bridge's own subcommands.
3
+ *
4
+ * The bridge used to print `av-bridge trust-host` and friends — there is no
5
+ * `av-bridge` binary. The installed one is `agentvault-claude-bridge`, and every
6
+ * subcommand needs AV_AGENT_NAME to resolve the agent's data dir (#921), so a
7
+ * hint without it fails even with the right binary name.
8
+ *
9
+ * Leaf module (no bridge imports) so bridge.ts and approve-cli.ts can share it.
10
+ */
11
+ export declare const BRIDGE_BINARY = "agentvault-claude-bridge";
12
+ /** POSIX single-quote escaping: safe to paste into a shell whatever `value`
13
+ * holds ($, backticks and double quotes are inert inside single quotes). */
14
+ export declare function shellQuote(value: string): string;
15
+ export declare function isHintSafeId(value: unknown): value is string;
16
+ export declare function bridgeCommand(subcommand: string, agentName: string | undefined): string;
17
+ //# sourceMappingURL=cli-hint.d.ts.map
@@ -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