@lumavox/client 0.6.0 → 0.7.0

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/events.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * test (`apps/edge/test/sdk.test.ts`) holds every field of every frame the
10
10
  * real conversation object sends to these, both ways.
11
11
  */
12
- import type { ErrorCode, RelationInfo } from "./gen/index.js";
12
+ import type { ErrorCode, MessageSource, RelationInfo } from "./gen/index.js";
13
13
  import type { ServerEventName } from "./protocol.gen.js";
14
14
  interface Frame<T extends ServerEventName> {
15
15
  type: T;
@@ -207,6 +207,8 @@ export interface TurnDoneFrame extends Frame<"turn.done">, InTurn {
207
207
  heard_seconds: number | null;
208
208
  /** Your tools it called, in order. */
209
209
  tool_calls: ToolCall[];
210
+ /** The web pages it read, with the agent's `url_context` on; `[]` for none. */
211
+ sources: MessageSource[];
210
212
  timings: TurnTimings;
211
213
  }
212
214
  /** The turn ended early; what was written before it stopped still stands. */
@@ -1 +1 @@
1
- export type { ClientOptions, CompactionInfo, CompactRequest, CompactSessionData, CompactSessionError, CompactSessionErrors, CompactSessionResponse, CompactSessionResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, DeleteAllFactsData, DeleteAllFactsError, DeleteAllFactsErrors, DeleteAllFactsResponse, DeleteAllFactsResponses, DeleteFactData, DeleteFactError, DeleteFactErrors, DeleteFactResponse, DeleteFactResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, ErrorCode, ErrorInfo, ErrorResponse, ExtractSessionFactsData, ExtractSessionFactsError, ExtractSessionFactsErrors, ExtractSessionFactsResponse, ExtractSessionFactsResponses, FactInfo, FactPage, FactsDeleted, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, KnowledgeCitation, KnowledgeLookupInfo, ListFactsData, ListFactsError, ListFactsErrors, ListFactsResponse, ListFactsResponses, ListRelationsData, ListRelationsError, ListRelationsErrors, ListRelationsResponse, ListRelationsResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, MessageInfo, MessageKnowledge, MessagePage, MessageToolCall, RelationInfo, RelationPage, SessionCreateRequest, SessionDetail, SessionInfo, SessionPage, ValidationIssue } from './types.gen.js';
1
+ export type { ClientOptions, CompactionInfo, CompactRequest, CompactSessionData, CompactSessionError, CompactSessionErrors, CompactSessionResponse, CompactSessionResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, DeleteAllFactsData, DeleteAllFactsError, DeleteAllFactsErrors, DeleteAllFactsResponse, DeleteAllFactsResponses, DeleteFactData, DeleteFactError, DeleteFactErrors, DeleteFactResponse, DeleteFactResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, ErrorCode, ErrorInfo, ErrorResponse, ExtractSessionFactsData, ExtractSessionFactsError, ExtractSessionFactsErrors, ExtractSessionFactsResponse, ExtractSessionFactsResponses, FactInfo, FactPage, FactsDeleted, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, KnowledgeCitation, KnowledgeLookupInfo, ListFactsData, ListFactsError, ListFactsErrors, ListFactsResponse, ListFactsResponses, ListRelationsData, ListRelationsError, ListRelationsErrors, ListRelationsResponse, ListRelationsResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, MessageInfo, MessageKnowledge, MessagePage, MessageSource, MessageToolCall, RelationInfo, RelationPage, SessionCreateRequest, SessionDetail, SessionInfo, SessionPage, ValidationIssue } from './types.gen.js';
@@ -89,6 +89,10 @@ export type MessageInfo = {
89
89
  */
90
90
  mood_intensity: number | null;
91
91
  role: 'user' | 'assistant';
92
+ /**
93
+ * On a reply: the web pages it read, with the agent's `url_context` switch on. Empty when it read none, and on the person's messages.
94
+ */
95
+ sources: Array<MessageSource>;
92
96
  /**
93
97
  * On a reply: the calls of your tools it made, in order, each with its arguments and what it answered. Empty when it called none, and on the person's messages.
94
98
  */
@@ -118,6 +122,16 @@ export type KnowledgeCitation = {
118
122
  score: number;
119
123
  title: string;
120
124
  };
125
+ /**
126
+ * A web page the reply read with the agent's `url_context` switch on.
127
+ */
128
+ export type MessageSource = {
129
+ url: string;
130
+ /**
131
+ * Whether the page could be read. A reply may name a page it could not fetch — behind a login, refused by its site, gone — and answers without it.
132
+ */
133
+ retrieved: boolean;
134
+ };
121
135
  export type MessageToolCall = {
122
136
  /**
123
137
  * The call's id, `call_…`: what your server or app was sent.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/client",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Talk to Lumavox agents from a browser, a React Native app or Node, with an end user's ephemeral key: conversations on the agent's socket, sessions, memory and relations. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",