@agentvault/muse-bridge 0.1.22 → 0.1.23

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,24 @@
1
+ /**
2
+ * Show the device fingerprint the owner must match before clicking Approve.
3
+ *
4
+ * The app's Connect card says "Match this with your agent's terminal output",
5
+ * but only the OpenClaw `setup` printed one. The muse bridge enrols in the
6
+ * FOREGROUND (`install` refuses without persisted creds), so its log sink —
7
+ * stderr — is the customer's terminal at that moment.
8
+ *
9
+ * The value is the one the enrolment response returns (`SecureChannel.fingerprint`,
10
+ * set before the channel enters "polling") — the backend's
11
+ * `_compute_fingerprint`: BLAKE2b-8 of the identity public key as colon-separated
12
+ * hex (`a1:b2:c3:d4:e5:f6:78:90`), the exact string the app displays. Printed
13
+ * as-is, never recomputed, so the two cannot drift.
14
+ */
15
+ /** The lines shown to the customer — same wording as the OpenClaw setup. */
16
+ export declare function fingerprintLines(fingerprint: string): string[];
17
+ interface FingerprintChannel {
18
+ on(ev: "state", cb: (s: string) => void): unknown;
19
+ readonly fingerprint?: string | null;
20
+ }
21
+ /** Log the fingerprint when the channel starts waiting for approval. */
22
+ export declare function watchEnrollmentFingerprint(channel: FingerprintChannel, log: (msg: string) => void): void;
23
+ export {};
24
+ //# sourceMappingURL=enrollment-fingerprint.d.ts.map
package/dist/index.d.ts CHANGED
@@ -11,6 +11,8 @@ export declare function maybeRunRecoverySubcommand(argv?: string[], env?: NodeJS
11
11
  export type BootChannel = RoomChannel & LifecycleChannel & {
12
12
  start(): Promise<void>;
13
13
  stop(): Promise<void>;
14
+ /** Set by SecureChannel from the enrolment response, before "polling". */
15
+ readonly fingerprint?: string | null;
14
16
  };
15
17
  export interface MainOpts {
16
18
  env?: NodeJS.ProcessEnv;