@agentvault/claude-bridge 0.8.23 → 0.8.25

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/bridge.d.ts CHANGED
@@ -1,4 +1,6 @@
1
+ import { type ToolSpanSink } from "@agentvault/agentvault";
1
2
  import { ArmingState } from "./arming.js";
3
+ import { type TerminalVerdict } from "./service/self-uninstall.js";
2
4
  export interface RoomMessage {
3
5
  roomId: string;
4
6
  senderName: string;
@@ -122,6 +124,9 @@ export type BridgeTarget = {
122
124
  export interface ReplyChannel {
123
125
  sendToRoom(roomId: string, text: string): Promise<void>;
124
126
  send(text: string): Promise<void>;
127
+ /** SecureChannel's TelemetryReporter (device JWT, buffered). Optional so
128
+ * fixtures and a channel without telemetry keep working. */
129
+ readonly telemetry?: ToolSpanSink | null;
125
130
  /** #1418 — SecureChannel: run `fn` as `conversationId`'s turn, so an
126
131
  * untargeted send inside it reaches that conversation's person only. */
127
132
  runForConversation?<T>(conversationId: string | undefined, fn: () => Promise<T>, opts?: {
@@ -156,6 +161,7 @@ export declare class ActiveTarget {
156
161
  export interface LifecycleChannel {
157
162
  on(ev: "auth_failed", cb: (e: {
158
163
  reason: string;
164
+ deviceGone?: boolean;
159
165
  }) => void): unknown;
160
166
  on(ev: "session_replaced", cb: (e: {
161
167
  code?: number;
@@ -188,7 +194,7 @@ export declare function attachLifecycle(channel: LifecycleChannel, opts?: {
188
194
  * well would put the same rule in two files, and the two would eventually
189
195
  * disagree — which is how `session_replaced` (device still alive) would end
190
196
  * up removing a healthy install. */
191
- selfUninstall?: (reason: string, env: NodeJS.ProcessEnv) => boolean;
197
+ selfUninstall?: (verdict: TerminalVerdict, env: NodeJS.ProcessEnv) => boolean;
192
198
  }): void;
193
199
  /**
194
200
  * Slice 2 Plan C (Task 11) — one drain of the local-approval marker dir.