@agentvault/openai-bridge 0.1.7 → 0.1.9

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,3 +1,4 @@
1
+ import { type ToolSpanSink } from "@agentvault/agentvault";
1
2
  import type { TurnResult } from "./driver.js";
2
3
  export interface BridgeChannel {
3
4
  on(event: string, listener: (...args: any[]) => void): unknown;
@@ -21,7 +22,7 @@ export interface BridgeChannel {
21
22
  sendToRoom(roomId: string, text: string): Promise<unknown>;
22
23
  /** SecureChannel's TelemetryReporter (device JWT, buffered). Optional so
23
24
  * fixtures and a channel without telemetry keep working. */
24
- telemetry?: {
25
+ telemetry?: ({
25
26
  reportLlmCall(opts: {
26
27
  model: string;
27
28
  provider?: string;
@@ -29,7 +30,7 @@ export interface BridgeChannel {
29
30
  tokensInput: number;
30
31
  tokensOutput: number;
31
32
  }): void;
32
- } | null;
33
+ } & Partial<ToolSpanSink>) | null;
33
34
  }
34
35
  export interface TurnDriver {
35
36
  run(key: string, prompt: string, signal?: AbortSignal): Promise<TurnResult>;
@@ -60,7 +61,13 @@ export declare class OpenAIBridge {
60
61
  /** Health (2026-10-14): tokens for the model call. No cost — the bridge runs
61
62
  * on a ChatGPT login, so there is no per-token price to report honestly. */
62
63
  private reportUsage;
64
+ /** "Recent problems" (2026-10-26): every reply delivery is one
65
+ * `ai.agent.tool.invoke` span (tool `reply` — this bridge has no say tool;
66
+ * the model's text IS the post). Outcome, machine error code, duration and
67
+ * the conversation only — never the text or an error message. Never throws. */
68
+ private reportReply;
63
69
  private deliver;
70
+ private deliverOnce;
64
71
  idle(): Promise<void>;
65
72
  stop(): Promise<void>;
66
73
  }
package/dist/cli.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type HistoryRecoveryCommandInput } from "@agentvault/agentvault";
2
2
  import { type Layout } from "./driver.js";
3
- export declare const VERSION = "0.1.7";
3
+ export declare const VERSION = "0.1.9";
4
4
  export interface RunConfig {
5
5
  name: string;
6
6
  apiUrl: string;